Browse Source

Merge pull request #265 from medokin/master

Added badge to tab-item
pull/610/merge
XhmikosR 10 years ago
parent
commit
12a156146e
  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

@ -563,6 +563,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;
@ -573,6 +574,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

@ -563,6 +563,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;
@ -573,6 +574,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

@ -91,6 +91,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;
@ -104,6 +105,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