summaryrefslogblamecommitdiff
path: root/css/overview.scss
blob: b9429bdd44ca81085c12f169a5f455bd469ee49b (plain) (tree)
1
2
3
4
5
6
7
8
9
           
                        
 
                                                  
                                             



                                   
                               



                                                            
                                                      



                                                          
                                                     


                                                                                              










                                                                     
                                       
                                     


                 
#overview {
	$cardsPerRow: 4;

	background-color: var(--foregroundColour);
	border-radius:    calc($padding / 2);
	display:          flex;
	flex-wrap:        wrap;
	gap:              $padding;
	padding:          $padding;
	user-select:      none;
	width:            100%;

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

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

		@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;
			width:   50%;
		}
	}
}