Beter layouting
This commit is contained in:
@@ -195,9 +195,16 @@ body {
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: block;
|
||||
color: #111;
|
||||
font-size: 1.18rem;
|
||||
margin-bottom: 14px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.brand:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#user-box,
|
||||
@@ -795,3 +802,167 @@ body.editor-mode .editor-metadata-row {
|
||||
gap: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Top navigation -------------------------------------------------------- */
|
||||
.top-chrome {
|
||||
position: sticky;
|
||||
z-index: 120;
|
||||
top: 0;
|
||||
margin: -8px 0 20px;
|
||||
padding: 0 0 10px;
|
||||
background: white;
|
||||
border-bottom: 1px solid #ededed;
|
||||
}
|
||||
|
||||
.account-bar {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: baseline;
|
||||
gap: .5rem;
|
||||
min-height: 1.35rem;
|
||||
margin-bottom: 4px;
|
||||
font-size: .82rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.account-bar a,
|
||||
.page-action-links a,
|
||||
.admin-menu a,
|
||||
.sidebar-primary-link {
|
||||
color: var(--wiki-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.account-bar a:hover,
|
||||
.page-action-links a:hover,
|
||||
.admin-menu a:hover,
|
||||
.sidebar-primary-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.navigation-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 1rem;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.navigation-row .breadcrumbs {
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-action-links {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: .65rem;
|
||||
white-space: nowrap;
|
||||
font-size: .86rem;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.sidebar-primary-link {
|
||||
display: block;
|
||||
margin: -4px 0 8px;
|
||||
padding: 2px 0;
|
||||
font-size: .9rem;
|
||||
}
|
||||
|
||||
.admin-menu {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: .65rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
#user-admin-view {
|
||||
max-width: 1040px;
|
||||
}
|
||||
|
||||
/* Wiki image layout extensions. Width itself remains a sanitized inline
|
||||
style generated by wiki.js; these fixed classes only control placement. */
|
||||
.markdown-body img.wiki-image-left,
|
||||
.EasyMDEContainer .editor-preview img.wiki-image-left,
|
||||
.EasyMDEContainer .editor-preview-side img.wiki-image-left {
|
||||
display: block;
|
||||
margin-left: 0;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.markdown-body img.wiki-image-center,
|
||||
.EasyMDEContainer .editor-preview img.wiki-image-center,
|
||||
.EasyMDEContainer .editor-preview-side img.wiki-image-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.markdown-body img.wiki-image-right,
|
||||
.EasyMDEContainer .editor-preview img.wiki-image-right,
|
||||
.EasyMDEContainer .editor-preview-side img.wiki-image-right {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.markdown-body img.wiki-image-float-left,
|
||||
.EasyMDEContainer .editor-preview img.wiki-image-float-left,
|
||||
.EasyMDEContainer .editor-preview-side img.wiki-image-float-left {
|
||||
float: left;
|
||||
margin: .2rem 1rem .75rem 0;
|
||||
}
|
||||
|
||||
.markdown-body img.wiki-image-float-right,
|
||||
.EasyMDEContainer .editor-preview img.wiki-image-float-right,
|
||||
.EasyMDEContainer .editor-preview-side img.wiki-image-float-right {
|
||||
float: right;
|
||||
margin: .2rem 0 .75rem 1rem;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.top-chrome {
|
||||
position: static;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.account-bar {
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.navigation-row {
|
||||
grid-template-columns: 1fr;
|
||||
gap: .35rem;
|
||||
}
|
||||
|
||||
.page-action-links {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
/* 0.2.12 navigation polish --------------------------------------------- */
|
||||
.account-separator {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* Account and page actions are navigation, not push buttons. Keep them on
|
||||
the same visual scale as the breadcrumb. */
|
||||
.account-bar,
|
||||
.page-action-links {
|
||||
font-size: .86rem;
|
||||
}
|
||||
|
||||
.top-chrome {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* Keep the page navigation available while reading long documents too. */
|
||||
@media (max-width: 900px) {
|
||||
.top-chrome {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 120;
|
||||
background: white;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user