X-Git-Url: https://git.yukkurigames.com/?p=heroik.git;a=blobdiff_plain;f=heroik.css;h=0ebb50fb2116ee6eb0e90598d54a051f84642dc1;hp=6884d5ea01c896d150fbfc1127263f068f82a473;hb=f46fe4cb5ee00fa8b11784478d77b397dd09a357;hpb=fd1a99b3c704f04f9c8a3b7b27631fe84a78a2f6 diff --git a/heroik.css b/heroik.css index 6884d5e..0ebb50f 100644 --- a/heroik.css +++ b/heroik.css @@ -394,7 +394,6 @@ table { z-index: 1; } - .card:after { content: ''; display: block; @@ -432,9 +431,9 @@ 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; left: 11.5%; right: 11.5%; @@ -506,36 +505,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 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:before { content: 'r'; } -.card .cost .g:before { content: 'g'; } +.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 { @@ -595,6 +617,90 @@ table { 0 -0.06667em black; } + +.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%; +} + #statusbar { display: none; position: fixed; @@ -621,10 +727,6 @@ h1, h2, [onclick], label { cursor: pointer; } -td:target { - font-weight: bold; -} - @media print { @page {