njpma/app/static/css/partials/_layout.scss
2021-11-22 13:59:43 +01:00

125 lines
2 KiB
SCSS
Executable file

:root {
--bg-color-1: #6666ff;
--bg-color-2: #0099ff;
--bg-color-3: #ffff00;
--bg-color-4: #ff3399;
--gradient-body: linear-gradient(to right, var(--bg-color-1), var(--bg-color-2) , var(--bg-color-3), var(--bg-color-4));
--color-link: #ee0;
--spacing: 8px;
--spacing-2: calc(var(--spacing) * 2);
--container-width: 1080px;
--container-lg-width: 1380px;
}
@keyframes background_animation {
0%,100% {
background-position: 0 0;
}
50% {
background-position: 100% 0;
}
}
@keyframes text_animation {
0%,100% {
color: #ddd;
}
50% {
color: #000;
}
}
body.animated {
//background: var(--gradient-body);
//animation: background_animation 60s ease-in-out infinite;
background-size: 400% 100%;
color: #ddd;
}
body.animated-text {
//animation: text_animation 60s ease-in-out infinite;
}
body.animated.animated-text {
//animation: background_animation 60s ease-in-out infinite, text_animation 60s ease-in-out infinite;
}
body {
color: #ddd;
background-color: #051e2e;
font-family: "noto_sans", sans-serif;
font-size: 20px;
overflow-x: hidden;
}
main {
line-height: 1.2em;
}
nav {
a {
color: #fff;
}
}
@media screen and (max-width: 799px) {
.hide-mobile {
display: none;
}
}
.row {
display: flex;
margin-left: calc(var(--spacing-2) * -1);
margin-right: calc(var(--spacing-2) * -1);
}
.col {
padding-left: var(--spacing-2);
padding-right: var(--spacing-2);
}
// Animations: Fade In
@keyframes fade_in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.index {
.home {
z-index: 1000;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
.box {
margin: auto;
background: rgba(0,0,0,0.5);
padding: 16px;
border-radius: 2px;
.font-size-sm {
display: flex;
gap: 16px;
justify-content: center;
}
}
}
}