Bladeren bron

dropdown styles fixes

j8
Konstantyn Pahsura 8 jaren geleden
bovenliggende
commit
28f719b58a
4 gewijzigde bestanden met toevoegingen van 91 en 50 verwijderingen
  1. 32
    14
      css/_variables.scss
  2. 57
    32
      css/aui-components/dropdown.scss
  3. 2
    2
      index.html
  4. 0
    2
      modules/UI/side_pannels/settings/SettingsMenu.js

+ 32
- 14
css/_variables.scss Bestand weergeven

@@ -26,7 +26,9 @@ $defaultDarkColor: #2b3d5c;
26 26
 $defaultBackground: #474747;
27 27
 $tooltipBg: rgba(0,0,0, 0.7);
28 28
 
29
-// Toolbar
29
+/**
30
+ * Toolbar
31
+ */
30 32
 $toolbarBackground: rgba(0, 0, 0, 0.5);
31 33
 $toolbarSelectBackground: rgba(0, 0, 0, .6);
32 34
 $toolbarBadgeBackground: #165ECC;
@@ -34,11 +36,15 @@ $toolbarBadgeColor: #FFFFFF;
34 36
 $toolbarToggleBackground: #12499C;
35 37
 $splitterToolbarButtonLeftMargin: 0px;
36 38
 
37
-// Main controls
39
+/*
40
+ * Main controls
41
+ */
38 42
 $inputSemiBackground: rgba(132, 132, 132, .8);
39 43
 $inputLightBackground: #EBEBEB;
40 44
 
41
-// Video layout.
45
+/*
46
+ * Video layout
47
+ */
42 48
 $videoThumbnailHovered: rgba(22, 94, 204, .4);
43 49
 $videoThumbnailSelected: #165ECC;
44 50
 $participantNameColor: #fff;
@@ -65,7 +71,9 @@ $rateStarActivity: #165ecc;
65 71
 $rateStarSize: 34px;
66 72
 $feedbackCancelFontColor: #333;
67 73
 
68
-// Notifications
74
+/**
75
+ * Notifications
76
+ */
69 77
 $notificationFontSize: 13px;
70 78
 $notificationColor: #FFFFFF;
71 79
 $notificationBackground: $tooltipBg;
@@ -91,26 +99,36 @@ $toolbarZ: 900;
91 99
 $overlayZ: 902;
92 100
 $notificationZ: 1012;
93 101
 $ringingZ: 800;
102
+$dropdownZ: 901;
103
+$dropdownMaskZ: 900;
94 104
 
95 105
 /**
96
- * Font Colors TODO: Change colors when general dialogs are implemented.
106
+ * Font Colors
97 107
  */
98 108
 $defaultFontColor: #777;
99 109
 $defaultLightFontColor: #F1F1F1;
100 110
 $defaultDarkFontColor: #000;
101
-$buttonFontColor: #777;
102
-$buttonHoverFontColor: #287ade;
103
-$auiPrimaryButtonBg: #3572b0;
104
-$auiPrimaryButtonHoverBg: #57647b;
105
-$auiPrimaryButtonColor: #fff;
106
-$auiIconColor: #707070;
107
-$inputControlEmColor: #f29424;
108
-$linkFontColor: #489afe;
109
-$linkHoverFontColor: #287ade;
110 111
 
111 112
 /**
112 113
  * Forms
113 114
  */
115
+<<<<<<< 1291023cbed3044a9f3acc2b8c7d47ff05e5aee4
114 116
 $inputBg: $inputSemiBackground;
115 117
 $inputBgHover: $inputSemiBackground;
116 118
 $inputFontColor: $defaultDarkFontColor;
119
+=======
120
+//dropdown
121
+$selectFontColor: $defaultLightFontColor;
122
+$selectBg: $defaultBackground;
123
+$selectActiveBg: $defaultBackground;
124
+$selectActiveItemBg: $defaultDarkColor;
125
+//inputs
126
+$inputControlEmColor: #f29424;
127
+//buttons
128
+$linkFontColor: #489afe;
129
+$linkHoverFontColor: #287ade;
130
+
131
+// Main controls TODO: looks like we don't use it
132
+$inputSemiBackground: rgba(132, 132, 132, .8);
133
+$inputLightBackground: #EBEBEB;
134
+>>>>>>> dropdown styles fixes

+ 57
- 32
css/aui-components/dropdown.scss Bestand weergeven

