From 37e98ea1f5da0dde8867ecb04177a63bd5bd4016 Mon Sep 17 00:00:00 2001 From: synth-ruiner Date: Sat, 28 Feb 2015 16:53:40 +0000 Subject: [PATCH] Bugfixes & styling Middle-click support for clearing squares when all adjacent flags are placed Cascading when a tile with no adjacent mines is clicked Different colours for different numbers of adjacent mines --- index.html | 79 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 45 insertions(+), 34 deletions(-) diff --git a/index.html b/index.html index 73e4045..d34012a 100644 --- a/index.html +++ b/index.html @@ -41,6 +41,8 @@ font-size: 8vmin; font-family: Helsinki; padding: 1vmin; + padding-top: 0.5vmin; + padding-bottom: 1.5vmin; text-align: center; vertical-align: middle; float: left; @@ -49,7 +51,6 @@ background-color: #4e3c23; border-radius: 2vmin; cursor: default; - line-height: 10vmin; } li.revealed { @@ -72,22 +73,23 @@ background-color: #d23000; } - li.1mines { - color: green; + li.mines1 { + color: #c6fe7a; } - li.2mines { - color: blue; + li.mines2 { + color: #7ac5fe; } - li.3mines { - color: red; + li.mines3 { + color: #fe7ac6; }