diff options
Diffstat (limited to 'src/objects')
-rw-r--r-- | src/objects/_text-field.scss | 18 | ||||
-rw-r--r-- | src/objects/_text-field.vars.scss | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/objects/_text-field.scss b/src/objects/_text-field.scss index 6c0e7d2..2beff5f 100644 --- a/src/objects/_text-field.scss +++ b/src/objects/_text-field.scss | |||
@@ -104,6 +104,24 @@ | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | @include bem.modifier('pill') { | ||
108 | border-radius: 100em; | ||
109 | |||
110 | @include bem.elem('bg') { | ||
111 | border-radius: 100em; | ||
112 | } | ||
113 | |||
114 | @include bem.elem('native') { | ||
115 | padding-inline: props.get(vars.$pad-i-pill); | ||
116 | |||
117 | &:focus { | ||
118 | @include bem.sibling-elem('bg') { | ||
119 | border-radius: 100em; | ||
120 | } | ||
121 | } | ||
122 | } | ||
123 | } | ||
124 | |||
107 | @include bem.modifier('extended') { | 125 | @include bem.modifier('extended') { |
108 | padding: props.get(vars.$extended--pad); | 126 | padding: props.get(vars.$extended--pad); |
109 | 127 | ||
diff --git a/src/objects/_text-field.vars.scss b/src/objects/_text-field.vars.scss index f64c42b..51099d8 100644 --- a/src/objects/_text-field.vars.scss +++ b/src/objects/_text-field.vars.scss | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | $line-height: props.def(--o-text-field--line-height, 1.4) !default; | 5 | $line-height: props.def(--o-text-field--line-height, 1.4) !default; |
6 | $pad-i: props.def(--o-text-field--pad-i, props.get(core.$size--125)) !default; | 6 | $pad-i: props.def(--o-text-field--pad-i, props.get(core.$size--125)) !default; |
7 | $pad-i-pill: props.def(--o-text-field--pad-i-pill, props.get(core.$size--175)) !default; | ||
7 | $pad-b: props.def(--o-text-field--pad-b, props.get(core.$size--125)) !default; | 8 | $pad-b: props.def(--o-text-field--pad-b, props.get(core.$size--125)) !default; |
8 | $border-width: props.def(--o-text-field--border-width, props.get(core.$border-width--thin)) !default; | 9 | $border-width: props.def(--o-text-field--border-width, props.get(core.$border-width--thin)) !default; |
9 | $rounding: props.def(--o-text-field--rounding, props.get(core.$rounding--sm)) !default; | 10 | $rounding: props.def(--o-text-field--rounding, props.get(core.$rounding--sm)) !default; |