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. 30
      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;
} }

30
lib/sass/bars.scss

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

Loading…
Cancel
Save