refactoring
This commit is contained in:
+1
-251
@@ -1188,78 +1188,8 @@ body.editor-mode .editor-metadata-row {
|
||||
}
|
||||
|
||||
|
||||
/* Wiki graph ------------------------------------------------------------- */
|
||||
#graph-view {
|
||||
max-width: 1100px;
|
||||
}
|
||||
|
||||
.wiki-graph-shell {
|
||||
margin-top: 18px;
|
||||
border: 1px solid var(--wiki-border);
|
||||
background: #fafafa;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.wiki-graph {
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-width: 720px;
|
||||
min-height: 520px;
|
||||
}
|
||||
|
||||
.wiki-graph-edges line {
|
||||
stroke: #b8b8b8;
|
||||
stroke-width: 1.4;
|
||||
}
|
||||
|
||||
.wiki-graph-node {
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.wiki-graph-node circle {
|
||||
fill: #46639b;
|
||||
stroke: white;
|
||||
stroke-width: 2;
|
||||
}
|
||||
|
||||
.wiki-graph-node text {
|
||||
fill: var(--wiki-text);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.wiki-graph-node:hover circle,
|
||||
.wiki-graph-node:focus circle {
|
||||
fill: #1e2f6d;
|
||||
stroke: #1e2f6d;
|
||||
}
|
||||
|
||||
.wiki-graph-node-cmap circle {
|
||||
fill: #57834a;
|
||||
}
|
||||
|
||||
.wiki-graph-node-cmap:hover circle,
|
||||
.wiki-graph-node-cmap:focus circle {
|
||||
fill: #315f2b;
|
||||
stroke: #315f2b;
|
||||
}
|
||||
|
||||
|
||||
/* 0.2.15 context navigation and sticky-anchor correction ---------------- */
|
||||
.context-link {
|
||||
color: var(--wiki-link);
|
||||
font-size: .76rem;
|
||||
font-weight: 400;
|
||||
letter-spacing: normal;
|
||||
text-transform: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.context-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Sticky-anchor correction ---------------------------------------------- */
|
||||
.markdown-body h1,
|
||||
.markdown-body h2,
|
||||
.markdown-body h3,
|
||||
@@ -1269,16 +1199,6 @@ body.editor-mode .editor-metadata-row {
|
||||
scroll-margin-top: 82px;
|
||||
}
|
||||
|
||||
.wiki-graph-node-focus circle {
|
||||
r: 15px;
|
||||
fill: #1e2f6d;
|
||||
stroke: #1e2f6d;
|
||||
}
|
||||
|
||||
.wiki-graph-node-focus text {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
/* Recent changes and bookmark overview pages. */
|
||||
.special-page-list,
|
||||
@@ -1444,173 +1364,3 @@ body.editor-mode .editor-metadata-row {
|
||||
.alias-history { color: #666; }
|
||||
.alias-actions { display: flex; gap: .5rem; margin-top: .6rem; }
|
||||
.alias-actions button { font: inherit; }
|
||||
|
||||
/* 0.2.36 context graph overlay and docking ------------------------------ */
|
||||
.page-reading-layout {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.page-reading-layout.context-dock-right {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
|
||||
gap: 1rem;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.page-reading-layout.context-dock-top {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.page-reading-layout.context-dock-top .context-dock {
|
||||
order: -1;
|
||||
}
|
||||
|
||||
.context-dock {
|
||||
border: 1px solid var(--wiki-border);
|
||||
background: #fafafa;
|
||||
padding: .75rem;
|
||||
position: sticky;
|
||||
top: 84px;
|
||||
max-height: calc(100vh - 100px);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.context-dock-header,
|
||||
.context-overlay-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.context-graph-actions {
|
||||
display: flex;
|
||||
gap: .7rem;
|
||||
flex-wrap: wrap;
|
||||
font-size: .82rem;
|
||||
}
|
||||
|
||||
.context-graph-actions a {
|
||||
color: var(--wiki-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.context-graph-actions a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.context-graph-small {
|
||||
min-width: 0;
|
||||
min-height: 320px;
|
||||
max-height: 520px;
|
||||
}
|
||||
|
||||
.context-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 500;
|
||||
background: rgb(0 0 0 / 35%);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
.context-overlay-panel {
|
||||
width: min(1180px, 96vw);
|
||||
max-height: 92vh;
|
||||
overflow: auto;
|
||||
background: white;
|
||||
border: 1px solid var(--wiki-border);
|
||||
box-shadow: 0 14px 44px rgb(0 0 0 / 24%);
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.context-overlay-header h2 {
|
||||
margin: 0 0 .2rem;
|
||||
}
|
||||
|
||||
.context-overlay-graph-shell {
|
||||
margin-top: .8rem;
|
||||
}
|
||||
|
||||
.wiki-graph-edges marker path {
|
||||
fill: #9a9a9a;
|
||||
}
|
||||
|
||||
.wiki-graph-edge-incoming {
|
||||
stroke: #7a5d9e !important;
|
||||
}
|
||||
|
||||
.wiki-graph-edge-outgoing {
|
||||
stroke: #46639b !important;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.page-reading-layout.context-dock-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.page-reading-layout.context-dock-right .context-dock {
|
||||
order: -1;
|
||||
width: 100%;
|
||||
position: static;
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.context-overlay {
|
||||
padding: .5rem;
|
||||
}
|
||||
|
||||
.context-overlay-panel {
|
||||
width: 100%;
|
||||
max-height: 96vh;
|
||||
}
|
||||
|
||||
.context-overlay-header {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.context-graph-actions {
|
||||
margin-top: .5rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Keep the established document width and use otherwise empty desktop
|
||||
space for the docked context view. */
|
||||
#page-view:has(.context-dock-right) {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.page-reading-layout.context-dock-right {
|
||||
grid-template-columns: minmax(0, 900px) minmax(420px, 520px);
|
||||
justify-content: start;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.page-reading-layout.context-dock-right .markdown-body {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.page-reading-layout.context-dock-right .context-dock {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.context-dock .wiki-graph-node text {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.context-dock .wiki-graph-node-focus text {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
@media (max-width: 1450px) {
|
||||
.page-reading-layout.context-dock-right {
|
||||
grid-template-columns: minmax(0, 760px) minmax(360px, 440px);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user