Просмотр исходного кода

lightbox styling edits

tags/1.0.3
Alej 3 лет назад
Родитель
Сommit
628d3495f8
1 измененных файлов: 45 добавлений и 77 удалений
  1. 45
    77
      vue-theme/src/sss/_lightbox.sss

+ 45
- 77
vue-theme/src/sss/_lightbox.sss Просмотреть файл

17
         position: absolute
17
         position: absolute
18
         top: 50%
18
         top: 50%
19
         transform: translate(-50% -50%)
19
         transform: translate(-50% -50%)
20
-        /* transition: 0.3s linear */
21
-        /* will-change: transform opacity */
22
-    /* background-color: rgba(0, 0, 0, 0.7) */
23
     box-shadow: 0.5px 0.5px 0.5px 0px rgb(0 0 0 / 30%)
20
     box-shadow: 0.5px 0.5px 0.5px 0px rgb(0 0 0 / 30%)
24
     display: block
21
     display: block
25
     max-height: 80vh
22
     max-height: 80vh
26
-    max-width: 80vw
23
+    max-width: 90vw
27
     position: relative
24
     position: relative
28
     transition: transform 0.3s ease-in-out
25
     transition: transform 0.3s ease-in-out
29
 
26
 
36
     right: 0
33
     right: 0
37
     top: 0
34
     top: 0
38
     z-index: 10003
35
     z-index: 10003
39
-    img
36
+    /* img
40
         transition: none
37
         transition: none
41
         &:hover
38
         &:hover
42
-            filter: grayscale(0%) brightness(100%)
39
+            filter: grayscale(0%) brightness(100%) */
43
 
40
 
44
 .vel-img, .vel-img-wrapper
41
 .vel-img, .vel-img-wrapper
45
     user-select: none
42
     user-select: none
46
 
43
 
47
 .vel-btns-wrapper
44
 .vel-btns-wrapper
45
+    display: flex 
46
+    justify-content: center 
48
     .btn__close, .btn__next, .btn__prev
47
     .btn__close, .btn__next, .btn__prev
49
         color: $cia_black 
48
         color: $cia_black 
50
         cursor: pointer
49
         cursor: pointer
51
-        font-size: 32px
52
-        opacity: 0.6
53
         outline: none
50
         outline: none
54
         position: absolute
51
         position: absolute
55
-        top: 50%
52
+        top: 3%
56
         transform: translateY(-50%)
53
         transform: translateY(-50%)
57
-        transition: 0.15s linear
54
+        /* transition: 0.15s linear
58
         user-select: none
55
         user-select: none
59
         &:hover
56
         &:hover
60
             opacity: 1
57
             opacity: 1
61
         &.disable, &.disable:hover
58
         &.disable, &.disable:hover
62
-            cursor: default
63
-            opacity: 0.2
59
+            cursor: default */
64
     .btn__next
60
     .btn__next
65
-        right: 12px
61
+        right: $ms-7
66
     .btn__prev
62
     .btn__prev
67
-        left: 12px
68
-    .btn__close
69
-        right: 10px
70
-        top: 24px
71
-
72
-@media (max-width: 750px)
73
-    .vel-img
74
-        max-height: 95vh
75
-        max-width: 85vw
76
-    .vel-btns-wrapper
77
-        .btn__next, .btn__prev
78
-            font-size: 20px
79
-        .btn__close
80
-            font-size: 24px
81
-        .btn__next
82
-            right: 4px
83
-        .btn__prev
84
-            left: 4px
85
-    .vel-modal.is-rtl .vel-btns-wrapper
86
-        .btn__next
87
-            left: 4px
88
-            right: auto
89
-        .btn__prev
90
-            left: auto
91
-            right: 4px
63
+        left: $ms-7
92
 
64
 
93
 .vel-modal.is-rtl
65
 .vel-modal.is-rtl
94
     .vel-btns-wrapper
66
     .vel-btns-wrapper
109
     top: 50%
81
     top: 50%
110
     -webkit-transform: translate(-50%, -50%)
82
     -webkit-transform: translate(-50%, -50%)
