From b441de2a9d6c9a7ea8a8325490f19b8043e5eb9a Mon Sep 17 00:00:00 2001 From: Michael An <1822852997@qq.com> Date: Tue, 1 Dec 2020 14:16:56 +0800 Subject: [PATCH] change page style --- manual/stylesheets/extra.css | 55 ++++++++++++++++++++++++++++++++++++ mkdocs.yml | 5 +++- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 manual/stylesheets/extra.css diff --git a/manual/stylesheets/extra.css b/manual/stylesheets/extra.css new file mode 100644 index 00000000..ffeaca9b --- /dev/null +++ b/manual/stylesheets/extra.css @@ -0,0 +1,55 @@ +.md-header[data-md-state=shadow] { + box-shadow: 0 0 0.1rem rgba(0,0,0,.1), 0 0.1rem 0.2rem rgba(0,0,0,.2); +} + +.md-footer { + background-color: #f5f5f5; + color: #333; +} + +.md-footer .md-footer-meta { + display: none; +} + +.md-header .md-header-nav__source { + display: none; +} + +.md-typeset :target>.headerlink, +.md-typeset .headerlink:focus, +.md-typeset .headerlink:hover, +.md-typeset a:focus, +.md-typeset a:hover, +.md-nav__link:focus, +.md-nav__link:hover, +.md-nav__item .md-nav__link--active, +.md-typeset a { + color: #eb8205; +} + +.md-header-nav__button.md-logo { + padding: 0; +} + +.md-header-nav__button.md-logo img, +.md-header-nav__button.md-logo svg { + width: 40px; + height: 40px; +} + +.md-header-nav__title { + padding: 0 0.25rem; +} + +.md-typeset h1 { + color: #333; + font-weight: 500; +} + +.md-nav__link { + margin-top: 18px; +} + +.md-nav__item { + padding-left: 16px; +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 69159d57..31784f92 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -13,7 +13,7 @@ theme: logo: media/seafile-transparent-1024.png favicon: media/favicon.ico palette: - primary: deep orange + primary: white accent: plugins: @@ -26,6 +26,9 @@ extra: - icon: fontawesome/brands/github link: https://github.com/haiwen/seafile-admin-docs/ +extra_css: + - stylesheets/extra.css + # Extensions markdown_extensions: - markdown.extensions.admonition