sp-codes.de/src/scss/main.scss

287 lines
4.3 KiB
SCSS
Raw Normal View History

2020-07-27 15:41:08 +00:00
@import "node_modules/bootstrap/scss/bootstrap-grid";
@import "node_modules/bootstrap/scss/bootstrap-reboot";
@import "node_modules/bootstrap/scss/utilities/align";
@import "node_modules/bootstrap/scss/utilities/spacing";
@import "node_modules/bootstrap/scss/utilities/display";
@import "node_modules/bootstrap/scss/utilities/text";
@import "node_modules/bootstrap/scss/utilities/float";
2020-12-06 00:23:45 +00:00
@import "node_modules/bootstrap/scss/functions";
@import "node_modules/bootstrap/scss/variables";
@import "node_modules/bootstrap/scss/mixins/_breakpoints";
2020-06-01 19:44:08 +00:00
$fa-font-path: "../font";
2020-07-27 15:41:08 +00:00
@import "node_modules/@fortawesome/fontawesome-free/scss/fontawesome";
@import "node_modules/@fortawesome/fontawesome-free/scss/solid";
@import "node_modules/@fortawesome/fontawesome-free/scss/brands";
@import "node_modules/@fortawesome/fontawesome-free/scss/regular";
2020-06-01 19:44:08 +00:00
$flag-icon-rect-path: '';
2020-07-27 15:41:08 +00:00
@import "node_modules/flag-icon-css/sass/flag-icon";
2020-06-01 19:44:08 +00:00
2021-04-10 20:20:57 +00:00
$primary: #fea500;
$primary_dark: #e5a52e;
2020-06-01 19:44:08 +00:00
html, body {
height: 100%;
display: flex;
flex-direction: column;
}
body {
background-image: url("../img/bg.png");
color: #fff;
2021-04-10 20:20:57 +00:00
font-weight: 300;
2020-06-01 19:44:08 +00:00
min-height: 100vh;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
ul {
list-style: disclosure-closed;
}
2020-06-01 19:44:08 +00:00
.content {
flex: 1;
padding: 2%;
}
.highlight {
2021-04-10 20:20:57 +00:00
color: $primary;
}
.text-foreground {
color: #fff;
}
a {
2021-04-10 20:20:57 +00:00
color: $primary;
&:hover {
2021-04-10 20:20:57 +00:00
color: $primary_dark;
}
}
2020-06-01 19:44:08 +00:00
.logo {
display: block;
margin: 0 auto;
2021-04-09 23:09:45 +00:00
max-width: 128px;
max-height: 128px;
transition: transform .5s ease-in-out;
&:hover {
transform: rotate(360deg);
}
2020-06-01 19:44:08 +00:00
}
2020-12-06 00:23:45 +00:00
.nav {
display: flex;
justify-content: start;
flex-wrap: wrap;
padding: .5rem;
.toggle {
padding: .5rem;
display: none;
}
#menu {
display: none;
}
.items {
display: flex;
}
.lang-large {
display: flex;
}
}
@include media-breakpoint-down(xs) {
.nav {
display: block;
padding: 0;
.toggle {
display: flex;
label:hover {
text-decoration: underline;
cursor: pointer;
}
}
.items {
display: none;
.item {
border-top: 1px solid #fff;
a {
display: block;
padding: 0.5rem;
}
}
}
input:checked ~ .items {
display: block;
}
.lang-large {
display: none;
}
}
}
2020-06-01 19:44:08 +00:00
.menu {
a {
color: #fff;
}
2020-06-01 19:44:08 +00:00
.active a {
font-weight: bold;
}
}
.border-top {
border-top: 1px solid #fff;
}
2020-06-29 20:10:02 +00:00
.border-bottom {
border-bottom: 1px solid #fff;
2020-06-29 20:10:02 +00:00
}
.heading {
text-align: center;
2020-06-01 19:44:08 +00:00
a {
color: #fff;
}
}
2020-06-01 19:44:08 +00:00
.flex-grow {
flex: 1;
}
.card {
2021-04-10 20:20:57 +00:00
background-color: #111;
border: 1px solid #fff;
padding: 1rem;
}
2021-01-11 22:50:15 +00:00
.card-list {
margin-bottom: 1rem;
.card {
border-bottom: none;
}
.card:last-child {
border-bottom: 1px solid #fff;
}
}
.service {
position: relative;
height: 100%;
padding: 0;
.link {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
2021-04-10 20:20:57 +00:00
color: $primary !important;
&[href]:hover {
2021-04-10 20:20:57 +00:00
color: $primary_dark !important;
}
}
.beta {
position: absolute;
top: 0;
2020-12-06 00:23:45 +00:00
right: -1rem;
font-weight: bold;
2021-04-10 20:20:57 +00:00
background-color: $primary;
color: #000;
padding: .5rem 1rem;
border-radius: 10px;
transform: rotate(20deg);
box-shadow: -1px 8px 5px rgba(0, 0, 0, .7);
}
.inner {
position: relative;
pointer-events: none;
z-index: 1;
padding: 1rem;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
2020-06-21 20:51:33 +00:00
height: 100%;
a {
pointer-events: all;
}
}
&.flat {
.inner {
flex-direction: row;
text-decoration: none;
h2 {
margin-left: 0.5rem;
}
}
}
}
2020-06-18 20:23:41 +00:00
.contact-links a {
2021-04-10 20:20:57 +00:00
color: #fff !important;
}
2020-06-21 20:51:33 +00:00
code {
2021-04-10 20:20:57 +00:00
background-color: $primary;
color: #000;
padding: 1px 3px;
border-radius: 4px;
}
2020-06-28 17:06:04 +00:00
pre {
2021-04-10 20:20:57 +00:00
background-color: $primary;
color: #000;
2020-06-28 17:06:04 +00:00
padding: 1px 3px;
border-radius: 4px;
code {
background-color: initial;
padding: initial;
border-radius: initial;
}
}
2020-07-28 15:56:45 +00:00
@media (max-width: 767.98px) {
.logo {
2021-04-10 02:46:01 +00:00
max-width: 96px;
max-height: 96px;
2020-07-28 15:56:45 +00:00
}
}
table.table {
width: 100%;
margin-bottom: 16px;
background-color: #111;
tr:nth-child(2n) {
background-color: #ffffff0b;
}
td, th {
padding: 6px 13px;
border: 1px solid #444;
2020-07-28 15:56:45 +00:00
}
}