From a8625f452ef45fb1a59c049cf02608408303e817 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 9 Jul 2014 00:15:20 -0700 Subject: Badges, navs, and more --- docs/assets/css/src/docs.css | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'docs/assets/css/src/docs.css') diff --git a/docs/assets/css/src/docs.css b/docs/assets/css/src/docs.css index 0c5e0e918..f4040bf27 100644 --- a/docs/assets/css/src/docs.css +++ b/docs/assets/css/src/docs.css @@ -949,32 +949,41 @@ h1[id] { .bs-example { position: relative; - padding-top: 3rem; + padding: 1.5rem; margin-top: 1rem; + margin-bottom: -1rem; + border: solid #f7f7f9; + border-width: .2rem 0 0; } /* Echo out a label for the example */ .bs-example:before { position: absolute; top: 0; - display: inline-block; - padding: .5rem .75rem; - font-size: .8rem; + display: none; + padding: .4rem .75rem; + font-size: .75rem; font-weight: bold; color: #fff; text-transform: uppercase; letter-spacing: .1rem; content: "Example"; - background-color: #818a91; + background-color: #eb4c82; border-radius: .2rem; } /* Tweak display of the code snippets when following an example */ .bs-example + .highlight:before { - position: absolute; +/* position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; +*/} + +@media (min-width: 480px) { + .bs-example { + border-width: .2rem; + } } /* Undo width of container */ -- cgit v1.2.3