1212
1313// DIMENSIONS
1414 $window-width : 80rem
15+ $window-height : 50rem
16+ $min-window-width : 55rem
17+ $min-window-height : 20rem
1518$sidebar-width : math .div ($window-width , 5 )
1619$header-height : 5rem
1720$num-columns : 4
1821$icon-size : 1.5rem
1922$track-height : 0.75rem
2023$track-border-radius : 0.25rem
2124$thumb-size : $icon-size
25+ $sidebar-font-size : 1.2rem
2226
2327// COLORS
2428 $header-background : rgb (27, 27, 27 )
@@ -35,7 +39,12 @@ $thumb-border-color: $track-color
3539#music-app
3640 flex-direction : column
3741 align-content : stretch
38- @include mix .window (rgba(42 , 45 , 41 , 0.6 ), $window-width , 50rem , 55rem , 20rem )
42+ @include mix .window (rgba(42 , 45 , 41 , 0.6 ), $window-width , $window-height , $min-window-width , $min-window-height )
43+
44+ // Decrease window size on smaller screens
45+ @media screen and (max-width : calc(vars .$width-threshold - (5 * vars .$threshold-diff )))
46+ height : calc($window-height * 0.95 )
47+ min-height : calc($min-window-height * 0.95 )
3948
4049 .body
4150 color : white
@@ -81,15 +90,16 @@ $thumb-border-color: $track-color
8190 margin-bottom : vars .$padding
8291
8392 .subtitle
84- font-size : 1.2 rem
93+ font-size : calc($ sidebar-font-size - 0.1 rem )
8594 padding : vars .$padding 0
8695 font-weight : 700
8796 color : $sidebar-title-color
88-
97+
8998 .text
9099 color : white
91- font-size : 1.3rem
92- line-height : 1.75rem
100+ font-size : $sidebar-font-size
101+ border-radius : vars .$border-radius
102+ line-height : calc($sidebar-font-size * 1.3 )
93103 width : 100%
94104 position : relative
95105 padding : vars .$padding 0 vars .$padding vars .$padding-3x
@@ -104,8 +114,6 @@ $thumb-border-color: $track-color
104114 color : $sidebar-title-color
105115
106116 .active
107- width : 100%
108- border-radius : vars .$border-radius
109117 background-color : rgba(255 , 255 , 255 , 0.15 )
110118
111119 .main
@@ -153,6 +161,7 @@ $thumb-border-color: $track-color
153161 background-color : rgb (109, 109, 109 )
154162 border-radius : math .div (vars .$border-radius , 1.5 )
155163 overflow : hidden
164+ // max-width: 37.5rem
156165
157166 & -apple
158167 background : rgb (61, 61, 61 )
@@ -202,7 +211,7 @@ $thumb-border-color: $track-color
202211 // SLIDER INPUT STYLES
203212 input [type=range]
204213 width : 100% // auto
205- max-width : 10 rem
214+ max-width : 15 rem
206215 min-width : 6rem
207216 background : transparent
208217 -webkit-appearance : none
@@ -305,7 +314,6 @@ $thumb-border-color: $track-color
305314 width : 100%
306315 padding : vars .$padding-half vars .$padding-3x
307316 overflow : auto
308- font-size : 1.4rem
309317
310318 h1
311319 font-size : 2.25rem
@@ -343,31 +351,26 @@ $thumb-border-color: $track-color
343351 & :hover
344352 background : rgba(255 , 255 , 255 , 0.1 )
345353
354+ & -cover , & -details
355+ width : 100%
356+
346357 & -cover
347358 border-radius : vars .$border-radius
348359 background : var(-- img) no-repeat center
349360 background-size : cover
350361 object-fit : cover
351362 height : 100%
352- width : 100%
353363 aspect-ratio : 1 / 1
354364 flex-grow : 1
355365
356366 & -details
357367 text-align : center
358368 margin-top : vars .$padding
359- font-size : 1rem
360- width : 100%
369+ font-size : calc($sidebar-font-size * 0.9 )
361370 overflow : hidden
362371 text-overflow : ellipsis
363372 white-space : nowrap
364373
365- @media screen and (max-width : vars .$width-threshold )
366- font-size : 0.9rem
367-
368- @media screen and (max-width : calc(vars .$width-threshold - (1 * vars .$threshold-diff )))
369- font-size : 0.85rem
370-
371374 & -row
372375 display : flex
373376 justify-content : space-between
0 commit comments