Procházet zdrojové kódy

fix(virtual-background): Style adjustments on virtual background dial… (#9484)

* fix(virtual-background): Style adjustments on virtual background dialog on small screens.

* fix(virtual-background): Style adjustments on virtual background dialog on small screens.

Co-authored-by: tudordan7 <tudor.pop@decagon.tech>
j8
Tudor D. Pop před 3 roky
rodič
revize
d87a40e77e
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 88
- 52
css/modals/virtual-background/_virtual-background.scss Zobrazit soubor

@@ -1,5 +1,5 @@
1 1
 .virtual-background-dialog {
2
-    margin-left:-10px;
2
+    margin-left: -10px;
3 3
     position: relative;
4 4
     max-height: 300px;
5 5
     color: white;
@@ -7,16 +7,20 @@
7 7
     grid-template-columns: auto auto auto auto auto;
8 8
     column-gap: 9px;
9 9
     cursor: pointer;
10
-    .desktop-share:hover,  .thumbnail:hover, .blur:hover, .slight-blur:hover, .virtual-background-none:hover{
11
-        opacity: .5;
10
+    .desktop-share:hover,
11
+    .thumbnail:hover,
12
+    .blur:hover,
13
+    .slight-blur:hover,
14
+    .virtual-background-none:hover {
15
+        opacity: 0.5;
12 16
         border: 2px solid #99bbf3;
13 17
         @media (min-width: 432px) and (min-width: 432px) and (max-width: 632px) {
14
-            height: 56px;
15
-            width: 56px;
18
+            height: 60px;
19
+            width: 60px;
16 20
         }
17
-        @media (max-width: 432px){
18
-            height: 56px;
19
-            width: 56px;
21
+        @media (max-width: 432px) {
22
+            height: 60px;
23
+            width: 60px;
20 24
         }
21 25
     }
22 26
     .background-option {
@@ -40,28 +44,28 @@
40 44
     }
41 45
     .thumbnail-selected {
42 46
         object-fit: cover;
43
-        border: 2px solid #246FE5;
47
+        border: 2px solid #246fe5;
44 48
     }
45
-    .blur{
49
+    .blur {
46 50
         box-shadow: inset 0 0 12px #000000;
47
-        background: #7E8287;
51
+        background: #7e8287;
48 52
         padding: 0 10px;
49 53
     }
50 54
     .blur-selected {
51 55
         box-shadow: inset 0 0 12px #000000;
52
-        background: #7E8287;
53
-        border: 2px solid #246FE5;
56
+        background: #7e8287;
57
+        border: 2px solid #246fe5;
54 58
         padding: 0 10px;
55 59
     }
56
-    .slight-blur{
60
+    .slight-blur {
57 61
         box-shadow: inset 0 0 12px #000000;
58
-        background: #A4A4A4;
62
+        background: #a4a4a4;
59 63
         padding: 0 10px;
60 64
     }
61
-    .slight-blur-selected{
65
+    .slight-blur-selected {
62 66
         box-shadow: inset 0 0 12px #000000;
63
-        background: #A4A4A4;
64
-        border: 2px solid #246FE5;
67
+        background: #a4a4a4;
68
+        border: 2px solid #246fe5;
65 69
         padding: 0 10px;
66 70
     }
67 71
     .virtual-background-none {
@@ -70,27 +74,59 @@
70 74
     }
71 75
     .none-selected {
72 76
         background: #525252;
73
-        border: 2px solid #246FE5;
77
+        border: 2px solid #246fe5;
74 78
         padding: 0 10px;
75 79
     }
76 80
 
77
-    .desktop-share{
81
+    .desktop-share {
78 82
         background: #525252;
79 83
     }
80
-    .desktop-share-selected{
84
+    .desktop-share-selected {
81 85
         background: #525252;
82
-        border: 2px solid #246FE5;
86
+        border: 2px solid #246fe5;
83 87
         padding: 0 10px;
84 88
     }
85 89
 
86 90
     @media (min-width: 432px) and (max-width: 632px) {
87 91
         font-size: 1.5vw;
92
+        .desktop-share,
93
+        .virtual-background-none,
94
+        .thumbnail,
95
+        .blur,
96
+        .slight-blur {
97
+            height: 60px;
98
+            width: 60px;
99
+        }
100
+        .desktop-share-selected,
101
+        .thumbnail-selected,
102
+        .none-selected,
103
+        .blur-selected,
104
+        .slight-blur-selected {
105
+            height: 60px;
106
+            width: 60px;
107
+        }
88 108
     }
89
-    @media (max-width: 432px){
109
+    @media (max-width: 432px) {
90 110
         grid-template-columns: auto auto auto;
91 111
         font-size: 1.5vw;
112
+        .desktop-share,
113
+        .virtual-background-none,
114
+        .thumbnail,
115
+        .blur,
116
+        .slight-blur {
117
+            height: 60px;
118
+            width: 60px;
119
+        }
120
+        .desktop-share-selected,
121
+        .thumbnail-selected,
122
+        .none-selected,
123
+        .blur-selected,
124
+        .slight-blur-selected {
125
+            height: 60px;
126
+            width: 60px;
127
+        }
92 128
     }
93
-    @media (max-width: 320px){
129
+    @media (max-width: 320px) {
94 130
         grid-template-columns: auto auto auto;
95 131
         font-size: 1.5vw;
96 132
     }
@@ -109,14 +145,14 @@
109 145
 .file-upload-btn {
110 146
     display: none;
111 147
 }
112
-.file-upload-label{
148
+.file-upload-label {
113 149
     font-size: 14px;
114 150
     font-weight: 600;
115 151
     line-height: 20px;
116 152
     margin-left: -10px;
117 153
     margin-top: 16px;
118 154
     margin-bottom: 8px;
119
-    color: #669AEC;
155
+    color: #669aec;
120 156
     display: inline-flex;
121 157
     cursor: pointer;
122 158
 }
@@ -128,7 +164,7 @@
128 164
     left: 96;
129 165
     bottom: 51;
130 166
     @media (min-width: 432px) and (max-width: 632px) {
131
-        left: 51px
167
+        left: 51px;
132 168
     }
133 169
 }
134 170
 
@@ -139,22 +175,22 @@
139 175
 .thumbnail-container {
140 176
     position: relative;
141 177
     &:focus-within {
142
-        .thumbnail ~ .delete-image-icon{
143
-           display: block;
144
-       }
178
+        .thumbnail ~ .delete-image-icon {
179
+            display: block;
180
+        }
145 181
     }
146 182
 }
147 183
 
148
-.add-background{
184
+.add-background {
149 185
     margin-right: 8px;
150 186
 }
151 187
 
152
-.apply-background-btn{
188
+.apply-background-btn {
153 189
     margin-top: 16px;
154 190
     float: right;
155
- }
191
+}
156 192
 
157
- .video-background-preview-entry{
193
+.video-background-preview-entry {
158 194
     margin-left: -10px;
159 195
     height: 250px;
160 196
     width: 570px;
@@ -163,33 +199,33 @@
163 199
     @media (min-width: 432px) and (max-width: 632px) {
164 200
         max-width: 336;
165 201
     }
166
-    @media (max-width: 432px){
202
+    @media (max-width: 432px) {
167 203
         max-width: 336;
168 204
     }
169
- }
205
+}
170 206
 
171
- .virtual-background-preview-video{
207
+.virtual-background-preview-video {
172 208
     margin-left: -10;
173 209
     border-radius: 6px;
174 210
     height: 100%;
175 211
     object-fit: cover;
176 212
     width: 100%;
177
- }
178
- .video-preview-loader{
179
-     border-radius: 6px;
180
-     background-color: transparent;
181
-     height: 250px;
182
-     margin-bottom: 8px;
183
-     width: 572px;
184
-     position: fixed;
185
-     z-index: 2;
186
-     @media (min-width: 432px) and (max-width: 632px) {
187
-         width: 340px;
188
-     }
189
- }
213
+}
214
+.video-preview-loader {
215
+    border-radius: 6px;
216
+    background-color: transparent;
217
+    height: 250px;
218
+    margin-bottom: 8px;
219
+    width: 572px;
220
+    position: fixed;
221
+    z-index: 2;
222
+    @media (min-width: 432px) and (max-width: 632px) {
223
+        width: 340px;
224
+    }
225
+}
190 226
 
191
- .video-preview-loader svg{
227
+.video-preview-loader svg {
192 228
     position: absolute;
193 229
     top: 40%;
194 230
     left: 45%;
195
- }
231
+}

Načítá se…
Zrušit
Uložit