Переглянути джерело

Merge branch '230-gls' of craft-in-america/vue-wp into dev

tags/1.0.3
maeda 3 роки тому
джерело
коміт
704e874dde
1 змінених файлів з 45 додано та 77 видалено
  1. 45
    77
      vue-theme/src/sss/_lightbox.sss

+ 45
- 77
vue-theme/src/sss/_lightbox.sss Переглянути файл

@@ -17,13 +17,10 @@
17 17
         position: absolute
18 18
         top: 50%
19 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 20
     box-shadow: 0.5px 0.5px 0.5px 0px rgb(0 0 0 / 30%)
24 21
     display: block
25 22
     max-height: 80vh
26
-    max-width: 80vw
23
+    max-width: 90vw
27 24
     position: relative
28 25
     transition: transform 0.3s ease-in-out
29 26
 
@@ -36,59 +33,34 @@
36 33
     right: 0
37 34
     top: 0
38 35
     z-index: 10003
39
-    img
36
+    /* img
40 37
         transition: none
41 38
         &:hover
42
-            filter: grayscale(0%) brightness(100%)
39
+            filter: grayscale(0%) brightness(100%) */
43 40
 
44 41
 .vel-img, .vel-img-wrapper
45 42
     user-select: none
46 43
 
47 44
 .vel-btns-wrapper
45
+    display: flex 
46
+    justify-content: center 
48 47
     .btn__close, .btn__next, .btn__prev
49 48
         color: $cia_black 
50 49
         cursor: pointer
51
-        font-size: 32px
52
-        opacity: 0.6
53 50
         outline: none
54 51
         position: absolute
55
-        top: 50%
52
+        top: 3%
56 53
         transform: translateY(-50%)
57
-        transition: 0.15s linear
54
+        /* transition: 0.15s linear
58 55
         user-select: none
59 56
         &:hover
60 57
             opacity: 1
61 58
         &.disable, &.disable:hover
62
-            cursor: default
63
-            opacity: 0.2
59
+            cursor: default */
64 60
     .btn__next
65
-        right: 12px
61
+        right: $ms-7
66 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 65
 .vel-modal.is-rtl
94 66
     .vel-btns-wrapper
@@ -109,7 +81,7 @@
109 81
     top: 50%
110 82
     -webkit-transform: translate(-50%, -50%)
111 83
     transform: translate(-50%, -50%)
112
-    .ring
84
+    /* .ring
113 85
         display: inline-block
114 86
         height: 64px
115 87
         width: 64px
@@ -123,20 +95,7 @@
123 95
             display: block
124 96
             height: 46px
125 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 100
 .vel-on-error
142 101
     left: 50%
@@ -148,30 +107,17 @@
148 107
         font-size: 80px
149 108
 
150 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: 3%
111
+    font-size: $ms-0
112
+    max-width: 90%
160 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 115
 .vel-icon
170 116
     fill: currentColor
171
-    height: 1em
117
+    height: 1.5rem
118
+    width: 1.5rem
172 119
     overflow: hidden
173 120
     vertical-align: -0.15em
174
-    width: 1em
175 121
 
176 122
 .vel-toolbar
177 123
     display: none
@@ -184,22 +130,44 @@
184 130
     padding: 0
185 131
     position: absolute
186 132
     transform: translate(-50%)
133
+
134
+    /* figure out way to stop  toolbar form loading */
187 135
     .toolbar-btn
188 136
         display: none
189
-        color: #fff
137
+        /* color: #fff
190 138
         cursor: pointer
191 139
         flex-shrink: 0
192 140
         font-size: 20px
193 141
         outline: none
194 142
         padding: 6px 10px
195 143
         &:active, &:hover
196
-            background-color: #3d3d3d
144
+            background-color: #3d3d3d */
197 145
 
198 146
 .vel-toolbar, .vel-toolbar .toolbar-btn
199 147
     background-color: #2d2d2d
200 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

Завантаження…
Відмінити
Зберегти