X-Git-Url: https://git.yukkurigames.com/?p=heroik.git;a=blobdiff_plain;f=heroik.css;h=6884d5ea01c896d150fbfc1127263f068f82a473;hp=6d9416576b03c8d20f0810c998d6de1af1d713b5;hb=b3a8e4e8782e0247c73601c44982564771aa00fa;hpb=08ff4b4a322251c94becd3c4bc89f5f762e82aac diff --git a/heroik.css b/heroik.css index 6d94165..6884d5e 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,18 +386,36 @@ 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; +} + + +.card:after { + content: ''; + display: block; + position:absolute; + width:100%; + height:100%; + left:0; + top:0; background-image: url(card.png); background-size: cover; - margin: 0.5em auto; + z-index: -1; +} + +.card .art { + position: absolute; + z-index: -1; + left: 9.5%; + right: 9.5%; + width: 81%; + height: auto; + top: 7.1%; } .card.adventurer .name, .card.adventurer .type { @@ -409,31 +430,38 @@ table { position: absolute; color: white; text-align: center; - width: 76%; - border: solid white 0.06em; + width: 77%; + border: solid white 0.1em; border-radius: 0.4em; line-height: 1.6em; - height: 4.75%; - font-size: 0.8em; - font-weight: bold; - left: 12%; - right: 12%; - top: 3.65%; - text-shadow: 0 0 0.333em black; + height: 5.5%; + font-size: 0.85em; + left: 11.5%; + right: 11.5%; + top: 3.5%; + box-sizing: border-box; + 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.0354em -0.0354em white, - 0.0354em -0.0354em white, - -0.0354em 0.0354em white, - 0.0354em 0.0354em white, - 0.05em 0 white, - -0.05em 0 white, - 0 0.05em white, - 0 -0.05em white; + 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; @@ -477,12 +505,12 @@ table { content: ' '; width: 1.5em; height: 1.5em; - border-radius: 0.75em; + 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.04em black; + box-shadow: 0 0 0.05em 0.05em black; } .card .cost span:before { @@ -502,10 +530,11 @@ table { .card .cost .g:before { content: 'g'; } .card .cost .r { - + background-color: #e4573c; border-color: #e4573c; } .card .cost .g { + background-color: #abbc45; border-color: #abbc45; } @@ -538,6 +567,8 @@ table { line-height: 1.05em; } +.card .flavor:before { content: "«"; } +.card .flavor:after { content: "»"; } .card .flavor { position: absolute; bottom: 9%; @@ -612,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 {