From 311f3c9d04722eaf02cc26b27d5cfa018639618f Mon Sep 17 00:00:00 2001 From: Daniel Hug Date: Tue, 27 Jan 2015 10:24:45 -0800 Subject: [PATCH] Add section on styling to README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index b3043df..3ae53a2 100644 --- a/README.md +++ b/README.md @@ -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`.