X-Git-Url: https://git.yukkurigames.com/?p=heroik.git;a=blobdiff_plain;f=heroik.css;h=c969f8ee094dbcb1023c90823bfe47dc5baecd1f;hp=013d5dc54dea0539ac22208b7c4b70781c08ded8;hb=9fba75b4a96cc5578bf1da2e436b56c2dcfdfe7c;hpb=0756f947172fd94da437d4269715811302f8e3e0 diff --git a/heroik.css b/heroik.css index 013d5dc..c969f8e 100644 --- a/heroik.css +++ b/heroik.css @@ -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, @@ -359,9 +360,11 @@ table { } .button.big { - display: block; - width: 80%; - margin: 1em auto; + display: inline-block; + width: 35%; + padding-top: 1em; + padding-bottom: 1em; + margin: 0.5em 0.5em; } .card1 { @@ -383,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; } @@ -434,30 +432,36 @@ table { text-align: center; width: 77%; border: solid white 0.1em; - border-radius: 0.4em; + border-radius: 0.6em; line-height: 1.6em; - height: 5.5%; + height: 5.4%; 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; @@ -502,36 +506,59 @@ table { width: 1.5em; height: 1.5em; border-radius: 1.5em; - border: solid black 0.75em; display: inline-block; box-sizing: border-box; margin: 0.5em 0.05em; box-shadow: 0 0 0.05em 0.05em black; + background-image: url(sword.png); + background-size: 0.2778em 1.3em; + background-position: center; + background-repeat: no-repeat; + text-align: center; } -.card .cost span:before { +.card .cost span:before, .card .cost span:after { position: absolute; - text-align: center; - left: -0.75em; - top: -0.75em; - color: black; line-height: 1.333em; - opacity: 0.5; width: 1.5em; height: 1.5em; + display: block; + transform-origin: 50% 65%; + background-image: url(sword.png); + background-size: 0.2778em 1.3em; + background-position: center; + background-repeat: no-repeat; } +.card .cost .r:before { + transform: rotate(30deg); + -webkit-transform: rotate(30deg); + content: ''; +} -.card .cost .r:before { content: 'r'; } -.card .cost .g:before { content: 'g'; } +.card .cost .r img { + /* :( would prefer with no extra elements... */ + transform: rotate(60deg); + max-width: 1.3em; + position: absolute; + max-height: 1.3em; + transform-origin: 50% 65%; + left: 0.6em; + top: 0.1em; +} + +.card .cost .r:after { + transform: rotate(-30deg); + -webkit-transform: rotate(-30deg); + content: ''; +} .card .cost .r { + transform: rotate(-15deg); background-color: #e4573c; - border-color: #e4573c; } .card .cost .g { background-color: #abbc45; - border-color: #abbc45; } .card .abilities .skill:before { @@ -563,6 +590,8 @@ table { line-height: 1.05em; } +.card .flavor:before { content: "«"; } +.card .flavor:after { content: "»"; } .card .flavor { position: absolute; bottom: 9%; @@ -637,13 +666,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 {