website/sass/css/square_box.scss
2023-05-29 13:48:42 +02:00

50 lines
832 B
SCSS

@import "defs";
.square_boxes {
display: flex;
flex: 62%;
text-align: center;
font-family: LunaSans;
gap: 45px;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
.square_box {
width: 200px;
min-height: 200px;
background: linear-gradient(-0.125turn, $blue, $violet);
}
.square_box-inner {
margin: 1px 1px 0 1px;
min-height: 199px;
background-color: white;
}
@media (prefers-color-scheme: dark) {
.square_box-inner {
color: white;
background-color: black;
}
}
.square_box-title {
display: block;
width: 100%;
padding: 16px 6px 6px 6px;
box-sizing: border-box;
font-family: Neucha;
font-size: 175%;
}
.square_box-text {
padding: 6px;
}
.square_box:hover .square_box-title, .square_box:focus .square_box-title {
background: linear-gradient(-0.125turn, $blue, $violet);
color: white;
}