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

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 3 лет назад
Родитель
Сommit
d87a40e77e
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 88 добавлений и 52 удалений
  1. 88
    52
      css/modals/virtual-background/_virtual-background.scss

+ 88
- 52
css/modals/virtual-background/_virtual-background.scss Просмотреть файл

1
 .virtual-background-dialog {
1
 .virtual-background-dialog {
2
-    margin-left:-10px;
2
+    margin-left: -10px;
3
     position: relative;
3
     position: relative;
4
     max-height: 300px;
4
     max-height: 300px;
5
     color: white;
5
     color: white;
7
     grid-template-columns: auto auto auto auto auto;
7
     grid-template-columns: auto auto auto auto auto;
8
     column-gap: 9px;
8
     column-gap: 9px;
9
     cursor: pointer;
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
         border: 2px solid #99bbf3;
16
         border: 2px solid #99bbf3;
13
         @media (min-width: 432px) and (min-width: 432px) and (max-width: 632px) {
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
     .background-option {
26
     .background-option {
40
     }
44
     }
41
     .thumbnail-selected {
45
     .thumbnail-selected {
42
         object-fit: cover;
46
         object-fit: cover;
43
-        border: 2px solid #246FE5;
47
+        border: 2px solid #246fe5;
44
     }
48
     }
45
-    .blur{
49
+    .blur {
46
         box-shadow: inset 0 0 12px #000000;
50
         box-shadow: inset 0 0 12px #000000;
47
-        background: #7E8287;
51
+        background: #7e8287;
48
         padding: 0 10px;
52
         padding: 0 10px;
49
     }
53
     }
50
     .blur-selected {
54
     .blur-selected {
51
         box-shadow: inset 0 0 12px #000000;
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
         padding: 0 10px;
58
         padding: 0 10px;
55
     }
59
     }
56
-    .slight-blur{
60
+    .slight-blur {
57
         box-shadow: inset 0 0 12px #000000;
61
         box-shadow: inset 0 0 12px #000000;
58
-        background: #A4A4A4;
62
+        background: #a4a4a4;
59
         padding: 0 10px;
63
         padding: 0 10px;
60
     }
64
     }
61
-    .slight-blur-selected{
65
+    .slight-blur-selected {
62
         box-shadow: inset 0 0 12px #000000;
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
         padding: 0 10px;
69
         padding: 0 10px;
66
     }
70
     }
67
     .virtual-background-none {
71
     .virtual-background-none {
70
     }
74
     }
71
     .none-selected {
75
     .none-selected {
72
         background: #525252;
76
         background: #525252;
73
-        border: 2px solid #246FE5;
77
+        border: 2px solid #246fe5;
74
         padding: 0 10px;
78
         padding: 0 10px;
75
     }
79
     }
76
 
80
 
77
-    .desktop-share{
81
+    .desktop-share {
78
         background: #525252;
82
         background: #525252;
79
     }
83
     }
80
-    .desktop-share-selected{
84
+    .desktop-share-selected {
81
         background: #525252;
85
         background: #525252;
82
-        border: 2px solid #246FE5;
86
+        border: 2px solid #246fe5;
83
         padding: 0 10px;
87
         padding: 0 10px;
84
     }
88
     }
85
 
89
 
86
     @media (min-width: 432px) and (max-width: 632px) {
90
     @media (min-width: 432px) and (max-width: 632px) {
87
         font-size: 1.5vw;
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
         grid-template-columns: auto auto auto;
110
         grid-template-columns: auto auto auto;
91
         font-size: 1.5vw;
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
         grid-template-columns: auto auto auto;
130
         grid-template-columns: auto auto auto;
95
         font-size: 1.5vw;
131
         font-size: 1.5vw;
96
     }
132
     }
109
 .file-upload-btn {
145
 .file-upload-btn {
110
     display: none;
146
     display: none;
111
 }
147
 }
112
-.file-upload-label{
148
+.file-upload-label {
113
     font-size: 14px;
149
     font-size: 14px;
114
     font-weight: 600;
150
     font-weight: 600;
115
     line-height: 20px;
151
     line-height: 20px;
116
     margin-left: -10px;
152
     margin-left: -10px;
117
     margin-top: 16px;
153
     margin-top: 16px;
118
     margin-bottom: 8px;
154
     margin-bottom: 8px;
119
-    color: #669AEC;
155
+    color: #669aec;
120
     display: inline-flex;
156
     display: inline-flex;
121
     cursor: pointer;
157
     cursor: pointer;
122
 }
158
 }
128
     left: 96;
164
     left: 96;
129
     bottom: 51;
165
     bottom: 51;
130
     @media (min-width: 432px) and (max-width: 632px) {
166
     @media (min-width: 432px) and (max-width: 632px) {
131
-        left: 51px
167
+        left: 51px;
132
     }
168
     }
133
 }
169
 }
134
 
170
 
139
 .thumbnail-container {
175
 .thumbnail-container {
140
     position: relative;
176
     position: relative;
141
     &:focus-within {
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
     margin-right: 8px;
185
     margin-right: 8px;
150
 }
186
 }
151
 
187
 
152
-.apply-background-btn{
188
+.apply-background-btn {
153
     margin-top: 16px;
189
     margin-top: 16px;
154
     float: right;
190
     float: right;
155
- }
191
+}
156
 
192
 
157
- .video-background-preview-entry{
193
+.video-background-preview-entry {
158
     margin-left: -10px;
194
     margin-left: -10px;
159
     height: 250px;
195
     height: 250px;
160
     width: 570px;
196
     width: 570px;
163
     @media (min-width: 432px) and (max-width: 632px) {
199
     @media (min-width: 432px) and (max-width: 632px) {
164
         max-width: 336;
200
         max-width: 336;
165
     }
201
     }
166
-    @media (max-width: 432px){
202
+    @media (max-width: 432px) {
167
         max-width: 336;
203
         max-width: 336;
168
     }
204
     }
169
- }
205
+}
170
 
206
 
171
- .virtual-background-preview-video{
207
+.virtual-background-preview-video {
172
     margin-left: -10;
208
     margin-left: -10;
173
     border-radius: 6px;
209
     border-radius: 6px;
174
     height: 100%;
210
     height: 100%;
175
     object-fit: cover;
211
     object-fit: cover;
176
     width: 100%;
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
     position: absolute;
228
     position: absolute;
193
     top: 40%;
229
     top: 40%;
194
     left: 45%;
230
     left: 45%;
195
- }
231
+}

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