diff --git a/icons.css b/icons.css index 5ef9555d..73e3c3b5 100644 --- a/icons.css +++ b/icons.css @@ -250,7 +250,6 @@ .icon-smooth:before {font-weight: bold;content:'∼';} .icon-disrupt:before {font-weight: bold;content:'⥄';} .icon-if:before {font-style: italic; font-weight: bold;content:'if';} -/* .icon-coa:before {content: '⚜'; font-size: 1.1em; margin: -2px;} */ .icon-coa:before {content:'\f3ed'; font-size: .9em; color: #999;} /* '' */ .icon-half:before {font-weight: bold;content:'½';} .icon-curve:before {content: 'C';} @@ -265,11 +264,9 @@ font-family: monospace; } .icon-die:before {content:'🎲';} - -.icon-button-plus:before {content:'➕'; padding-right: .4em;} .icon-button-die:before {content:'🎲'; padding-right: .4em;} .icon-button-power:before {content:'💪'; padding-right: .6em;} .icon-button-skirmish:before {content:'🎯'; padding-right: .4em;} -.icon-button-melee:before {content:'🗡'; padding-right: .4em;} +.icon-button-melee:before {content:'⚔️'; padding-right: .4em;} .icon-button-pursue:before {content:'🐎'; padding-right: .4em;} .icon-button-retreat:before {content:'🏳️'; padding-right: .4em;} diff --git a/index.css b/index.css index c1cbe4ed..06093237 100644 --- a/index.css +++ b/index.css @@ -583,6 +583,7 @@ button.options { font-weight: bold; float: left; border: none; + border-radius: 0; padding: 8px 10px; transition: 0.2s; } @@ -945,10 +946,11 @@ body button.noicon { #battleBody > table { padding: .2em .6em .2em .6em; border: 1px solid #ccc; - margin: 0 0 .4em 0; + margin: .2em 0 .4em 0; display: block; overflow: auto; max-height: 34vh; + width: 100%; } #battleBody > table .regiment { @@ -961,6 +963,45 @@ tr.battleCasualties, tr.battleSurvivors { font-size: .9em; } +#battleBody div.battlePhases { + position: absolute; + background-color: #fff; +} + +#battleBody div.battlePhases > button { + width: 3.2em; + display: block; + margin: .2em 0; +} + +div#regimentSelectorBody { + max-height: 50vh; + font-size: .9em; +} + +div#regimentSelectorBody > div { + padding: .1em; + border: 1px solid #fff; +} + +div#regimentSelectorBody > div:hover { + border: 1px solid #ccc; +} + +div#regimentSelectorBody > div.selected { + border: 1px solid #b28585; +} + +div#regimentSelectorBody > div.inactive { + background-color: #eee; + color: #aaa; +} + +div#regimentSelectorBody > div > div { + display: inline-block; + pointer-events: none; +} + .drag-trigger { border-left: 1em solid transparent; border-right: 1em solid #000; diff --git a/index.html b/index.html index 0040c773..3f02c81b 100644 --- a/index.html +++ b/index.html @@ -2448,34 +2448,62 @@ + +