mirror of
https://github.com/primer/css.git
synced 2024-11-10 16:07:25 +03:00
Only override if a new value is set
This commit is contained in:
parent
c4b8ee5d63
commit
8f8973a49e
@ -77,8 +77,12 @@
|
||||
@include breakpoint(md) {
|
||||
font-size: map-get($pairing-md, "size") !important;
|
||||
line-height: map-get($pairing-md, "lh") !important;
|
||||
@if (map-get($pairing-md, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
|
||||
@if (map-get($pairing-md, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold !important; }
|
||||
@if (map-get($pairing-md, "size") >= $mktg-body-spacing-threshold and map-get($pairing, "size") < $mktg-body-spacing-threshold) {
|
||||
letter-spacing: $mktg-body-spacing-large !important;
|
||||
}
|
||||
@if (map-get($pairing-md, "size") >= $mktg-body-weight-threshold and map-get($pairing, "size") < $mktg-body-weight-threshold) {
|
||||
font-weight: $font-weight-semibold !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -86,8 +90,12 @@
|
||||
@include breakpoint(lg) {
|
||||
font-size: map-get($pairing-lg, "size") !important;
|
||||
line-height: map-get($pairing-lg, "lh") !important;
|
||||
@if (map-get($pairing-lg, "size") >= $mktg-body-spacing-threshold) { letter-spacing: $mktg-body-spacing-large !important; }
|
||||
@if (map-get($pairing-lg, "size") >= $mktg-body-weight-threshold) { font-weight: $font-weight-semibold !important; }
|
||||
@if (map-get($pairing-lg, "size") >= $mktg-body-spacing-threshold and map-get($pairing-md, "size") < $mktg-body-spacing-threshold) {
|
||||
letter-spacing: $mktg-body-spacing-large !important;
|
||||
}
|
||||
@if (map-get($pairing-lg, "size") >= $mktg-body-weight-threshold and map-get($pairing-md, "size") < $mktg-body-weight-threshold) {
|
||||
font-weight: $font-weight-semibold !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user