Browse Source

text only tab bar

pull/253/head
connors 11 years ago
parent
commit
6a2daea33a
  1. 34
      components.html
  2. 2
      dist/android-theme.css
  3. 14
      dist/ratchet.css
  4. 2
      docs-assets/css/docs.css
  5. 18
      lib/sass/bars.scss
  6. 2
      lib/sass/theme-android.scss

34
components.html

@ -251,6 +251,40 @@ base_url: "../"
<p class="component-note touch-only"><strong>Note:</strong> Use push.js to actually change content.</p> <p class="component-note touch-only"><strong>Note:</strong> Use push.js to actually change content.</p>
</article> </article>
<article class="component">
<h3 class="component-title">Tab bar (labels only)</h3>
<div class="component-example component-example-fullbleed">
<nav class="bar bar-tab">
<a class="tab-item active" href="#">
<div class="tab-label">Label</div>
</a>
<a class="tab-item" href="#">
<div class="tab-label">Label</div>
</a>
<a class="tab-item" href="#">
<div class="tab-label">Label</div>
</a>
</nav>
</div>
{% highlight html %}
<nav class="bar bar-tab">
<a class="tab-item active" href="#">
<div class="tab-label">Label</div>
</a>
<a class="tab-item" href="#">
<div class="tab-label">Label</div>
</a>
<a class="tab-item" href="#">
<div class="tab-label">Label</div>
</a>
</nav>
{% endhighlight %}
<p class="component-note touch-only"><strong>Note:</strong> Use push.js to actually change content.</p>
</article>
<article class="component"> <article class="component">
<h3 class="component-title">Standard bars</h3> <h3 class="component-title">Standard bars</h3>
<p class="component-description">Standard bars are basic fixed elements that can be positioned in 3 places. These can be used to house buttons or segmented controls (see following examples).</p> <p class="component-description">Standard bars are basic fixed elements that can be positioned in 3 places. These can be used to house buttons or segmented controls (see following examples).</p>

2
dist/android-theme.css vendored

@ -176,7 +176,7 @@ a:active {
border-top: 0; border-top: 0;
} }
.bar-tab .tab-item .icon { .bar-tab .tab-item .icon {
margin-top: 0; margin-top: 5px;
} }
.bar-tab .tab-item.active .tab-label, .bar-tab .tab-item.active .tab-label,
.bar-tab .tab-item.active .icon, .bar-tab .tab-item:active .tab-label, .bar-tab .tab-item.active .icon, .bar-tab .tab-item:active .tab-label,

14
dist/ratchet.css vendored

@ -524,22 +524,22 @@ input[type="button"] {
display: table-cell; display: table-cell;
height: 100%; height: 100%;
width: 1%; width: 1%;
vertical-align: bottom; vertical-align: middle;
text-align: center; text-align: center;
} }
.bar-tab .tab-item .tab-label, .bar-tab .tab-item .tab-label,
.bar-tab .tab-item .icon { .bar-tab .tab-item .icon {
color: #929292; color: #929292;
} }
.bar-tab .tab-item .tab-label {
margin-top: -2px;
font-size: 11px;
font-weight: 400;
}
.bar-tab .tab-item .icon { .bar-tab .tab-item .icon {
width: 24px; width: 24px;
height: 24px; height: 24px;
margin-top: 0; margin-top: 5px;
}
.bar-tab .tab-item .icon ~ .tab-label {
margin-top: -2px;
font-size: 11px;
font-weight: 400;
} }
.bar-tab .tab-item.active .tab-label, .bar-tab .tab-item.active .tab-label,
.bar-tab .tab-item.active .icon, .bar-tab .tab-item:active .tab-label, .bar-tab .tab-item.active .icon, .bar-tab .tab-item:active .tab-label,

2
docs-assets/css/docs.css

@ -1348,7 +1348,7 @@ hr {
border-top: 0; border-top: 0;
} }
.platform-android .bar-tab .tab-item .icon { .platform-android .bar-tab .tab-item .icon {
margin-top: 0; margin-top: 5px;
} }
.platform-android .bar-tab .tab-item.active .tab-label, .platform-android .bar-tab .tab-item.active .tab-label,
.platform-android .bar-tab .tab-item.active .icon, .platform-android .bar-tab .tab-item:active .tab-label, .platform-android .bar-tab .tab-item.active .icon, .platform-android .bar-tab .tab-item:active .tab-label,

18
lib/sass/bars.scss

@ -90,7 +90,7 @@
display: table-cell; display: table-cell;
height: 100%; height: 100%;
width: 1%; width: 1%;
vertical-align: bottom; vertical-align: middle;
text-align: center; text-align: center;
.tab-label, .tab-label,
@ -98,18 +98,18 @@
color: #929292; color: #929292;
} }
// Label for tab
.tab-label {
margin-top: -2px;
font-size: 11px;
font-weight: 400;
}
// Tab icon // Tab icon
.icon { .icon {
width: 24px; width: 24px;
height: 24px; height: 24px;
margin-top: 0; margin-top: 5px;
// Make the label smaller if it's used with an icon
~ .tab-label {
margin-top: -2px;
font-size: 11px;
font-weight: 400;
}
} }
// Active states for the tab bar // Active states for the tab bar

2
lib/sass/theme-android.scss

@ -259,7 +259,7 @@ a {
.tab-item { .tab-item {
.icon { .icon {
margin-top: 0; margin-top: 5px;
} }
// Active states for the tab bar // Active states for the tab bar

Loading…
Cancel
Save