sbgg.jetzt/page/start/style.css

482 lines
7.5 KiB
CSS
Raw Normal View History

2023-04-22 19:29:49 +02:00
:root {
--color-bg: #21252b;
--color-bg-light: #2c313a;
--color-white: #c5cad3;
--color-gray: #828997;
--color-gray-dark: #5c6370;
--color-gray-dark-dark: #454b54;
--color-red: #e06c75;
--color-red-light: #e9969d;
--color-red-dark: #cb4d58;
--color-orange: #d19a66;
--color-orange-light: #ddb48d;
--color-orange-dark: #b9804b;
--color-yellow: #dace71;
--color-yellow-light: #e5dc9a;
--color-yellow-dark: #c4b754;
--color-green: #98c379;
--color-green-light: #b3d39c;
--color-green-dark: #7fa762;
--color-cyan: #71d6bc;
--color-cyan-light: #98e1cf;
--color-cyan-dark: #55bea4;
--color-blue: #61afef;
--color-blue-light: #90c7f4;
--color-blue-dark: #3e97e0;
--color-purple: #c678dd;
--color-purple-light: #d7a1e8;
--color-purple-dark: #af5bc8;
--theme: var(--color-green);
2023-04-24 20:22:48 +02:00
--theme-light: var(--color-green-light);
--theme-dark: var(--color-green-dark);
2023-04-22 19:29:49 +02:00
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
overflow-x: hidden;
color: var(--color-white);
background-color: var(--color-bg);
}
html {
font-size: 16px;
}
@media only screen and (max-width: 1000px) {
html {
font-size: 14px;
}
}
2023-04-22 19:29:49 +02:00
body {
min-height: 100vh;
min-height: 100dvh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 0;
font-family: "Ubuntu", sans-serif;
}
2023-04-22 20:09:44 +02:00
span {
display: block;
2023-04-22 19:29:49 +02:00
font-size: 1rem;
}
a {
text-decoration: none;
}
2023-04-24 21:16:30 +02:00
.link {
color: var(--theme);
}
.link:hover {
cursor: pointer;
text-decoration: underline;
}
2023-04-22 19:29:49 +02:00
2023-04-24 21:16:30 +02:00
span.inline {
display: inline;
}
2023-04-24 20:22:48 +02:00
.colored {
color: var(--theme);
}
.gray {
color: var(--color-gray);
}
2023-04-22 19:29:49 +02:00
/* PAGE LAYOUT */
.page-container {
flex-grow: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
.page {
2023-04-22 21:24:14 +02:00
max-width: 50vw;
2023-04-22 20:09:44 +02:00
2023-04-22 21:24:14 +02:00
padding: 6rem 2rem;
2023-04-22 19:29:49 +02:00
display: flex;
flex-direction: column;
2023-04-24 20:22:48 +02:00
gap: 6rem;
2023-04-22 19:29:49 +02:00
text-align: center;
}
@media only screen and (max-width: 1000px) {
.page {
max-width: 100vw;
2023-04-24 20:22:48 +02:00
padding: 6rem 1rem;
2023-04-22 19:29:49 +02:00
}
}
2023-04-22 20:09:44 +02:00
/* PAGE TITLE */
.page > .title {
margin: 2rem 0;
}
@media only screen and (max-width: 1000px) {
.page > .title {
margin: 0 0;
}
}
.page > .title h1, .page > .title span {
font-size: 2rem;
}
.page > .title .abolish {
margin-bottom: 1rem;
color: var(--color-gray);
}
.page > .title .introduce h1 {
display: inline;
margin: 0;
background-image: linear-gradient(to right, var(--color-red), var(--color-orange), var(--color-yellow), var(--color-green), var(--color-blue), var(--color-purple));
-webkit-background-clip: text;
color: transparent;
}
2023-04-22 19:29:49 +02:00
/* SECTIONS */
.section {
width: 100%;
}
.section > .header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
gap: 0.5rem;
color: var(--theme);
}
.section > .header .extra {
color: var(--color-gray);
}
.section > .content {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1rem 2rem;
}
/* BOX */
.box {
display: flex;
flex-direction: column;
2023-04-22 21:24:14 +02:00
align-items: center;
2023-04-22 19:29:49 +02:00
gap: 1rem;
padding: 2rem;
border-radius: 2rem;
background-color: var(--color-bg-light);
}
.box.shrink {
display: inline-flex;
}
.box.important {
border: 0.5rem solid var(--theme);
}
2023-04-24 20:22:48 +02:00
.box .title, .box .extra {
2023-04-22 19:29:49 +02:00
display: inline-flex;
flex-direction: row;
justify-content: center;
align-items: center;
2023-04-24 20:22:48 +02:00
gap: 0.5rem;
}
.box .title {
color: var(--theme);
font-size: 1.5rem;
}
.box .extra {
color: var(--color-gray);
}
/* TIMELINE */
.timeline {
display: flex;
flex-direction: column;
}
.timeline > .item {
display: flex;
flex-direction: row;
align-items: center;
2023-04-22 19:29:49 +02:00
gap: 1rem;
2023-04-24 20:22:48 +02:00
}
.timeline > .item > .connector {
align-self: stretch;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
}
.timeline > .item:not(:first-child) > .connector::before, .timeline > .item:not(:last-child) > .connector::after {
content: "";
position: absolute;
left: calc(50% - 0.25rem);
width: 0.5rem;
height: calc(50% + 0.5rem);
border-radius: 0.5rem;
background-color: var(--color-bg-light);
z-index: 0;
}
.timeline > .item > .connector::before {
top: 0;
}
.timeline > .item.done > .connector::before {
background-color: var(--theme);
}
.timeline > .item.next > .connector::before {
background-color: var(--theme);
}
.timeline > .item > .connector::after {
top: 50%;
z-index: 1 !important;
}
.timeline > .item.done > .connector::after {
background-color: var(--theme);
}
.timeline > .item > .connector > .waypoint {
padding: 1rem;
2023-04-22 19:29:49 +02:00
2023-04-22 21:24:14 +02:00
font-size: 1.5rem;
2023-04-24 20:22:48 +02:00
border-radius: 50%;
background-color: var(--color-bg-light);
z-index: 2;
}
.timeline > .item.done > .connector > .waypoint {
color: var(--color-bg);
background-color: var(--theme);
}
.timeline > .item.next > .connector > .waypoint {
background-color: var(--color-gray-dark);
}
.timeline > .item > .box {
flex-grow: 1;
align-items: flex-start;
margin: 1rem 0;
z-index: 2;
text-align: left;
}
.timeline > .item:first-child > .box {
margin: 0 0 1rem 0;
}
.timeline > .item:last-child > .box {
margin: 1rem 0 0 0;
}
@media only screen and (max-width: 1000px) {
.timeline > .item {
position: relative;
flex-direction: column;
gap: 0;
}
.timeline > .item > .connector {
align-self: center;
}
.timeline > .item:not(:last-child)::after {
content: "";
position: absolute;
left: calc(50% - 0.25rem);
top: 1rem;
width: 0.5rem;
height: 100%;
background-color: var(--color-bg-light);
z-index: 0;
}
.timeline > .item.done::after {
background-color: var(--theme);
}
.timeline > .item.done-stop::after {
background-color: var(--theme);
2023-04-24 20:22:48 +02:00
}
.timeline > .item:not(:last-child) > .box {
margin: 0 0 4rem 0;
}
.timeline > .item:last-child > .box {
margin: 0;
}
.timeline > .item > .connector > .waypoint {
border-radius: 50% 50% 0 0;
}
.timeline > .item > .box {
align-items: center;
text-align: center;
}
.timeline > .item > .box {
outline: 0.125rem solid var(--color-bg-light);
}
.timeline > .item.done > .box {
outline: 0.125rem solid var(--theme);
}
.timeline > .item.next > .box {
outline: 0.125rem solid var(--color-gray-dark);
}
}
/* BUTTONS */
.button-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1rem;
2023-04-22 19:29:49 +02:00
}
2023-04-24 20:22:48 +02:00
.button {
align-items: center;
display: inline-flex;
gap: 0.5rem;
width: fit-content;
padding: 1rem 1.5rem;
color: var(--color-white);
border-radius: 1rem;
background-color: var(--color-gray-dark-dark);
}
.button:hover {
cursor: pointer;
background-color: var(--color-gray-dark);
}
.button.primary {
color: var(--color-bg);
background-color: var(--theme);
}
.button.primary:hover {
background-color: var(--theme-dark);
}
.button .text {
display: inline-flex;
flex-flow: column;
}
2023-04-22 19:29:49 +02:00
/* FOOTER */
.footer {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
padding: 1rem;
background-color: var(--color-bg-light);
}
.footer > div {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0.5rem;
2023-04-22 20:09:44 +02:00
text-align: center;
2023-04-22 19:29:49 +02:00
}
@media only screen and (max-width: 1000px) {
.footer > div {
flex-basis: 100%;
justify-content: center !important;
}
}
.footer > div a {
font-size: 1rem;
color: var(--theme);
}
.footer > div a:hover {
text-decoration: underline;
}
.footer .delimiter {
color: var(--color-gray);
}
.footer .brand {
justify-content: flex-start;
}
.footer .legal {
justify-content: flex-end;
}
.footer .brand img {
height: 2rem;
}
.footer .brand .version {
color: var(--color-gray);
}
.footer .lang .selected {
font-weight: bold;
color: inherit;
}