Files
stacjownik/src/styles/global.scss
T
2024-05-05 13:34:43 +02:00

321 lines
4.3 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: 1700px;
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%;
margin-left: 10px;
}
a {
display: inline-block;
color: white;
text-decoration: none;
transition: color 0.3s;
&:hover,
&:focus {
color: $accentCol;
border: none;
}
}
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;
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;
&:hover {
background-color: #555;
}
}
&.btn--option {
color: white;
background-color: #333;
&.checked {
color: var(--clr-primary);
font-weight: bold;
background-color: #3c3c3c;
}
}
&.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%);
}
}
@include smallScreen {
::-webkit-scrollbar {
width: 0.5em;
height: 0.5em;
&-track {
background-color: #222;
}
&-thumb {
background-color: #777;
}
}
}
// Basic tooltip
[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
position: absolute;
transform: translate(10px, -50%);
content: attr(data-tooltip);
color: white;
background-color: #171717;
border-radius: 0.5em;
padding: 0.5em;
margin: 0 0.25em;
max-width: 300px;
z-index: 100;
}
[data-tooltip] {
cursor: help;
}