@@ -1,42 +1,67 @@
1
-form.aui {
2
-    .aui-select2-container {
3
-        background-color: transparent;
4
-
5
-        > a {
6
-            background-color: $inputBg !important;
7
-            color: $inputFontColor !important;
8
-            border-color: $inputBg !important;
9
-            text-shadow: none !important;
10
-            margin: 0 auto !important;
11
-            width: 100% !important;
1
+
2
+.select2-container.aui-select2-container {
3
+    background-color: transparent !important;
4
+
5
+    a.select2-choice {
6
+        height: 28px !important;
7
+        line-height: 18px !important;
8
+        width: 100% !important;
9
+        background-color: $selectBg !important;
10
+        border-color: $selectBg !important;
11
+        color: $selectFontColor !important;
12
+        text-shadow: none !important;
13
+        font-size: 12px !important;
14
+        margin: 0 auto !important;
15
+
16
+        &:after {
17
+            border-top-color: $selectFontColor;
12 18
         }
13 19
     }
14
-}
15 20
 
16
-.select2-results{
17
-    &::-webkit-scrollbar {
18
-        background-color: transparent;
19
-    }
20
-    &::-webkit-scrollbar-track {
21
-        background-color: transparent;
22
-    }
23
-    &::-webkit-scrollbar-track-piece {
24
-        background-color: transparent;
25
-    }
26
-    &::-webkit-scrollbar-thumb {
27
-        background-color: #3572b0;
21
+    &.select2-dropdown-open{
22
+        a.select2-choice {
23
+            background-color: $selectActiveBg !important;
24
+            border-color: $selectActiveBg !important;
25
+        }
28 26
     }
29 27
 }
30 28
 
31
-.aui-select2-drop {
32
-    z-index: 901;
33
-}
29
+.select2-drop.aui-select2-drop.aui-style-default {
30
+    z-index: $dropdownZ;
31
+    background-color: $selectActiveBg;
32
+    border-color: $selectActiveBg;
34 33
 
35
-.select2-drop-mask {
36
-    z-index: 900;
34
+    .select2-results{
35
+        background-color: $selectActiveBg;
36
+        border-color: $selectActiveBg;
37
+
38
+        &::-webkit-scrollbar {
39
+            background-color: transparent;
40
+        }
41
+        &::-webkit-scrollbar-track {
42
+            background-color: transparent;
43
+        }
44
+        &::-webkit-scrollbar-track-piece {
45
+            background-color: transparent;
46
+        }
47
+        &::-webkit-scrollbar-thumb {
48
+            background-color: $selectActiveItemBg;
49
+        }
50
+
51
+        .select2-result{
52
+            &.select2-highlighted{
53
+                background-color: $selectActiveItemBg;
54
+            }
55
+
56
+            .select2-result-label{
57
+                font-size: 12px;
58
+                line-height: 20px;
59
+            }
60
+        }
61
+
62
+    }
37 63
 }
38 64
 
39
-.aui-dropdown2.aui-style-default.dropdown-dark {
40
-    background-color: $defaultBackground;
41
-    border-color: transparent;
65
+.select2-drop-mask {
66
+    z-index: $dropdownMaskZ;
42 67
 }

+ 2
- 2
index.html Bestand weergeven

@@ -181,8 +181,8 @@
181 181
                 <div id="settings_container" class="sideToolbarContainer__inner">
182 182
                     <div class="title" data-i18n="settings.title"></div>
183 183
                     <form class="aui">
184
-                        <div id="languagesSelectWrapper" class="first hide">
185
-                            <select id="languagesSelect" style="width: 80%; margin-left: 10%"></select>
184
+                        <div id="languagesSelectWrapper" class="sideToolbarBlock first hide">
185
+                            <select id="languagesSelect"></select>
186 186
                         </div>
187 187
                         <div id="deviceOptionsWrapper" class="hide">
188 188
                             <div id="deviceOptionsTitle" class="subTitle hide" data-i18n="settings.audioVideo"></div>

+ 0
- 2
modules/UI/side_pannels/settings/SettingsMenu.js Bestand weergeven

@@ -70,8 +70,6 @@ function generateDevicesOptions(items, selectedId, permissionGranted) {
70 70
  */
71 71
 function initSelect2($el, onSelectedCb) {
72 72
     $el.auiSelect2({
73
-        containerCssClass: 'input-container-dark',
74
-        dropdownCssClass: 'dropdown-dark',
75 73
         minimumResultsForSearch: Infinity
76 74
     });
77 75
     if (typeof onSelectedCb === 'function') {

Laden…
Annuleren
Opslaan