Minor improvements to card typography, still hacky.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 27 Aug 2014 09:31:34 +0000 (11:31 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 27 Aug 2014 09:31:34 +0000 (11:31 +0200)
cards.html
heroik.css
heroik.html

index f1a99659ef880a224a268a791e456bf4609879ef..b720e2368f4b568bd91be7d8fd8f93d518e9dee9 100644 (file)
@@ -63,7 +63,7 @@
 
     <div class='card object'>
       <div class=name>Conqueror's Sword</div>
-      <div class=type>Weapon - Unique</div>
+      <div class=type>Weapon, Unique</div>
       <img class=art src="epee.jpg">
       <div class=effect>
         <div class=cost><span class=r></span><span class=r></span><span class=r></span><span class=g></span><span class=g></span></div>
index e9eea8c4aa660af16d1d4ec9c193b1a8aa63e606..6884d5ea01c896d150fbfc1127263f068f82a473 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 {
index 939badf38c0f823a4480cc6eafea2643eda0f715..ee1f7fd4ea874b69df9c37e4510afb118aa5dfa7 100644 (file)
@@ -70,7 +70,7 @@
     <div>
       <a class="big button" href="variants.html">Variants</a>
       <a class="big button" href="abilities.html">Abilities</a>
-      <a class="big button" href="cards.html">Promo Cards</a>
+      <a class="big button" href="cards.html">More Cards</a>
       <a class="big button" href="allevents.html">Fate Events</a>
     </div>
     <h2>Acknowledgments</h2>