Browse Source

Added badge to tab-items

pull/265/head
Nikodem Jaworski 11 years ago
parent
commit
1ac5d96077
  1. 7
      dist/css/ratchet.css
  2. 1
      docs/components.html
  3. 7
      docs/dist/css/ratchet.css
  4. 9
      sass/bars.scss

7
dist/css/ratchet.css vendored

@ -552,6 +552,7 @@ input[type="button"] {
border-bottom: 0; border-bottom: 0;
} }
.bar-tab .tab-item { .bar-tab .tab-item {
position: relative;
display: table-cell; display: table-cell;
width: 1%; width: 1%;
height: 50px; height: 50px;
@ -562,6 +563,12 @@ input[type="button"] {
.bar-tab .tab-item.active, .bar-tab .tab-item:active { .bar-tab .tab-item.active, .bar-tab .tab-item:active {
color: #428bca; color: #428bca;
} }
.bar-tab .tab-item .badge {
vertical-align: top;
position: absolute;
top: 3px;
left: 50%;
}
.bar-tab .tab-item .icon { .bar-tab .tab-item .icon {
top: 3px; top: 3px;
width: 24px; width: 24px;

1
docs/components.html

@ -211,6 +211,7 @@ title: Components · Ratchet
<span class="tab-label">Home</span> <span class="tab-label">Home</span>
</a> </a>
<a class="tab-item" href="#"> <a class="tab-item" href="#">
<div class="badge badge-negative badge-filled">3</div>
<span class="icon icon-person"></span> <span class="icon icon-person"></span>
<span class="tab-label">Profile</span> <span class="tab-label">Profile</span>
</a> </a>

7
docs/dist/css/ratchet.css vendored

@ -552,6 +552,7 @@ input[type="button"] {
border-bottom: 0; border-bottom: 0;
} }
.bar-tab .tab-item { .bar-tab .tab-item {
position: relative;
display: table-cell; display: table-cell;
width: 1%; width: 1%;
height: 50px; height: 50px;
@ -562,6 +563,12 @@ input[type="button"] {
.bar-tab .tab-item.active, .bar-tab .tab-item:active { .bar-tab .tab-item.active, .bar-tab .tab-item:active {
color: #428bca; color: #428bca;
} }
.bar-tab .tab-item .badge {
vertical-align: top;
position: absolute;
top: 3px;
left: 50%;
}
.bar-tab .tab-item .icon { .bar-tab .tab-item .icon {
top: 3px; top: 3px;
width: 24px; width: 24px;

9
sass/bars.scss

@ -89,6 +89,7 @@
// Navigational tab (Nested to be more specific for the icons in tab-items) // Navigational tab (Nested to be more specific for the icons in tab-items)
.tab-item { .tab-item {
position: relative;
display: table-cell; display: table-cell;
width: 1%; width: 1%;
height: $bar-tab-height; height: $bar-tab-height;
@ -102,6 +103,14 @@
color: $primary-color; color: $primary-color;
} }
// Activity badge on an icon
.badge {
vertical-align: top;
position: absolute;
top: 3px;
left: 50%;
}
// Tab icon // Tab icon
.icon { .icon {
top: 3px; top: 3px;

Loading…
Cancel
Save