summaryrefslogtreecommitdiff
path: root/css/overview.scss
blob: 874ae2b0d5dfa8fa747c8c4a561ab78a887fc0b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#overview {
	$cardsPerRow: 3;

	align-items:      center;
	background-color: var(--foregroundColour);
	border-radius:    $padding;
	display:          flex;
	flex-wrap:        wrap;
	gap:              $padding;
	padding:          $padding;
	width:            100%;

	a {
		--foregroundColour: var(--backgroundColour);

		align-items:      center;
		aspect-ratio:     1;
		background-color: var(--backgroundColour);
		background-size:  cover;
		border-radius:    $padding;
		display:          flex;
		flex-basis:       calc((100% - $padding * ($cardsPerRow - 1)) / $cardsPerRow);
		justify-content:  center;
		padding:          $padding;
		width:            $padding;

		@media not (prefers-reduced-motion) {
			transition:                 box-shadow 0.25s;
			transition-timing-function: steps(4);
		}

		&:hover {
			box-shadow: inset 0 0 $padding $shadowColour;
		}

		img {
			display:        block;
			pointer-events: none;
			width:          50%;
		}
	}
}