Browse Source

Adding basic grid and fixing the firefox notice.

pull/249/head
connors 11 years ago
parent
commit
31ad2d960e
  1. 33
      components.html
  2. 34
      docs-assets/css/docs.css
  3. 33
      lib/sass/docs.scss

33
components.html

@ -5,19 +5,20 @@ base_url: "../"
--- ---
<!-- Banner for Mozilla/IE --> <!-- Banner for Mozilla/IE -->
<div class="notice-banner"> <p class="notice-banner">
<p><strong>Heads up!</strong> Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers.</p> <strong>Heads up!</strong> Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers.
</div> </p>
<!--[if IE]> <div class="container">
<div class="notice-banner"> <!--[if IE]>
<div class="notice-banner">
<p><strong>Heads up!</strong> Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers.</p> <p><strong>Heads up!</strong> Ratchet components are written only for iPhone, so many are broken in non-Webkit browsers.</p>
</div> </div>
<![endif]--> <![endif]-->
<!-- Components --> <!-- Components -->
<section class="docs-outer-wrapper content-section section-components"> <div class="column-group">
<div class="docs-inner-wrapper"> <div class="column units-2">
<div class="section-header"> <div class="section-header">
<h2 class="section-title">Components</h2> <h2 class="section-title">Components</h2>
<p class="section-description">Design patterns that serve as basic building blocks.</p> <p class="section-description">Design patterns that serve as basic building blocks.</p>
@ -344,20 +345,20 @@ base_url: "../"
</div> </div>
{% highlight html %} {% highlight html %}
<ul class="table-view"> <ul class="table-view">
<li> <li class="table-view-cell">
<a> <a>
Item 1 Item 1
<span class="chevron"></span> <span class="chevron"></span>
</a> </a>
</li> </li>
<li> <li class="table-view-cell">
<a> <a>
Item 2 Item 2
<span class="chevron"></span> <span class="chevron"></span>
</a> </a>
</li> </li>
<li> <li class="table-view-cell">
<a> <a>
Item 3 Item 3
<span class="chevron"></span> <span class="chevron"></span>
@ -1048,6 +1049,6 @@ window.addEventListener('push', myFunction);
{% endhighlight %} {% endhighlight %}
</article> </article>
</div> </div>
</section> </div>
</div>

34
docs-assets/css/docs.css

@ -83,6 +83,12 @@ h1, h2, h3, h4, h5, h6 {
position: relative; position: relative;
} }
.component-example-fullbleed,
.highlight {
margin-left: -15px;
margin-right: -15px;
}
.component-example .bar-header-secondary { .component-example .bar-header-secondary {
top: 0; top: 0;
} }
@ -267,6 +273,18 @@ h1, h2, h3, h4, h5, h6 {
margin-right: -30px; 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 { .iphone {
display: none; display: none;
} }
@ -336,3 +354,19 @@ hr {
-webkit-transform: scale(1); -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;
}
}

33
lib/sass/docs.scss

@ -89,6 +89,11 @@ h1, h2, h3, h4, h5, h6 {
.component-example .content { .component-example .content {
position: relative; position: relative;
} }
.component-example-fullbleed,
.highlight {
margin-left: -15px;
margin-right: -15px;
}
.component-example .bar-header-secondary { .component-example .bar-header-secondary {
top: 0; top: 0;
} }
@ -209,6 +214,18 @@ h1, h2, h3, h4, h5, h6 {
// Misc // 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 { .iphone {
display: none; display: none;
} }
@ -276,3 +293,19 @@ hr {
-webkit-transform: scale(1); -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;
}
}

Loading…
Cancel
Save