1
+ /* Root App Container */
1
2
.app {
2
3
background-color : # ffffff ;
3
4
color : # 000000 ;
4
5
transition : background-color 0.3s ease, color 0.3s ease;
5
6
min-height : 100vh ;
6
7
padding : 1rem ;
8
+ font-family : Arial, sans-serif;
7
9
}
8
10
9
11
.app .dark {
10
12
background-color : # 121212 ;
11
13
color : # ffffff ;
12
14
}
13
15
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 */
55
17
.app-container {
56
18
max-width : 800px ;
57
19
margin : 0 auto;
58
20
padding : 2rem ;
59
- font-family : Arial, sans-serif;
60
21
}
61
22
62
- /* Header styling */
23
+ /* Header */
63
24
h1 {
64
25
text-align : center;
65
26
font-size : 2rem ;
@@ -78,19 +39,46 @@ textarea {
78
39
resize : vertical;
79
40
box-sizing : border-box;
80
41
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 ;
81
63
}
82
64
83
65
/* Buttons */
84
66
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 */
87
70
cursor : pointer;
88
71
background-color : # 007bff ;
89
72
color : white;
90
73
border : none;
91
74
border-radius : 4px ;
92
75
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 */
94
82
}
95
83
96
84
button : hover {
@@ -105,28 +93,26 @@ button:hover {
105
93
background-color : # f9f9f9 ;
106
94
}
107
95
108
- /* Optional: Error message */
96
+ /* Error messages */
109
97
.error-message {
110
98
color : red;
111
99
margin-top : 0.5rem ;
112
100
font-size : 0.9rem ;
113
101
}
114
102
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 ;
119
108
}
120
109
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 ;
132
118
}
0 commit comments