Add extra modifier styles to Input/Select
This commit is contained in:
parent
1f26b0afc8
commit
2cd6513aa4
2 changed files with 28 additions and 3 deletions
|
|
@ -7,6 +7,10 @@
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
&.full {
|
&.full {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
@ -20,6 +24,10 @@
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fullHeight {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
background-color: var(--input-bg);
|
background-color: var(--input-bg);
|
||||||
|
|
@ -107,12 +115,13 @@
|
||||||
width: $unit-8x;
|
width: $unit-8x;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.alignRight {
|
&.range {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
width: $unit-10x;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.hidden {
|
&.alignRight {
|
||||||
display: none;
|
text-align: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: $unit;
|
gap: $unit;
|
||||||
padding: ($unit * 1.5) $unit-2x;
|
padding: ($unit * 1.5) $unit-2x;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
&.small {
|
&.small {
|
||||||
& > span:not(.icon) {
|
& > span:not(.icon) {
|
||||||
|
|
@ -29,6 +30,21 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.grow {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left {
|
||||||
|
flex-grow: 1;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
flex-grow: 0;
|
||||||
|
text-align: right;
|
||||||
|
min-width: 12rem;
|
||||||
|
}
|
||||||
|
|
||||||
&.bound {
|
&.bound {
|
||||||
background-color: var(--select-contained-bg);
|
background-color: var(--select-contained-bg);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue