| @@ -11,7 +11,7 @@ | |||||
| <div class="statblock-separator" id="statblock-separator-left"></div> | <div class="statblock-separator" id="statblock-separator-left"></div> | ||||
| <div class="statblock-separator" id="statblock-separator-center"></div> | <div class="statblock-separator" id="statblock-separator-center"></div> | ||||
| <div class="statblock-separator" id="statblock-separator-right"></div> | <div class="statblock-separator" id="statblock-separator-right"></div> | ||||
| <div id="log"> | |||||
| <div class="log"> | |||||
| </div> | </div> | ||||
| <div class="left-fader"> | <div class="left-fader"> | ||||
| @@ -91,7 +91,7 @@ export default class Combat extends Vue { | |||||
| @Emit("executedLeft") | @Emit("executedLeft") | ||||
| executedLeft (entry: LogEntry) { | executedLeft (entry: LogEntry) { | ||||
| const log = document.querySelector("#log") | |||||
| const log = this.$el.querySelector(".log") | |||||
| if (log !== null) { | if (log !== null) { | ||||
| const before = log.querySelector("div.log-entry") | const before = log.querySelector("div.log-entry") | ||||
| const holder = document.createElement("div") | const holder = document.createElement("div") | ||||
| @@ -116,7 +116,7 @@ export default class Combat extends Vue { | |||||
| @Emit("executedRight") | @Emit("executedRight") | ||||
| executedRight (entry: LogEntry) { | executedRight (entry: LogEntry) { | ||||
| const log = document.querySelector("#log") | |||||
| const log = this.$el.querySelector(".log") | |||||
| if (log !== null) { | if (log !== null) { | ||||
| const before = log.querySelector("div.log-entry") | const before = log.querySelector("div.log-entry") | ||||
| @@ -240,7 +240,7 @@ export default class Combat extends Vue { | |||||
| overflow: hidden; | overflow: hidden; | ||||
| } | } | ||||
| #log { | |||||
| .log { | |||||
| grid-area: main-row-start / main-col-start / main-row-end / main-col-end; | grid-area: main-row-start / main-col-start / main-row-end / main-col-end; | ||||
| overflow-y: scroll; | overflow-y: scroll; | ||||
| font-size: 12pt; | font-size: 12pt; | ||||
| @@ -380,7 +380,7 @@ a { | |||||
| white-space: nowrap; | white-space: nowrap; | ||||
| } | } | ||||
| #log > div.log-entry { | |||||
| .log > div.log-entry { | |||||
| color: #888; | color: #888; | ||||
| padding-top: 4pt; | padding-top: 4pt; | ||||
| padding-bottom: 4pt; | padding-bottom: 4pt; | ||||
| @@ -403,63 +403,63 @@ div.right-move { | |||||
| margin-right: 2%; | margin-right: 2%; | ||||
| } | } | ||||
| #log img { | |||||
| .log img { | |||||
| width: 75%; | width: 75%; | ||||
| } | } | ||||
| #log > div.left-move:nth-child(7) { | |||||
| .log > div.left-move:nth-child(7) { | |||||
| color: #898; | color: #898; | ||||
| } | } | ||||
| #log > div.left-move:nth-child(6) { | |||||
| .log > div.left-move:nth-child(6) { | |||||
| color: #8a8; | color: #8a8; | ||||
| } | } | ||||
| #log > div.left-move:nth-child(5) { | |||||
| .log > div.left-move:nth-child(5) { | |||||
| color: #8b8; | color: #8b8; | ||||
| } | } | ||||
| #log > div.left-move:nth-child(4) { | |||||
| .log > div.left-move:nth-child(4) { | |||||
| color: #8c8; | color: #8c8; | ||||
| } | } | ||||
| #log > div.left-move:nth-child(3) { | |||||
| .log > div.left-move:nth-child(3) { | |||||
| color: #8d8; | color: #8d8; | ||||
| } | } | ||||
| #log > div.left-move:nth-child(2) { | |||||
| .log > div.left-move:nth-child(2) { | |||||
| color: #8e8; | color: #8e8; | ||||
| } | } | ||||
| #log > div.left-move:nth-child(1) { | |||||
| .log > div.left-move:nth-child(1) { | |||||
| color: #8f8; | color: #8f8; | ||||
| } | } | ||||
| #log > div.right-move:nth-child(7) { | |||||
| .log > div.right-move:nth-child(7) { | |||||
| color: #988; | color: #988; | ||||
| } | } | ||||
| #log > div.right-move:nth-child(6) { | |||||
| .log > div.right-move:nth-child(6) { | |||||
| color: #a88; | color: #a88; | ||||
| } | } | ||||
| #log > div.right-move:nth-child(5) { | |||||
| .log > div.right-move:nth-child(5) { | |||||
| color: #b88; | color: #b88; | ||||
| } | } | ||||
| #log > div.right-move:nth-child(4) { | |||||
| .log > div.right-move:nth-child(4) { | |||||
| color: #c88; | color: #c88; | ||||
| } | } | ||||
| #log > div.right-move:nth-child(3) { | |||||
| .log > div.right-move:nth-child(3) { | |||||
| color: #d88; | color: #d88; | ||||
| } | } | ||||
| #log > div.right-move:nth-child(2) { | |||||
| .log > div.right-move:nth-child(2) { | |||||
| color: #e88; | color: #e88; | ||||
| } | } | ||||
| #log > div.right-move:nth-child(1) { | |||||
| .log > div.right-move:nth-child(1) { | |||||
| color: #f88; | color: #f88; | ||||
| } | } | ||||