@@ -39,36 +39,37 @@ window.modals = {
39
39
+ 'font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,'
40
40
+ 'Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif ;'
41
41
+ 'padding: 20px 25px 24px 25px !important ; font-size: 20px ;'
42
- + `color: ${ this . dependencies . env . scheme == 'dark' ? 'white' : 'black' } !important ;`
42
+ + `color: ${ this . dependencies . env . ui . scheme == 'dark' ? 'white' : 'black' } !important ;`
43
43
+ `background-image: linear-gradient(180deg, ${
44
- this . dependencies . env . scheme == 'dark' ? '#99a8a6 -200px, black 200px'
44
+ this . dependencies . env . ui . scheme == 'dark' ? '#99a8a6 -200px, black 200px'
45
45
: '#b6ebff -296px, white 171px' } ) }`
46
46
+ `.${ this . class } [class*=modal-close-btn] {`
47
47
+ 'position: absolute !important ; float: right ; top: 14px !important ; right: 16px !important ;'
48
48
+ 'cursor: pointer ; width: 33px ; height: 33px ; border-radius: 20px }'
49
49
+ `.${ this . class } [class*=modal-close-btn] svg { height: 10px }`
50
50
+ `.${ this . class } [class*=modal-close-btn] path {`
51
- + `${ this . dependencies . env . scheme == 'dark' ? 'stroke: white ; fill: white'
51
+ + `${ this . dependencies . env . ui . scheme == 'dark' ? 'stroke: white ; fill: white'
52
52
: 'stroke: #9f9f9f ; fill: #9f9f9f' } }`
53
- + ( this . dependencies . env . scheme == 'dark' ? // invert dark mode hover paths
53
+ + ( this . dependencies . env . ui . scheme == 'dark' ? // invert dark mode hover paths
54
54
`.${ this . class } [class*=modal-close-btn]:hover path { stroke: black ; fill: black }` : '' )
55
55
+ `.${ this . class } [class*=modal-close-btn]:hover { background-color: #f2f2f2 }` // hover underlay
56
56
+ `.${ this . class } [class*=modal-close-btn] svg { margin: 11.5px }` // center SVG for hover underlay
57
- + `.${ this . class } a { color: #${ this . dependencies . env . scheme == 'dark' ? '00cfff' : '1e9ebb' } !important }`
57
+ + `.${ this . class } a {`
58
+ + `color: #${ this . dependencies . env . ui . scheme == 'dark' ? '00cfff' : '1e9ebb' } !important }`
58
59
+ `.${ this . class } h2 { font-weight: bold }`
59
60
+ `.${ this . class } button {`
60
61
+ 'font-size: 14px ; text-transform: uppercase ;' // shrink/uppercase labels
61
62
+ 'border-radius: 0 !important ;' // square borders
62
63
+ 'transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out ;' // smoothen hover fx
63
64
+ 'cursor: pointer !important ;' // add finger cursor
64
- + `border: 1px solid ${ this . dependencies . env . scheme == 'dark' ? 'white' : 'black' } !important ;`
65
+ + `border: 1px solid ${ this . dependencies . env . ui . scheme == 'dark' ? 'white' : 'black' } !important ;`
65
66
+ 'padding: 8px !important ; min-width: 102px }' // resize
66
67
+ `.${ this . class } button:hover {` // add zoom, re-scheme
67
68
+ 'transform: scale(1.055) ; color: black !important ;'
68
- + `background-color: #${ this . dependencies . env . scheme == 'dark' ? '00cfff' : '9cdaff' } !important }`
69
+ + `background-color: #${ this . dependencies . env . ui . scheme == 'dark' ? '00cfff' : '9cdaff' } !important }`
69
70
+ ( ! this . dependencies . env . browser . isMobile ?
70
71
`.${ this . class } .modal-buttons { margin-left: -13px !important }` : '' )
71
- + `.about-em { color: ${ this . dependencies . env . scheme == 'dark' ? 'white' : 'green' } !important }`
72
+ + `.about-em { color: ${ this . dependencies . env . ui . scheme == 'dark' ? 'white' : 'green' } !important }`
72
73
)
73
74
} ,
74
75
0 commit comments