website/sass/css/square_box.scss

50 lines
822 B
SCSS
Raw Normal View History

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