From 64bc05b247124e8a99ecad82df3049bba4b128f7 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 11 Aug 2017 12:36:04 -0400 Subject: [PATCH] Add nav fallback for unsupportive browsers --- source/css/_docs.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/css/_docs.css b/source/css/_docs.css index af26663c..ee1812bd 100644 --- a/source/css/_docs.css +++ b/source/css/_docs.css @@ -86,6 +86,20 @@ body { } } +/* Fallback to block nav for unsupportive browsers */ +@supports (not (display: grid)) { + #nav { + border: none; + text-align: center; + margin: 0 0 2rem 0; + } + + #nav a { + margin: .5rem; + display: inline-block; + } +} + h1[id]:not(:first-child), h2[id]:not(:first-child), h3[id]:not(:first-child),