airboardgame/src/index.css

136 lines
2.6 KiB
CSS
Raw Normal View History

2020-12-11 12:05:25 +01:00
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");
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 {
2020-12-11 12:05:25 +01:00
--bg-color: #000000;
--bg-secondary-color: #121212;
--font-color: #f9fbfa;
--font-color2: #b3b3b3;
--color-darkGrey: #121212;
--color-lightGrey: #90969d;
--color-grey: #454545;
--color-primary: #db5034;
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;
2020-12-11 12:05:25 +01:00
--font-family-sans: "Roboto", sans-serif;
2020-10-16 14:52:48 +02:00
--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-12-11 12:05:25 +01:00
font-family: var(--font-family-sans);
2020-10-24 20:33:12 +02:00
}
.tabs a {
color: var(--font-color);
}
2020-11-07 14:55:46 +01:00
input::placeholder {
2020-11-09 08:41:44 +01:00
color: var(--color-lightGrey);
color: var(--color-grey);
2020-11-07 14:55:46 +01:00
}
2020-11-07 15:51:06 +01:00
2020-11-09 08:41:44 +01:00
/*input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]),
select,
textarea,
textarea[type="text"] {
border-radius: 2px;
border: none;
font-size: 1em;
transition: all 0.2s ease;
display: block;
width: 100%;
background-color: var(--bg-color);
color: var(--font-color);
}*/
2020-11-07 16:16:01 +01:00
/* Animation definition */
/* hvr-pop */
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;
}