Skip to content

Commit 50ba1fd

Browse files
authored
Minor CSS cleanup (#5)
2 parents 0e2fee5 + d7776a3 commit 50ba1fd

File tree

1 file changed

+48
-62
lines changed

1 file changed

+48
-62
lines changed

src/App.css

Lines changed: 48 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,26 @@
1+
/* Root App Container */
12
.app {
23
background-color: #ffffff;
34
color: #000000;
45
transition: background-color 0.3s ease, color 0.3s ease;
56
min-height: 100vh;
67
padding: 1rem;
8+
font-family: Arial, sans-serif;
79
}
810

911
.app.dark {
1012
background-color: #121212;
1113
color: #ffffff;
1214
}
1315

14-
textarea {
15-
background-color: #f0f0f0;
16-
color: #000;
17-
border: 1px solid #ccc;
18-
font-family: monospace;
19-
font-size: 14px;
20-
padding: 0.5rem;
21-
}
22-
23-
.app.dark textarea {
24-
background-color: #1e1e1e;
25-
color: #eee;
26-
border: 1px solid #444;
27-
}
28-
29-
button {
30-
padding: 0.5rem 1rem;
31-
font-size: 1rem;
32-
margin: 0.5rem;
33-
cursor: pointer;
34-
border-radius: 7px;
35-
}
36-
37-
footer p {
38-
margin: 0;
39-
font-size: 1rem;
40-
color: #555;
41-
}
42-
43-
footer a {
44-
color: #007bff;
45-
text-decoration: underline;
46-
}
47-
48-
footer a:hover {
49-
color: #0056b3;
50-
}
51-
52-
/* App.css */
53-
54-
/* Basic page layout */
16+
/* Main content container */
5517
.app-container {
5618
max-width: 800px;
5719
margin: 0 auto;
5820
padding: 2rem;
59-
font-family: Arial, sans-serif;
6021
}
6122

62-
/* Header styling */
23+
/* Header */
6324
h1 {
6425
text-align: center;
6526
font-size: 2rem;
@@ -78,19 +39,46 @@ textarea {
7839
resize: vertical;
7940
box-sizing: border-box;
8041
margin-bottom: 1rem;
42+
background-color: #f0f0f0;
43+
color: #000;
44+
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
45+
}
46+
47+
.app.dark textarea {
48+
background-color: #1e1e1e;
49+
color: #eee;
50+
border-color: #444;
51+
}
52+
53+
/* For textarea containers holding two textareas side-by-side */
54+
.textarea-container {
55+
display: flex;
56+
gap: 1rem; /* space between textareas */
57+
margin-bottom: 1rem;
58+
}
59+
60+
.textarea-container textarea {
61+
flex: 1; /* equal width */
62+
min-height: 300px;
8163
}
8264

8365
/* Buttons */
8466
button {
85-
padding: 0.6rem 1.2rem;
86-
font-size: 1rem;
67+
padding: 0.6rem 1.2rem; /* same vertical and horizontal padding */
68+
font-size: 1rem; /* same font size */
69+
line-height: 1.2; /* consistent line height */
8770
cursor: pointer;
8871
background-color: #007bff;
8972
color: white;
9073
border: none;
9174
border-radius: 4px;
9275
transition: background-color 0.2s ease;
93-
margin-bottom: 1rem;
76+
margin: 0.5rem 0.5rem 1rem 0.5rem; /* uniform margin */
77+
box-sizing: border-box; /* include padding/border in size */
78+
display: inline-flex; /* better alignment */
79+
align-items: center; /* vertical center content */
80+
height: 40px; /* fixed height for all buttons */
81+
min-width: 100px; /* optional: consistent min width */
9482
}
9583

9684
button:hover {
@@ -105,28 +93,26 @@ button:hover {
10593
background-color: #f9f9f9;
10694
}
10795

108-
/* Optional: Error message */
96+
/* Error messages */
10997
.error-message {
11098
color: red;
11199
margin-top: 0.5rem;
112100
font-size: 0.9rem;
113101
}
114102

115-
.textarea-container {
116-
display: flex;
117-
gap: 1rem; /* Space between the two textareas */
118-
margin-bottom: 1rem;
103+
/* Footer styles */
104+
footer p {
105+
margin: 0;
106+
font-size: 1rem;
107+
color: #555;
119108
}
120109

121-
/* Style both textareas */
122-
.textarea-container textarea {
123-
flex: 1; /* Each takes up 50% of the container */
124-
min-height: 300px;
125-
padding: 1rem;
126-
font-size: 1rem;
127-
font-family: monospace;
128-
border: 1px solid #ccc;
129-
border-radius: 4px;
130-
resize: vertical;
131-
box-sizing: border-box;
110+
footer a {
111+
color: #007bff;
112+
text-decoration: underline;
113+
transition: color 0.2s ease;
114+
}
115+
116+
footer a:hover {
117+
color: #0056b3;
132118
}

0 commit comments

Comments
 (0)