retro style

This commit is contained in:
Adrien MALINGREY 2023-04-25 02:34:54 +02:00
parent 9baf03fa7e
commit cb86833e14
13 changed files with 43 additions and 85 deletions

View File

@ -82,10 +82,10 @@
} }
.locked.mino { .locked.mino {
filter: saturate(50%) brightness(200%) filter: saturate(50%) brightness(200%);
} }
.ghost.mino { .ghost.mino {
opacity: 20%; opacity: 20%;
filter: brightness(200%) filter: brightness(200%);
} }

View File

@ -1,118 +1,75 @@
:root { :root {
--g0: #062807; --cell-side: 20px;
--g1: #1f5b1c; }
--g2: #83b70b;
--g3: #a3d30d;
--bs-body-font-family: monospace; @font-face {
font-family: "Early GameBoy";
src: url("retro/Early GameBoy.ttf");
} }
body { body {
background: #7b787f; background-image: url("retro/dark-bg.png");
font-family: monospace; }
#statsTable,
.card,
#messagesSpan {
font-family: "Early GameBoy", monospace;
color: #3C5819;
} }
.card { .card {
background-color: var(--g3); background: #808302;
border-radius: 0;
border-image-source: url("retro/border.png");
border-image-slice: 15;
border-image-width: 15px;
border-image-repeat: repeat;
border-image-outset: 15px;
margin: 15px !important;
box-shadow: unset;
} }
.card, .card-header {
table, background: #808302;
#messagesSpan {
color: var(--g0) !important;
} }
td:not(.mino) { td {
border: 0; border: 0 !important;
}
tr.matrix td:not(.mino) {
border: 0;
}
.mino {
position: relative;
border: 2px solid var(--g0);
}
.mino::after {
position: absolute;
content: " ";
} }
.I.mino { .I.mino {
background-color: var(--g2); background-image: url("retro/I-mino.png")
} }
.J.mino { .J.mino {
background-color: var(--g2); background-image: url("retro/J-mino.png")
}
.J.mino::after {
top: 5px;
left: 5px;
width: 11px;
height: 11px;
border: 2px solid var(--g0);
} }
.L.mino { .L.mino {
background-color: var(--g1); background-image: url("retro/L-mino.png")
} }
.O.mino { .O.mino {
background-color: var(--g3); background-image: url("retro/O-mino.png")
}
.O.mino::after {
top: 3px;
left: 3px;
width: 15px;
height: 15px;
background-color: var(--g0);
} }
.S.mino { .S.mino {
background-color: var(--g1); background-image: url("retro/S-mino.png")
}
.S.mino::after {
top: 5px;
left: 5px;
width: 11px;
height: 11px;
border: 2px solid var(--g0);
} }
.T.mino { .T.mino {
background-color: var(--g2); background-image: url("retro/T-mino.png")
}
.T.mino::after {
top: 5px;
left: 5px;
width: 11px;
height: 11px;
border: 2px solid;
border-top-color: var(--g3);
border-left-color: var(--g3);
border-right-color: var(--g0);
border-bottom-color: var(--g0);
} }
.Z.mino { .Z.mino {
background-color: var(--g2); background-image: url("retro/Z-mino.png")
}
.Z.mino::after {
top: 5px;
left: 5px;
width: 11px;
height: 11px;
background-color: var(--g0);
} }
.locked.mino { .locked.mino {
background-color: var(--g2); filter: saturate(60%) brightness(200%);
border-color: var(--g3); }
.ghost.mino {
opacity: 50%;
} }

BIN
css/retro/Early GameBoy.ttf Normal file

Binary file not shown.

BIN
css/retro/I-mino.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
css/retro/J-mino.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
css/retro/L-mino.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

BIN
css/retro/O-mino.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
css/retro/S-mino.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
css/retro/T-mino.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
css/retro/Z-mino.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
css/retro/border.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
css/retro/dark-bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 999 B

View File

@ -10,6 +10,7 @@
<link href="css/classic.css" rel="stylesheet" title="Classique"> <link href="css/classic.css" rel="stylesheet" title="Classique">
<link href="css/electro.css" rel="alternate stylesheet" title="Électro"> <link href="css/electro.css" rel="alternate stylesheet" title="Électro">
<link href="css/pop.css" rel="alternate stylesheet" title="Pop"> <link href="css/pop.css" rel="alternate stylesheet" title="Pop">
<link href="css/retro.css" rel="alternate stylesheet" title="Rétro">
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png">
@ -122,7 +123,7 @@
</table> </table>
</div> </div>
</div> </div>
<div class="card w-100"> <div class="card">
<table id="statsTable" class="table mb-0 align-middle"> <table id="statsTable" class="table mb-0 align-middle">
<tr><td>Score</td><th id="scoreCell" class="text-end">0</th></tr> <tr><td>Score</td><th id="scoreCell" class="text-end">0</th></tr>
<tr><td>Meilleur score</td><th id="highScoreCell" class="text-end"> <tr><td>Meilleur score</td><th id="highScoreCell" class="text-end">