Skip to content

Commit

Permalink
feat: site logo size increase
Browse files Browse the repository at this point in the history
  • Loading branch information
tikagan committed Sep 27, 2023
1 parent 837f052 commit b036b50
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 7 additions & 0 deletions assets/scss/core/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
@return math.div($value, $baseFontSize) + rem;
}

/**
* Calculate vw based on expected element size at $x-large breakpoint ($base-vw)
*/
@function vw($px-vw, $base-vw: 1440px) {
@return math.div($px-vw * 100vw, $base-vw);
}

// ////////////////////////////////////////////////////////////////////// Mixins
// -----------------------------------------------------------------------------
// =================================================================== Animation
Expand Down
5 changes: 1 addition & 4 deletions components/site-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,8 @@ const handleNavClick = () => {
path {
transition: 250ms ease;
}
@include mini {
max-width: toRem(205);
}
@include tiny {
max-width: toRem(150);
max-width: clamp(toRem(150), vw(180px, 415px), toRem(180));
}
}
}
Expand Down

0 comments on commit b036b50

Please sign in to comment.