Fix misalignment between value and label in form components (https://github.com/woocommerce/woocommerce-blocks/pull/2518)
* Fix misalignment between value and label in form components * Do the calculation in SCSS
This commit is contained in:
parent
d6779c4a8b
commit
60c0ebfdb7
|
@ -100,7 +100,7 @@
|
|||
transform-origin: top left;
|
||||
color: $gray-50;
|
||||
transition: transform 200ms ease;
|
||||
margin: 0 $gap;
|
||||
margin: 0 0 0 #{$gap + 1px};
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: calc(100% - #{2 * $gap});
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
transition: all 200ms ease;
|
||||
color: $gray-50;
|
||||
z-index: 1;
|
||||
margin: 0 $gap;
|
||||
margin: 0 0 0 #{$gap + 1px};
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: calc(100% - #{ 2 * $gap });
|
||||
max-width: calc(100% - #{2 * $gap});
|
||||
white-space: nowrap;
|
||||
|
||||
@media screen and (prefers-reduced-motion: reduce) {
|
||||
|
|
|
@ -14,10 +14,10 @@
|
|||
line-height: 1.375;
|
||||
color: $gray-50;
|
||||
transition: transform 200ms ease;
|
||||
margin: 0 $gap;
|
||||
margin: 0 0 0 #{$gap + 1px};
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: calc(100% - #{ 2 * $gap });
|
||||
max-width: calc(100% - #{2 * $gap});
|
||||
|
||||
@media screen and (prefers-reduced-motion: reduce) {
|
||||
transition: none;
|
||||
|
|
Loading…
Reference in New Issue