Skip to content

Commit b036b50

Browse files
committed
feat: site logo size increase
1 parent 837f052 commit b036b50

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

assets/scss/core/utilities.scss

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
@return math.div($value, $baseFontSize) + rem;
2727
}
2828

29+
/**
30+
* Calculate vw based on expected element size at $x-large breakpoint ($base-vw)
31+
*/
32+
@function vw($px-vw, $base-vw: 1440px) {
33+
@return math.div($px-vw * 100vw, $base-vw);
34+
}
35+
2936
// ////////////////////////////////////////////////////////////////////// Mixins
3037
// -----------------------------------------------------------------------------
3138
// =================================================================== Animation

components/site-header.vue

+1-4
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,8 @@ const handleNavClick = () => {
253253
path {
254254
transition: 250ms ease;
255255
}
256-
@include mini {
257-
max-width: toRem(205);
258-
}
259256
@include tiny {
260-
max-width: toRem(150);
257+
max-width: clamp(toRem(150), vw(180px, 415px), toRem(180));
261258
}
262259
}
263260
}

0 commit comments

Comments
 (0)