diff --git a/dist/css/ratchet.css b/dist/css/ratchet.css
index a873e99..d75eeaa 100644
--- a/dist/css/ratchet.css
+++ b/dist/css/ratchet.css
@@ -552,6 +552,7 @@ input[type="button"] {
border-bottom: 0;
}
.bar-tab .tab-item {
+ position: relative;
display: table-cell;
width: 1%;
height: 50px;
@@ -562,6 +563,12 @@ input[type="button"] {
.bar-tab .tab-item.active, .bar-tab .tab-item:active {
color: #428bca;
}
+.bar-tab .tab-item .badge {
+ vertical-align: top;
+ position: absolute;
+ top: 3px;
+ left: 50%;
+}
.bar-tab .tab-item .icon {
top: 3px;
width: 24px;
diff --git a/docs/components.html b/docs/components.html
index e05da8a..ee31e4f 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -211,6 +211,7 @@ title: Components · Ratchet
Home
+ 3
Profile
diff --git a/docs/dist/css/ratchet.css b/docs/dist/css/ratchet.css
index a873e99..d75eeaa 100644
--- a/docs/dist/css/ratchet.css
+++ b/docs/dist/css/ratchet.css
@@ -552,6 +552,7 @@ input[type="button"] {
border-bottom: 0;
}
.bar-tab .tab-item {
+ position: relative;
display: table-cell;
width: 1%;
height: 50px;
@@ -562,6 +563,12 @@ input[type="button"] {
.bar-tab .tab-item.active, .bar-tab .tab-item:active {
color: #428bca;
}
+.bar-tab .tab-item .badge {
+ vertical-align: top;
+ position: absolute;
+ top: 3px;
+ left: 50%;
+}
.bar-tab .tab-item .icon {
top: 3px;
width: 24px;
diff --git a/sass/bars.scss b/sass/bars.scss
index 6fb3904..3d3b108 100644
--- a/sass/bars.scss
+++ b/sass/bars.scss
@@ -89,6 +89,7 @@
// Navigational tab (Nested to be more specific for the icons in tab-items)
.tab-item {
+ position: relative;
display: table-cell;
width: 1%;
height: $bar-tab-height;
@@ -102,6 +103,14 @@
color: $primary-color;
}
+ // Activity badge on an icon
+ .badge {
+ vertical-align: top;
+ position: absolute;
+ top: 3px;
+ left: 50%;
+ }
+
// Tab icon
.icon {
top: 3px;