From ea22cf13c1d2c09cf8102e8fd4277528a2a62455 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 1 Nov 2020 10:13:29 +0100 Subject: Added timer and reset when mine hit --- utils/minesweeper/style.css | 93 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 utils/minesweeper/style.css (limited to 'utils/minesweeper/style.css') 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; +} -- cgit