-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylus-wardrobe.user.styl
2890 lines (2522 loc) · 60.2 KB
/
stylus-wardrobe.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 Stylus Wardrobe
@namespace github.com/style-it-themes/stylus-wardrobe
@homepageURL https://github.com/style-it-themes/stylus-wardrobe
@supportURL https://github.com/style-it-themes/stylus-wardrobe/issues/choose
@version 3.1.4
@updateURL https://github.com/style-it-themes/stylus-wardrobe/raw/main/stylus-wardrobe.user.styl
@description Edit in style; a customizable theme with unique options for Stylus by Openstyles.
@author Style-it Themes: the-j0k3r and contributors
@license MIT
@preprocessor stylus
@var select presets 'Preset theme select' {
'Custom colors* ' : 'custom-style',
'Cobalt ' : 'cobalt' ,
'Material ' : 'material' ,
'Material Darker' : 'material-dkr',
'Pastel on Dark ' : 'pastel-on-dk',
'Twilight ' : 'twilight' ,
'Solarized Dark ' : 'solarized-dk',
'Ubuntu ' : 'ubuntu' ,
}
@var color accent__c 'Accent color ' #4f74e3
@var color white___1 '1st txt ' #f2f4ff
@var color white___2 '2nd txt ' #e0e3f0
@var color white___3 '3rd txt ' #c4c8dc
@var color black___1 '1st bg ' #111a22
@var color black___2 '2nd bg ' #1a2632
@var color black___3 '3rd bg ' #233343
@var color red_____c 'Red ' #ee1111
@var color orange__c 'Orange ' #da532c
@var color yellow__c 'Yellow ' #ffc40d
@var color green___c 'Green ' #009926
@var color cyan____c 'Cyan ' #0099ff
@var color blue____c 'Blue ' #4f74e3
@var color magenta_c 'Magenta ' #ff1493
@var color violet__c 'Violet ' #8a2be2
@var color gray____c 'Gray ' #a4a9c1
@var checkbox adaptive_syntax_color 'Adaptive syntax highlighting' 1
@var checkbox ehc_highlight_colors 'Editor highlight colors ' 1
@var checkbox upd_problem_tooltips 'Show update problem tooltips' 1
@var checkbox wrap_lint_a_bx_msgs 'Wrap lint and box messages ' 1
@var checkbox show_usw 'Show USW integration ' 1
@var checkbox show_notice_header 'Show notice header ' 1
@var checkbox prevent_header_resize 'Prevent resizing header ' 1
@var text notice_header_txt 'Notice header text ' Notice
@var text style_type_usercss 'Type label userCSS ' userCSS
@var number custom_header_width 'Sylus header width ' [295, 270, 300, 1, 'px']
@var number actions_width 'Actions width ' [75, 75, 95, 1, 'px']
@var number font_size 'Editor font size ' [12, 12, 20, 1, 'px']
@var number c_rad 'Controls radius ' [3, 3, 12, 1, 'px']
@var number caret_width 'Caret width ' [1, 1, 8, 1, 'px']
@var select caret_color 'Caret color ' {
'Custom ' : 'c_c_clr' ,
'Twilight ' : '#8f9d6a' ,
'Material ' : '#82aaff' ,
'Pastel on Dark ' : '#a6c6ff' ,
'Solarized Dark ' : '#268bd2' ,
'Ubuntu ' : '#e95420' ,
}
@var color c_c_clr 'Custom caret color' '#04f911'
==/UserStyle== */
vendors = official
$licence = 'MIT'
$url = 'https://github.com/style-it-themes/stylus-wardrobe'
version = 'Stylus Wardrobe v3.1.2'
g = global
t = transparent
i = !important
r = unquote
// color helpers
ac = AC
ft = FT
st = ST
tt = TT
fb = FB
sb = SB
tb = TB
rd = RD
oj = OJ
yl = YL
gr = GR
cy = CY
bl = BL
mg = MG
vi = VI
gy = GY
/{
// Generator -> Preset themes.
preset_themes = {
'custom-style' : {
AC: accent__c,
FT: white___1,
ST: white___2,
TT: white___3,
FB: black___1,
SB: black___2,
TB: black___3,
RD: red_____c,
OJ: orange__c,
YL: yellow__c,
GR: green___c,
CY: cyan____c,
BL: blue____c,
MG: magenta_c,
VI: violet__c,
GY: gray____c,
}
'cobalt' : {
AC: #0088ff,
FT: #d8d8d8,
ST: #d0d0d0,
TT: #c0c0c0,
FB: #002240,
SB: #002d57,
TB: #003a71,
RD: #9d1e15,
OJ: #ff9d00,
YL: #ffee80,
GR: #3ad900,
CY: #9effff,
BL: #0088ff,
MG: #ff80e1,
VI: #845dc4,
GY: #aaaaaa,
}
'material' : {
AC: #82aaff,
FT: #eeffff,
ST: #d2e6e6,
TT: #bed2d2,
FB: #263238,
SB: #33434a,
TB: #546e7a,
RD: #e2363c,
OJ: #f78c6c,
YL: #ffcc00,
GR: #c3e88d,
CY: #89ddff,
BL: #82aaff,
MG: #ff5370,
VI: #c792ea,
GY: #899f9f,
}
'material-dkr' : {
AC: #82aaff,
FT: #eeffff,
ST: #d2e6e6,
TT: #bed2d2,
FB: #212121,
SB: #282828,
TB: #545454,
RD: #e2363c,
OJ: #f78c6c,
YL: #ffcc00,
GR: #c3e88d,
CY: #89ddff,
BL: #82aaff,
MG: #ff5370,
VI: #c792ea,
GY: #848484,
}
'pastel-on-dk' : {
AC: #a6e22e,
FT: #f8f8f2,
ST: #d2e6e6,
TT: #bed2d2,
FB: #2c2827,
SB: #34302f,
TB: #434443,
RD: #de3030,
OJ: #de8e30,
YL: #decd30,
GR: #66a968,
CY: #30cfde,
BL: #a6c6ff,
MG: #de30a7,
VI: #aeb2f8,
GY: #8f938f,
}
'solarized-dk' : {
AC: #268bd2,
FT: #fdf6e3,
ST: #eee8d5,
TT: #ccc6b3,
FB: #002b36,
SB: #032933,
TB: #063e4d,
RD: #dc322f,
OJ: #cb4b16,
YL: #b58900,
GR: #859900,
CY: #2aa198,
BL: #268bd2,
MG: #d33682,
VI: #6c71c4,
GY: #839496,
}
'twilight' : {
AC: #8f9d6a,
FT: #f7f7f7,
ST: #cccccc,
TT: #aaaaaa,
FB: #141414,
SB: #27282e,
TB: #323232,
RD: #db3607,
OJ: #f25c05,
YL: #e9C062,
GR: #8f9d6a,
CY: #00a6a5,
BL: #607392,
MG: #f28fcd,
VI: #8580f2,
GY: #777777,
}
'ubuntu' : {
AC: #e95420,
FT: #ffffff,
ST: #e6e4e2,
TT: #bebbb8,
FB: #2C001e,
SB: #2c051e,
TB: #411934,
RD: #e2363c,
OJ: #e95420,
YL: #e2b436,
GR: #64964b,
CY: #80aeff,
BL: #4b7d96,
MG: #964b64,
VI: #7d4b96,
GY: #aea79f,
}
}
// Select active def_preset.
for def_preset in preset_themes {
if (def_preset == presets) {
define('AC', preset_themes[def_preset].AC, g)
define('FT', preset_themes[def_preset].FT, g)
define('ST', preset_themes[def_preset].ST, g)
define('TT', preset_themes[def_preset].TT, g)
define('FB', preset_themes[def_preset].FB, g)
define('SB', preset_themes[def_preset].SB, g)
define('TB', preset_themes[def_preset].TB, g)
define('RD', preset_themes[def_preset].RD, g)
define('OJ', preset_themes[def_preset].OJ, g)
define('YL', preset_themes[def_preset].YL, g)
define('GR', preset_themes[def_preset].GR, g)
define('CY', preset_themes[def_preset].CY, g)
define('BL', preset_themes[def_preset].BL, g)
define('MG', preset_themes[def_preset].MG, g)
define('VI', preset_themes[def_preset].VI, g)
define('GY', preset_themes[def_preset].GY, g)
}
}
}
// Color mixin.
// All colors: `cp: ft gy fb`
// Legend cp: text-color border-color background-color`
cp(x, y = 0, z = 0, xi = 1, yi = 1, zi = 1) {
if x != 0 && x != '_' { color: xi is 0 ? x : x }
if y != 0 && y != '_' { border-color: yi is 0 ? y : y }
if z != 0 && z != '_' { background-color: zi is 0 ? z : z }
}
// Color mixin
// All colors: `cpl: fb 0 gy fb` or `cpl: 0 fb gy fb`
// Legend cpl: background background-color order-color text-color`
clp(w, x, y, z = 0, wi = 1, xi = 1, yi = 1, zi = 1) {
if w != 0 && w != '_' { background : wi is 0 ? w : w }
if x != 0 && x != '_' { background-color: xi is 0 ? x : x }
if y != 0 && y != '_' { border-color : yi is 0 ? y : y }
if z != 0 && z != '_' { color : zi is 0 ? z : z }
}
to_hex(input) {
s('\%23%s', unquote(substr(s('%s', rgb(input)), 1, 6)))
}
// SVG fill/stroke colors.
fs(x, y = 0, xi = 1, yi = 1) {
if x != 0 && x != '_' { fill: xi is 0 ? x : x }
if y != 0 && y != '_' { stroke: yi is 0 ? y : y }
}
// Border radius mixin.
rad() { border-radius: arguments }
// Box-shadow mixin.
bsh() { box-shadow: arguments }
// text-shadow mixin.
tsh() { text-shadow: arguments }
@-moz-document regexp('moz-extension://.*'), regexp('chrome-extension://.*') {
// moz-extension - chrome-extension
:root {
--style-details : unquote(version)
--license : unquote($licence)
--homepage : unquote($url)
--caret-color : caret_color
--caret-width : caret_width
--font-size : font_size
--header-width : custom_header_width
--header-resizer-width : 8px
--actions-width : actions_width
--red1 : rd
--accent-3 : rgba(ac, .7) i
}
// bug 1.5.25
#search-wrapper, #sort-wrapper { display: block }
$fonts = 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace
/.CodeMirror {
font-family: $fonts
font-size: var(--font-size)
border: 1px solid rgba(gy, .5)
rad: 3px
&-hints {
clp: sb 0 rgba(gy, .2) 0
font-family: $fonts
font-size: var(--font-size)
-webkit-box-shadow: 2px 3px 5px rgba(fb, .2)
-moz-box-shadow: 2px 3px 5px rgba(fb, .2)
box-shadow: 2px 3px 5px rgba(fb, .2)
}
// Tweak foldmarker
&-foldmarker {
color: ft
tsh: none
font-size: 18px
}
/* Cursor width and color setting implementation */
div.CodeMirror-cursor,
div.CodeMirror-secondarycursor,
&-overwrite .CodeMirror-cursor {
border-left-width: caret_width i
border-color: caret_color i
}
&-scrollbar-filler, &-gutter-filler { background-color: inherit }
&-hint {
color: ft
&:hover { clp: ac 0 0 fb }
&-active {
background: ac i
color: fb i
}
}
&-lint-message {
padding: 0 18px 0 23px
rad: 3px
&-error, &-warning {
margin-left: 8px
}
}
if (ehc_highlight_colors) {
&-activeline .applies-to::before {
clp: 0 rgba(gy, .2) 0 0
}
&-focused {
outline: 0
border-color: ac
box-shadow: 0 0 3px 0 bl
}
&-gutter-wrapper {
::selection, ::-moz-selection {
background-color: gy
color: st
}
}
&-linewidget .applies-to {
clp: 0 tb rgba(gy, .5) 0
}
&-matchingtag { background: rgba(oj, .3) }
&-lint-tooltip {
background-color: sb
color: st
}
&-ruler { border-left: 1px solid rgba(gy, .6) i }
&-search-match {
background: gr
border-top: 1px solid lighten(gr, 30%)
border-bottom: 1px solid lighten(gr, 30%)
}
}
}
.gutter-bookmark {
background: linear-gradient(0deg, hsla(ac, .85) 2px, hsla(ac, .3) 2px)
}
if (ehc_highlight_colors) {
// e.g. searchboxes
::selection {
background-color: rgba(gy, .7)
color: ft
}
[class*='cm-s'] {
.CodeMirror {
&-gutter-wrapper {
::selection {
background-color: rgba(gy, .7)
color: st
}
::-moz-selection {
background-color: rgba(gy, .7)
color: st
}
}
&-line {
&::selection {
background-color: rgba(gy, .7)
color: fb
}
> span {
&::selection, > span::selection {
background-color: rgba(gy, .7)
color: fb
}
}
&::-moz-selection {
background-color: rgba(gy, .7)
color: fb
}
> span {
&::-moz-selection, > span::-moz-selection {
background-color: rgba(gy, .7)
color: fb
}
}
}
&-linenumber,
&-guttermarker-subtle {
&:hover { color: inherit }
}
&-matchingbracket {
color: lighten(gr, 20%) i
font-weight: 900
outline: 0
border-bottom: 2px solid lighten(gr, 20%)
}
&-nonmatchingbracket {
color: lighten(yl, 20%) i
font-weight: 900
outline: 0
border-bottom: 2px solid lighten(yl, 20%)
}
}
}
}
// By default stylus hides these important messages
// e.g. https://github.com/openstyles/stylus/issues/463
if (upd_problem_tooltips) {
.newUI .update-problem .check-update {
// set text decor due to z-index fix i.e. remove underline
text-decoration: inherit
// fix z-index show ontop on controls
&::after {
content: attr(title)
background: darken(rd, 50%)
border: 1px solid rd
color: st
top: 0
left: 1px
padding: 1ex 1.1ex
position: relative
rad: c_rad
z-index: 999
}
}
}
// Feat: wrap lint messages
if (wrap_lint_a_bx_msgs) {
#lint td[role='message' i] {
min-width: calc(var(--header-width) - 90px)
white-space: pre-wrap
}
#message-box.pre #message-box-contents {
white-space: pre-wrap
}
#toc {
overflow-x: hidden
li {
width: calc(var(--header-width) - 34px)
}
}
}
if !(show_usw) {
#publish.ignore-pref-if-compact {
display: none
}
#manage-text span {
&:nth-child(1), &:nth-child(2) {
display: none
}
}
}
if (prevent_header_resize) {
// dont let anyone resize this now, minimum width is bullshit and looks bullshit.
// need to come up with a better solution.
html[style*='--header-width'] {
--header-width: custom_header_width i
}
#header-resizer {
display: none
}
}
a {
cp: st 0 0
outline: 0
&:hover, &:focus-within {
cp: ac 0 0
.svg-icon { fs: ac 0 }
// style focus-within add-style-label button
button {
clp: 0 tb ac ac
}
}
// focus-within control icons
&[tabindex]:focus-within {
.svg-icon {
fs: ac
}
}
}
.firefox body { cp: st 0 fb }
html:not(.styles-last) .split-btn-pedal::after { top: 0 }
body {
cp: st 0 fb
font: normal 12px Arial, system-ui, sans-serif
> div:not(#installed):not(#message-box):not(.colorpicker-popup):not(#help-popup) { padding-right: 0 }
&.all-styles-hidden-by-filters {
&::after, &::before {
color: rgba(gy, .4)
}
}
&:lang(ja) {
font-family: Arial, 'Meiryo UI', 'MS Gothic', system-ui, sans-serif
}
&:lang(zh-CN) {
font-family: Arial, 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif
}
&:lang(zh-TW), &:lang(zh-HK) {
font-family: Arial, 'Microsoft JhengHei UI', 'Microsoft JhengHei', system-ui, sans-serif
}
&.find-open {
.search-target-editor {
box-shadow: 0 0 0 1px ac
/* same as our global.css focus rule */
outline: 0
}
.cm {
&-searching {
background-color: yl
color: fb
&.search-target-match {
background-color: gr
color: ft
}
}
&-matchhighlight {
background: hsla(ac, .3)
color: st
}
}
.CodeMirror {
&-search-match {
background: fb i
border-top: 2px solid lighten(gr, 30%)
padding-bottom: 2px
border-bottom: 2px solid lighten(gr, 30%)
}
&-selection-highlight-scrollbar {
background: hsla(ac, .5)
}
}
}
}
.search-result {
background-color: sb
box-shadow: 1px 1px 10px rgb(ft / 75%)
rad: c_rad
border: 1px solid rgba(gy, .3)
&:hover {
background-color: tb
border-color: rgba(gy, .5)
color: inherit
.search-result-title { color: st }
.search-result-meta { background-color: hsla(ac, .75) }
}
&-actions button { box-shadow: 2px 2px 20px gy }
&[data-ed] .search-result-status {
background-color: hsla(ac, .75)
color: st
transition: background-color .5s
}
&-error { background-color: rgba(rd, .4) }
&-meta {
background-color: hsla(fb, .75)
padding-top: 2px
[data-type="rating"][data-class="good"] dd,
[data-type="rating"][data-class="okay"] dd { color: lighten(gr, 20%) }
[data-type="rating"][data-class="bad"] dd { color: lighten(rd, 20%) }
}
&-screenshot:hover ~ .search-result-status {
background-color: ac
}
&-title { color: st }
&:not([data-empty])::before {
background-image: linear-gradient(t, rgba(sb, .3) 200px)
}
}
#search-results {
.search-results-nav button:not(:disabled):hover {
tsh: 0 1px 4px rgba(st, .5)
}
.lds-spinner {
transform: scale(.5)
filter: drop-shadow(1px 1px 3px fb )
}
.search-result-empty .lds-spinner {
filter: opacity(.2)
}
}
.not-matching-explainer {
background-color: hsla(oj, .2)
border-bottom: 2px solid hsla(oj, .5)
}
#stylus-embedded-options {
animation: fadein .25s ease-in-out
background-color: rgba(sb, .45)
&.fadeout {
animation: fadeout .25s ease-in-out
}
}
#stylus-options {
border: 1px solid rgba(gy, .3)
box-shadow: 0px 5px 15px 3px darken(fb, 30%)
rad: c_rad
#options {
cp: 0 0 sb
rad: 0 0 c_rad c_rad
}
#actions {
background-color: rgba(TB, .5)
border-top: 1px solid rgba(GY, .2)
min-height: min-content
}
}
#options-title {
background-color: tb
border-bottom: 1px solid rgba(gy, .2)
rad: c_rad c_rad 0 0
min-height: 52px
// Align Tittle to left like other dialog headers
padding: .75rem 24px .75rem calc(12% - 2px)
&::before {
left: .8em
filter: grayscale(1)
}
// Align close icon
#options-close-icon {
top: .73em
right: .8em
.svg-icon {
fs: st 0
transition: fill .5s
}
&:hover .svg-icon {
fs: ac 0
}
}
}
#advanced.collapsible {
h1, &.collapsed:hover h1 { color: tt }
&:not(.collapsed) h1:hover, &.collapsed h1 {
color: bl
}
}
.collapsible-resizer .svg-icon {
fill: sb
transition: fill .5s
height: 16px
width: 16px
}
/button {
background-color: tb
background-image: none i
border: 1px solid rgba(gy, .5)
color: st
rad: c_rad
font: inherit
transition: color .5s
cursor: pointer
padding: 3px 8px
&:not(:disabled):hover,
&:not(:disabled):focus-within {
background-color: rgba(ac, .7)
border: 1px solid ac
color: ft
outline: 0
}
&:active {
background-color: tb
border-color: rgba(gy, .5)
}
&:disabled {
/* restore disabled state dimming */
cp: rgba(gy, .5) rgba(gy, .2) tb
}
&#save-button {
rad: 3px 0 0 3px
width: 80%
&:hover {
border-color: ac i
}
&[disabled]:hover {
border-color: rgba(gy, .2) i
cursor: auto
}
}
&#beautify {
margin-left: 2px i
}
&#cancel-button {
padding: .1244em .4em i
font-weight: bold
rad: 3px
}
&#file-all-styles {
rad: 3px 0 0 3px
}
&#popup-manage-button {
margin-left: 2px i
}
&#find-styles-btn {
rad: 3px 0 0 3px
}
&#manage-options-button {
margin-right: 3px
}
&#options-btn {
margin-right: 1em i
svg {
fill: ft
}
}
&:hover svg, &:focus-within svg {
fill: ft i
}
}
#popup-options {
button {
padding: 4px 8px
&#options-btn {
margin-left: 1px i
}
}
#manage-split {
#popup-manage-button[title] {
rad: 3px 0 0 3px
}
#popup-manage-button:not([title]) {
rad: 3px i
}
}
.if-blocked #popup-wiki-button {
margin-left: -.7em i
max-width: 120%
width: 109%
}
}
.if-not-blocked {
margin-left: -1px
}
.split-btn {
&-menu {
background-color: tb
border: 1px solid rgba(gy, .5)
white-space: nowrap
padding: .1em 0
box-shadow: rgba(fb, .5) 2px 3px 7px
rad: 3px
height: auto
margin-top: .1rem
> :hover {
background-color: rgba(ac, .5)
border-color: ac
color: ft
}
a {
margin-top: -.16rem
}
}
&-pedal{
rad: 0 3px 3px 0
margin-left: -2px i
}
button {
margin-right: 1px
&#find-styles-btn, &#popup-manage-button {
border-left: 1px solid rgba(gy, .5) i
margin-left: 2px
&:hover {
border-color: ac i
}
}
}
}
/input {
&[type]:not(.slider), &.style-contributor {
transition: all .5s
rad: 3px
outline: 0
-webkit-appearance: none
-moz-appearance: none
appearance: none
&[data-focused-via-click]:focus {
box-shadow: 0 0 0 1px ac, 0 0 3px rgba(ac, .5)
}
}
&:not([type]):not(.applies-value) {
clp: fb 0 rgba(gy, .3) tt
rad: c_rad
// fix the colorpickers hotkey input width to fit the dialog
width: 98%
&[data-focused-via-click] {
&:focus, &:focus-within {
box-shadow: 0 0 3px 0 ac i
border: 1px solid ac i
}
}
}
&[type='checkbox'] {
&:not(.slider) {
background-color: rgba(fb, .1)
border: 1px solid rgba(gy, .5)
height: .88rem
width: @height
rad: 2px
&:hover, &:focus-within {
background-color: tb
border: 1px solid ac
.svg-icon.checked { fs: ac }
}
&:not([disabled]):hover .svg-icon.checked,
&:focus-within .svg-icon.checked {
fs: ac 0
}
&:disabled {
background-color: t
border-color: rgba(gy, .5)
+ .svg-icon.checked {
fill: rgba(gy, .5) i
+ span {
color: rgba(gy, 1)
}
}
}
&:checked {
+ .svg-icon.checked {
transition: fill .2s
}
&:hover, &:focus-within {
+ .svg-icon.checked {
fs: ac 0
}
}
}
}
}
&[type='color' i] {
background: t
border: 1px solid rgba(gy, .5)
cursor: pointer
// tweak padding to make color input more alike cross FF and C
padding: 3px
&:hover {
cp: 0 ac tb
}
}
&[type='number'], &[type='search'], &[type='search']#search {
clp: fb 0 0 tt
border: 1px solid rgba(gy, .5)
height: 25px
padding-left: .25em
text-align: left
rad: c_rad
&:hover, &:focus-within {
cp: 0 ac tb
outline: 0
}
&[data-focused-via-click] {
&:focus, &:focus-within {
box-shadow: 0 0 0 1px ac, 0 0 3px rgba(ac, .5)
}
}
}
&[type='radio'] {
background: tb
border: 1px solid rgba(gy, .5)
border-radius: 50% i
cursor: pointer
&:checked {
&::after {