Minor improvements to card typography, still hacky.
[heroik.git] / heroik.css
index e9eea8c..6884d5e 100644 (file)
@@ -176,6 +176,7 @@ h1 {
     border-bottom: solid hsl(270, 25%, 50%) 0.0625em;
     line-height: 0.8em;
     font-weight: normal;
+    letter-spacing: -0.02em;
     text-shadow: -1px 0 black, 1px 0 black,
                  0 1px black, 0 -1px black,
                  -0.707px -0.707px black, 0.707px 0.707px black,
@@ -385,15 +386,10 @@ table {
 
 .card {
     display: block;
-
     position: relative;
     width: 20em;
     height: 27.1875em;
     font-size: 88.275%;
-/*    width: 64mm;
-    height: 87mm;
-    font-size: 9pt;*/
-    margin: auto;
     margin: 0.5em auto;
     z-index: 1;
 }
@@ -440,26 +436,32 @@ table {
     line-height: 1.6em;
     height: 5.5%;
     font-size: 0.85em;
-    font-weight: bold;
     left: 11.5%;
     right: 11.5%;
     top: 3.5%;
     box-sizing: border-box;
-    text-shadow: 0 0 0.5em black;
+    text-shadow: -1px -1px rgba(0, 0, 0, 0.75),
+                 1px -1px rgba(0, 0, 0, 0.75),
+                 -1px 1px rgba(0, 0, 0, 0.75),
+                 1px 1px rgba(0, 0, 0, 0.75),
+                 1px 0 black,
+                 -1px 0 black,
+                 0 1px black,
+                 0 -1px black;
 }
 
 .card .type {
     color: black;
     letter-spacing: 0.05em;
     font-weight: bold;
-    text-shadow: -0.0707em -0.0707em rgba(255, 255, 255, 0.7),
-                 0.0707em -0.0707em rgba(255, 255, 255, 0.7),
-                 -0.0707em 0.0707em rgba(255, 255, 255, 0.7),
-                 0.0707em 0.0707em rgba(255, 255, 255, 0.7),
-                 0.1em 0 rgba(255, 255, 255, 0.7),
-                 -0.1em 0 rgba(255, 255, 255, 0.7),
-                 0 0.1em rgba(255, 255, 255, 0.7),
-                 0 -0.1em rgba(255, 255, 255, 0.7);
+    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;
     text-align: left;
     margin: auto;
     position: absolute;
@@ -565,6 +567,8 @@ table {
     line-height: 1.05em;
 }
 
+.card .flavor:before { content: "«"; }
+.card .flavor:after { content: "»"; }
 .card .flavor {
     position: absolute;
     bottom: 9%;
@@ -639,13 +643,19 @@ td:target {
     main {
         max-width: 3.5in;
     }
+
+    .card {
+        width: 64mm;
+        height: 87mm;
+        font-size: 9pt;
+        page-break-inside: avoid;
+    }
 }
 
-@media screen and (-webkit-min-device-pixel-ratio:0) {
+@media all and (-webkit-min-device-pixel-ratio:0) {
     h1 {
         text-shadow: none;
-        -webkit-text-stroke: 1px black;
-        latter-spacing: -1px;
+        -webkit-text-stroke: 0.02em black;
     }
 
     .broken-on-webkit {