UNPKG

874 BSCSSView 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@mixin input-sizes() {
8 @each $size in nb-get-sizes() {
9 &.size-#{$size} {
10 font-size: nb-theme(input-#{$size}-text-font-size);
11 font-weight: nb-theme(input-#{$size}-text-font-weight);
12 line-height: nb-theme(input-#{$size}-text-line-height);
13 padding: nb-theme(input-#{$size}-padding);
14
15 &:not(.input-full-width) {
16 max-width: nb-theme(input-#{$size}-max-width);
17 }
18
19 &::placeholder {
20 font-size: nb-theme(input-#{$size}-placeholder-text-font-size);
21 font-weight: nb-theme(input-#{$size}-placeholder-text-font-weight);
22 // TODO: this seems to be unused
23 line-height: nb-theme(input-#{$size}-placeholder-text-line-height);
24 }
25 }
26 }
27}