diff --git a/example/styleguide/res/sass/_style-guide-base.scss b/example/styleguide/res/sass/_style-guide-base.scss index 23a6443e62..8280bcae9a 100644 --- a/example/styleguide/res/sass/_style-guide-base.scss +++ b/example/styleguide/res/sass/_style-guide-base.scss @@ -37,7 +37,7 @@ //border-bottom: 1px solid $colorInteriorBorder; font-size: 0.9em; margin: $interiorMargin 0; - &:not(first-child) { margin-top: $interiorMargin * 2; } + &:not(:first-child) { margin-top: $interiorMarginLg * 2; } text-transform: uppercase; } @@ -45,7 +45,7 @@ pre { background-color: pushBack($colorBodyBg, 20%); display: inline-block; - font-size: 0.8em; + font-size: 0.8rem; } code { @@ -55,8 +55,11 @@ pre { border-radius: $interiorMargin; + display: block; margin: 0; + overflow: auto; padding: $interiorMargin $interiorMarginLg; + white-space: pre; } .doc-title { diff --git a/example/styleguide/res/templates/controls.html b/example/styleguide/res/templates/controls.html index 60fdacb256..387da83e25 100644 --- a/example/styleguide/res/templates/controls.html +++ b/example/styleguide/res/templates/controls.html @@ -37,7 +37,8 @@ Edit Edit - + + @@ -47,15 +48,9 @@

Major buttons allow emphasis to be placed on a button. Use this on a single button when the user has a small number of choices, and one choice is a normal default. Just add .major to any element that uses .s-button.

-
-

Markup

-
-<a class="s-button major">Ok</a>
-<a class="s-button">Cancel</a>
-

Example

- Ok - Cancel -
+Ok +Cancel + @@ -66,22 +61,13 @@

Use button sets to connect buttons that have related purpose or functionality. Buttons in a set round the outer corners of only the first and last buttons, any other buttons in the middle simply get division spacers.

To use, simply wrap two or more .s-button elements within .l-btn-set.

-
-

Markup

-
-<span class="l-btn-set">
-    <a class="s-button icon-magnify"></a>
-    <a class="s-button icon-magnify-in"></a>
-    <a class="s-button icon-magnify-out"></a>
-</span>
-

Example

- - - - - + + + + + +
-
@@ -91,28 +77,20 @@

Checkboxes use a combination of minimal additional markup with CSS to present a custom and common look-and-feel across platforms.

The basic structure is a label with a checkbox-type input and an em element inside. The em is needed as the holder of the custom element; the input itself is hidden. Putting everything inside the label allows the label itself to act as a clickable element.

-
-

Markup

-
-
-                
- -

Example

- -
- -
- -
+ +
+ +
+
@@ -122,28 +100,40 @@

Radio buttons use the same technique as checkboxes above.

+ +
+ +
+ +
+ + + +
+

Selects

+
-

Markup

-
-
-                
- -

Example

- -
- -
- +

Similar to checkboxes and radio buttons, selects use a combination of minimal additional markup with CSS to present a custom and common look-and-feel across platforms.

+
+ +
+