website/sass/css/square_box.scss

50 lines
832 B
SCSS
Raw Normal View History

2023-05-04 12:31:51 +02:00
@import "defs";
2023-04-29 00:28:54 +02:00
.square_boxes {
display: flex;
flex: 62%;
text-align: center;
font-family: LunaSans;
gap: 45px;
2023-04-29 00:28:54 +02:00
align-items: center;
justify-content: center;
2023-05-04 12:31:51 +02:00
flex-wrap: wrap;
2023-04-29 00:28:54 +02:00
}
.square_box {
2023-05-18 18:35:28 +02:00
width: 200px;
min-height: 200px;
2023-05-04 12:31:51 +02:00
background: linear-gradient(-0.125turn, $blue, $violet);
}
.square_box-inner {
2023-05-29 13:48:42 +02:00
margin: 1px 1px 0 1px;
min-height: 199px;
background-color: white;
}
@media (prefers-color-scheme: dark) {
.square_box-inner {
color: white;
background-color: black;
}
2023-05-04 12:31:51 +02:00
}
.square_box-title {
display: block;
width: 100%;
padding: 16px 6px 6px 6px;
box-sizing: border-box;
2023-05-04 12:31:51 +02:00
font-family: Neucha;
font-size: 175%;
2023-04-29 00:28:54 +02:00
}
.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;
}