Center text on triggers on small screen sizes
This commit is contained in:
parent
a3a205fb5d
commit
f89cdcdddd
2 changed files with 35 additions and 14 deletions
|
|
@ -43,17 +43,28 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
&.small > .value {
|
||||
&.small {
|
||||
& > .value {
|
||||
font-size: $font-small;
|
||||
margin: 0;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
@include breakpoint(tablet) {
|
||||
&::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: calc($unit-2x - 1px);
|
||||
}
|
||||
|
||||
& > .value {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: inherit;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.bound.raid {
|
||||
&.highlighted .value {
|
||||
|
|
|
|||
|
|
@ -7,17 +7,27 @@
|
|||
gap: $unit;
|
||||
padding: ($unit * 1.5) $unit-2x;
|
||||
|
||||
&.small > span:not(.icon) {
|
||||
&.small {
|
||||
& > span:not(.icon) {
|
||||
font-size: $font-small;
|
||||
margin: 0;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
@include breakpoint(tablet) {
|
||||
&::before {
|
||||
content: '';
|
||||
display: block;
|
||||
width: calc($unit-2x - 1px);
|
||||
}
|
||||
|
||||
& > span:not(.icon) {
|
||||
width: 100%;
|
||||
max-width: inherit;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.bound {
|
||||
background-color: var(--select-contained-bg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue