From ab4294f4d6a4a7770640aaceab5a3e20fe0bb556 Mon Sep 17 00:00:00 2001 From: Tyler Mills Date: Sat, 27 Feb 2021 23:02:44 -0500 Subject: [PATCH] fix(docs): Fixes UI (#527) --- docs/assets/stylesheets/home_overrides.css | 101 +++++++++++++++++++ docs/overrides/home.html | 111 ++------------------- docs/overrides/main.html | 5 - docs/overrides/partials/footer.html | 111 ++++++--------------- docs/overrides/partials/header.html | 83 --------------- docs/readme.md | 10 ++ 6 files changed, 151 insertions(+), 270 deletions(-) create mode 100644 docs/assets/stylesheets/home_overrides.css delete mode 100644 docs/overrides/partials/header.html create mode 100644 docs/readme.md diff --git a/docs/assets/stylesheets/home_overrides.css b/docs/assets/stylesheets/home_overrides.css new file mode 100644 index 000000000..713c49eef --- /dev/null +++ b/docs/assets/stylesheets/home_overrides.css @@ -0,0 +1,101 @@ +/* Remove spacing, as we cannot hide it completely */ +.md-main__inner { + margin: 0; +} + +/* Hide main content for now */ +.md-content { + display: none; +} + +/* Hide table of contents */ +@media screen and (min-width: 60em) { + .md-sidebar--secondary { + display: none; + } +} + +/* Hide navigation */ +@media screen and (min-width: 76.25em) { + .md-sidebar--primary { + display: none; + } +} + +.md-main { + background: var(--md-default-fg-color); +} + +.md-typeset h1 { + color: var(--md-default-bg-color--light); +} + +.tx-container { + background: var(--md-default-fg-color); + padding-top: 1rem; +} + +.tx-hero { + display: flex; + align-content: center; + justify-content: center; + flex-direction: column; + min-height: 400px; + margin: 0 0.8rem; +} + +.tx-hero div { + padding-top: 0.5rem; + padding-bottom: 0.5rem; +} + +.tx-hero__image { + text-align: center; +} + +.tx-hero__content { + text-align: center; +} + +.tx-hero__content .md-button { + background-color: transparent; + color: var(--md-primary-bg-color--light); + border-color: var(--md-primary-bg-color--light); +} + +.tx-hero__content .md-button--primary { + background-color: var(--muo-gold); + color: var(--md-primary-fg-color); + border-color: transparent; +} + +.tx-hero__content .md-button:hover { + border-color: transparent; + color: var(--md-primary-fg-color); + background-color: var(--md-primary-bg-color); +} + +.tx-hero__content .md-button--primary:hover { + border-color: var(--md-primary-bg-color--light); +} + +/*@media screen and (max-width: 60em)*/ +/*{*/ +/* .tx-hero__image img {*/ +/* max-width: 64px;*/ +/* }*/ +/*}*/ + +@media screen and (max-width: 60em) +{ + .tx-hero__image img { + max-width: 128px; + } +} + +@media screen and (min-width: 60em) +{ + .tx-hero__image img { + max-width: 200px; + } +} diff --git a/docs/overrides/home.html b/docs/overrides/home.html index 406173eb7..64153b7bf 100644 --- a/docs/overrides/home.html +++ b/docs/overrides/home.html @@ -1,113 +1,16 @@ {% extends "main.html" %} +{% block extrahead %} + + +{% endblock %} {% block tabs %} {{ super() }} - -
diff --git a/docs/overrides/main.html b/docs/overrides/main.html index a22023f94..e49ce3a10 100644 --- a/docs/overrides/main.html +++ b/docs/overrides/main.html @@ -30,11 +30,6 @@ - - {% endblock %} diff --git a/docs/overrides/partials/footer.html b/docs/overrides/partials/footer.html index b28b2a89e..d160b2f2c 100644 --- a/docs/overrides/partials/footer.html +++ b/docs/overrides/partials/footer.html @@ -1,87 +1,44 @@ - - +{#- +This file was automatically generated - do not edit +-#} {% import "partials/language.html" as lang with context %} - -