Browse Source

Cleaning up the tab bar active states.

pull/220/head
connors 11 years ago
parent
commit
6634952a9f
  1. 19
      dist/ratchet.css
  2. 22
      lib/sass/bars.scss

19
dist/ratchet.css vendored

@ -360,20 +360,23 @@ strong {
-webkit-box-flex: 1; -webkit-box-flex: 1;
box-flex: 1; box-flex: 1;
} }
.tab-item .tab-label,
.tab-item .icon { .tab-item .icon {
width: 24px; color: #929292;
height: 24px;
margin-top: -2px;
} }
.tab-item .tab-label {
.tab-label {
margin-top: -2px; margin-top: -2px;
font-size: 11px; font-size: 11px;
font-weight: 400; font-weight: 400;
color: #929292;
} }
.tab-item .icon {
.tab-item.active .tab-label { width: 24px;
height: 24px;
margin-top: -2px;
}
.tab-item.active .tab-label,
.tab-item.active .icon, .tab-item:active .tab-label,
.tab-item:active .icon {
color: #007aff; color: #007aff;
} }

22
lib/sass/bars.scss

@ -99,11 +99,9 @@
text-align: center; text-align: center;
@include box-flex(1); @include box-flex(1);
.tab-label,
.icon { .icon {
width: 24px; color: $default-color;
height: 24px;
margin-top: -2px;
}
} }
// Label for tab // Label for tab
@ -111,11 +109,23 @@
margin-top: -2px; margin-top: -2px;
font-size: 11px; font-size: 11px;
font-weight: 400; font-weight: 400;
color: $default-color;
} }
.tab-item.active .tab-label {
.icon {
width: 24px;
height: 24px;
margin-top: -2px;
}
// Active states for the tab bar
&.active,
&:active {
.tab-label,
.icon {
color: $primary-color; color: $primary-color;
} }
}
}
// Nav bar in popovers // Nav bar in popovers
// -------------------------------------------------- // --------------------------------------------------

Loading…
Cancel
Save