Skip to content

Commit

Permalink
Add section on styling to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Hug committed Jan 27, 2015
1 parent 661db93 commit 311f3c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ A declarative tabbed panels JS module
- To make panels hover over other page content add a "**hovering**" class to the `.tabbed-panels` wrapper. Combining the closeable and hovering classes will make the panels close when you click elsewhere on the page.
- To have a panel defaultly be open, add an "**active**" class to the panel, its tab, and its `.tabbed-panels` wrapper.

## Styling

You can use panels.css and/or your own custom CSS. Whenever a panel is open, it, its tab, and its `.tabbed-panels` wrapper all have an "**active**" class.

## Browser support
Requires `getElementsByClassName`, `classList`, `forEach`, and `filter`.

0 comments on commit 311f3c9

Please sign in to comment.