Web: Use two-column layout
This commit is contained in:
parent
3b719dca77
commit
68370a1df4
@ -109,6 +109,15 @@ body {
|
|||||||
width: calc(100% - calc(var(--grid-gap) * 2));
|
width: calc(100% - calc(var(--grid-gap) * 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.is-two-columns #app {
|
||||||
|
grid-template-areas:
|
||||||
|
"header header"
|
||||||
|
"col-1 col-2"
|
||||||
|
"footer footer";
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
grid-template-rows: var(--header-height) 1fr var(--footer-height);
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1280px) {
|
@media (max-width: 1280px) {
|
||||||
#app {
|
#app {
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
@ -121,6 +130,18 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 960px) {
|
||||||
|
body.is-two-columns #app {
|
||||||
|
grid-template-areas:
|
||||||
|
"header"
|
||||||
|
"col-1"
|
||||||
|
"col-2"
|
||||||
|
"footer";
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-rows: var(--header-height) 1fr 1fr var(--footer-height);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.col {
|
.col {
|
||||||
background-color: var(--color-background-column);
|
background-color: var(--color-background-column);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
|
@ -50,6 +50,8 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
window.workersView = this;
|
window.workersView = this;
|
||||||
this._fetchWorker(this.workerID);
|
this._fetchWorker(this.workerID);
|
||||||
|
|
||||||
|
document.body.classList.add('is-two-columns');
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
workerID(newWorkerID, oldWorkerID) {
|
workerID(newWorkerID, oldWorkerID) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user