dropdown styles fixes

This commit is contained in:
Konstantyn Pahsura 2016-10-26 17:52:55 +03:00 committed by yanas
parent d384cd77c6
commit 28f719b58a
4 changed files with 91 additions and 50 deletions

View File

@ -26,7 +26,9 @@ $defaultDarkColor: #2b3d5c;
$defaultBackground: #474747; $defaultBackground: #474747;
$tooltipBg: rgba(0,0,0, 0.7); $tooltipBg: rgba(0,0,0, 0.7);
// Toolbar /**
* Toolbar
*/
$toolbarBackground: rgba(0, 0, 0, 0.5); $toolbarBackground: rgba(0, 0, 0, 0.5);
$toolbarSelectBackground: rgba(0, 0, 0, .6); $toolbarSelectBackground: rgba(0, 0, 0, .6);
$toolbarBadgeBackground: #165ECC; $toolbarBadgeBackground: #165ECC;
@ -34,11 +36,15 @@ $toolbarBadgeColor: #FFFFFF;
$toolbarToggleBackground: #12499C; $toolbarToggleBackground: #12499C;
$splitterToolbarButtonLeftMargin: 0px; $splitterToolbarButtonLeftMargin: 0px;
// Main controls /*
* Main controls
*/
$inputSemiBackground: rgba(132, 132, 132, .8); $inputSemiBackground: rgba(132, 132, 132, .8);
$inputLightBackground: #EBEBEB; $inputLightBackground: #EBEBEB;
// Video layout. /*
* Video layout
*/
$videoThumbnailHovered: rgba(22, 94, 204, .4); $videoThumbnailHovered: rgba(22, 94, 204, .4);
$videoThumbnailSelected: #165ECC; $videoThumbnailSelected: #165ECC;
$participantNameColor: #fff; $participantNameColor: #fff;
@ -65,7 +71,9 @@ $rateStarActivity: #165ecc;
$rateStarSize: 34px; $rateStarSize: 34px;
$feedbackCancelFontColor: #333; $feedbackCancelFontColor: #333;
// Notifications /**
* Notifications
*/
$notificationFontSize: 13px; $notificationFontSize: 13px;
$notificationColor: #FFFFFF; $notificationColor: #FFFFFF;
$notificationBackground: $tooltipBg; $notificationBackground: $tooltipBg;
@ -91,26 +99,36 @@ $toolbarZ: 900;
$overlayZ: 902; $overlayZ: 902;
$notificationZ: 1012; $notificationZ: 1012;
$ringingZ: 800; $ringingZ: 800;
$dropdownZ: 901;
$dropdownMaskZ: 900;
/** /**
* Font Colors TODO: Change colors when general dialogs are implemented. * Font Colors
*/ */
$defaultFontColor: #777; $defaultFontColor: #777;
$defaultLightFontColor: #F1F1F1; $defaultLightFontColor: #F1F1F1;
$defaultDarkFontColor: #000; $defaultDarkFontColor: #000;
$buttonFontColor: #777;
$buttonHoverFontColor: #287ade;
$auiPrimaryButtonBg: #3572b0;
$auiPrimaryButtonHoverBg: #57647b;
$auiPrimaryButtonColor: #fff;
$auiIconColor: #707070;
$inputControlEmColor: #f29424;
$linkFontColor: #489afe;
$linkHoverFontColor: #287ade;
/** /**
* Forms * Forms
*/ */
<<<<<<< 1291023cbed3044a9f3acc2b8c7d47ff05e5aee4
$inputBg: $inputSemiBackground; $inputBg: $inputSemiBackground;
$inputBgHover: $inputSemiBackground; $inputBgHover: $inputSemiBackground;
$inputFontColor: $defaultDarkFontColor; $inputFontColor: $defaultDarkFontColor;
=======
//dropdown
$selectFontColor: $defaultLightFontColor;
$selectBg: $defaultBackground;
$selectActiveBg: $defaultBackground;
$selectActiveItemBg: $defaultDarkColor;
//inputs
$inputControlEmColor: #f29424;
//buttons
$linkFontColor: #489afe;
$linkHoverFontColor: #287ade;
// Main controls TODO: looks like we don't use it
$inputSemiBackground: rgba(132, 132, 132, .8);
$inputLightBackground: #EBEBEB;
>>>>>>> dropdown styles fixes

View File

@ -1,19 +1,40 @@
form.aui {
.aui-select2-container {
background-color: transparent;
> a { .select2-container.aui-select2-container {
background-color: $inputBg !important; background-color: transparent !important;
color: $inputFontColor !important;
border-color: $inputBg !important; a.select2-choice {
text-shadow: none !important; height: 28px !important;
margin: 0 auto !important; line-height: 18px !important;
width: 100% !important; width: 100% !important;
background-color: $selectBg !important;
border-color: $selectBg !important;
color: $selectFontColor !important;
text-shadow: none !important;
font-size: 12px !important;
margin: 0 auto !important;
&:after {
border-top-color: $selectFontColor;
}
}
&.select2-dropdown-open{
a.select2-choice {
background-color: $selectActiveBg !important;
border-color: $selectActiveBg !important;
} }
} }
} }
.select2-drop.aui-select2-drop.aui-style-default {
z-index: $dropdownZ;
background-color: $selectActiveBg;
border-color: $selectActiveBg;
.select2-results{ .select2-results{
background-color: $selectActiveBg;
border-color: $selectActiveBg;
&::-webkit-scrollbar { &::-webkit-scrollbar {
background-color: transparent; background-color: transparent;
} }
@ -24,19 +45,23 @@ form.aui {
background-color: transparent; background-color: transparent;
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background-color: #3572b0; background-color: $selectActiveItemBg;
}
.select2-result{
&.select2-highlighted{
background-color: $selectActiveItemBg;
}
.select2-result-label{
font-size: 12px;
line-height: 20px;
} }
} }
.aui-select2-drop { }
z-index: 901;
} }
.select2-drop-mask { .select2-drop-mask {
z-index: 900; z-index: $dropdownMaskZ;
}
.aui-dropdown2.aui-style-default.dropdown-dark {
background-color: $defaultBackground;
border-color: transparent;
} }

View File

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

View File

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