@use "sass:math"; $card-height: 8vh; $card-gap: 1.5vh; body { box-sizing: border-box; } a { text-decoration: none; font-family: sans-serif; color: black; } img { } .outer-div { display: flex; flex-direction: column; } .inner-div { height: $card-height; margin-top: ($card-gap * 0.5); margin-bottom: ($card-gap * 0.5); display: flex; justify-content: space-between; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); &:nth-child(odd) { background: #e0e0e0; } } .track-info { height: 100%; width: 70%; display: grid; grid-template-columns: ($card-height * 1.1) 1fr; grid-template-rows: 1fr 1fr; align-items: center; img { height: $card-height; grid-column: 1 / 2; grid-row: 1 / span 2; } p { margin: 0; padding: 0; } .track_name { grid-column: 2 / span 1; grid-row: 1 / span 1; } .track_album { grid-column: 2 / span 1; grid-row: 2 / span 1; } } .user-info { height: 100%; width: 30%; display: flex; justify-content: flex-end; align-items: center; img { height: $card-height; } p { margin: 0; margin-right: ($card-height * 0.1); padding: 0; text-align: right; } }