n8n/packages/design-system/src/css/option.scss
कारतोफ्फेलस्क्रिप्ट™ 13659d036f
ci: Ensure that eslint runs on all frontend code (no-changelog) (#4602)
* ensure that eslint runs on all frontend code

* remove tslint from `design-system`

* enable prettier and eslint-prettier for `design-system`

* Delete tslint.json

* use a single editorconfig for the repo

* enable prettier for all code in `design-system`

* more linting fixes on design-system

* ignore coverage for git and prettier

* lintfix on editor-ui
2022-11-15 18:20:54 +01:00

41 lines
889 B
SCSS

@use 'mixins/mixins';
@use './common/var';
@include mixins.b(select-dropdown) {
@include mixins.e(item) {
font-size: var.$select-font-size;
padding: var(--select-option-padding, 0 20px);
position: relative;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var.$select-option-color;
min-height: var.$select-option-height;
height: auto;
line-height: var(--select-option-line-height, var.$select-option-height);
box-sizing: border-box;
cursor: pointer;
display: flex;
align-items: center;
@include mixins.when(disabled) {
color: var.$select-option-disabled-color;
cursor: not-allowed;
&:hover {
background-color: var.$color-white;
}
}
&.hover,
&:hover {
background-color: var.$select-option-hover-background;
}
&.selected {
color: var.$select-option-selected-font-color;
font-weight: bold;
}
}
}