bitque/jirs-client/js/css/styledSelect.css

159 lines
3.2 KiB
CSS
Raw Normal View History

2020-04-01 18:30:01 +02:00
.styledSelect {
position: relative;
border-radius: 4px;
cursor: pointer;
font-size: 14px
}
.styledSelect.normal {
width: 100%;
border: 1px solid var(--borderLightest);
background: var(--backgroundLightest);
transition: background 0.1s;
}
.styledSelect.empty {
display: inline-block;
}
.styledSelect:hover {
background: var(--backgroundLight);
}
.styledSelect:focus {
outline: none;
}
.styledSelect.normal:focus {
border: 1px solid var(--borderInputFocus);
box-shadow: 0 0 0 1px var(--borderInputFocus);
background: #fff;
}
.styledSelect.invalid, .styledSelect.invalid:focus {
border: 1px solid var(--danger);
box-shadow: none;
}
2020-04-01 22:41:26 +02:00
.styledSelect > .valueContainer {
display: flex;
align-items: center;
width: 100%;
}
.styledSelect > .valueContainer.normal {
min-height: 32px;
padding: 5px 5px 5px 10px;
}
.styledSelect > .valueContainer > .chevronIcon {
margin-left: auto;
font-size: 18px;
color: var(--textMedium);
}
2020-04-08 08:58:02 +02:00
.styledSelect > .valueContainer > .placeholder {
color: var(--textLight);
}
.styledSelectTip {
padding-top: 6px;
color: var(--textMedium);
font-size: 12.5px;
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown {
z-index: var(--dropdown);
position: absolute;
top: 100%;
left: 0;
border-radius: 0 0 4px 4px;
background: #fff;
box-shadow: rgba(9, 30, 66, 0.25) 0 4px 8px -2px, rgba(9, 30, 66, 0.31) 0 0 1px;
2020-04-01 22:41:26 +02:00
width: 100%;
}
.styledSelect > .dropDown > .dropDownInput {
2020-04-01 18:30:01 +02:00
padding: 10px 14px 8px;
width: 100%;
border: none;
color: var(--textDarkest);
background: none;
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown > .dropDownInput:focus {
2020-04-01 18:30:01 +02:00
outline: none;
}
.styledSelect > .options {
max-height: 200px;
overflow-x: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown > .options::-webkit-scrollbar {
2020-04-01 18:30:01 +02:00
width: 8px;
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown > .options::-webkit-scrollbar-track {
2020-04-01 18:30:01 +02:00
background: none;
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown > .options::-webkit-scrollbar-thumb {
2020-04-01 18:30:01 +02:00
border-radius: 99px;
background: var(--backgroundMedium);
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown > .options > .option {
2020-04-01 18:30:01 +02:00
padding: 8px 14px;
word-break: break-word;
cursor: pointer;
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown > .options > .option:last-of-type {
2020-04-01 18:30:01 +02:00
margin-bottom: 8px;
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown > .options > .option.jira-select-option-is-active {
background: var(--backgroundLightPrimary);
}
.styledSelect > .dropDown > .options > .option:hover {
2020-04-01 18:30:01 +02:00
background: var(--backgroundLightPrimary);
}
2020-04-01 22:41:26 +02:00
.styledSelect > .dropDown > .noOptions {
2020-04-01 18:30:01 +02:00
padding: 5px 15px 15px;
color: var(--textLight);
}
.styledSelect > .styledIcon {
position: absolute;
top: 4px;
right: 7px;
padding: 5px;
font-size: 16px;
color: var(--textMedium);
cursor: pointer;
user-select: none;
}
2020-04-08 08:58:02 +02:00
/* issue type */
.styledSelect > .dropDown > .options > .option > .type {
display: flex;
align-items: center;
}
.styledSelect > .dropDown > .options > .option > .type > .styledIcon {
font-size: 18px;
}
.styledSelect > .dropDown > .options > .option > .type > .typeLabel {
padding: 0 5px 0 7px;
font-size: 15px
}
/* issue priority */