website/sass/css/square_box.scss

85 lines
1.4 KiB
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);
}
2023-06-05 18:27:32 +02:00
.square_box-inner-bottom {
2023-05-29 13:48:42 +02:00
margin: 1px 1px 0 1px;
2023-06-06 09:45:10 +02:00
border-bottom: 1px solid white;
2023-06-05 18:27:32 +02:00
min-height: 198px;
background-color: white;
}
.square_box-inner-top {
margin: 0 1px 1px 1px;
min-height: 198px;
2023-06-06 09:45:10 +02:00
border-top: 1px solid white;
2023-06-05 18:27:32 +02:00
background-color: white;
}
.square_box-inner-right {
margin: 1px 0 1px 1px;
min-width: 198px;
min-height: 198px;
2023-06-06 09:45:10 +02:00
border-right: 1px solid white;
2023-06-05 18:27:32 +02:00
background-color: white;
}
.square_box-inner-left {
margin: 1px 1px 1px 0;
min-width: 198px;
min-height: 198px;
2023-06-06 09:45:10 +02:00
border-left: 1px solid white;
background-color: white;
}
@media (prefers-color-scheme: dark) {
.square_box-inner {
color: white;
background-color: black;
}
2023-06-06 09:45:10 +02:00
.square_box-inner-bottom {
border-bottom: 1px solid black;
}
.square_box-inner-top {
border-top: 1px solid black;
}
.square_box-inner-right {
border-right: 1px solid black;
}
.square_box-inner-left {
border-left: 1px solid 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;
}