Skip to content

Commit 3e089d3

Browse files
committed
Experiment with a purple style
1 parent 7bb8008 commit 3e089d3

File tree

1 file changed

+41
-37
lines changed

1 file changed

+41
-37
lines changed

src/style.css

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
body {
22
font-family: 'Arial', sans-serif;
3-
background-color: #f3f3f3;
4-
color: #333;
3+
background-color: #f7fafc;
4+
color: #2d3748;
55
margin: 0;
66
padding: 20px;
77
}
88

99
#promotional-banner {
1010
text-align: center;
11-
background-color: #2B642D;
11+
background-color: #805ad5;
1212
color: #ffffff;
1313
margin: -20px;
1414
padding: 20px;
@@ -24,13 +24,13 @@ body {
2424
}
2525

2626
q {
27-
border-left: 2px solid gray;
27+
border-left: 2px solid #805ad5;
2828
margin-left: 20px;
2929
padding: 8px;
3030
}
3131

3232
.section {
33-
border-bottom: 2px solid #2B642D;
33+
border-bottom: 2px solid #805ad5;
3434
padding-bottom: 20px;
3535
margin-bottom: 20px;
3636
border-radius: 8px;
@@ -48,15 +48,15 @@ p#try-it-out strong {
4848
}
4949

5050
h1, h2 {
51-
color: #2B642D;
51+
color: #805ad5;
5252
}
5353

5454
.section h2, .section pre {
5555
margin-left: 0;
5656
}
5757

5858
pre {
59-
background-color: #e0f7fa;
59+
background-color: #f8f9fa;
6060
padding: 10px;
6161
border-radius: 5px;
6262
}
@@ -66,23 +66,25 @@ pre {
6666
}
6767

6868
#click #success {
69-
color: #2B642D;
69+
color: #553c9a;
7070
display: none;
71-
background-color: #e6ffed;
71+
background-color: #e9d8fd;
7272
padding: 10px;
7373
border-radius: 8px;
74+
border: 1px solid #b794f4;
7475
}
7576

7677
#intercept .error, #click .error {
7778
margin-top: 10px;
78-
color: #fff;
79-
background-color: lightcoral;
79+
color: #742a2a;
80+
background-color: #fed7d7;
8081
padding: 10px;
8182
border-radius: 8px;
83+
border: 1px solid #feb2b2;
8284
}
8385

