Improved styles

This commit is contained in:
Pedro Moreno 2023-02-16 12:44:51 +01:00
parent 49a076c6bc
commit 657c9d5480
3 changed files with 6 additions and 6 deletions

View file

@ -26,14 +26,14 @@
font-family: _font(family-heading);
font-size: 0.6em;
font-weight: _font(weight-heading-bold);
height: _size(element-height) * 1.75;
height: auto;
letter-spacing: _font(kerning-heading);
line-height: _size(element-height) * 1.75;
line-height: _size(element-height) * 1.5;
padding: 0 2.5em;
text-align: center;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
white-space: normal;
&:hover {
box-shadow: inset 0 0 0 1px _palette(accent);

View file

@ -78,7 +78,7 @@
}
@include breakpoint('<=small') {
@include breakpoint('<=xsmall') {
> .image.featured {
margin-left: _size(section-spacing-small) * -1;
margin-top: calc(#{_size(section-spacing-small) * -1} - 1px);

View file

@ -48,10 +48,10 @@
$important: '!important';
}
$x: 0.1em;
$x: 0.5em;
@if unit(_size(element-margin)) == 'rem' {
$x: 0.1rem;
$x: 0.5rem;
}
padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};