Cleaner CSS page management
This commit is contained in:
parent
cc2415a06d
commit
5dac84efdc
2 changed files with 39 additions and 30 deletions
|
|
@ -218,27 +218,16 @@ button {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/* =============== *
|
||||
* PAGE MANAGEMENT *
|
||||
* =============== */
|
||||
[id^="page-"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#main-page {
|
||||
display: contents;
|
||||
|
||||
&:focus-within {
|
||||
background-color: #faf;
|
||||
}
|
||||
|
||||
&.node {
|
||||
&.root-node-override {
|
||||
#page-root {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
#page-node {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
#notes2 {
|
||||
&.page-node {
|
||||
|
||||
#page-root {
|
||||
display: none;
|
||||
|
|
@ -249,7 +238,7 @@ button {
|
|||
}
|
||||
}
|
||||
|
||||
&.storage {
|
||||
&.page-storage {
|
||||
#page-storage {
|
||||
display: contents;
|
||||
|
||||
|
|
@ -259,7 +248,7 @@ button {
|
|||
}
|
||||
}
|
||||
|
||||
&.history {
|
||||
&.page-history {
|
||||
#page-history {
|
||||
display: grid;
|
||||
grid-area: n2-pagehistory;
|
||||
|
|
@ -267,6 +256,27 @@ button {
|
|||
n2-pagehistory {}
|
||||
}
|
||||
}
|
||||
|
||||
&.root-node-override {
|
||||
[id^="page-"] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#page-root {
|
||||
display: contents !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#main-page {
|
||||
display: contents;
|
||||
|
||||
&:focus-within {
|
||||
background-color: #faf;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#crumbs {
|
||||
|
|
@ -358,7 +368,7 @@ n2-syncprogress {
|
|||
}
|
||||
|
||||
#page-root {
|
||||
& > div {
|
||||
&>div {
|
||||
grid-area: content;
|
||||
align-self: start;
|
||||
margin-top: 64px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue