mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
footer
This commit is contained in:
4
dist/framework-with-theme.css
vendored
4
dist/framework-with-theme.css
vendored
@ -129,10 +129,10 @@ main > * {
|
||||
|
||||
/* 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 */
|
||||
.bar ~ main {
|
||||
.bar-header ~ main {
|
||||
top: 50px; }
|
||||
|
||||
.bar ~ main {
|
||||
.has-footer {
|
||||
bottom: 50px; }
|
||||
|
||||
/* Bar docked to bottom used for primary app navigation */
|
||||
|
||||
@ -17,10 +17,85 @@
|
||||
<h1 class="title">Footers</h1>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
||||
<main class="content-padded has-footer">
|
||||
<p>Footer should always stay at the bottom of the screen, and on top of the main content.
|
||||
<ul>
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
<li>asdf
|
||||
</ul>
|
||||
<p>Bottom of the list
|
||||
</main>
|
||||
|
||||
<footer class="bar bar-footer bar-dark">
|
||||
<h3 class="title"> Me footer </h3>
|
||||
</footer>
|
||||
|
||||
</section>
|
||||
|
||||
</body>
|
||||
|
||||
@ -75,9 +75,11 @@
|
||||
|
||||
/* 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 */
|
||||
.bar ~ main {
|
||||
.bar-header ~ main {
|
||||
top: $barHeight;
|
||||
}
|
||||
.bar ~ main {
|
||||
|
||||
.has-footer {
|
||||
bottom: $barHeight;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user