UNPKG

2.6 kBSCSSView Raw
1@import '../form-field/form-field.component.theme';
2
3@mixin select-outline {
4 nb-select.appearance-outline .select-button {
5 border-style: nb-theme(select-outline-border-style);
6 border-width: nb-theme(select-outline-border-width);
7
8 &.top {
9 border-top-style: nb-theme(select-outline-adjacent-border-style);
10 border-top-width: nb-theme(select-outline-adjacent-border-width);
11 }
12 &.bottom {
13 border-bottom-style: nb-theme(select-outline-adjacent-border-style);
14 border-bottom-width: nb-theme(select-outline-adjacent-border-width);
15 }
16 }
17
18 @each $status in nb-get-statuses() {
19 nb-select.appearance-outline.status-#{$status} .select-button {
20 background-color: nb-theme(select-outline-#{$status}-background-color);
21 border-color: nb-theme(select-outline-#{$status}-border-color);
22 color: nb-theme(select-outline-#{$status}-text-color);
23
24 &.placeholder {
25 color: nb-theme(select-outline-#{$status}-placeholder-text-color);
26 }
27 nb-icon {
28 color: nb-theme(select-outline-#{$status}-icon-color);
29 }
30
31 &:focus {
32 background-color: nb-theme(select-outline-#{$status}-focus-background-color);
33 border-color: nb-theme(select-outline-#{$status}-focus-border-color);
34 }
35 &:hover {
36 background-color: nb-theme(select-outline-#{$status}-hover-background-color);
37 border-color: nb-theme(select-outline-#{$status}-hover-border-color);
38 }
39
40 &[disabled] {
41 color: nb-theme(select-outline-#{$status}-disabled-text-color);
42 background-color: nb-theme(select-outline-#{$status}-disabled-background-color);
43 border-color: nb-theme(select-outline-#{$status}-disabled-border-color);
44
45 nb-icon {
46 color: nb-theme(select-outline-#{$status}-disabled-icon-color);
47 }
48 }
49
50 &.bottom,
51 &.top {
52 border-color: nb-theme(select-outline-#{$status}-open-border-color);
53 }
54
55 &.top {
56 border-top-color: nb-theme(select-outline-#{$status}-adjacent-border-color);
57 }
58 &.bottom {
59 border-bottom-color: nb-theme(select-outline-#{$status}-adjacent-border-color);
60 }
61 }
62 }
63
64 @each $size in nb-get-sizes() {
65 nb-select.appearance-outline.size-#{$size} .select-button {
66 padding: nb-theme(select-outline-#{$size}-padding);
67 @include nb-ltr(padding-right, nb-theme(select-icon-offset));
68 @include nb-rtl(padding-left, nb-theme(select-icon-offset));
69 }
70
71 @include nb-form-field-with-prefix('nb-select.appearance-outline.size-#{$size} .select-button', $size);
72 }
73}