Files
stacjownik/src/styles/global.scss
T

279 lines
3.8 KiB
SCSS

:root {
--clr-primary: #ffc014;
--clr-secondary: #2f2f2f;
--clr-bg: #333;
--clr-accent: #1085b3;
--clr-accent2: #ff3d5d;
--clr-skr: #ff5100;
--clr-twr: #ffbb00;
--clr-error: #df3e3e;
--clr-warning: #c59429;
}
html {
scroll-behavior: smooth;
width: 100vw;
}
body {
width: 100%;
margin: 0;
// font-family: "Open Sans", sans-serif;
font-family: "Quicksand", sans-serif;
overflow-x: hidden;
}
:root {
font-size: 16px;
}
::-webkit-scrollbar {
width: 0.5rem;
height: 0.5rem;
&-track {
background: #222;
}
&-thumb {
border-radius: 1rem;
background: #777;
}
}
.g-tooltip {
position: relative;
display: inline-block;
vertical-align: middle;
.content {
position: absolute;
left: 50%;
top: 0;
z-index: 100;
transform: translate(-50%, -120%);
visibility: hidden;
opacity: 0;
min-width: 250px;
background-color: gray;
text-align: center;
border-radius: .5em;
transition: opacity 0.3s;
padding: 0.25em;
&::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: gray transparent transparent transparent;
}
@include smallScreen() {
right: 0;
left: 0;
&::after {
left: 75%;
}
}
}
&:hover > .content {
// @include smallScreen() {
// display: none;
// }
visibility: visible;
opacity: 1;
}
}
button,
input,
select {
// font-family: "Open Sans", sans-serif;
border: none;
font-family: "Quicksand", sans-serif;
font-size: 1em;
}
input {
border: 1px solid white;
background: none;
color: white;
font-size: 1em;
padding: 0.15em;
max-width: 55px;
outline: none;
&::placeholder {
color: #bebebe;
}
}
*,
*::before,
*::after {
box-sizing: border-box;
padding: 0;
margin: 0;
-webkit-tap-highlight-color: transparent;
}
.title {
color: $accentCol;
font-weight: 600;
padding: .35em 0;
}
a {
display: inline-block;
color: white;
text-decoration: none;
transition: color 0.3s;
&:hover,
&:focus {
color: $accentCol;
border: none;
outline: 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;
}
}
.btn {
background: none;
cursor: pointer;
font-size: 1em;
&--text {
color: white;
transition: color 0.3s;
&:hover, &:focus {
color: $accentCol;
}
&.checked {
color: var(--clr-primary);
font-weight: bold;
}
}
&--image {
color: white;
transition: color 0.3s;
}
&--option {
cursor: pointer;
color: white;
background-color: #333;
border-radius: 0.25em;
padding: 0.25em 0.5em;
&:hover {
background-color: #3c3c3c;
}
&.checked {
color: var(--clr-primary);
font-weight: bold;
background-color: #3c3c3c;
}
}
}
.return-btn {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
right: 0;
bottom: 0;
z-index: 100;
margin: 0 1em 1em 0;
width: 2em;
height: 2em;
font-size: 1.7em;
background-color: #333;
color: white;
border-radius: 50%;
cursor: pointer;
&:hover {
background-color: #3c3c3c;
}
img {
width: 1.3em;
}
}