From 3a7c7a5d0afe4ec44705899067ad879ad1bcd972 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Sun, 9 Jan 2011 18:23:33 -0500 Subject: [PATCH] docs - style docs-nav --- css/style.css | 69 +++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 53 insertions(+), 16 deletions(-) diff --git a/css/style.css b/css/style.css index 873e65e..44ecd50 100644 --- a/css/style.css +++ b/css/style.css @@ -51,6 +51,15 @@ a { text-decoration: none; } +a:hover { + color: #4BF; + border-bottom: 1px dotted; +} + +a:active { + color: #1FB; + background: black; +} /**** Isotope styles ****/ @@ -356,6 +365,50 @@ body.doc { margin-bottom: 20px; } +@media screen and (min-width: 768px) { + + body.doc { + margin-left: 220px; + } + + .doc nav { + width: 200px; + position: fixed; + left: 10px; + } + + .doc nav h1 { + margin-top: 0; + } + +} + +/**** Doc page nav ****/ + +#docs-nav h1 { + font-size: 20px; + margin-bottom: 0.5em; +} + +#docs-nav ul { + list-style: none; + margin: 0; + font-weight: bold; +} + +#docs-nav ul a { + display: block; + border: none; + padding: 1px 5px; +} + +#docs-nav ul .current a { + background: black; + color: #1BF; +} + +/**** Doc content ****/ + .doc h2, .doc footer { border-top: 1px solid #333; @@ -448,23 +501,7 @@ code .nc { color: #A78352; } /* CSS class */ code .m { color: #DE8E50; } /* CSS value */ code .nd { color: #9FAD7E; } /* CSS pseudo selector */ -@media screen and (min-width: 768px) { - body.doc { - margin-left: 220px; - } - - .doc nav { - width: 200px; - position: fixed; - left: 10px; - } - - .doc nav h1 { - margin-top: 0; - } - -} /**** Super list ****/