Commit d5551514 authored by Sean Madsen's avatar Sean Madsen

material cust - sidebar improvements

Material 1.3.0 was just released with an additional feature to
improve the result when custom-setting the site header to be
non-fixed. This commit implements the necessary changes to take
advantage of this improvement.
Ref: https://github.com/squidfunk/mkdocs-material/issues/205
parent efe0d3c6
header.md-header {
/* make header non-fixed */
.md-container,
.md-main__inner {
padding-top: 0;
}
.md-header {
position: static;
height: auto;
}
.md-main__inner {
margin-top: 0;
padding-top: 1rem;
.md-sidebar[data-md-state=lock] {
top: 0;
}
/* Header tweaks */
header a.md-source:hover {
text-decoration: none;
}
/* Logo */
header.md-header .civi-logo {
float: left;
padding: 5px;
......@@ -18,6 +32,8 @@ header.md-header .civi-logo a {
padding: 0;
}
/* Nav for CiviCRM / Documentation */
header.md-header .civi-header {
padding-top: 0.8rem;
padding-left: 2rem;
......@@ -56,4 +72,4 @@ button[data-md-color-accent=green]{background-color:#81c459}
a:hover {text-decoration: underline; }
md-header-nav__source a:hover {text-decoration: none;}
<header class="md-header">
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid">
<div class="md-flex civi-logo">
<div class="md-flex__cell md-flex__cell--shrink">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment