mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
359 lines
4.9 KiB
SCSS
359 lines
4.9 KiB
SCSS
@import 'fonts';
|
|
@import 'variables';
|
|
@import 'responsive';
|
|
|
|
:root {
|
|
--clr-primary: #ffc014;
|
|
--clr-secondary: #2f2f2f;
|
|
|
|
--clr-bg: #4d4d4d;
|
|
--clr-bg2: #1b1b1b;
|
|
|
|
--clr-accent: #1085b3;
|
|
--clr-accent2: #ff3d5d;
|
|
|
|
--clr-skr: #ff5100;
|
|
--clr-twr: #ffbb00;
|
|
|
|
--clr-error: #fa3636;
|
|
--clr-warning: #c59429;
|
|
|
|
--clr-donator: #f7a4ff;
|
|
|
|
--no-scroll-padding: 17px;
|
|
--max-container-width: 2000px;
|
|
|
|
font-size: 16px;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: var(--no-scroll-padding);
|
|
height: var(--no-scroll-padding);
|
|
background-color: transparent;
|
|
|
|
&-track {
|
|
background-color: #333;
|
|
}
|
|
|
|
&-thumb {
|
|
background-color: #666;
|
|
}
|
|
|
|
&-corner {
|
|
background-color: #333;
|
|
}
|
|
}
|
|
|
|
body {
|
|
background: var(--clr-bg);
|
|
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'Quicksand', sans-serif;
|
|
font-weight: 500;
|
|
text-rendering: optimizeLegibility !important;
|
|
-webkit-font-smoothing: antialiased !important;
|
|
|
|
overflow-y: scroll;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
|
|
&.no-scroll {
|
|
overflow-y: hidden;
|
|
padding-right: var(--no-scroll-padding);
|
|
|
|
@include smallScreen() {
|
|
padding: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select {
|
|
border: none;
|
|
font-family: 'Quicksand', sans-serif;
|
|
font-size: 1em;
|
|
}
|
|
|
|
input {
|
|
background: none;
|
|
color: white;
|
|
font-size: 1em;
|
|
|
|
background-color: #333;
|
|
padding: 0.15em 0.5em;
|
|
|
|
outline: none;
|
|
|
|
&::placeholder {
|
|
color: #cfcfcf;
|
|
}
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
*:focus {
|
|
outline: none;
|
|
}
|
|
|
|
*:focus-visible {
|
|
outline: 1px solid $accentCol;
|
|
}
|
|
|
|
.title {
|
|
color: $accentCol;
|
|
font-weight: 600;
|
|
|
|
padding: 0.35em 0;
|
|
}
|
|
|
|
.active-indicator {
|
|
width: 7px;
|
|
height: 7px;
|
|
background-color: lightgreen;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
a:not(.a-block):not(.a-button):not(.a-row) {
|
|
display: inline-block;
|
|
|
|
transition: color 0.3s;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $accentCol;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
a.a-block {
|
|
display: block;
|
|
}
|
|
|
|
a.a-row {
|
|
display: table-row;
|
|
}
|
|
|
|
ul {
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
width: 100%;
|
|
|
|
&-spaced {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
&-column {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.text {
|
|
&--primary {
|
|
color: var(--clr-primary);
|
|
}
|
|
|
|
&--grayed {
|
|
color: #ccc;
|
|
}
|
|
|
|
&--error {
|
|
color: var(--clr-error);
|
|
}
|
|
|
|
&--donator {
|
|
color: var(--clr-donator);
|
|
text-shadow: var(--clr-donator) 0 0 10px;
|
|
}
|
|
}
|
|
|
|
button,
|
|
a.a-button {
|
|
cursor: pointer;
|
|
color: white;
|
|
background: none;
|
|
border-radius: 0.25em;
|
|
text-decoration: none;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5em;
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
transition: all 100ms ease;
|
|
|
|
&[data-disabled='true'] {
|
|
user-select: none;
|
|
pointer-events: none;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
&.btn--filled {
|
|
background-color: #1a1a1a;
|
|
|
|
&:hover {
|
|
background-color: #2a2a2a;
|
|
}
|
|
}
|
|
|
|
&.btn--action {
|
|
background-color: #424242;
|
|
border-radius: 0.25em;
|
|
font-weight: bold;
|
|
|
|
&:hover {
|
|
background-color: #424242;
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.75;
|
|
}
|
|
}
|
|
|
|
&.btn--option {
|
|
color: white;
|
|
background-color: #333;
|
|
|
|
&.checked {
|
|
color: var(--clr-primary);
|
|
font-weight: bold;
|
|
|
|
background-color: #3c3c3c;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: #555;
|
|
}
|
|
}
|
|
|
|
&.btn--image {
|
|
font-weight: bold;
|
|
padding: 0.35em 0.75em;
|
|
|
|
img {
|
|
width: 1.35em;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
|
|
.return-btn {
|
|
display: none;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
position: fixed;
|
|
right: 2.5rem;
|
|
bottom: 4rem;
|
|
|
|
z-index: 100;
|
|
|
|
width: 3.5rem;
|
|
|
|
font-size: 3rem;
|
|
|
|
background-color: #555;
|
|
outline: 3px solid #222;
|
|
color: white;
|
|
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background-color: #3c3c3c;
|
|
}
|
|
|
|
img {
|
|
width: 1.3em;
|
|
}
|
|
|
|
@include smallScreen() {
|
|
bottom: 1em;
|
|
right: 0;
|
|
left: 50%;
|
|
|
|
width: 1em;
|
|
height: 1em;
|
|
|
|
transform: translateX(-50%);
|
|
}
|
|
}
|
|
|
|
// Basic tooltip
|
|
[data-tooltip] {
|
|
cursor: help;
|
|
line-height: initial;
|
|
}
|
|
|
|
[data-tooltip]:hover::after,
|
|
[data-tooltip]:focus::after {
|
|
position: absolute;
|
|
transform: translate(0, -50%);
|
|
|
|
content: attr(data-tooltip);
|
|
color: white;
|
|
background-color: #333;
|
|
box-shadow: 0 0 5px 2px #aaa;
|
|
border-radius: 0.5em;
|
|
padding: 0.5em;
|
|
margin: 0 0.5em;
|
|
max-width: 300px;
|
|
z-index: 100;
|
|
}
|
|
|
|
.tooltip-help {
|
|
cursor: help;
|
|
}
|
|
|
|
@include smallScreen {
|
|
::-webkit-scrollbar {
|
|
width: 0.5em;
|
|
height: 0.5em;
|
|
|
|
&-track {
|
|
background-color: #222;
|
|
}
|
|
|
|
&-thumb {
|
|
background-color: #777;
|
|
}
|
|
}
|
|
|
|
[data-tooltip]:hover::after,
|
|
[data-tooltip]:focus::after {
|
|
transform: translate(-50%, 2em);
|
|
left: 50%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.g-separator {
|
|
display: block;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: #aaa;
|
|
}
|