-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
344 lines (290 loc) · 6.23 KB
/
style.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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
body {
font-family: Arial, sans-serif;
background-color: #f7f7f7;
margin: 0;
padding: 0;
}
header {
background-color: #0072b1;
color: #fff;
text-align: center;
padding: 20px;
}
h1 {
margin: 0;
}
.container {
max-width: 800px;
margin: 20px auto;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
input[type="text"] {
width: 90%;
padding: 12px;
margin: 12px 0;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
button {
background-color: #0072b1;
color: #fff;
padding: 12px 24px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #005684;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
border: 1px solid #ccc;
padding: 12px;
text-align: center;
}
th {
background-color: #0072b1;
color: #fff;
}
#error {
color: red;
font-weight: bold;
margin-top: 12px;
}
h2 {
color: #0072b1;
}
/* Added new style for the prefix table */
#prefixTable {
margin-top: 20px;
}
#prefixTable th, #prefixTable td {
border: 1px solid #ccc;
padding: 12px;
text-align: center;
}
#prefixTable th {
background-color: #0072b1;
color: #fff;
}
/* Add this style for the result and error sections in the "Result" containers */
.result-container {
margin-top: 20px;
padding: 12px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #f7f7f7;
}
.result-title {
color: #0072b1;
font-size: 18px;
margin-bottom: 10px;
}
.result-content {
font-size: 16px;
margin-top: 10px;
}
.error-container {
margin-top: 20px;
padding: 12px;
border: 1px solid #ff0000;
border-radius: 5px;
background-color: #ffeeee;
}
.error-title {
color: #ff0000;
font-size: 18px;
margin-bottom: 10px;
}
.error-content {
font-size: 16px;
margin-top: 10px;
}
/* Updated style for the Prefix Size, Network Mask, and Usable Hosts table */
#prefixTable {
margin-top: 20px;
}
#prefixTable th, #prefixTable td {
border: 1px solid #ccc;
padding: 12px;
text-align: center;
}
#prefixTable th {
background-color: #0072b1;
color: #fff;
}
/* Add this style for the result and error sections in the "Result" containers */
.result-container {
margin-top: 20px;
padding: 12px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #f7f7f7;
}
.result-title {
color: #0072b1;
font-size: 18px;
margin-bottom: 10px;
}
.result-content {
font-size: 16px;
margin-top: 10px;
}
.error-container {
margin-top: 20px;
padding: 12px;
border: 1px solid #ff0000;
border-radius: 5px;
background-color: #ffeeee;
}
.error-title {
color: #ff0000;
font-size: 18px;
margin-bottom: 10px;
}
.error-content {
font-size: 16px;
margin-top: 10px;
}
body.dark-mode {
background-color: #333;
color: #fff;
}
.dark-mode .container {
background-color: #444;
color: #fff;
}
.dark-mode input {
background-color: #222; /* Dark background color for input */
color: #fff; /* Light text color for input */
}
.dark-mode input::placeholder {
color: #aaa; /* Light placeholder text color for input */
}
/* CSS for the "Toggle Dark Mode" button */
button.toggle-dark-mode {
background-color: transparent;
color: #fff;
border: none;
cursor: pointer;
position: absolute;
top: 10px;
right: 10px;
width: 40px;
height: 40px;
background-image: url('Web/toggle.png'); /* Replace with the path to your toggle button icon */
background-size: cover;
}
button.toggle-dark-mode:hover {
filter: brightness(1.2); /* Add a hover effect to make it slightly brighter */
}
/* CSS for the "Toggle Dark Mode" switch */
.toggle {
display: inline-block;
position: relative;
width: 60px;
height: 34px;
}
.toggle input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: 0.4s;
transition: 0.4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: #fff;
-webkit-transition: 0.4s;
transition: 0.4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #0072b1;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
background-color: #fff;
}
/* Hover effect */
.toggle:hover input + .slider:before {
background-color: #0072b1;
}
/* CSS for the "Toggle Dark Mode" switch */
.toggle {
position: fixed;
top: 10px; /* Adjust the top position to your preference */
right: 10px; /* Adjust the right position to your preference */
display: inline-block;
width: 60px;
height: 34px;
}
/* Dark Mode Styles */
body.dark-mode {
background-color: #333;
color: #fff;
}
.dark-mode .container {
background-color: #444;
color: #fff;
}
.dark-mode .result-container {
background-color: #333; /* You can change this color to your preference */
color: #fff;
}
/* Add styles for the footer */
footer {
background-color: #333; /* Dark background color */
color: #fff; /* White text color */
text-align: center;
padding: 20px;
}
footer p {
font-size: 18px;
margin: 0;
}
/* Rest of the CSS styles remain the same */
/*
:root {
--background-color: #fff;
--text-color: #000;
}
.dark-mode {
--background-color: #333;
--text-color: #fff;
}
body {
background-color: var(--background-color);
color: var(--text-color);
}
.dark-mode .container {
background-color: var(--background-color);
color: var(--text-color);
}
*/