packages/ketcher-react/src/script/ui/component/form/Select/Select.module.less (84 lines of code) (raw):
/****************************************************************************
* Copyright 2021 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
***************************************************************************/
@import '../../../../../style/variables';
@import '../../../../../style/mixins.less';
// stylelint-disable selector-pseudo-class-no-unknown
// stylelint-disable no-descending-specificity
.dropdownList {
:global(.MuiPaper-root) {
border-radius: 0 0 4px 4px;
box-shadow: 0 6px 10px @color-select-box-shadow;
color: @color-text-primary;
}
:global(.MuiMenuItem-root) {
color: @color-text-primary;
font-family: @Inter;
font-size: 14px;
padding: 0 8px;
min-height: 28px;
cursor: default;
&:hover {
padding-left: 6px;
border-left: 2px solid #167782;
background-color: @color-select-background;
}
}
:global(.MuiList-root.MuiMenu-list) {
display: inline-block;
width: 100%;
background-color: @color-background-primary;
padding: 0;
box-shadow: none;
overflow: auto;
max-height: 200px;
.scrollbar();
&::-webkit-scrollbar {
background-color: @color-background-primary;
width: 4px;
}
&::-webkit-scrollbar-thumb {
border-radius: 2px;
-webkit-border-radius: 2px;
}
:global(.Mui-selected) {
background-color: @color-background-primary;
}
}
.listDivider {
border: 0.5px solid #e1e5ea;
margin: 4px 8px;
}
}
.selectContainer {
width: 100%;
:global(.MuiOutlinedInput-root .MuiSelect-select) {
width: 100%;
height: 24px;
box-shadow: none;
border-radius: 4px;
min-height: 24px;
border: 1px solid @color-border-input;
background-color: @color-background-primary;
color: @color-text-primary;
font-family: @Inter;
font-size: @font-size-input;
padding: 0 8px;
padding-right: 24px !important;
cursor: default;
box-sizing: border-box;
line-height: 22px;
:global(.MuiSelect-nativeInput) {
border: none;
padding: 0;
}
&:hover {
border: 1px solid @color-input-hover;
}
}
:global(.Mui-focused .MuiSelect-select) {
border-color: @color-primary;
}
:global(.MuiOutlinedInput-notchedOutline) {
border: none;
}
:global(.MuiSelect-icon) {
width: 16px;
height: 16px;
}
}