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

475 lines
6.4 KiB
SCSS
Raw Normal View History

2023-01-12 21:33:15 +00:00
$primary: #fea500;
2021-06-14 15:41:33 +00:00
@import "logo";
2023-01-12 21:33:15 +00:00
2021-06-14 15:41:33 +00:00
$icomoon-font-path: "../font";
@import "icons/style";
2023-01-12 21:33:15 +00:00
2021-06-14 15:41:33 +00:00
$flag-icon-path: '../img';
@import "icons/flags";
2023-01-12 21:33:15 +00:00
@import "bootstrap/scss/bootstrap-grid";
@import "bootstrap/scss/bootstrap-reboot";
@import "bootstrap/scss/bootstrap-utilities";
@import "bootstrap/scss/type";
2023-12-13 01:55:14 +00:00
@import "bootstrap/scss/buttons";
2023-01-12 21:33:15 +00:00
@import "bootstrap/scss/badge";
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/mixins/_breakpoints";
2021-04-10 20:20:57 +00:00
2020-06-01 19:44:08 +00:00
html, body {
height: 100%;
display: flex;
flex-direction: column;
}
body {
2023-12-13 01:55:14 +00:00
background-color: #222;
2024-04-01 12:13:57 +00:00
background-image: url("../img/bg.jpg");
2020-06-01 19:44:08 +00:00
color: #fff;
min-height: 100vh;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
ul {
list-style: disclosure-closed;
}
2023-12-13 01:55:14 +00:00
p {
text-align: justify;
}
2020-06-01 19:44:08 +00:00
.content {
flex: 1;
2024-03-29 17:04:38 +00:00
padding: 1.5rem 0;
}
@include media-breakpoint-up(lg) {
.content {
padding: 3rem 0;
}
2020-06-01 19:44:08 +00:00
}
.highlight {
2021-04-10 20:20:57 +00:00
color: $primary;
}
2023-12-13 01:55:14 +00:00
.fill-col-inner {
display: flex;
align-items: center;
}
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;
2023-12-13 01:55:14 +00:00
&.huge {
width: 256px;
height: 256px;
max-width: 256px;
max-height: 256px;
}
2024-03-29 02:22:57 +00:00
&.mini {
2023-12-13 01:55:14 +00:00
width: 32px;
height: 32px;
}
}
2024-03-29 02:22:57 +00:00
@include media-breakpoint-down(lg) {
2023-12-13 01:55:14 +00:00
.logo {
2024-03-29 02:22:57 +00:00
max-width: 64px;
max-height: 64px;
&.huge {
width: 128px;
height: 128px;
max-width: 128px;
max-height: 128px;
}
2023-12-13 01:55:14 +00:00
}
}
.me-profile {
display: block;
height: 256px;
width: 256px;
margin: 0 auto;
border-radius: 50%;
overflow: hidden;
2024-03-20 22:10:28 +00:00
border: 2px solid #fff;
2023-12-13 01:55:14 +00:00
img {
2023-12-20 22:46:09 +00:00
position: relative;
z-index: -1;
2023-12-13 01:55:14 +00:00
width: 100%;
height: 100%;
2021-04-09 23:09:45 +00:00
}
2020-06-01 19:44:08 +00:00
}
2024-03-29 02:22:57 +00:00
@include media-breakpoint-down(lg) {
.me-profile {
height: 128px;
width: 128px;
}
}
2020-12-06 00:23:45 +00:00
.nav {
display: flex;
2023-12-13 01:55:14 +00:00
background-color: #111;
2020-12-06 00:23:45 +00:00
justify-content: start;
flex-wrap: wrap;
2023-12-13 01:55:14 +00:00
padding: 1rem 1.5rem;
2020-12-06 00:23:45 +00:00
.toggle {
2023-12-13 01:55:14 +00:00
padding: 1rem 1.5rem;
2020-12-06 00:23:45 +00:00
display: none;
}
#menu {
display: none;
}
.items {
display: flex;
2023-12-13 01:55:14 +00:00
align-items: center;
2020-12-06 00:23:45 +00:00
2023-12-13 01:55:14 +00:00
.item {
display: flex;
}
2020-12-06 00:23:45 +00:00
}
}
2024-03-29 20:21:06 +00:00
@include media-breakpoint-up(md) {
.nav {
.i-fw {
width: unset;
}
}
}
2024-03-20 22:10:28 +00:00
@include media-breakpoint-down(md) {
2020-12-06 00:23:45 +00:00
.nav {
display: block;
padding: 0;
.toggle {
display: flex;
label:hover {
text-decoration: underline;
cursor: pointer;
}
}
2023-12-13 01:55:14 +00:00
.logo {
display: none;
}
2020-12-06 00:23:45 +00:00
.items {
display: none;
.item {
border-top: 1px solid #fff;
a {
display: block;
2023-12-13 01:55:14 +00:00
padding: .75rem 1.5rem;
2020-12-06 00:23:45 +00:00
}
}
}
input:checked ~ .items {
display: block;
}
.lang-large {
2023-12-13 01:55:14 +00:00
display: none !important;
2020-12-06 00:23:45 +00:00
}
}
}
2020-06-01 19:44:08 +00:00
.menu {
a {
color: #fff;
2023-01-12 21:33:15 +00:00
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
2020-06-01 19:44:08 +00:00
.active a {
font-weight: bold;
}
}
.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;
}
.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);
2023-12-20 22:46:09 +00:00
box-shadow: -1px 3px 5px rgba(255, 255, 255, .3);
}
.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;
2023-01-12 21:33:15 +00:00
padding: 10px 15px;
2020-06-28 17:06:04 +00:00
border-radius: 4px;
code {
background-color: initial;
padding: initial;
border-radius: initial;
}
}
2020-07-28 15:56:45 +00:00
2021-06-13 00:17:25 +00:00
.table-container {
overflow-y: auto;
}
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
}
}
2022-03-13 14:22:17 +00:00
.article-content {
img {
display: block;
margin: 0 auto 1rem;
max-width: 100%;
}
.img-gallery {
--bs-gutter-x: 1rem;
a {
display: flex;
flex-direction: column;
height: 100%;
padding-bottom: 1rem;
img {
width: 100%;
margin: 0;
}
small {
padding: .5rem;
flex-grow: 1;
background-color: $primary;
color: #000;
}
}
}
}
2023-01-12 21:33:15 +00:00
.tab-card {
margin-bottom: 2rem;
.title {
background-color: $primary;
color: #000;
font-weight: bold;
padding: 5px 10px;
border: 1px solid #fff;
border-bottom: none;
}
2023-01-13 15:24:28 +00:00
}
2023-12-13 01:55:14 +00:00
.side-banner {
float: right;
width: 30%;
margin-left: 1rem;
margin-bottom: 1rem;
}
.ossrox-logo {
max-width: 250px;
}
.tab-card.ossrox {
2023-12-20 22:46:09 +00:00
position: relative;
.link {
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
2023-12-13 01:55:14 +00:00
.title {
background-color: #006269;
color: #fff;
padding: .75rem;
text-align: center;
}
img {
2024-01-31 22:57:18 +00:00
max-width: 200px;
max-height: 30px;
2023-12-13 01:55:14 +00:00
}
}
@media (prefers-color-scheme: light) {
:root {
--bs-border-color: #000;
}
2023-12-13 01:55:14 +00:00
body {
background-color: #ddd;
background-image: url("../img/bgl.jpg");
color: #000;
}
2023-12-20 22:46:09 +00:00
a {
color: #555;
&:hover {
color: #333;
}
}
2023-12-13 01:55:14 +00:00
.me-profile {
2024-03-20 22:10:28 +00:00
border: 2px solid #000;
2023-12-13 01:55:14 +00:00
}
.nav {
2023-12-20 22:46:09 +00:00
background-color: #bbb;
2023-12-13 01:55:14 +00:00
}
.menu {
a {
color: #000;
}
}
2023-12-20 22:46:09 +00:00
.card {
background-color: #ccc;
border: 1px solid #000;
}
.card-list {
.card:last-child {
border-bottom: 1px solid #000;
}
}
.service {
.beta {
box-shadow: -1px 3px 5px rgba(0, 0, 0, .3);
}
}
table.table {
background-color: #eee;
tr:nth-child(2n) {
background-color: #0000000b;
}
}
.tab-card .title {
border: 1px solid #000;
border-bottom: none;
}
.contact-links a {
color: #000 !important;
}
}