airboardgame/src/index.css

202 lines
4 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");
2021-01-30 23:17:10 +01:00
@import url(https://fonts.googleapis.com/css?family=Satisfy);
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;
2021-03-13 22:44:19 +01:00
--color-darkBlueGrey: #151a23;
2021-02-17 23:36:58 +01:00
--color-blueGrey: #19202c;
2020-12-11 12:05:25 +01:00
--color-lightGrey: #90969d;
--color-grey: #454545;
2021-03-13 22:44:19 +01:00
--color-midGrey: #2c3749;
2020-12-11 12:05:25 +01:00
--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
2021-03-20 15:44:34 +01:00
.blurry {
2021-03-20 10:08:52 +01:00
filter: blur(3px);
}
2020-10-24 20:33:12 +02:00
.button,
[type="button"],
[type="reset"],
[type="submit"],
button {
padding: 1rem 2.5rem;
color: var(--font-color);
2021-03-13 23:13:32 +01:00
background: var(--color-midGrey);
2021-03-13 22:44:19 +01:00
border-radius: 0;
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;
}
2020-12-20 15:24:37 +01:00
/*.button.clear,
[type="button"].clear,
[type="reset"].clear,
[type="submit"].clear,
button.clear {
font-weight: 300;
border-radius: 0;
color: var(--font-color2);
letter-spacing: -1px;
padding: 0;
}
.button.clear:hover,
[type="button"].clear:hover,
[type="reset"].clear:hover,
[type="submit"].clear:hover,
button.clear:hover {
color: var(--font-color);
border-bottom: 1px solid var(--color-primary);
}*/
2020-10-24 20:33:12 +02:00
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
2021-03-20 15:44:34 +01:00
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="color"]):not([type="button"]):not([type="reset"]),
2020-11-09 08:41:44 +01:00
select,
textarea,
textarea[type="text"] {
border-radius: 2px;
2021-03-20 15:44:34 +01:00
background-color: var(--color-lightGrey);
color: var(--bg-secondary-color);
}
2020-11-09 08:41:44 +01:00
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;
}
/* Curl Top Right */
.hvr-curl-top-right {
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);
position: relative;
}
.hvr-curl-top-right:before {
pointer-events: none;
position: absolute;
2021-01-15 21:21:19 +01:00
content: "";
height: 0;
width: 0;
top: 0;
right: 0;
2021-01-15 21:21:19 +01:00
background: linear-gradient(
225deg,
#222222 42%,
white 45%,
#aaa 50%,
#ccc 56%,
white 80%
);
box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.4);
-webkit-transition-duration: 0.3s;
transition-duration: 0.3s;
-webkit-transition-property: width, height;
transition-property: width, height;
z-index: 5;
opacity: 0.5;
}
2021-01-15 21:21:19 +01:00
.hvr-curl-top-right:hover:before,
.hvr-curl-top-right:focus:before,
.hvr-curl-top-right:active:before {
width: 7px;
height: 7px;
2021-01-15 21:21:19 +01:00
}