UNPKG

1.66 kBSCSSView Raw
1/*
2 * @license
3 * Copyright Akveo. All Rights Reserved.
4 * Licensed under the MIT License. See License.txt in the project root for license information.
5 */
6
7@import './select-outline';
8@import './select-filled';
9@import './select-hero';
10
11@mixin nb-select-theme() {
12 nb-select .select-button {
13 min-width: nb-theme(select-min-width);
14 cursor: nb-theme(select-cursor);
15 font-family: nb-theme(select-text-font-family);
16
17 &.placeholder {
18 font-family: nb-theme(select-placeholder-text-font-family);
19 }
20 &:focus {
21 outline: none;
22 }
23 &[disabled] {
24 cursor: nb-theme(select-disabled-cursor);
25 }
26 }
27
28 @each $size in nb-get-sizes() {
29 nb-select.size-#{$size} {
30 .select-button {
31 font-size: nb-theme(select-#{$size}-text-font-size);
32 font-weight: nb-theme(select-#{$size}-text-font-weight);
33 line-height: nb-theme(select-#{$size}-text-line-height);
34
35 &.placeholder {
36 font-size: nb-theme(select-#{$size}-placeholder-text-font-size);
37 font-weight: nb-theme(select-#{$size}-placeholder-text-font-weight);
38 }
39
40 &.empty::before {
41 content: ' ';
42 display: block;
43 height: nb-theme(select-#{$size}-text-line-height);
44 }
45 }
46
47 &:not(.full-width) {
48 max-width: nb-theme(select-#{$size}-max-width);
49 }
50 }
51 }
52
53 @each $shape in nb-get-shapes() {
54 nb-select.shape-#{$shape} .select-button {
55 border-radius: nb-theme(select-#{$shape}-border-radius);
56 }
57 }
58
59 @include select-outline();
60 @include select-filled();
61 @include select-hero();
62
63 @include nb-form-field-root-component('nb-select');
64}