This repository has been archived on 2025-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
Webtris/css/style.css
2020-09-28 21:15:40 +02:00

202 lines
3.4 KiB
CSS

@font-face {
font-family: 'Share Tech';
font-style: normal;
font-weight: 400;
src: local('Share Tech Regular'), local('ShareTech-Regular'), url(fonts/ShareTech.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Share Tech Mono';
font-style: normal;
font-weight: 400;
src: local('Share Tech Mono Regular'), local('ShareTechMono-Regular'), url(fonts/ShareTechMono.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
* {
font-family: 'Share Tech';
font-size: 1em;
text-align: center;
}
body {
background-color: #0D111D;
background-image: url("images/bg.jpg");
background-size: cover;
background-attachment: fixed;
}
h1 {
font-size: 5vmin;
margin: 1vmin auto;
text-shadow: 3px 2px rgba(153, 145, 175, 0.5);
text-align: center;
color: white;
}
div {
display: flex;
justify-content: center;
align-items: center;
}
fieldset {
display: grid;
grid-template-columns: 3fr 2fr 3fr 2fr;
grid-gap: 1vmin;
margin: 1vmin;
border: 1px white solid;
border-radius: 4px;
align-items: center;
}
fieldset > legend, label {
color: white;
}
fieldset > input, select, button {
width: 100%;
}
button {
width: auto;
}
#showGhostDiv {
grid-column-start: 1;
grid-column-end: 5;
width: 100%;
}
#settingsButton {
display: none;
width: auto;
margin: 2vmin;
}
#hideSettingsButton {
display: none;
width: auto;
margin: auto;
}
.minoes-table {
table-layout: fixed;
border-spacing: 0;
margin: auto;
}
tr {
height: 3vmin;
}
th, td {
font-weight: normal;
padding: 0;
border-width: 1px;
border-style: solid;
border-color: transparent;
width: 3vmin;
}
#game {
position: relative;
display: none;
width: 72vmin;
grid-template-columns: 18vmin 30vmin 18vmin;
grid-gap: 3vmin;
margin: auto;
}
#hold {
grid-column: 1;
grid-row: 1;
justify-self: end;
}
#stats {
grid-column: 1;
grid-row: 2;
height: 0;
justify-self: end;
margin: 0 auto;
}
#score {
font-weight: bold;
}
#matrix {
grid-column: 2;
grid-row: 1 / 3;
}
#message {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: rgba(255, 255, 255, 0.8);
font-size: 4vmin;
text-shadow: 1px 1px rgba(0, 0, 0, 0.8);
text-align: center;
font-weight: bold;
}
#next {
grid-column: 3;
grid-row: 1 / 3;
}
a {
text-decoration: none;
font-size: 1em;
color: white;
}
a:hover {
color: lightcyan;
}
#leaderboardLink {
display: flex;
justify-content: center;
}
#leaderboard {
min-width: 25%;
margin: auto;
text-align: center;
border-top: 1px solid white;
caption-side: top;
}
caption {
color: white;
}
.name {
font-family: 'Share Tech';
text-align: left;
font-size: 2.5vmin;
color: white;
}
.player {
font-family: 'Share Tech';
text-align: center;
font-size: 2.5vmin;
color: white;
}
.value {
font-family: 'Share Tech Mono';
text-align: right;
font-size: 2.5vmin;
color: white;
}