Keep back/press on controls in a fixed header when standalone.
[heroik.git] / heroik.css
index c969f8e..40bb1ae 100644 (file)
@@ -66,10 +66,6 @@ html {
     height: 100%;
 }
 
-@media (max-width: 639px) {
-    html { font-size: 14px; }
-}
-
 body {
     background-color: black;
     min-height: 100%;
@@ -77,10 +73,6 @@ body {
     box-sizing: border-box;
 }
 
-body.standalone {
-    padding-top: 20px;
-}
-
 main {
     background-color: white;
     max-width: 25.2em;
@@ -91,8 +83,12 @@ main {
     box-sizing: border-box;
 }
 
-body.standalone main {
-    padding-top: 0.5em;
+body.standalone header + main {
+    padding-top: 5em;
+}
+
+body.standalone header:empty + main {
+    padding-top: 2em;
 }
 
 table {
@@ -252,6 +248,15 @@ input[type=checkbox] {
     box-shadow: 0.0625em 0.0625em 0.0625em 0.0625em #888;
 }
 
+
+.standalone header .button {
+    box-shadow: 0 0 0.5em 0.0625em #aaa;
+}
+
+.standalone header .button:active {
+    box-shadow: 0 0 0 0 #aaa;
+}
+
 main > div, main > noscript {
     text-align: center;
     margin-bottom: 1rem;
@@ -280,7 +285,7 @@ select {
     box-shadow: 0.125em 0.125em 0.25em 0.0625em #aaa;
     transition: box-shadow 0.167s, border-color 0.167s;
     -webkit-transition: box-shadow 0.167s, border-color 0.167s;
-    text-align:-webkit-center !important;
+    text-align: center;
     font-weight: bold;
 }
 
@@ -305,6 +310,16 @@ option {
     font-weight: normal;
 }
 
+optgroup {
+    font-style: normal;
+    font-family: inherit;
+    text-align: center;
+}
+
+optgroup + optgroup {
+    margin-top: 1px;
+}
+
 p, li {
     text-align: justify;
     -webkit-hyphens: auto;
@@ -394,7 +409,6 @@ table {
     z-index: 1;
 }
 
-
 .card:after {
     content: '';
     display: block;
@@ -618,18 +632,111 @@ table {
                  0 -0.06667em black;
 }
 
-#statusbar {
-    display: none;
-    position: fixed;
+
+.card.dungeon {
+    height: 17.5841em;
+    width: 25em;
+}
+
+.card.dungeon:after {
+    background-image: url(dungeon.jpg);
+}
+
+.card.final .name, .card.final .type {
+    background-color: #832b22;
+}
+
+.card.dungeon .name {
+    position: absolute;
+    color: #e3f902;
+    top: 2%;
+    height: 7.5%;
+}
+
+.card.dungeon .type {
+    color: #e3f902;
+    left: 2.25%;
+    right: 2.25%;
+    width: 95.5%;
+    height: 4.5%;
+    top: 74%;
+    text-shadow: -0.707px -0.707px rgba(0, 0, 0, 0.75),
+                 0.707px -0.707px rgba(0, 0, 0, 0.75),
+                 -0.707px 0.707px rgba(0, 0, 0, 0.75),
+                 0.707px 0.707px rgba(0, 0, 0, 0.75),
+                 1px 0 black,
+                 -1px 0 black,
+                 0 1px black,
+                 0 -1px black;
+}
+
+.card.dungeon .power img {
+    max-height: 1.5em;
+    vertical-align: bottom;
+}
+.card.dungeon .power {
+    font-size: 0.85em;
+    position: absolute;
+    top: 67%;
+    height: 1em;
+    color: white;
+    left: 68%;
+    width: 15%;
+    text-align: center;
+    text-shadow: -0.707px -0.707px rgba(0, 0, 0, 0.75),
+                 0.707px -0.707px rgba(0, 0, 0, 0.75),
+                 -0.707px 0.707px rgba(0, 0, 0, 0.75),
+                 0.707px 0.707px rgba(0, 0, 0, 0.75),
+                 1px 0 black,
+                 -1px 0 black,
+                 0 1px black,
+                 0 -1px black;
+}
+
+.card.dungeon .effect {
+    color: #e30000;
+    text-shadow: -0.707px -0.707px rgba(255, 255, 255, 0.75),
+                 0.707px -0.707px rgba(255, 255, 255, 0.75),
+                 -0.707px 0.707px rgba(255, 255, 255, 0.75),
+                 0.707px 0.707px rgba(255, 255, 255, 0.75),
+                 1px 0 white,
+                 -1px 0 white,
+                 0 1px white,
+                 0 -1px white;
+    font-size: 0.55em;
+    top: 83%;
+    left: 5%;
+    right: 5%;
+    width: 90%;
+    font-weight: bold;
+}
+
+.card.dungeon .code {
+    right: 4%;
+    bottom: 1.8%;
+}
+
+header {
     left: 0;
     top: 0;
     right: 0;
-    height: 20px;
-    background-color: black;
+    margin: auto;
+    max-width: 25.2em;
+    background-color: white;
+    padding: 0.5em;
+    box-sizing: border-box;
+    z-index: 2;
 }
 
-body.standalone #statusbar {
-    display: block;
+body.standalone header:empty {
+    padding: 0;
+    padding-top: 20px;
+}
+
+body.standalone header {
+    position: fixed;
+    padding-top: 20px;
+    background-color: black;
 }
 
 h1, h2, [onclick], label {
@@ -644,8 +751,11 @@ h1, h2, [onclick], label {
     cursor: pointer;
 }
 
-td:target {
-    font-weight: bold;
+@media (max-width: 639px) {
+    html { font-size: 14px; }
+    header .button {
+        padding: 0 0.2em;
+    }
 }
 
 @media print {
@@ -654,7 +764,7 @@ td:target {
         size: 3.5in 7in;
         margin: 0.5em;
     }
-    .no-print {
+    header, .no-print {
         display: none !important;
     }