airboardgame/src/index.css

117 lines
2.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 */
@keyframes hvr-wobble-horizontal {
16.65% {
transform: translateX(8px);
}
33.3% {
transform: translateX(-6px);
}
49.95% {
transform: translateX(4px);
}
66.6% {
transform: translateX(-2px);
}
83.25% {
transform: translateX(1px);
}
100% {
transform: translateX(0);
}
}
.hvr-wobble-horizontal {
display: inline-block;
vertical-align: middle;
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.hvr-wobble-horizontal {
animation-name: hvr-wobble-horizontal;
2020-11-07 16:07:46 +01:00
animation-duration: 0.5s;
2020-11-07 15:51:06 +01:00
animation-timing-function: ease-in-out;
animation-iteration-count: 1;
}