Browse Source

Narrow the explore and combat views

master
Fen Dweller 5 years ago
parent
commit
fcbd577e39
2 changed files with 20 additions and 2 deletions
  1. +1
    -0
      src/components/ActionButton.vue
  2. +19
    -2
      src/components/Combat.vue

+ 1
- 0
src/components/ActionButton.vue View File

@@ -52,6 +52,7 @@ export default class ActionButton extends Vue {


.action-button { .action-button {
width: 100%; width: 100%;
max-width: 300px;
padding: 4pt; padding: 4pt;
flex: 0 1; flex: 0 1;
background: #333; background: #333;


+ 19
- 2
src/components/Combat.vue View File

@@ -280,14 +280,15 @@ export default class Combat extends Vue {
} }


.combat-layout { .combat-layout {
position: absolute;
position: relative;
display: grid; display: grid;
grid-template-rows: fit-content(50%) 10% [main-row-start] 1fr 20% [main-row-end] ; grid-template-rows: fit-content(50%) 10% [main-row-start] 1fr 20% [main-row-end] ;
grid-template-columns: 20% [main-col-start] 1fr 1fr [main-col-end] 20%;
grid-template-columns: 1fr [main-col-start] fit-content(25%) fit-content(25%) [main-col-end] 1fr;
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow-x: hidden; overflow-x: hidden;
overflow-y: hidden; overflow-y: hidden;
margin: auto;
} }


.log { .log {
@@ -297,6 +298,8 @@ export default class Combat extends Vue {
font-size: 12pt; font-size: 12pt;
width: 100%; width: 100%;
max-height: 100%; max-height: 100%;
width: 70vw;
max-width: 1000px;
align-self: flex-start; align-self: flex-start;
} }


@@ -356,6 +359,7 @@ export default class Combat extends Vue {


.left-fader, .left-fader,
.right-fader { .right-fader {
position: absolute;
z-index: 1; z-index: 1;
pointer-events: none; pointer-events: none;
background: linear-gradient(to bottom, #111, #00000000 10%, #00000000 90%, #111 100%); background: linear-gradient(to bottom, #111, #00000000 10%, #00000000 90%, #111 100%);
@@ -371,6 +375,14 @@ export default class Combat extends Vue {
grid-area: 2 / 4 / 4 / 5; grid-area: 2 / 4 / 4 / 5;
} }


.left-actions > .vert-display {
align-items: flex-end;
}

.right-actions > .vert-display {
align-items: flex-start;
}

.left-actions, .left-actions,
.right-actions { .right-actions {
overflow-y: hidden; overflow-y: hidden;
@@ -385,6 +397,7 @@ export default class Combat extends Vue {
padding: 8pt; padding: 8pt;
text-align: center; text-align: center;
font-size: 16px; font-size: 16px;
max-width: 1000px;
} }


h3 { h3 {
@@ -405,6 +418,7 @@ a {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }

.vert-display { .vert-display {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -412,12 +426,15 @@ a {
flex-wrap: nowrap; flex-wrap: nowrap;
justify-content: start; justify-content: start;
height: 100%; height: 100%;
width: 100%;
overflow-y: auto; overflow-y: auto;
padding: 64px 0 64px; padding: 64px 0 64px;
} }


.action-label { .action-label {
font-size: 200%; font-size: 200%;
max-width: 300px;
width: 100%;
} }
</style> </style>




Loading…
Cancel
Save