summaryrefslogtreecommitdiff
path: root/mines.css
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2019-07-15 21:02:34 -0400
committerKyle Gunger <kgunger12@gmail.com>2019-07-15 21:02:34 -0400
commit278f2ff2d0888893b30b4179dd3400201af1fa1b (patch)
tree58549fba5f325ced8b91bb103f3e875eff18da7d /mines.css
parenta85f13d5019b5313cd2edc9e6a5441185a7b521e (diff)
[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
Diffstat (limited to 'mines.css')
-rw-r--r--mines.css34
1 files changed, 14 insertions, 20 deletions
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{