0.0.6 • Published 10 years ago

ember-sliding-tab-bar v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

Ember-sliding-tab-bar

Ember Observer Score

ember-sliding-tab-bar shows the active tab by using a sliding bottom border which reacts to clicks and route changes.

It uses the MutationObserver DOM API to watch for the active class on it's child tabs and moves a sliding 'highlight tab' to that location. When MutationObservers are not available (mainly IE10 and below) it falls back to plain CSS.

Installation

$ npm install --save-dev ember-sliding-tab-bar

Usage

{{#sliding-tab-bar}}
  <li>{{#link-to '1'}}Route 1{{/link-to}}</li>
  <li>{{#link-to '2'}}Route 2{{/link-to}}</li>
  {{!-- ... --}}
{{/sliding-tab-bar}}

Configuration Styles

The tab highlight size/color is the thing you'll most likely want to change. To do so, add the following to your CSS:

.sliding-tab-bar li.tab-highlight {
  border-bottom: solid ${height of highlight}px ${highlight color};
}

If you need to overwrite anything else just checkout vendor/sliding-tab-bar.css as the styles are fairly basic.

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago