diff options
Diffstat (limited to 'assets/css/components/_lightbox.scss')
-rw-r--r-- | assets/css/components/_lightbox.scss | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/assets/css/components/_lightbox.scss b/assets/css/components/_lightbox.scss deleted file mode 100644 index f497a5e..0000000 --- a/assets/css/components/_lightbox.scss +++ /dev/null | |||
@@ -1,116 +0,0 @@ | |||
1 | @include namespace('lightbox') { | ||
2 | @include store(( | ||
3 | --colors: ( | ||
4 | --bg: prop(--colors --bg-hi, $global: true), | ||
5 | --button: ( | ||
6 | --idle: prop(--colors --fg-hi, $global: true), | ||
7 | --hover: prop(--colors --fg-lo, $global: true), | ||
8 | --bg: prop(--colors --bg-hi, $global: true), | ||
9 | ) | ||
10 | ), | ||
11 | --dims: ( | ||
12 | --pad: 1rem, | ||
13 | ), | ||
14 | )); | ||
15 | |||
16 | @include component(namespace()) { | ||
17 | display: flex; | ||
18 | visibility: hidden; | ||
19 | position: fixed; | ||
20 | z-index: 5000; | ||
21 | top: 0; | ||
22 | left: 0; | ||
23 | box-sizing: border-box; | ||
24 | flex-direction: column; | ||
25 | align-items: center; | ||
26 | justify-content: center; | ||
27 | width: 100%; | ||
28 | height: 100%; | ||
29 | padding-bottom: 3vh; | ||
30 | transition: opacity .2s, visibility .2s; | ||
31 | opacity: 0; | ||
32 | |||
33 | @include element('bg') { | ||
34 | position: absolute; | ||
35 | z-index: -10; | ||
36 | top: 0; | ||
37 | left: 0; | ||
38 | width: 100%; | ||
39 | height: 100%; | ||
40 | opacity: .85; | ||
41 | background-color: prop(--colors --bg); | ||
42 | } | ||
43 | |||
44 | @include is('shown') { | ||
45 | visibility: visible; | ||
46 | transition: opacity .2s, visibility 0 .2s; | ||
47 | opacity: 1; | ||
48 | } | ||
49 | |||
50 | @include element('infobar') { | ||
51 | display: flex; | ||
52 | box-sizing: border-box; | ||
53 | flex: 0 0 auto; | ||
54 | align-items: center; | ||
55 | width: 100%; | ||
56 | padding: 0 prop(--dims --pad); | ||
57 | } | ||
58 | |||
59 | @include element('img') { | ||
60 | max-width: 100%; | ||
61 | min-height: 0; | ||
62 | max-height: 100%; | ||
63 | margin-top: auto; | ||
64 | margin-bottom: auto; | ||
65 | } | ||
66 | |||
67 | @include element('close', 'prev', 'next') { | ||
68 | margin: 0; | ||
69 | transition: color .2s; | ||
70 | border: 0; | ||
71 | background-color: transparent; | ||
72 | color: currentColor; | ||
73 | |||
74 | &:hover { | ||
75 | color: prop(--colors --button --hover); | ||
76 | } | ||
77 | } | ||
78 | |||
79 | @include element('close') { | ||
80 | margin: 0 calc(-1 * #{prop(--dims --pad)}) 0 auto; | ||
81 | padding: prop(--dims --pad); | ||
82 | font-size: 1.5em; | ||
83 | } | ||
84 | |||
85 | @include element('prev', 'next') { | ||
86 | position: absolute; | ||
87 | top: 50%; | ||
88 | padding: 2rem .5rem; | ||
89 | transform: translate(0, -50%); | ||
90 | font-size: 3em; | ||
91 | --icon-stroke-width: .75px; | ||
92 | |||
93 | &::before { | ||
94 | content: ''; | ||
95 | display: block; | ||
96 | position: absolute; | ||
97 | z-index: -1; | ||
98 | top: 50%; | ||
99 | left: 50%; | ||
100 | width: 1.2em; | ||
101 | height: 1.2em; | ||
102 | transform: translate(-50%, -50%); | ||
103 | opacity: .25; | ||
104 | background-color: prop(--colors --button --bg); | ||
105 | } | ||
106 | } | ||
107 | |||
108 | @include element('prev') { | ||
109 | left: 0; | ||
110 | } | ||
111 | |||
112 | @include element('next') { | ||
113 | right: 0; | ||
114 | } | ||
115 | } | ||
116 | } | ||