diff --git a/_sass/_base.scss b/_sass/_base.scss index d8e192b..73dad08 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -87,6 +87,16 @@ a { background: rgba(255,255,255,.10); } +/* scroll to top */ +#scroll-to-top { + display: none; + position: fixed; + bottom: 20px; + right: 20px; + z-index: 99; + font-size: 40px; +} + /* feature include tweaks */ .feature-alert p:last-of-type { margin-bottom: 0; } @media (min-width: 768px) { diff --git a/_sass/_custom.scss b/_sass/_custom.scss index f1df108..14bf9d2 100644 --- a/_sass/_custom.scss +++ b/_sass/_custom.scss @@ -1217,7 +1217,6 @@ blockquote { html { overflow-x: hidden; - max-width: 100vw; } *, @@ -1235,8 +1234,12 @@ object { height: auto; } -main * { - max-width: 100%; +@media (max-width: 768px) { + body { + overflow-x: hidden; + max-width: 100vw; + min-width: 0; + } } figure { @@ -1267,7 +1270,6 @@ figure { ============================================================================ */ #scroll-to-top { - display: none; position: fixed; bottom: 4.5rem; right: 1rem;