From: Joe Wreschnig Date: Wed, 27 Aug 2014 13:04:17 +0000 (+0200) Subject: Cost icons. X-Git-Url: https://git.yukkurigames.com/?p=heroik.git;a=commitdiff_plain;h=9fba75b4a96cc5578bf1da2e436b56c2dcfdfe7c;ds=sidebyside Cost icons. --- diff --git a/cards.html b/cards.html index b720e23..726d746 100644 --- a/cards.html +++ b/cards.html @@ -66,7 +66,13 @@
Weapon, Unique
-
+
+ + + + + +
Once per combat, you may re-roll a combat die showing a 1. At the end of each round, if you lost at least one Courage token, you may place a Mana token on an adventurer. diff --git a/heroik.appcache.in b/heroik.appcache.in index 17465a5..956aef5 100644 --- a/heroik.appcache.in +++ b/heroik.appcache.in @@ -29,4 +29,4 @@ phoenix.jpg male.png female.png card.png - +sword.png diff --git a/heroik.css b/heroik.css index 6884d5e..c969f8e 100644 --- a/heroik.css +++ b/heroik.css @@ -432,9 +432,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 +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 { diff --git a/sword.png b/sword.png new file mode 100644 index 0000000..88924a9 Binary files /dev/null and b/sword.png differ