.has-header required in <main>

This commit is contained in:
Adam Bradley
2013-08-26 13:58:10 -05:00
parent 3362303b7d
commit 0a9c45398e
16 changed files with 21 additions and 17 deletions

View File

@ -17,7 +17,7 @@
<h1 class="title">Alerts</h1> <h1 class="title">Alerts</h1>
</header> </header>
<main class="content-padded"> <main class="content-padded has-header">
<p class="alert"> <p class="alert">
<strong>Warning!</strong> Best check yo self, you're not looking too good. <strong>Warning!</strong> Best check yo self, you're not looking too good.

View File

@ -17,7 +17,7 @@
<h1 class="title">Button Group</h1> <h1 class="title">Button Group</h1>
</header> </header>
<main class="content-padded"> <main class="content-padded has-header">
<p> <p>
<div class="button-group"> <div class="button-group">
<a class="button button-primary" href="index.html">Success</a> <a class="button button-primary" href="index.html">Success</a>

View File

@ -23,7 +23,7 @@
<h1 class="title">Buttons</h1> <h1 class="title">Buttons</h1>
</header> </header>
<main class="content-padded"> <main class="content-padded has-header">
<p> <p>
<a class="button button-default" href="grid.html">Default</a> <a class="button button-default" href="grid.html">Default</a>
<a class="button button-secondary" href="index.html">Secondary</a> <a class="button button-secondary" href="index.html">Secondary</a>

View File

@ -17,7 +17,7 @@
<h1 class="title">Footers</h1> <h1 class="title">Footers</h1>
</header> </header>
<main class="content-padded has-footer"> <main class="content-padded has-header has-footer">
<p>Footer should always stay at the bottom of the screen, and on top of the main content. <p>Footer should always stay at the bottom of the screen, and on top of the main content.
<ul> <ul>
<li>asdf <li>asdf

View File

@ -17,7 +17,7 @@
<h1 class="title">Image Swipe</h1> <h1 class="title">Image Swipe</h1>
</header> </header>
<main> <main class="has-header">
</main> </main>

View File

@ -23,7 +23,7 @@
<h1 class="title">Framework!!</h1> <h1 class="title">Framework!!</h1>
</header> </header>
<main class="content-padded"> <main class="content-padded has-header">
<p><a class="button button-default" href="alerts.html">Alerts</a></p> <p><a class="button button-default" href="alerts.html">Alerts</a></p>
<p><a class="button button-default" href="buttons.html">Buttons</a></p> <p><a class="button button-default" href="buttons.html">Buttons</a></p>
<p><a class="button button-default" href="button-groups.html">Button Groups</a></p> <p><a class="button button-default" href="button-groups.html">Button Groups</a></p>

View File

@ -17,7 +17,7 @@
<h1 class="title">Input: Slider</h1> <h1 class="title">Input: Slider</h1>
</header> </header>
<main> <main class="has-header">
</main> </main>

View File

@ -17,7 +17,7 @@
<h1 class="title">Input: Text</h1> <h1 class="title">Input: Text</h1>
</header> </header>
<main> <main class="has-header">
</main> </main>

View File

@ -17,7 +17,7 @@
<h1 class="title">Input: Toggle</h1> <h1 class="title">Input: Toggle</h1>
</header> </header>
<main> <main class="has-header">
</main> </main>

View File

@ -23,7 +23,7 @@
<h1 class="title">Customers</h1> <h1 class="title">Customers</h1>
</header> </header>
<main> <main class="has-header">
<ul class="list"> <ul class="list">
<a href="#" class="list-item"> <a href="#" class="list-item">
Sasafras Sasafras

View File

@ -17,7 +17,7 @@
<h1 class="title">Modals</h1> <h1 class="title">Modals</h1>
</header> </header>
<main> <main class="has-header">
</main> </main>

View File

@ -17,11 +17,15 @@
<h1 class="title">Panels</h1> <h1 class="title">Panels</h1>
</header> </header>
<main> <main class="has-header">
<p>A whole bunch of content</p>
</main> </main>
</section> </section>
<section class="panel-content">
Panel!
</section>
</body> </body>
</html> </html>

View File

@ -17,7 +17,7 @@
<h1 class="title">Popovers</h1> <h1 class="title">Popovers</h1>
</header> </header>
<main> <main class="has-header">
</main> </main>

View File

@ -17,7 +17,7 @@
<h1 class="title">Pull To Refresh</h1> <h1 class="title">Pull To Refresh</h1>
</header> </header>
<main class="ptr-capable"> <main class="ptr-capable has-header">
<p>Pull the content down to refresh.</p> <p>Pull the content down to refresh.</p>
</main> </main>

View File

@ -17,7 +17,7 @@
<h1 class="title">Tab Bars</h1> <h1 class="title">Tab Bars</h1>
</header> </header>
<main> <main class="has-header">
</main> </main>

View File

@ -77,7 +77,7 @@
/* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab. /* Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
Note: For these to work, content must come after both bars in the markup */ Note: For these to work, content must come after both bars in the markup */
.bar-header ~ main, .has-header { .has-header {
top: $barHeight; top: $barHeight;
} }