airboardgame/src/index.css

154 lines
3.1 KiB
CSS
Raw Normal View History

2020-10-24 20:33:12 +02:00
@import url("https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;500;700;800&display=block");
2020-10-18 22:15:38 +02:00
body {
margin: 0;
2020-06-27 18:58:12 +02:00
padding: 0;
}
2020-10-16 14:52:48 +02:00
:root {
--bg-color: #2a2a2aff;
2020-10-24 20:33:12 +02:00
--bg-secondary-color: #404040ff;
2020-10-16 14:52:48 +02:00
--font-color: #f9fbfaff;
2020-10-18 22:15:38 +02:00
--color-darkGrey: #2a2a2aff;
--color-lightGrey: #888886ff;
2020-10-16 14:52:48 +02:00
--color-grey: #404040ff;
--color-primary: #db5034ff;
2020-10-17 22:23:43 +02:00
--color-secondary: #00a698ff;
2020-10-16 14:52:48 +02:00
--color-error: #d43939;
--color-success: #28bd14;
--grid-maxWidth: 120rem;
--grid-gutter: 2rem;
--font-size: 1.6rem;
--font-family-sans: sans-serif;
--font-family-mono: monaco, "Consolas", "Lucida Console", monospace;
}
2020-10-18 22:15:38 +02:00
2020-10-24 20:33:12 +02:00
.button,
[type="button"],
[type="reset"],
[type="submit"],
button {
padding: 1rem 2.5rem;
color: var(--font-color);
2020-10-24 21:25:36 +02:00
background: var(--color-lightGrey);
2020-10-18 22:15:38 +02:00
}
2020-10-24 20:33:12 +02:00
.button:hover,
[type="button"]:hover,
[type="reset"]:hover,
[type="submit"]:hover,
button:hover {
filter: brightness(125%);
opacity: 1;
}
a:hover:not(.button) {
filter: brightness(125%);
opacity: 1;
}
2020-10-18 22:15:38 +02:00
2020-10-24 20:33:12 +02:00
h1,
h2,
h3,
h4,
h5 {
2020-10-18 22:15:38 +02:00
font-family: "Merriweather Sans", sans-serif;
2020-10-24 20:33:12 +02:00
}
.tabs a {
color: var(--font-color);
}
2020-11-07 14:55:46 +01:00
input::placeholder {
color: #2d2f33;
}
2020-11-07 15:51:06 +01:00
@keyframes hvr-pop {
0% {
transform: scale(3);
}
}
.hvr-pop {
display: inline-block;
vertical-align: middle;
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-pop {
animation-name: hvr-pop;
animation-duration: 0.3s;
animation-timing-function: linear;
animation-iteration-count: 1;
}
/* Wobble Horizontal */
@-webkit-keyframes hvr-wobble-horizontal {
16.65% {
-webkit-transform: translateX(8px);
transform: translateX(8px);
}
33.3% {
-webkit-transform: translateX(-6px);
transform: translateX(-6px);
}
49.95% {
-webkit-transform: translateX(4px);
transform: translateX(4px);
}
66.6% {
-webkit-transform: translateX(-2px);
transform: translateX(-2px);
}
83.25% {
-webkit-transform: translateX(1px);
transform: translateX(1px);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@keyframes hvr-wobble-horizontal {
16.65% {
-webkit-transform: translateX(8px);
transform: translateX(8px);
}
33.3% {
-webkit-transform: translateX(-6px);
transform: translateX(-6px);
}
49.95% {
-webkit-transform: translateX(4px);
transform: translateX(4px);
}
66.6% {
-webkit-transform: translateX(-2px);
transform: translateX(-2px);
}
83.25% {
-webkit-transform: translateX(1px);
transform: translateX(1px);
}
100% {
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
.hvr-wobble-horizontal {
display: inline-block;
vertical-align: middle;
-webkit-transform: perspective(1px) translateZ(0);
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-wobble-horizontal {
-webkit-animation-name: hvr-wobble-horizontal;
animation-name: hvr-wobble-horizontal;
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
}