diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-02-16 23:52:12 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-02-17 00:22:28 -0700 |
| commit | 4dc7d6fdc074c750ffd1e13836c1cef38eaa78b4 (patch) | |
| tree | fa6f948d7bcdeae0cd58112978b4ee54b29a0025 | |
| parent | 5f5984c1aaf04566ff721e04b5c690013f4a36bc (diff) | |
follow-up to #724 document new theme keys to control table striping
- document table_body_background_color & table_body_stripe_background_color
- set default value for table_body_stripe_background_color in base theme
| -rw-r--r-- | data/themes/base-theme.yml | 1 | ||||
| -rw-r--r-- | docs/theming-guide.adoc | 37 |
2 files changed, 28 insertions, 10 deletions
diff --git a/data/themes/base-theme.yml b/data/themes/base-theme.yml index cee974fd..6691541a 100644 --- a/data/themes/base-theme.yml +++ b/data/themes/base-theme.yml @@ -90,6 +90,7 @@ table_border_color: '000000' table_border_width: 0.5 table_cell_padding: 2 table_head_font_style: bold +table_body_stripe_background_color: 'EEEEEE' thematic_break_border_color: 'EEEEEE' thematic_break_border_style: solid thematic_break_border_width: 0.5 diff --git a/docs/theming-guide.adoc b/docs/theming-guide.adoc index 05a3ddb8..3cfe03c4 100644 --- a/docs/theming-guide.adoc +++ b/docs/theming-guide.adoc @@ -2666,6 +2666,22 @@ The keys in this category control the arrangement and style of tables and table head: text_transform: uppercase +3+|[#key-prefix-table-body]*Key Prefix:* <<key-prefix-table-body,table_body>> + +|background_color +|<<colors,Color>> + +(default: $table_background_color) +|table: + body: + background_color: #fdfdfd + +|stripe_background_color^[1]^ +|<<colors,Color>> + +(default: #eeeeee) +|table: + body: + stripe_background_color: #efefef + 3+|[#key-prefix-table-foot]*Key Prefix:* <<key-prefix-table-foot,table_foot>> |background_color @@ -2703,14 +2719,15 @@ The keys in this category control the arrangement and style of tables and table foot: font_style: italic -3+|[#key-prefix-table-row]*Key Prefix:* <<key-prefix-table-row,table_<parity>_row>>^[1]^ - -|background_color -|<<colors,Color>> + -(default: $table_background_color) -|table: - even_row: - background_color: #f9f9f9 +//deprecated +//3+|[#key-prefix-table-row]*Key Prefix:* <<key-prefix-table-row,table_<parity>_row>>^[1]^ +// +//|background_color +//|<<colors,Color>> + +//(default: $table_background_color) +//|table: +// even_row: +// background_color: #f9f9f9 3+|[#key-prefix-table-cell]*Key Prefix:* <<key-prefix-table-cell,table_cell>> @@ -2772,8 +2789,8 @@ The keys in this category control the arrangement and style of tables and table header_cell: text_transform: uppercase |=== - -. `<parity>` can be `odd` (odd rows) or `even` (even rows). +. Applied to even rows by default; controlled using `stripe` attribute (even, odd, all, none) on table. +//. `<parity>` can be `odd` (odd rows) or `even` (even rows). [#keys-table-of-contents] === Table of Contents (TOC) |
