From 66e63651a753eaaf282221a526b592dc731f6e41 Mon Sep 17 00:00:00 2001 From: gseguin Date: Wed, 21 Sep 2011 22:25:12 -0700 Subject: [PATCH] Added docs for data-content-theme --- docs/content/content-themes.html | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/docs/content/content-themes.html b/docs/content/content-themes.html index 7ce05325..f3a5e6c3 100755 --- a/docs/content/content-themes.html +++ b/docs/content/content-themes.html @@ -24,10 +24,12 @@

Theming the content area

The main content area of a page (container with the data-role="content" attribute) should be themed by adding the data-theme attribute to the data-role="page" container to ensure that the background colors are applied to the full page, regardless of the content length. (If you add to the data-theme to the content container, the background color will stop after the content so there may be a gap in color between the content and fixed footer.)

- +

Additionally, the content area can be themed to match the theme of the collapsible header using the data-content-theme attribute.

+ -<div data-role="page" data-theme="a"> - +<div data-role="page" data-theme="a" data-content-theme="a"> + +

Theming collapsible blocks

To set the color of the collapsible header, add the data-theme attribute to the collapsible container. The icon and body are not currently themable through data attributes, but can be styled directly with custom css.

@@ -44,6 +46,10 @@

I'm an themed collapsible

I have data-theme attribute set manually on my container to set the color to match the content block I'm in.

+
+

I'm a themed collapsible with a themed content

+

I have data-content-theme attribute set manually on my container to set the color to match the content block I'm in.

+

B theme swatch on content & collapsible

@@ -54,6 +60,10 @@

I'm an themed collapsible

I have data-theme attribute set manually on my container to set the color to match the content block I'm in.

+
+

I'm a themed collapsible with a themed content

+

I have data-content-theme attribute set manually on my container to set the color to match the content block I'm in.

+

C theme swatch on content & collapsible

@@ -64,6 +74,10 @@

I'm an themed collapsible

I have data-theme attribute set manually on my container to set the color to match the content block I'm in.

+
+

I'm a themed collapsible with a themed content

+

I have data-content-theme attribute set manually on my container to set the color to match the content block I'm in.

+

D theme swatch on content & collapsible

@@ -74,6 +88,10 @@

I'm an themed collapsible

I have data-theme attribute set manually on my container to set the color to match the content block I'm in.

+
+

I'm a themed collapsible with a themed content

+

I have data-content-theme attribute set manually on my container to set the color to match the content block I'm in.

+

E theme swatch on content & collapsible

@@ -84,6 +102,10 @@

I'm an themed collapsible

I have data-theme attribute set manually on my container to set the color to match the content block I'm in.

+
+

I'm a themed collapsible with a themed content

+

I have data-content-theme attribute set manually on my container to set the color to match the content block I'm in.

+