111
     transform: translate(-50%, -50%)
83
     transform: translate(-50%, -50%)
112
-    .ring
84
+    /* .ring
113
         display: inline-block
85
         display: inline-block
114
         height: 64px
86
         height: 64px
115
         width: 64px
87
         width: 64px
123
             display: block
95
             display: block
124
             height: 46px
96
             height: 46px
125
             margin: 1px
97
             margin: 1px
126
-            width: 46px
127
-
128
-@-webkit-keyframes ring
129
-    0%
130
-        transform: rotate(0deg)
131
-    to
132
-        transform: rotate(1turn)
133
-
134
-@keyframes ring
135
-    0%
136
-        transform: rotate(0deg)
137
-    to
138
-        transform: rotate(1turn)
139
-    
98
+            width: 46px     */
140
 
99
 
141
 .vel-on-error
100
 .vel-on-error
142
     left: 50%
101
     left: 50%
148
         font-size: 80px
107
         font-size: 80px
149
 
108
 
150
 .vel-img-title
109
 .vel-img-title
151
-    bottom: 60px
152
-    color: #ccc
153
-    cursor: default
154
-    font-size: 12px
155
-    left: 50%
156
-    line-height: 1
157
-    max-width: 80%
158
-    opacity: 0.8
159
-    overflow: hidden
110
+    bottom: 5%
111
+    font-size: $ms-0
112
+    max-width: 90%
160
     position: absolute
113
     position: absolute
161
-    text-align: center
162
-    text-overflow: ellipsis
163
-    transform: translate(-50%)
164
-    transition: opacity 0.15s
165
-    white-space: nowrap
166
-    &:hover
167
-        opacity: 1
168
 
114
 
169
 .vel-icon
115
 .vel-icon
170
     fill: currentColor
116
     fill: currentColor
171
-    height: 1em
117
+    height: 1.5rem
118
+    width: 1.5rem
172
     overflow: hidden
119
     overflow: hidden
173
     vertical-align: -0.15em
120
     vertical-align: -0.15em
174
-    width: 1em
175
 
121
 
176
 .vel-toolbar
122
 .vel-toolbar
177
     display: none
123
     display: none
184
     padding: 0
130
     padding: 0
185
     position: absolute
131
     position: absolute
186
     transform: translate(-50%)
132
     transform: translate(-50%)
133
+
134
+    /* figure out way to stop  toolbar form loading */
187
     .toolbar-btn
135
     .toolbar-btn
188
         display: none
136
         display: none
189
-        color: #fff
137
+        /* color: #fff
190
         cursor: pointer
138
         cursor: pointer
191
         flex-shrink: 0
139
         flex-shrink: 0
192
         font-size: 20px
140
         font-size: 20px
193
         outline: none
141
         outline: none
194
         padding: 6px 10px
142
         padding: 6px 10px
195
         &:active, &:hover
143
         &:active, &:hover
196
-            background-color: #3d3d3d
144
+            background-color: #3d3d3d */
197
 
145
 
198
 .vel-toolbar, .vel-toolbar .toolbar-btn
146
 .vel-toolbar, .vel-toolbar .toolbar-btn
199
     background-color: #2d2d2d
147
     background-color: #2d2d2d
200
     user-select: none
148
     user-select: none
201
 
149
 
202
-figcaption
203
-    position: inherit
204
-    background: none
205
-    color: $cia_black
150
+@media (min-width: $medium)
151
+    .vel-img-title
152
+        bottom: 3%
153
+        margin: 0 10vw 
154
+
155
+    .vel-icon
156
+        height: 2rem
157
+        width: 2rem
158
+
159
+    .vel-btns-wrapper
160
+        .btn__next, .btn__prev
161
+            top: 50%
162
+        .btn__next
163
+            right: $ms--3
164
+        .btn__prev
165
+            left: $ms--3
166
+
167
+    .vel-modal.is-rtl .vel-btns-wrapper
168
+        .btn__next
169
+            left: $ms--3
170
+            right: auto
171
+        .btn__prev
172
+            left: auto
173
+            right: $ms--3

Загрузка…
Отмена
Сохранить