-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
256 lines (207 loc) · 4.94 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
/* Theme selection styling */
.theme-selection {
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
margin-bottom: 20px;
}
.theme-selection select {
margin-left: 10px;
padding: 5px 10px;
}
/* Classic theme */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
margin-top: 30px;
}
.container {
max-width: 1200px;
border-radius: 10px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
}
h1, h2 {
text-align: center;
margin-bottom: 20px;
font-size: 2rem;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
h1::before, h1::after, h2::before, h2::after {
content: "";
flex: 1;
height: 2px; /* Adjust the height as needed */
background-color: #333; /* Color of the separator line */
margin: 0 20px; /* Spacing between the text and the separator */
}
h1::before, h2::before {
margin-right: 20px;
}
h1::after, h2::after {
margin-left: 20px;
}
p {
margin-bottom: 20px;
line-height: 1.6;
font-size: 1.3rem;
padding-right: 30px;
padding-left: 30px;
}
blockquote {
padding: 20px;
border-radius: 5px;
border-left: 5px solid #333;
margin: 20px 0;
font-style: italic;
}
blockquote footer {
display: block;
border-radius: 5px;
text-align: right;
margin-top: 10px;
}
.image-section {
display: flex;
justify-content: start;
align-items: center;
margin-bottom: 40px;
}
.image-preview {
flex: 0 0 70%;
text-align: center;
}
canvas {
display: block;
border-radius: 10px;
max-width: 70%;
margin: 20px auto;
border: 1px solid #ccc;
}
.buttons {
flex: 0 0 20%;
display: flex;
flex-direction: column;
align-items: stretch; /* Change this from 'start' to 'stretch' to make buttons and inputs span the full width */
gap: 20px; /* Spacing between the input and button */
padding: 10px; /* Add some padding for better look */
border: 1px solid #ccc; /* A subtle border around buttons container */
border-radius: 5px; /* Rounded corners for the container */
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* A subtle shadow for depth */
}
/* Styling for the label which will act as our new file input button */
#imageUpload + label {
/* ... (rest of your existing styles) */
padding: 18px 30px; /* Slightly increased padding for a bigger button */
}
/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
.image-section {
flex-direction: column;
}
.image-preview {
flex: 0 0 auto;
margin-bottom: 20px;
}
.buttons {
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px; /* Increased spacing between the input and button */
}
.buttons label, .buttons select, .buttons input, .buttons button {
flex: 0 0 48%; /* Make each element take roughly half the width with a little gap in between */
}
}
button {
padding: 10px 20px;
border-radius: 5px;
background-color: #333;
color: #fff;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
padding: 15px;
font-size: 16px;
}
button:hover {
background-color: #555;
}
.image-gallery {
display: flex;
justify-content: space-between;
margin-bottom: 40px;
}
.image-gallery img {
max-width: 80%;
border-radius: 10px;
}
footer {
text-align: center;
padding: 20px;
background-color: #333;
color: #fff;
padding-bottom: 40px;
}
footer a {
color: #fff;
text-decoration: underline;
}
footer a:hover {
text-decoration: underline;
}
/* Dark theme */
body[data-theme="dark"] {
background-color: #222;
color: #eee;
}
body[data-theme="dark"] .container {
background-color: #333;
}
body[data-theme="dark"] h1, body[data-theme="dark"] h2 {
color: #ddd;
}
body[data-theme="dark"] blockquote {
border-left-color: #888;
}
body[data-theme="dark"] footer {
background-color: #111;
}
/* Pastel theme */
body[data-theme="pastel"] {
background-color: #e9e3e3;
color: #5c5c5c;
}
body[data-theme="pastel"] .container {
background-color: #f7f2f2;
}
body[data-theme="pastel"] h1, body[data-theme="pastel"] h2 {
color: #6a6a6a;
}
body[data-theme="pastel"] blockquote {
border-left-color: #b4a7a7;
}
body[data-theme="pastel"] footer {
background-color: #d3caca;
}
/* styles.css - Accessibility Improvements */
/* Ensure text is legible against the background */
body[data-theme="dark"] {
color: #f1f1f1; /* A lighter color for dark theme */
}
/* Improve button accessibility */
button {
padding: 15px;
font-size: 1rem; /* Make text larger for better readability */
outline: none; /* Remove default outline */
}
button:focus, button:hover {
background-color: #555;
outline: 2px solid #fff; /* Add custom outline on focus for visibility */
}