kspace-bludit-theme/scss/custom/_global.scss

309 lines
5.3 KiB
SCSS
Raw Permalink Normal View History

2024-04-10 20:58:16 +02:00
@mixin li-no-margin() {
li {
margin: 0;
}
}
@mixin container-big() {
padding-left: $lineheight;
padding-right: $lineheight;
2024-06-10 21:44:34 +02:00
max-width: 800px;
2024-04-10 20:58:16 +02:00
margin:auto;
2024-06-10 21:44:34 +02:00
@include lg() {
max-width: $container-size;
}
@include xlbis() {
max-width: $container-size-large;
}
2024-04-10 20:58:16 +02:00
}
.no-pills {
list-style:none;
}
.align {
&-center {text-align: center;}
&-left {text-align: left;}
&-right {text-align: right;}
}
#description {
display:grid;
grid-template-columns: 1fr;
grid-template-areas:
"title"
"illustration"
"content";
@include xl() {
grid-template-columns: 400px auto;
grid-template-areas:
"title title"
"illustration content";
}
}
#desc-title {
grid-area: title;
}
#description-content {
grid-area:content;
}
.illustration {
display:block;
margin:auto;
grid-area:illustration;
max-width:100%;
height:auto;
@include xl() {
padding-bottom: 0;
max-width: 530px;
margin-bottom: 1.5rem;
position: relative;
top: 0px;
right: 64px;
}
}
.align-centered-block {
text-align:center;
padding:1rem;
}
#page-header {
background: get-color("skyblue") url("data:image/svg+xml,%3Csvg width='800' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='420' cy='440' r='300' fill='%23FDF7E7' /%3E%3Ccircle cx='700' cy='510' r='300' fill='%23FDF7E7' /%3E%3Ccircle cx='-100' cy='510' r='300' fill='%23FDF7E7' /%3E%3Ccircle cx='150' cy='380' r='150' fill='%23FDF7E7' /%3E%3C/svg%3E");
border-top: 6px solid get-color("dark");
background-position: bottom center;
background-repeat: repeat-x;
margin-bottom:0;
padding-bottom:5rem;
.fa {
font-size: 1rem;
}
@include sm() {
padding-bottom: 0;
margin-bottom: 1.5rem;
}
}
header h1 {
border-style:none !important;
font-weight: $fontweight_hyper;
font-size:5.4em;
font-style:oblique;
padding:0rem;
line-height: 1rem;
max-width: $container-size;
margin: auto;
text-align:center;
@include xl() {
text-align: left;
}
2024-06-10 21:44:34 +02:00
@include xlbis() {
max-width: $container-size-large;
}
2024-04-10 20:58:16 +02:00
img {
max-width: 560px;
height: auto;
margin-top:0rem;
width: 100%;
@include xl() {
position: relative;
left:-4rem;
}
z-index:0;
}
a, a:visited, a:hover {
background-color:transparent;
outline-color:white;
display: block;
}
}
.osd {
background-color:rgba(0,0,0,0.3);
}
.navbar {
border-left: 0;
border-right: 0;
padding: 0.75rem;
color: $color-font-light;
a {
color: $color-font-light;
}
@include li-no-margin();
}
.categories {
font-weight:800;
font-size:0.8rem;
}
.dropdown-menu {
box-shadow: $narrow-shadow, $inset-shadow;
}
2024-06-10 21:44:34 +02:00
.container, .container-big {
2024-04-10 20:58:16 +02:00
@include container-big();
}
.container-blog {
@include container-big();
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
row-gap: $lineheight;
column-gap: 1.5rem;
grid-template-areas:
"main"
"side";
@include lg() {
2024-06-10 21:44:34 +02:00
grid-template-columns: auto 280px;
2024-04-10 20:58:16 +02:00
grid-template-areas: "main side";
}
2024-06-10 21:44:34 +02:00
@include xxl() {
grid-template-columns: auto 320px;
}
2024-04-10 20:58:16 +02:00
}
.grid-2-elements {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
row-gap: $lineheight;
column-gap: 1.5rem;
@include lg() {
grid-template-columns: 1fr 1fr;
}
}
.fullwidth {
grid-column: span 2;
}
.sidebar {
grid-area: side;
}
ul.tag-list {
display:flex;
padding-bottom:0;
overflow: hidden;
height:auto;
flex-wrap: wrap;
li {
list-style: none;
margin:3px;
}
}
.container-preview {
@include container-big();
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto;
row-gap: $lineheight;
column-gap: 3rem;
grid-template-areas:
"main"
"side";
@include lg() {
grid-template-columns: 360px auto;
grid-template-areas: "side main";
}
}
.container-onecolumn {
max-width:1280px;
margin: auto;
padding-bottom: $lineheight;
}
$color-footer-back: get-color("dark");
$color-footer-text: get-color("light");
body {
background-color: $color-background;
}
footer {
padding-bottom:1.5rem;
padding-top: 1.5rem;
.columns {
@include md() {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: $lineheight;
}
.col {
margin-bottom: $lineheight;
}
}
}
.home-toast {
max-width:800px;
width:100%;
margin:auto;
}
ul.social {
font-size: 1.5em;
padding-bottom: 1.5em;
margin: auto;
text-align: center;
display: flex;
justify-content: center;
li {
margin: 0;
list-style: none;
line-height: 1;
a,
a:visited {
color: $color-font-light;
background-color: var(--accent-color);
box-shadow: $btn-shadow;
padding: 0.3em;
width: 3rem;
aspect-ratio: 1;
display:flex;
align-items: center;
justify-content: center;
text-decoration: none;
border-radius: 100%;
line-height: 1;
margin:0.33rem;
&:hover {
background-color: var(--accent-color-hover);
}
}
}
}
iframe {
width: 100%;
height: 428px;
border:none;
}