8486
button {
85-
background-color: #2B642D;
87+
background-color: #805ad5;
8688
color: #fff;
8789
padding: 10px 20px;
8890
border: none;
@@ -91,7 +93,7 @@ button {
9193
}
9294

9395
button:hover {
94-
background-color: #45a049;
96+
background-color: #6b46c1;
9597
}
9698

9799
#click button {
@@ -102,13 +104,13 @@ textarea {
102104
width: 97%;
103105
padding: 10px;
104106
margin-top: 10px;
105-
border: 1px solid #ccc;
107+
border: 1px solid #e2e8f0;
106108
border-radius: 5px;
107109
}
108110

109111
label {
110112
margin-bottom: 5px;
111-
color: #2B642D;
113+
color: #805ad5;
112114
}
113115

114116
#check label:not(label[for="signature-textarea-with-checkbox"]) {
@@ -128,16 +130,16 @@ input[type="checkbox"] {
128130
}
129131

130132
strong {
131-
color: #2B642D;
133+
color: #805ad5;
132134
}
133135

134136
select {
135137
width: 98.5%;
136138
padding: 10px;
137139
margin-top: 10px;
138-
border: 1px solid #ccc;
140+
border: 1px solid #e2e8f0;
139141
border-radius: 5px;
140-
background-color: #f9fbe7;
142+
background-color: #f8f9fa;
141143
}
142144

143145
#file-upload {
@@ -151,35 +153,35 @@ ul {
151153
}
152154

153155
ul li {
154-
background-color: #f9fbe7;
156+
background-color: #f8f9fa;
155157
padding: 10px;
156158
margin-bottom: 5px;
157159
border-radius: 5px;
158-
color: #333333;
160+
color: #2d3748;
159161
}
160162

161163
ul li:last-child {
162164
margin-bottom: 0;
163165
}
164166

165167
ul li:hover {
166-
background-color: #e6ee9c;
168+
background-color: #edf2f7;
167169
cursor: pointer;
168170
}
169171

170172
a {
171-
color: #2B642D;
173+
color: #805ad5;
172174
transition: color 0.3s ease;
173175
}
174176

175177
a:hover {
176-
color: #2E7D32;
178+
color: #6b46c1;
177179
}
178180

179181
input[type="range"] {
180182
height: 10px;
181183
margin: 10px 0;
182-
background-color: #e6ee9c;
184+
background-color: #edf2f7;
183185
border: none;
184186
border-radius: 5px;
185187
outline: none;
@@ -190,7 +192,7 @@ input[type="range"]::-webkit-slider-thumb {
190192
-webkit-appearance: none;
191193
width: 20px;
192194
height: 20px;
193-
background-color: #2B642D;
195+
background-color: #805ad5;
194196
border: 2px solid #fff;
195197
border-radius: 50%;
196198
cursor: pointer;
@@ -204,14 +206,14 @@ input[type="range"]:focus {
204206
input[type="range"]::-moz-range-thumb {
205207
width: 20px;
206208
height: 20px;
207-
background-color: #2B642D;
209+
background-color: #805ad5;
208210
border: 2px solid #fff;
209211
border-radius: 50%;
210212
cursor: pointer;
211213
}
212214

213215
input[type="range"]::-moz-range-track {
214-
background-color: #f9fbe7;
216+
background-color: #edf2f7;
215217
border: none;
216218
border-radius: 5px;
217219
}
@@ -223,13 +225,13 @@ input[type="range"]::-moz-focus-inner {
223225
input[type="date"] {
224226
appearance: none;
225227
padding: 8px;
226-
border: 1px solid #ccc;
228+
border: 1px solid #e2e8f0;
227229
border-radius: 5px;
228230
outline: none;
229231
}
230232

231233
input[type="date"]::-webkit-calendar-picker-indicator {
232-
color: #2B642D;
234+
color: #805ad5;
233235
font-size: 14px;
234236
cursor: pointer;
235237
padding: 0;
@@ -247,20 +249,20 @@ input[type="date"]::-webkit-clear-button {
247249
}
248250

249251
input[type="date"]:focus {
250-
border-color: #2B642D;
252+
border-color: #805ad5;
251253
}
252254

253255
#password-input input[type="password"], #password-input input[type="text"], #copy-paste input[type="number"] {
254256
padding: 8px;
255257
font-size: 16px;
256-
border: 1px solid #ccc;
258+
border: 1px solid #e2e8f0;
257259
border-radius: 4px;
258260
}
259261

260262
#password-input input[type="password"]:focus, #password-input input[type="text"]:focus, #copy-paste input[type="number"]:focus {
261263
outline: none;
262-
border-color: #2B642D;
263-
box-shadow: 0 0 5px lightgray;
264+
border-color: #805ad5;
265+
box-shadow: 0 0 5px rgba(128, 90, 213, 0.2);
264266
}
265267

266268
#password-input div label, #password-input div input[type="password"], #password-input div input[type="text"] {
@@ -283,18 +285,20 @@ input[type="date"]:focus {
283285

284286
#copy-paste .success {
285287
margin-left: 10px;
286-
color: #2B642D;
287-
background-color: #e6ffed;
288+
color: #553c9a;
289+
background-color: #e9d8fd;
288290
padding: 10px;
289291
border-radius: 8px;
292+
border: 1px solid #b794f4;
290293
}
291294

292295
#copy-paste .error {
293296
margin-left: 10px;
294-
color: #fff;
295-
background-color: lightcoral;
297+
color: #742a2a;
298+
background-color: #fed7d7;
296299
padding: 10px;
297300
border-radius: 8px;
301+
border: 1px solid #feb2b2;
298302
}
299303

300304
#copy-paste span {

0 commit comments

Comments
 (0)