-
Notifications
You must be signed in to change notification settings - Fork 4
/
dd-wrt-inspired-themes.user.styl
2222 lines (2077 loc) · 58.9 KB
/
dd-wrt-inspired-themes.user.styl
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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* ==UserStyle==
@name DD-WRT Inspired Themes
@namespace github.com/style-it-themes/dd-wrt-inspired-themes
@description Very customizable themes for routres running DD-WRT
@author Style-it Themes: the-j0k3r
@homepageURL https://github.com/style-it-themes/dd-wrt-inspired-themes
@supportURL https://github.com/style-it-themes/dd-wrt-inspired-themes/issues/new/choose
@updateURL https://github.com/style-it-themes/dd-wrt-inspired-themes/raw/main/dd-wrt-inspired-themes.user.styl
@version 6.2.0
@license MIT
@preprocessor stylus
@var checkbox sdetails 'Show style details' 0
@var select cg_theme 'Preset themes toggle' {
'Custom colors *' : 'custom-style ',
'Antigua ' : 'antigua ',
'Dracula ' : 'dracula ',
'Duo Cocoa ' : 'duo-cocoa ',
'Material ' : 'material ',
'Material Darker ' : 'material-dkr ',
'Solarized Dark ' : 'solarized-dark',
'The Matrix ' : 'the-matrix ',
'Twilight ' : 'twilight ',
'Ubuntu ' : 'ubuntu ',
}
@var color cg_bg 'Custom background ' #111a22
@var color cg_fg 'Custom foreground ' #f2f4ff
@var color cg_ac 'Custom accent ' #4f74e3
@var range cg_sat 'Saturation of RGB colors' [0, -50, 40, 0.01]
@var range cg_lig 'Lightness of gray colors' [0, -30, 30, 0.01]
@var checkbox custom_font 'Enable font overrides ' 0
@var checkbox invert_nav 'Invert navigation style ' 1
@var checkbox hide_hsl 'Show hotspot logos ' 1
@var checkbox chkbx_toggle 'Enable ckeckbox toggle ' 0
@var checkbox c_scrollbars 'Use scrollbar overrides ' 0
@var checkbox sticky_help 'Enable sticky help ' 0
@var text f_ui 'UI font ' ''font_name''
@var text f_mono 'Monospace font ' ''font_name''
@var text transition 'Define transition value ' 'all 0.2s cubic-bezier( 0.3, 0, 0.5, 1)'
==/UserStyle== */
// Helpers.
rq = unquote
stinfo = 'DD-WRT Inspired Themes v6.2.0'
copyright = '© 2021 Style-it-themes: the-j0k3r'
license = 'MIT'
homeURL = 'https://github.com/style-it-themes/dd-wrt-inspired-themes'
t = transparent
i = !important
vendors = official
// Convert colors to HSLA format.
// NOTE: This is done just for consistency of generated colors.
to_hsla(input) {
$h = {}
$h.hue = rq(split('deg', '%s' % ceil(hue(input), 2))[0])
$h.saturation = ceil(saturation(input), 2)
$h.lightness = ceil(lightness(input), 2)
s('hsla(%s,%s,%s,1)', $h.hue, $h.saturation, $h.lightness)
}
// SVG-friendly colors mixin.
// NOTE: Compiler does not like HSLA format, so we convert back to HEX.
to_hex(input) {
s('\%23%s', rq(substr(s('%s', convert(input)), 1, 6)))
}
// Color mixin.
// All colors: `c: fg bd bg`
// Only border-color: `c: 0 bd`
c(x, y = 0, z = 0, xi = 1, yi = 1, zi = 1) {
if x != 0 && x != '_' { color: xi is 0 ? x : x i }
if y != 0 && y != '_' { border-color: yi is 0 ? y : y i }
if z != 0 && z != '_' { background-color: zi is 0 ? z : z i }
}
// SVG colors.
g(x, y = 0, xi = 1, yi = 1) {
if x != 0 && x != '_' { fill: xi is 0 ? x : x i }
if y != 0 && y != '_' { stroke: yi is 0 ? y : y i }
}
// Border radius mixin.
rad() { border-radius: arguments }
// Box-shadow mixin.
bsh() { box-shadow: arguments }
// Box-shadow mixin.
tsh() { text-shadow: arguments }
// Color generator.
// NOTE: Fix the scope to avoid conflicts.
/{
// Generator -> Color-schemes.
ColorSchemes = {
'custom-style' : { BG: cg_bg, FG: cg_fg, AC: cg_ac }
'antigua' : { BG: #14191f, FG: #f1f6fb, AC: #89a90a }
'dracula' : { BG: #282A36, FG: #f8f8f2, AC: #bd93f9 }
'duo-cocoa' : { BG: #28231f, FG: #ffdac2, AC: #dfb249 }
'material' : { BG: #263238, FG: #eeffff, AC: #82aaff }
'material-dkr' : { BG: #212121, FG: #eeffff, AC: #82aaff }
'solarized-dark' : { BG: #002b36, FG: #fdf6e3, AC: #268bd2 }
'the-matrix' : { BG: #000000, FG: #ffffff, AC: #00ff00 }
'twilight' : { BG: #141414, FG: #f7f7f7, AC: #8f9d6a }
'ubuntu' : { BG: #2c071a, FG: #f2f1ef, AC: #ef7847 }
}
// Select active color-scheme.
for color-scheme in ColorSchemes {
if (color-scheme == cg_theme) {
define('BG', ColorSchemes[color-scheme].BG, global)
define('FG', ColorSchemes[color-scheme].FG, global)
define('AC', ColorSchemes[color-scheme].AC, global)
}
}
// Color values and hues.
// NOTE: List with anonymous hashes.
colors = (
{ key: bg, color: BG } \
{ key: fg, color: FG } \
{ key: v0, color: AC } \
{ key: v1, hue: 0deg } \
{ key: v2, hue: 30deg } \
{ key: v3, hue: 60deg } \
{ key: v4, hue: 120deg } \
{ key: v5, hue: 180deg } \
{ key: v6, hue: 210deg } \
{ key: v7, hue: 270deg } \
{ key: v8, hue: 300deg } \
{ key: v9, hue: 0deg } \
)
// Alias colors.
$bg = colors[0]
$fg = colors[1]
// Generate background colors.
for num in 0..5 {
$color = $bg.color
if num == 1 {} // Skip base BG color.
else if num == 0 { $color = darken($color, 10%) }
else { $color = lighten($color, (num + 2) * num / 2%) }
$color = to_hsla($color)
$key = s('%s%s', $bg.key, num)
$val = 'var(--%s-%s)' % (($bg.key) (num))
define('$' + $key, $color, global)
define('' + $key, $val, global)
}
// Generate foreground colors.
for num in 0..5 {
$color = $fg.color
if num == 1 {} // Skip base FG color.
else if num == 0 { $color = lighten($color, 10%) }
else { $color = darken($color, (num + num / 1.25) * 5%) }
$color = to_hsla($color)
$key = s('%s%s', $fg.key, num)
$val = 'var(--%s-%s)' % (($fg.key) (num))
define('$' + $key, $color, global)
define('' + $key, $val, global)
}
// Generate all other colors.
for c, i in colors[2..length(colors)] {
$sel = colors[i + 2]
for num in 0..9 {
// Case for accent colors.
if ($sel.key == v0) {
$color = darken($sel.color, (80% - ((num + num / 3) * 7.5)))
$color = darken($sel.color, (100% - (num + 3) * 7.5))
$color = lightness($color, lightness($color) + num)
}
// Case for gray colors.
else if ($sel.key == v9) {
$color = hsl($sel.hue, 0%, 50% + cg_lig)
$color = darken($color, (100% - (num + 2) * 17))
}
// Case for RGB colors.
else {
$hue = $sel.hue
$color = hsl($hue, 60% + cg_sat, 60% + cg_lig)
$color = darken($color, (100% - (num + 2) * 7.5))
$color = lightness($color, lightness($color) + num)
}
// Convert to HSLA format.
$color = to_hsla($color)
$key = s('%s%s', $sel.key, num)
$val = 'var(--%s-%s)' % (($sel.key) (num))
define('$' + $key, $color, global)
define('' + $key, $val, global)
}
}
}
@-moz-document regexp('^https?://(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}(\/.*)?$'),
/*-----------*/regexp('https?://oidsearch.s.dd-wrt?.com(/.*)?'),
/*-----------*/regexp('https?://speedchecker.dd-wrt?.com(/.*)?'),
/*-----------*/regexp('https?://iplookup.flagfox?.net(/.*)?'),
/*-----------*/regexp('https?://192.168.20.1.spectral_scan.html(/.*)?') {
// global section triggers and variables
:root {
// show style name/version/copyright
// when inspecting the code or using compiled CSS this info is auto added now.
--style-name: rq(stinfo)
--copyright: rq(copyright)
--license: rq(license)
--home-url : rq(homeURL)
// Generate CSS color variables.
colors = (bg fg v0 v1 v2 v3 v4 v5 v6 v7 v8 v9)
for color in colors[0..1] {
for tone in 0..5 {
{ '--%s-%s' % ((color) (tone)) }: $ + color + tone
}
}
for color in colors[2..length(colors)] {
for tone in 0..9 {
{ '--%s-%s' % ((color) (tone)) }: $ + color + tone
}
}
// remap generated accent colors + keep v09 as 1:1 AC
shade = (dark(BG)) ? darken : lighten
--v0-0: to_hsla(mix(shade(BG, 90%), AC, 90%))
--v0-1: to_hsla(mix(shade(BG, 80%), AC, 80%))
--v0-2: to_hsla(mix(shade(BG, 70%), AC, 70%))
--v0-3: to_hsla(mix(shade(BG, 60%), AC, 60%))
--v0-4: to_hsla(mix(shade(BG, 50%), AC, 50%))
--v0-5: to_hsla(mix(shade(BG, 40%), AC, 40%))
--v0-6: to_hsla(mix(shade(BG, 30%), AC, 30%))
--v0-7: to_hsla(mix(shade(BG, 20%), AC, 20%))
--v0-8: to_hsla(mix(shade(BG, 10%), AC, 10%))
--v0-9: to_hsla(mix(shade(BG, 0%), AC, 0%))
// rgba BG/AC vars
--rgba-bg-01: rgba(BG, .1)
--rgba-bg-03: rgba(BG, .3)
--rgba-bg-04: rgba(BG, .4)
--rgba-bg-05: rgba(BG, .5)
--rgba-bg-075: rgba(BG, .075)
--rgba-ac-06: rgba(AC, .6)
--syslog-bg: darken(BG, 25%)
}
// Style selection bg/fg with accent color
::selection { background-color: v06; color: v99 }
// Use custom font
if (custom_font) {
.label, .setting, select[name] {
font-family: var(--f-ui)
}
pre, textarea {
font-family: var(--f-mono)
}
:root {
--style-name: rq(stinfo)
--copyright: rq(copyright)
--license: rq(license)
--home-url : rq(homeURL)
// Feat -> Custom monospace font.
--f-mono: f_mono, Cascadia Code, Fira Code, SFMono-Regular, Consolas, \
Liberation Mono, Menlo, monospace
// Feat -> Custom user interface font.
--f-ui: f_ui, Tahoma, Arial, sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, \
Helvetica, Apple Color Emoji, Segoe UI Emoji
}
}
// Show style details
if (sdetails) {
#ipinfo {
&::after {
cbreak = '\A\A '
content: '' + rq(cbreak) + rq(stinfo)
white-space: pre-wrap
}
}
// fixes a Chromium bug which the width of status info overlaps the status button
// causing the Status button to be only partially clickable.
#statusInfo {
width: auto
}
}
if (c_scrollbars) {
*:not(#joker) { scrollbar-color: v04 bg2 i }
// Chrome
/::-webkit-scrollbar {
&-track { background: bg2 i }
&-thumb { background: v04 i }
}
}
if (sticky_help) {
#helpContainer {
position: sticky
top: 0
}
}
// Password score
#score {
color: v99
&barBorder {
background: bg0
border: 1px solid bg4
rad: 2px
}
&bar {
rad: 2px
}
}
// remove th styles for reset routers initial page
#tablePwdCheck tr th {
border: 0
color: v98
}
// Body
body {
background: bg1
color: v97
text-rendering: optimizeLegibility
&.gui {
background: bg0
color: v96
}
/fieldset {
background: bg2
border-color: bg4
color: v98
rad: 4px
border-width: 1px
legend, .syslog_legend {
background: t
color: v09
tsh: 0 1px 0 bg0
// workaround main fresh-dark.css hack for brighter legends non color specific.
filter: none
}
fieldset {
background: var(--rgba-bg-05)
}
&[disabled] .label {
opacity: .5
}
}
/#content {
// Help bg
background: t
border: 1px solid t
color: v98
rad: 0 0 4px 4px
#help {
background: bg1
}
&.infopage {
#main {
background-color: bg1
border: 1px solid bg4
#contentsInfo h2 {
input {
vertical-align: -.03rem
}
}
}
}
// Main header
#header { background: bg0 i }
}
/#main #contents {
background: bg1
color: v97
}
input {
background-color: bg0
border-color: bg4
color: v98
outline: 0
&:focus {
border-color: v09
bsh: 0 0 5px 1px v08
}
&[disabled] {
&:hover {
c: 0 bg4 bg0
bsh: none
}
}
/.button {
background: v04
border: 1px solid v06
bsh: 0 1px 0 bg0
color: v98
tsh: 0 1px 0 bg0
height: 1.6rem
padding: 0 1rem 0 i
transition: transition
outline: 0
&:hover, &:focus-within {
background: v07 i
border-color: v07 i
bsh: 0 0 10px 0 v04
color: v99
}
&[disabled] {
c: v99 v06 v05
bsh: none
opacity: .6
&:hover {
c: v99 v06 v05
bsh: none
opacity: .6
}
}
&.red_btn {
background: v14
border-color: v16
color: v98
tsh: 0 1px 0 bg0
&:hover, &:focus-within {
background: v16 i
border-color: v17 i
bsh: 0 0 10px 0 v16 i
}
&:disabled, &:disabled:hover {
background: v14 i
border-color: v16 i
}
}
&.green_btn {
background: v42
border-color: v44
color: v98
tsh: 0 1px 0 bg0
&:hover, &:focus-within {
background: v43 i
border-color: v43 i
bsh: 0 0 10px 0 v43 i
color: v99 i
}
&:disabled:hover {
background: v42 i
border-color: v44 i
bsh: none i
}
}
&.brown_btn {
background: v22
border-color: v24
color: v98
tsh: 0 1px 0 bg0
&:hover, &:focus-within {
background: v23 i
border-color: v23 i
bsh: 0 0 10px 0 v23 i
color: v99
}
}
}
}
.progressbar {
background-color: bg0
border: 1px solid bg4
rad: 4px
}
// about page targeted styling finally !!!
&.about-bg {
background: bg2 i
color: v96 i
#content {
border-color: t
table.t-border {
border-color: bg4 i
}
.thc {
background-color: bg5 i
}
.t-border {
border-color: bg4 i
}
}
a {
color: v09 i
&:hover {
color: v08 i
}
}
}
/.help-bg {
background: bg2 i
#content {
background: t
border-color: t
color: v98
h2 {
background: bg5 i
color: fg1 i
}
}
a {
color: v98
&:hover {
color: v09
}
}
dd { border-bottom: .0648rem dotted fg5 }
}
// Reboot message box when classic dark styles enabled
.message {
background-color: bg2
border-color: bg3
rad: 4px
}
}
.popup, .popup_bg, .iplookup {
background: bg1
color: v97
}
form {
// WDS alignments
&[name='wds'] {
input[size='25'] {
vertical-align: 0
}
}
&[name='changepassword'] {
.warning #warning_text, p b {
font-size: .8rem
letter-spacing: unset
margin-bottom: -.5rem
}
}
&[name='nvramrestore'] {
.warning p {
margin-bottom: 1.2rem
}
}
&[name='wireless'] {
input[name*='ssid'] {
min-width: initial
}
}
tr[id*='samba_shares_row'] {
td[style*='width: 25px; vertical-align: middle'] {
vertical-align: bottom i
}
}
}
pre {
background-color: bg0
border-color: bg4
color: v47
cursor: copy
}
#wrapper #content { background-color: bg1 }
hr {
border-color: 1px dotted bg5
}
#statusInfo a {
&:hover {
color: v09
}
&:focus-visible {
color: v09
text-decoration: underline
outline: 0
}
}
// Fix specific button margins caused by styling
div.center {
input.button {
&[name='add_button']:not([onclick*='_add']) {
margin: 0 0 .8em 0
}
&[name='add_button'][onclick*='_add'] {
margin: 0 .5em 0
}
&[name='add_button'][onclick*='add_tunnel'] {
margin: 0 .6em 0
}
}
}
input {
&.num {
vertical-align: unset
}
&.num[name='wan_mtu'] {
vertical-align: middle
}
&.button {
&[onclick*='copy'],
&[onclick*='paste'] {
margin: 0 .362em 0 0
}
&[onclick*='vifs_add'] {
margin: .4em 0 0 0
}
&[onclick*='vifs_remove'] {
margin: 0 .362em 0 0
}
&[onclick*='delete'] {
margin: 0 .4em 0 .4em
}
&[onclick*='DeleteEntry'] {
vertical-align: .04rem
}
&[onclick*='to_delete'] {
margin: 0 .4rem 0 .362rem
}
&[onclick*='FilterSummary'] {
margin-top: 0
}
&[onclick*='filter_del'] {
margin: 0 .5rem 0 0
}
// Tunnels - generate key button position
&[onclick*='gen_wg_key'], &[onclick*='gen_wg_psk'] {
margin: 0 0 6px
}
&[onclick*='add_peer'] {
margin: 0 0 -8px
}
//vlan add button tweaks
&[onclick*='vlan_add'],
&[onclick*='bridge_add'],
&[onclick*='bridgeif_add'],
&[onclick*='ipvs_add'],
&[onclick*='bond_add'],
&[onclick*='mdhcp_add'] {
padding: .2em .95em
}
&[onclick*='bridge_add'],
&[onclick*='bridgeif_add'],
&[onclick*='ipvs_add'] {
margin-top: .2rem
}
&[onclick*='release'] {
margin-right: .5rem
}
&[onclick*='traffdata.bak'] {
margin: 0 .62em 0 0
}
&[onclick*='ttraff_remove'] {
margin: 0 0 0 .362em
}
}
// Access restrictions - Align checkbox with filter dropdown
&[type='checkbox'] {
&[name='_filter_p2p'] {
vertical-align: -.45rem
}
&[onclick*='edit_wol_host'] {
margin-bottom: 0
vertical-align: -.45rem
}
}
}
/select {
&[onchange*='SelRoute'] {
margin-top: -.15rem
}
&[onchange*='SelRule'] {
vertical-align: -.18rem
}
&[name='router_style'] {
vertical-align: -.17rem
}
&[onchange*='SelFilter'] {
margin-top: .13rem
}
}
// ForwardIP.asp checkbox to middle of num inputs
.table {
&[summary='ports forwarding table'],
&[summary='ports triggering table'] {
input[type='checkbox'] {
margin-top: .4rem
}
}
}
if (invert_nav) {
#menu {
/#menuMainList {
li {
span {
background: bg1
border-color: bg5
outline: 0
color: v99
}
a {
background: v04
border-color: v06
color: v98
outline: 0
tsh: 0 1px 0 bg0
transition: transition
&:hover {
background: v07
border-color: v07
color: v99
}
&:focus, &:focus-within, &:focus-visible {
background: v07
border-color: v07
outline: 0
}
}
&.current {
span {
background: bg3
}
}
}
}
#menuSub {
background: bg3
border-color: bg5
outline: 0
#menuSubList li span {
background: bg1
}
}
}
.logout {
fill: v99
outline: 0
&:hover {
fill: v09
}
}
}
else {
#menuMainList {
li {
span {
background: v04
border-color: v08
color: v99
outline: 0
&:hover, &:focus-within {
background: v06
border-color: v09
color: v98
}
}
&.current {
span:hover {
background: v04
border-color: v09
color: v99
}
}
a {
background: bg2
border-color: bg4
color: v98
tsh: 0 1px 0 bg0
transition: transition
outline: 0
&:hover {
background: bg4
border-color: bg5
color: v98
}
&:focus-within {
background: bg3
border-color: bg5
color: v98
}
}
}
}
#menuSub {
background: v04
color: v99
border-color: v06
tsh: 0 1px 0 bg0
outline: 0
}
#menuSubList {
li {
a {
background: v06
border-color: v08
color: v98
&:hover, &:focus-within {
background: v08
border-color: v09
color: v99
}
}
span {
background: bg1
border-color: bg5
&:hover, &:focus-within {
background: bg1 i
border-color: bg5 i
color: v99
}
}
}
}
.logout {
fill: v99
outline: 0
&:hover {
fill: bg0
}
}
}
#help {
a {
color: fg1
outline: 0
&:hover, &:focus-visible { color: fg1; text-decoration: underline }
}
h2 {
background: v04
color: fg1
border-color: v06
tsh: 0 1px 0 bg0
outline: 0
}
dd.definition { border-bottom: .0648rem dotted v96 }
}
textarea {
background-color: bg0
border-color: bg4
line-height: 1.8em
color: v96
resize: vertical
transition: transition
&:hover, &:focus, &:focus-within, &:focus-visible {
c: v98 v08 bg1
bsh: 0 0 10px 0 v04 i
outline: 0 i
}
}
.dark_fs_bg {
background: var(--syslog-bg)
}
// syslog
.syslog_bg {
background: var(--syslog-bg)
color: v97
tr {
&:hover {
background: bg2
color: v99
}
&.syslog_bg_yellow {
background-color: v36
&:hover {
background-color: v35
}
}
&.syslog_bg_red {
background-color: v19
&:hover {
background-color: v18
}
}
&.syslog_bg_green {
background-color: v46
&:hover {
background-color: v45
}
}
td.syslog_text_dark {
color: v90
}
}
div:focus-visible {
outline: 0
}
}
table {
// fix filters popup
tr {
&.table_row_bg {
background-color: bg2
&:hover, &:focus-within { background-color: bg3 }
}
&:hover, &:focus-within {
background-color: t
}
th {
background-color: bg5
border-color: bg5
color: fg1
padding-bottom: 2px
}
}
td[width='70'] {
input[type='checkbox'][name*='sum'] {
margin-bottom: 0
}
}
.table_bg_br_clr_on {
background-color: v43
border-color: v40
&:hover {
background-color: v45
border-color: v40
}
}
.table_bg_br_clr_off,
.table_bg_br_clr_off:hover {
background-color: bg2
border-color: bg4
opacity: .5
}
/#wireless_table {
td {
/.link {
&:hover {
color: v09
transition: transition
}
}
}
}
/#radio_table {
[style*='background-color: rgb(34\, 139\, 34)'] {
c: 0 0 v43
transition: transition
&:hover { background-color: v45 i }
}
[style*='background-color: rgb(205\, 0\, 0)'] {
c: 0 0 v15
transition: transition
&:hover { background-color: v17 i }
}
}
/[summary='packet-type priority table'] {
td[colspan='5'] { padding-bottom: 6px }
}
&.bulle {
background-color: bg4
border: 1px solid bg5
color: v99
rad: 4px
}
}
td.bulle {
background-color: bg4
border: 1px solid bg5
color: v99
rad: 4px
}
// Nas style value_error
.value_error {
border: 1px solid v16
&:hover {
border-color: v19 i
}
&:focus {
border-color: v19 i
bsh 0 0 10px 0 v15 i
}
}