File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 26
26
@return math .div ($value , $baseFontSize ) + rem;
27
27
}
28
28
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
+
29
36
// ////////////////////////////////////////////////////////////////////// Mixins
30
37
// -----------------------------------------------------------------------------
31
38
// =================================================================== Animation
Original file line number Diff line number Diff line change @@ -253,11 +253,8 @@ const handleNavClick = () => {
253
253
path {
254
254
transition : 250ms ease ;
255
255
}
256
- @include mini {
257
- max-width : toRem (205 );
258
- }
259
256
@include tiny {
260
- max-width : toRem (150 );
257
+ max-width : clamp ( toRem (150 ), vw ( 180 px , 415 px ), toRem ( 180 ) );
261
258
}
262
259
}
263
260
}
You can’t perform that action at this time.
0 commit comments