diff --git a/components.html b/components.html index 8b014ac..fcbf242 100644 --- a/components.html +++ b/components.html @@ -5,43 +5,44 @@ base_url: "../" --- -
-

Heads up! Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers.

-
+

+ Heads up! Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers. +

+ +
+ + + +
+
+
+

Components

+

Design patterns that serve as basic building blocks.

+
+
+
+
+
+

Title

+
+
+
+
- - - -
-
-
-

Components

-

Design patterns that serve as basic building blocks.

-
-
-
-
+ +
+

Title bar

+

Title bars are full width and docked to the top of the viewport.

+ +

Title

-
-
- - -
-

Title bar

-

Title bars are full width and docked to the top of the viewport.

- -
-
-

Title

-
-
{% highlight html %}
@@ -344,20 +345,20 @@ base_url: "../"
{% highlight html %} -
- \ No newline at end of file +
diff --git a/docs-assets/css/docs.css b/docs-assets/css/docs.css index 9196a68..552ca0d 100644 --- a/docs-assets/css/docs.css +++ b/docs-assets/css/docs.css @@ -83,6 +83,12 @@ h1, h2, h3, h4, h5, h6 { position: relative; } +.component-example-fullbleed, +.highlight { + margin-left: -15px; + margin-right: -15px; +} + .component-example .bar-header-secondary { top: 0; } @@ -267,6 +273,18 @@ h1, h2, h3, h4, h5, h6 { margin-right: -30px; } } +.notice-banner { + height: 0; + margin: 0; + padding: 0; + color: #333; + font-size: 16px; + text-align: center; + background-color: #fff9c4; + -webkit-animation: shownotice 1s infinite; + opacity: 0; +} + .iphone { display: none; } @@ -336,3 +354,19 @@ hr { -webkit-transform: scale(1); } } + +@-webkit-keyframes shownotice { + 0% { + height: auto; + min-height: 30px; + padding: 20px 0; + opacity: 1; + } + + 100% { + height: auto; + min-height: 30px; + padding: 20px 0; + opacity: 1; + } +} diff --git a/lib/sass/docs.scss b/lib/sass/docs.scss index bd1f564..a59fb2c 100644 --- a/lib/sass/docs.scss +++ b/lib/sass/docs.scss @@ -89,6 +89,11 @@ h1, h2, h3, h4, h5, h6 { .component-example .content { position: relative; } +.component-example-fullbleed, +.highlight { + margin-left: -15px; + margin-right: -15px; +} .component-example .bar-header-secondary { top: 0; } @@ -209,6 +214,18 @@ h1, h2, h3, h4, h5, h6 { // Misc // -------------------------------------------------- +.notice-banner { + height: 0; + margin: 0; + padding: 0; + color: #333; + font-size: 16px; + text-align: center; + background-color: #fff9c4; + opacity: 0; + -moz-animation: shownotice 1s infinite; +} + .iphone { display: none; } @@ -276,3 +293,19 @@ hr { -webkit-transform: scale(1); } } + +// Only visible to Mozilla browsers. Sneaky huh? +@-moz-keyframes shownotice { + 0% { + height: auto; + min-height: 30px; + padding: 20px 0; + opacity: 1; + } + 100% { + height: auto; + min-height: 30px; + padding: 20px 0; + opacity: 1; + } +}