summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-06-28 11:07:08 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-06-28 11:07:08 +0200
commitfb4ccc4fbf6535376b0ef2a98c98fcfb68fd9422 (patch)
treecc786d49ce5f2cf5f7471847fe47a960c2fd012e /src/battlemap/www/style.css
parente6131bc44d479f4aef844a86580244bd683a0c4b (diff)
Removing some 'grid' displays from the CSS.
Diffstat (limited to 'src/battlemap/www/style.css')
-rw-r--r--src/battlemap/www/style.css98
1 files changed, 63 insertions, 35 deletions
diff --git a/src/battlemap/www/style.css b/src/battlemap/www/style.css
index 2ac4f39..9e51e5a 100644
--- a/src/battlemap/www/style.css
+++ b/src/battlemap/www/style.css
@@ -1,19 +1,16 @@
/******************************************************************************/
/** LAYOUT ********************************************************************/
/******************************************************************************/
-.fullscreen-module
-{
- display: grid;
+.fullscreen-module {}
- grid-template-columns: [col] 15em [col] auto [col] 20em;
- grid-template-rows: [row] 3em [row] auto [row] 10em;
- grid-gap: 1em;
-}
.battlemap-main-menu
{
- grid-column: col 1 / span 3;
- grid-row: row 1;
+ position: absolute;
+ top: 0;
+ left: 0;
+ right: 0;
+ height: 3em;
display: flex;
@@ -33,8 +30,12 @@
.battlemap-message-board
{
- grid-column: col 1 / span 3;
- grid-row: row 3;
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+
+ height: 10em;
border: 3px solid #502D16;
border-radius: 15px 15px 0 0;
@@ -50,15 +51,27 @@
justify-content: space-between;
}
-.battlemap-container
+.battlemap-container-centerer
{
- grid-column: col 2;
- grid-row: row 2;
+ position: absolute;
+ top: 4em;
+ left: 16em;
+ right: 21em;
+ bottom: 11em;
display: flex;
- margin: 0 1em 0 1em;
- max-width: 100%;
+}
+
+.battlemap-container
+{
+ display: inline-block;
max-height: 100%;
+ max-width: 100%;
+ /*
+ * 4em: main-menu + margin.
+ * 11em: message-board + margin.
+ */
+ /*margin: 0 1em 0 1em; */
overflow: scroll;
margin: auto;
@@ -70,8 +83,15 @@
.battlemap-controlled
{
- grid-column: col 1;
- grid-row: row 2;
+ position: absolute;
+ left: 0;
+ top: 4em;
+ width: 15em;
+ /*
+ * 4em: main-menu + margin.
+ * 11em: message-board + margin.
+ */
+ height: calc(100% - 11em - 4em);
display: flex;
flex-flow: column;
@@ -89,9 +109,15 @@
.battlemap-sub-menu
{
- grid-column: col 3;
- grid-row: row 2;
-
+ position: absolute;
+ right: 0;
+ top: 4em;
+ width: 20em;
+ /*
+ * 4em: main-menu + margin.
+ * 11em: message-board + margin.
+ */
+ height: calc(100% - 11em - 4em);
padding: 0.5em;
overflow: auto;
@@ -152,14 +178,8 @@
.battlemap-character-card-top,
.battlemap-tile-card-top
{
- display: grid;
- grid-template-columns: [col] auto [col] 1fr;
- grid-template-rows: [row] 1em [row] 1fr [row] 1em [row] 1fr [row] 1em;
- grid-column-gap: 0.5em;
-
- align-items: center;
- justify-content: left;
- margin-top: 0.3em;
+ margin-top: 0.5em;
+ position: relative;
}
.battlemap-character-portrait
@@ -210,8 +230,9 @@
.battlemap-character-card .battlemap-character-portrait,
.battlemap-tile-card-icon
{
- grid-column: col 1;
- grid-row: row 1 / span 6;
+ position: absolute:
+ top: 0;
+ left: 0;
margin: 0;
box-sizing: border-box;
box-shadow:
@@ -254,7 +275,7 @@
border-radius: 5px;
border: 2px solid #6C5D53;
text-align: center;
- height: 1.5em;
+ height: 2em;
}
.battlemap-gauge-text
@@ -289,6 +310,11 @@
.battlemap-character-card-health,
.battlemap-tile-card-cost
{
+ position: absolute;
+ left: 100px;
+ top: 1em;
+ margin-left: 0.5em;
+ width: calc(100% - 100px - 0.5em);
grid-column: col 2;
grid-row: row 2;
}
@@ -301,9 +327,11 @@
.battlemap-character-card-movement,
.battlemap-tile-card-location
{
- grid-column: col 2;
- grid-row: row 4;
- height: 100%;
+ position: absolute;
+ left: 100px;
+ top: calc(1em + 1.5em + 1em);
+ margin-left: 0.5em;
+ width: calc(100% - 100px - 0.5em);
}
.battlemap-character-card-movement > .battlemap-gauge-bar