feat: render OneNote notebook hierarchy
This commit is contained in:
@@ -190,6 +190,7 @@ p {
|
||||
|
||||
.page-list,
|
||||
.section-list,
|
||||
.notebook-tree ul,
|
||||
.diagnostic-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -201,7 +202,7 @@ p {
|
||||
}
|
||||
|
||||
.page-list button,
|
||||
.section-list button {
|
||||
.notebook-section > button {
|
||||
display: grid;
|
||||
gap: 0.25rem;
|
||||
width: 100%;
|
||||
@@ -223,7 +224,7 @@ p {
|
||||
}
|
||||
|
||||
.page-list button.is-selected,
|
||||
.section-list button.is-selected {
|
||||
.notebook-section > button.is-selected {
|
||||
border-color: #af8bc6;
|
||||
color: #3e145c;
|
||||
background: #eee3f5;
|
||||
@@ -233,15 +234,39 @@ p {
|
||||
padding: 0.55rem 0.55rem 0;
|
||||
}
|
||||
|
||||
.section-list button {
|
||||
.notebook-section > button {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.section-list + .page-list {
|
||||
margin: 0.55rem;
|
||||
border-top: 1px solid #ded5e3;
|
||||
padding-top: 0.85rem;
|
||||
.notebook-tree ul {
|
||||
margin-inline-start: 0.7rem;
|
||||
border-inline-start: 1px solid #ded5e3;
|
||||
padding-inline-start: 0.45rem;
|
||||
}
|
||||
|
||||
.section-group summary {
|
||||
cursor: pointer;
|
||||
padding: 0.62rem 0.45rem;
|
||||
color: #574b5b;
|
||||
font-size: 0.86rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.notebook-section > .page-list {
|
||||
margin: 0 0 0.4rem 0.7rem;
|
||||
border-inline-start: 1px solid #ded5e3;
|
||||
padding: 0.25rem 0 0.2rem 0.45rem;
|
||||
}
|
||||
|
||||
.page-list ul {
|
||||
margin: 0;
|
||||
border: 0;
|
||||
padding-inline-start: 0.7rem;
|
||||
}
|
||||
|
||||
.page-list--nested button {
|
||||
padding-block: 0.55rem;
|
||||
}
|
||||
|
||||
.navigation-empty,
|
||||
@@ -582,7 +607,7 @@ p {
|
||||
.drop-zone--active,
|
||||
button:hover:not(:disabled),
|
||||
.page-list button.is-selected,
|
||||
.section-list button.is-selected {
|
||||
.notebook-section > button.is-selected {
|
||||
color: #f6effa;
|
||||
background: #3c2b48;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user