From 7ba3812f918983a47cda678c31d12e0cd089677a Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Mon, 28 Apr 2014 13:39:23 +0800 Subject: * moved 'introduction.js' -> 'sidebar.js' * moved 'introduction.css' -> 'sidebar.css' * updated page introduction.html * updated index.html and navbar.html --- static/css/index.css | 2 +- static/css/sidebar.css | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 static/css/sidebar.css (limited to 'static/css') diff --git a/static/css/index.css b/static/css/index.css index 344ff07..6a2d573 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -31,7 +31,7 @@ .masthead-links { list-style: none outside none; margin-top: 10px; - margin-bottom: 20px; + margin-bottom: 10px; padding: 0 15px; text-align: center; } diff --git a/static/css/sidebar.css b/static/css/sidebar.css new file mode 100644 index 0000000..8208983 --- /dev/null +++ b/static/css/sidebar.css @@ -0,0 +1,32 @@ +/* + * css for sidebar + */ + +.navbar-bright { + background-color: #111155; + color: #fff; +} + +.affix-top, .affix{ + position: static; +} + +@media (min-width: 979px) { + #sidebar.affix-top { + position: static; + margin-top: 30px; + width: 228px; + } + + #sidebar.affix { + position: fixed; + top: 70px; + width: 228px; + } +} + +#sidebar li.active { + border: 0 #eee solid; + border-left-width: 5px; +} + -- cgit v1.2.2