From d4fd0dc226adcb777db055c0e0646ee6de54655c Mon Sep 17 00:00:00 2001 From: Paul C Pederson Date: Mon, 6 Oct 2014 14:47:09 -0700 Subject: [PATCH 1/6] implement active pages in third nav --- docs/source/layouts/_layout.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/source/layouts/_layout.html b/docs/source/layouts/_layout.html index 9b43a843a..d501f0da9 100644 --- a/docs/source/layouts/_layout.html +++ b/docs/source/layouts/_layout.html @@ -65,13 +65,13 @@

Web<
From 433d16b05854a72dfc500154e154b8d39f9fc47c Mon Sep 17 00:00:00 2001 From: Paul C Pederson Date: Mon, 6 Oct 2014 15:16:54 -0700 Subject: [PATCH 2/6] add styles for code blacks and inline code --- CHANGELOG.md | 1 + lib/sass/calcite-web/type/_type-styles.scss | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 831829c02..cd205e7b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Lots of foundational styles. - Modal - Accordion - Block Grid +- Code Styles ### Fixes - Type Helpers Cascade Properly diff --git a/lib/sass/calcite-web/type/_type-styles.scss b/lib/sass/calcite-web/type/_type-styles.scss index b293950b5..0bc977163 100644 --- a/lib/sass/calcite-web/type/_type-styles.scss +++ b/lib/sass/calcite-web/type/_type-styles.scss @@ -71,14 +71,22 @@ } code { + padding: .25rem; + border-radius: 3px; + border: 1px solid $lightest-gray; + color: $darkest-gray; + background: $off-white; white-space: pre; + @include font-size(-2); } pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; + max-width: 100%; code { + padding: 1rem; display: block; overflow: auto; word-wrap: normal; From 5d45bd7756020be6991d38ba29dffb7933a58b55 Mon Sep 17 00:00:00 2001 From: Paul C Pederson Date: Mon, 6 Oct 2014 15:17:23 -0700 Subject: [PATCH 3/6] add active classes to indicate current page --- docs/source/layouts/_layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/layouts/_layout.html b/docs/source/layouts/_layout.html index d501f0da9..19a74e49c 100644 --- a/docs/source/layouts/_layout.html +++ b/docs/source/layouts/_layout.html @@ -95,7 +95,7 @@

Web< {% block footer %} -