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

255 lines
6.0 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 16:14:59 +02:00
.styledSelect > .valueContainer > .placeholder,
.styledSelect > .valueContainer > .valueMulti > .placeholder {
2020-04-08 08:58:02 +02:00
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
2020-04-08 16:14:59 +02:00
/* multi value */
.styledSelect > .valueContainer > .valueMulti {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.styledSelect > .valueContainer > .valueMulti.normal {
padding-top: 5px;
}
.styledSelect > .valueContainer > .valueMulti > .valueMultiItem {
margin-right: 15px;
display: inline-flex;
align-items: center;
border-radius: 4px;
cursor: pointer;
user-select: none;
color: var(--textDarkest);
height: 24px;
}
.styledSelect > .valueContainer > .valueMulti > .valueMultiItem > .selectItem {
margin-right: 5px;
}
.styledSelect > .valueContainer > .valueMulti > .valueMultiItem > .selectItem > .styledIcon {
margin-left: 4px;
color: var(--textDarkest);
}
.styledSelect > .valueContainer > .valueMulti > .addMore {
display: inline-block;
margin-bottom: 3px;
padding: 3px 0;
font-size: 12.5px;
cursor: pointer;
color: var(--textLink);
font-family: var(--font-medium);
font-weight: normal;
}
.styledSelect > .valueContainer > .valueMulti > .addMore:hover,
.styledSelect > .valueContainer > .valueMulti > .addMore:visited,
.styledSelect > .valueContainer > .valueMulti > .addMore:active {
color: var(--textLink);
}
.styledSelect > .valueContainer > .valueMulti > .addMore:hover {
text-decoration: underline;
}
2020-04-08 08:58:02 +02:00
2020-04-08 16:14:59 +02:00
.styledSelect > .valueContainer > .valueMulti > .addMore > .styledIcon {
margin-right: 3px;
vertical-align: middle;
font-size: 14px;
}
.styledSelect > .dropDown > .options > .option > .optionItem {
2020-04-08 08:58:02 +02:00
display: flex;
align-items: center;
}
2020-04-08 16:14:59 +02:00
.styledSelect > .dropDown > .options > .option > .optionItem > .styledIcon {
2020-04-08 08:58:02 +02:00
font-size: 18px;
}
2020-04-08 16:14:59 +02:00
.styledSelect > .dropDown > .options > .option > .optionItem > .optionLabel {
2020-04-08 08:58:02 +02:00
padding: 0 5px 0 7px;
2020-04-08 16:14:59 +02:00
font-size: 15px;
2020-04-08 08:58:02 +02:00
}
/* issue priority */
2020-04-08 16:14:59 +02:00
.styledSelect > .dropDown > .options > .option > .optionItem.priority > .optionLabel {
padding: 0 5px 0 7px;
font-size: 15px;
text-transform: capitalize;
}
.styledSelect > .valueContainer > .selectItem.priority > .selectItemLabel {
text-transform: capitalize;
}
.styledSelect > .dropDown > .options > .option > .optionItem.priority > .styledIcon {
font-size: 18px;
}
.styledSelect > .valueContainer > .selectItem.priority.highest > .styledIcon,
.styledSelect > .dropDown > .options > .option > .optionItem.priority.highest > .styledIcon {
color: var(--highest);
}
.styledSelect > .valueContainer > .selectItem.priority.high > .styledIcon,
.styledSelect > .dropDown > .options > .option > .optionItem.priority.high > .styledIcon {
color: var(--high);
}
.styledSelect > .valueContainer > .selectItem.priority.medium > .styledIcon,
.styledSelect > .dropDown > .options > .option > .optionItem.priority.medium > .styledIcon {
color: var(--medium);
}
.styledSelect > .valueContainer > .selectItem.priority.low > .styledIcon,
.styledSelect > .dropDown > .options > .option > .optionItem.priority.low > .styledIcon {
color: var(--low);
}
.styledSelect > .valueContainer > .selectItem.priority.lowest > .styledIcon,
.styledSelect > .dropDown > .options > .option > .optionItem.priority.lowest > .styledIcon {
color: var(--lowest);
}