From 278f2ff2d0888893b30b4179dd3400201af1fa1b Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 15 Jul 2019 21:02:34 -0400 Subject: [RELEASE] Loading and saving (plus some bugfixes) Additions: + Loading and saving game states now supported (from app-created save files) + Code taken from Kanchu (and contributors) on StackOverflow for saving files + 3x3 minimum area implemented for game starts + Bugfix for disappearing mines on local repo Other: ~ More concise CSS ~ Probably the final version unless I find another cool feature which I feel like putting in --- mines.css | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'mines.css') diff --git a/mines.css b/mines.css index c45a746..810e74e 100644 --- a/mines.css +++ b/mines.css @@ -19,7 +19,7 @@ div.game{ margin: 50px; } -input, select{ +input, select, label[for], button{ padding: 5px; margin: 5px; background-color: #ddd; @@ -30,38 +30,32 @@ input, select{ appearance: none; -moz-appearance: none; -webkit-appearance: none; + font-size: medium; } -input:hover, select:hover{ +input:hover, select:hover, label[for]:hover, button:hover{ background-color: #bbb; } -input:focus, select:focus{ +input:focus, select:focus, label[for]:focus, button:focus{ background-color: #bdf; border: none; } -input:active, select:active{ +input:active, select:active, label[for]:active, button:active{ background-color: #bdf; border: none; } -button{ - padding: 5px; - margin: 5px; - background-color: #ddd; - border: none; - border-radius: 5px; - transition-duration: 0.2s; -} - -button:hover{ - background-color: #bbb; -} - -button:active{ - background-color: #bdf; - border: none; +input[type="file"]{ + width: 0; + height: 0; + + padding: 0; + margin: 0; + + border-radius: 0; + opacity: 0; } h1{ -- cgit v1.2.3