260 lines
4.3 KiB
CSS
260 lines
4.3 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;
|
|
}
|
|
|
|
* {
|
|
color: white;
|
|
font-family: 'Share Tech';
|
|
font-size: 1em;
|
|
margin: auto 1vmin;
|
|
}
|
|
|
|
body {
|
|
background-color: #0D111D;
|
|
background-image: url("images/bg.jpg");
|
|
background-size: cover;
|
|
background-attachment: fixed;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 5vmin;
|
|
margin: 2vmin 5vmin 5vmin 5vmin;
|
|
text-shadow: 3px 2px rgba(153, 145, 175, 0.5);
|
|
text-align: center;
|
|
}
|
|
|
|
div {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-content: center;
|
|
margin: 2vmin;
|
|
text-align: center;
|
|
column-gap: 1vmin;
|
|
}
|
|
|
|
div * {
|
|
margin: auto 1vmin;
|
|
}
|
|
|
|
fieldset {
|
|
display: grid;
|
|
grid-template-columns: 24vmin 18vmin 24vmin 18vmin;
|
|
grid-gap: 1vmin;
|
|
margin: 2vmin auto;
|
|
width: 85vmin;
|
|
justify-items: right;
|
|
align-items: baseline;
|
|
}
|
|
|
|
label {
|
|
font-size: 1em;
|
|
}
|
|
|
|
input[type="number"] {
|
|
color: black;
|
|
width: 2.5em;
|
|
}
|
|
|
|
fieldset > input {
|
|
width: 100%;
|
|
}
|
|
|
|
button {
|
|
color: black;
|
|
margin: 0.5vmin;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
font-size: 1em;
|
|
}
|
|
|
|
a:hover {
|
|
color: lightcyan;
|
|
}
|
|
|
|
#game {
|
|
position: relative;
|
|
display: none;
|
|
width: 72vmin;
|
|
grid-template-columns: 18vmin 30vmin 18vmin;
|
|
grid-gap: 3vmin;
|
|
margin: auto;
|
|
}
|
|
|
|
.minoes-table {
|
|
table-layout: fixed;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
th {
|
|
font-weight: normal;
|
|
}
|
|
|
|
th, td {
|
|
padding: 0;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: transparent;
|
|
}
|
|
|
|
#hold {
|
|
grid-column: 1;
|
|
grid-row: 1;
|
|
width: 18vmin;
|
|
height: 18vmin;
|
|
justify-self: end;
|
|
}
|
|
|
|
#matrix {
|
|
grid-column: 2;
|
|
grid-row: 1 / 3;
|
|
width: 30vmin;
|
|
height: 72vmin;
|
|
}
|
|
|
|
#next {
|
|
grid-column: 3;
|
|
grid-row: 1 / 3;
|
|
width: 18vmin;
|
|
height: 72vmin;
|
|
}
|
|
|
|
.invisible-grid > .empty-cell {
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.visible-grid > .empty-cell {
|
|
background: transparent;
|
|
border: 1px inset rgba(128, 128, 128, 0.3);
|
|
}
|
|
|
|
.mino {
|
|
border: 1px outset white;
|
|
}
|
|
|
|
.I-mino {
|
|
background: rgb(153, 255, 230);
|
|
}
|
|
|
|
.J-mino {
|
|
background: rgb(153, 204, 255);
|
|
}
|
|
|
|
.L-mino {
|
|
background: rgb(255, 204, 153);
|
|
}
|
|
|
|
.O-mino {
|
|
background: rgb(255, 255, 153);
|
|
}
|
|
|
|
.S-mino {
|
|
background: rgb(153, 255, 153);
|
|
}
|
|
|
|
.T-mino {
|
|
background: rgb(204, 153, 255);
|
|
}
|
|
|
|
.Z-mino {
|
|
background: rgb(255, 153, 153);
|
|
}
|
|
|
|
.locked-mino {
|
|
background: white;
|
|
}
|
|
|
|
.cleared-line {
|
|
background: white;
|
|
}
|
|
|
|
.trail {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.ghost {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
#stats {
|
|
grid-column: 1;
|
|
grid-row: 2;
|
|
height: 0;
|
|
width: 18vmin;
|
|
justify-self: end;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
#score {
|
|
font-weight: bold;
|
|
}
|
|
|
|
#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;
|
|
}
|
|
|
|
#settings {
|
|
display: none;
|
|
}
|
|
|
|
#settings > label {
|
|
margin: auto auto auto 0;
|
|
}
|
|
|
|
#keyboard button {
|
|
width: 100%;
|
|
}
|
|
|
|
#leaderboard {
|
|
min-width: 25%;
|
|
margin: auto;
|
|
text-align: center;
|
|
border-top: 1px solid white;
|
|
caption-side: top;
|
|
} |