diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-01 10:13:29 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-01 10:13:29 +0100 |
| commit | ea22cf13c1d2c09cf8102e8fd4277528a2a62455 (patch) | |
| tree | 3fa5f1bd329488ac2a63986a446073052cb897dc /utils/minesweeper/style.css | |
| parent | b4ef14a7e010c1b468928d29a981fdf6ba700563 (diff) | |
| download | cacharle.xyz-ea22cf13c1d2c09cf8102e8fd4277528a2a62455.tar.gz cacharle.xyz-ea22cf13c1d2c09cf8102e8fd4277528a2a62455.tar.bz2 cacharle.xyz-ea22cf13c1d2c09cf8102e8fd4277528a2a62455.zip | |
Added timer and reset when mine hit
Diffstat (limited to 'utils/minesweeper/style.css')
| -rw-r--r-- | utils/minesweeper/style.css | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/utils/minesweeper/style.css b/utils/minesweeper/style.css new file mode 100644 index 0000000..b9c6c1c --- /dev/null +++ b/utils/minesweeper/style.css @@ -0,0 +1,93 @@ +@font-face { + font-family: "Digital-7"; + src: url("digital-7.ttf"); +} + +h1 { + text-align: center; +} + +td { + padding: 0px; +} + +table { + margin: auto; + margin-top: 0; + margin-bottom: 5%; + border-collapse: collapse; + border-spacing: 0px; +} + +table td { + width: 2.5em; + height: 2.5em; +} + +table button { + display: block; + background: lightgrey; + margin: 0; + width: 100%; + height: 100%; + text-align: center; + font-size: 1.6em; + border-width: 6px; + border-style: outset; + border-radius: 0px; + border-color: grey; +} + +table button.visited { + background: lightgrey; + border-style: solid; + border-width: 1px; +} + +button { + font-weight: bold; +} + +label { + width: 15%; + text-align: right; +} + +input { + width: 45%; + margin-left: 10px; +} + +#minesweeper-settings div { + display: flex; + justify-content: center; + align-items: center; + margin-bottom: 10px; +} + +#minesweeper-game-info div { + display: flex; + justify-content: space-around; + margin: 0 30%; +} + +#minesweeper-stop, +#minesweeper-timer { + font-size: 2em; + text-transform: uppercase; +} + +#minesweeper-timer { + min-width: 100px; + font-family: "Digital-7"; + font-size: 3em; + display: block; + font-weight: bolder; + text-align: center; + background: black; + border: 2px; + border-color: white; + border-radius: 3px; + padding: 5px 10px; + margin: 0 !important; +} |
