diff --git a/css/style.css b/css/style.css index 8451e70..3a57b13 100644 --- a/css/style.css +++ b/css/style.css @@ -78,6 +78,10 @@ button { margin: 0.5vmin; } +select { + color:black; +} + a { text-decoration: none; font-size: 1em; @@ -110,6 +114,8 @@ th, td { border-width: 1px; border-style: solid; border-color: transparent; + height: 2vmin; + width: 2vmin; } #hold { @@ -134,66 +140,6 @@ th, td { 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; @@ -260,6 +206,11 @@ th, td { width: 100%; } +#themePreview { + width: 18vmin; + height: 18vmin; +} + #leaderboard { min-width: 25%; margin: auto; diff --git a/css/themes/light-relief.css b/css/themes/light-relief.css new file mode 100644 index 0000000..e8e8674 --- /dev/null +++ b/css/themes/light-relief.css @@ -0,0 +1,60 @@ +.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; + border-radius: 0vmin; +} + +.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.2); +} + +.ghost { + background: rgba(255, 255, 255, 0.4); + border: 1px solid rgba(255, 255, 255, 0.4); +} diff --git a/css/themes/tetris-effect.css b/css/themes/tetris-effect.css new file mode 100644 index 0000000..89293c4 --- /dev/null +++ b/css/themes/tetris-effect.css @@ -0,0 +1,35 @@ +.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, .I-mino, .J-mino, .L-mino, .O-mino, .S-mino, .T-mino, .Z-mino { + background: rgba(127, 229, 255, 0.3); + border: 1px solid rgba(127, 229, 255, 0.7); + border-radius: 0.3vmin; +} + +.locked-mino { + background: rgba(242, 255, 255, 0.5); +} + +.cleared-line { + background: white; +} + +.trail { + background: rgba(255, 255, 255, 0.2); + border: 1px solid rgba(255, 255, 255, 0.2); + border-radius: 0.3vmin; +} + +.ghost { + background: rgba(255, 255, 255, 0.2); + border: 1px solid rgba(255, 255, 255, 0.4); + border-radius: 0.3vmin; +} diff --git a/index.php b/index.php index 1d4f405..feab519 100644 --- a/index.php +++ b/index.php @@ -74,10 +74,21 @@ - +
+ + +