mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
358 lines
4.9 KiB
SCSS
358 lines
4.9 KiB
SCSS
@use 'fonts';
|
|
@use 'responsive';
|
|
|
|
:root {
|
|
--bgColor: #2b3552;
|
|
--bgColorDarker: #1f263b;
|
|
--textColor: #fff;
|
|
--secondaryColor: #1b1b1b;
|
|
--accentColor: #e4c428;
|
|
|
|
--sponsorColor: gold;
|
|
--teamColor: #ff4848;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 7px;
|
|
height: 7px;
|
|
|
|
&-track {
|
|
background: #222;
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
&-thumb {
|
|
border-radius: 1rem;
|
|
background: #777;
|
|
}
|
|
|
|
&-corner {
|
|
background: #222;
|
|
}
|
|
}
|
|
|
|
body,
|
|
html {
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
font-family: Lato, sans-serif;
|
|
|
|
background-color: var(--bgColorDarker);
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
a {
|
|
color: white;
|
|
text-decoration: none;
|
|
|
|
transition: color 250ms;
|
|
}
|
|
|
|
select,
|
|
option,
|
|
input,
|
|
button {
|
|
font-family: Lato, sans-serif;
|
|
font-size: 1em;
|
|
}
|
|
|
|
button {
|
|
border: none;
|
|
outline: none;
|
|
background: none;
|
|
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 1em;
|
|
color: white;
|
|
|
|
&:hover {
|
|
color: var(--accentColor);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 1px solid var(--accentColor);
|
|
}
|
|
}
|
|
|
|
[data-tooltip] {
|
|
cursor: pointer;
|
|
|
|
&:hover::after,
|
|
&:focus-visible::after {
|
|
position: absolute;
|
|
|
|
content: attr(data-tooltip);
|
|
color: white;
|
|
background: black;
|
|
border-radius: 0.5em;
|
|
margin: 0 0.75em;
|
|
padding: 0.5em;
|
|
|
|
max-width: 300px;
|
|
|
|
z-index: 100;
|
|
|
|
@include responsive.smallScreen {
|
|
left: 50%;
|
|
transform: translate(-50%, 3ex);
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
[data-button-tooltip] {
|
|
position: relative;
|
|
|
|
&:hover::after,
|
|
&:focus-visible::after {
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
max-width: 300px;
|
|
|
|
top: 100%;
|
|
transform: translateY(5px);
|
|
border-radius: inherit;
|
|
|
|
content: attr(data-button-tooltip);
|
|
color: white;
|
|
background: #111;
|
|
padding: 0.5em;
|
|
z-index: 100;
|
|
}
|
|
}
|
|
|
|
.btn,
|
|
.link-btn {
|
|
padding: 0.4em 0.75em;
|
|
|
|
outline: none;
|
|
background-color: var(--secondaryColor);
|
|
border-radius: 8px;
|
|
font-weight: bold;
|
|
|
|
transition:
|
|
color 150ms,
|
|
background-color 150ms;
|
|
|
|
&:hover {
|
|
color: var(--accentColor);
|
|
}
|
|
|
|
&.btn--outline {
|
|
background: none;
|
|
font-weight: bold;
|
|
outline: 1px solid var(--accentColor);
|
|
}
|
|
|
|
&:focus-visible {
|
|
color: var(--accentColor);
|
|
outline: 1px solid white;
|
|
}
|
|
|
|
&[data-chosen='true'] {
|
|
background-color: var(--accentColor);
|
|
color: black;
|
|
|
|
box-shadow: 0 0 5px 1px var(--accentColor);
|
|
}
|
|
|
|
&[data-disabled='true'] {
|
|
user-select: none;
|
|
pointer-events: none;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
|
|
opacity: 0.75;
|
|
background-color: #2b2b2b;
|
|
}
|
|
|
|
&--image {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0.5em;
|
|
|
|
img,
|
|
svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
}
|
|
|
|
&--text {
|
|
font-weight: bold;
|
|
transition: all 250ms;
|
|
background: none;
|
|
padding: 0.25em;
|
|
border-radius: 0;
|
|
|
|
&:focus-visible {
|
|
outline: 1px solid white;
|
|
}
|
|
}
|
|
|
|
&--icon {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
padding: 0.25em;
|
|
}
|
|
}
|
|
|
|
.link-btn.router-link-exact-active {
|
|
color: var(--accentColor);
|
|
}
|
|
|
|
select,
|
|
input[type='text'],
|
|
input[type='number'] {
|
|
background: var(--bgColor);
|
|
border: 2px solid #aaa;
|
|
outline: none;
|
|
|
|
padding: 0.25em 0.35em;
|
|
height: 100%;
|
|
|
|
color: white;
|
|
font-size: 1em;
|
|
|
|
&:focus-visible {
|
|
border-color: var(--accentColor);
|
|
}
|
|
|
|
&::placeholder {
|
|
color: #aaa;
|
|
}
|
|
}
|
|
|
|
option {
|
|
color: white;
|
|
border: none;
|
|
background-color: var(--bgColor);
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.text {
|
|
&--accent {
|
|
color: var(--accentColor);
|
|
}
|
|
|
|
&--grayed {
|
|
color: #aaa;
|
|
}
|
|
}
|
|
|
|
hr {
|
|
height: 3px;
|
|
background-color: white;
|
|
outline: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.g-card {
|
|
position: fixed;
|
|
top: 1em;
|
|
left: 0;
|
|
|
|
width: 100vw;
|
|
height: 100vh;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
z-index: 200;
|
|
|
|
&_bg {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
|
|
width: 100vw;
|
|
height: 100vh;
|
|
|
|
background-color: #000000aa;
|
|
z-index: 10;
|
|
}
|
|
}
|
|
|
|
.g-choice {
|
|
input {
|
|
display: none;
|
|
}
|
|
|
|
span {
|
|
padding: 0.25em 1em;
|
|
border-radius: 0.25em;
|
|
border: 2px solid white;
|
|
margin: 0.25em;
|
|
cursor: pointer;
|
|
|
|
transition: all 100ms ease;
|
|
}
|
|
|
|
span:focus {
|
|
color: var(--accentColor);
|
|
outline: none;
|
|
}
|
|
|
|
label > input:checked + span {
|
|
color: var(--accentColor);
|
|
border-color: var(--accentColor);
|
|
}
|
|
}
|
|
|
|
// Vue Transition anims
|
|
.slide-top-anim {
|
|
&-enter-from,
|
|
&-leave-to {
|
|
transform: translateY(-100%);
|
|
}
|
|
|
|
&-enter-active,
|
|
&-leave-active {
|
|
transition: transform 100ms ease-in-out;
|
|
}
|
|
}
|
|
|
|
.slide-bottom-anim {
|
|
&-enter-from,
|
|
&-leave-to {
|
|
transform: translateY(100%);
|
|
}
|
|
|
|
&-enter-active,
|
|
&-leave-active {
|
|
transition: transform 100ms ease-in-out;
|
|
}
|
|
}
|
|
|
|
.card-appear-anim {
|
|
&-enter-from,
|
|
&-leave-to {
|
|
opacity: 0;
|
|
}
|
|
|
|
&-enter-active,
|
|
&-leave-active {
|
|
transition: all 100ms ease-in-out;
|
|
}
|
|
}
|