diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-01-31 23:55:57 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-02-01 00:48:32 -0700 |
| commit | 44d22ff9df7e92a22b31ad84aba5baafa4a478fc (patch) | |
| tree | e33161401759a079bf572cd108b89756538c207f /docs | |
| parent | aed323c59bccc40b0e4a262ab81630f7ead3f76b (diff) | |
allow side padding on admonition label to be controlled separately
- allow side padding on admonition label to be controlled by admonition_label_padding
- set admonition_label_padding to admonition_label by default
- set top and bottom padding on admonition content "inside"k box
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/theming-guide.adoc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/theming-guide.adoc b/docs/theming-guide.adoc index d7d66139..14850852 100644 --- a/docs/theming-guide.adoc +++ b/docs/theming-guide.adoc @@ -2173,6 +2173,12 @@ The keys in this category control the arrangement and style of admonition blocks label: min_width: 48 +|padding^[1]^ +|<<measurement-units,Measurement>> {vbar} <<measurement-units,Measurement[top,right,bottom,left]>> + +(default: $admonition_padding) +|admonition: + padding: [0, 12, 0, 12] + |vertical_align |top {vbar} middle {vbar} bottom + (default: middle) @@ -2180,7 +2186,7 @@ The keys in this category control the arrangement and style of admonition blocks label: vertical_align: top -3+|*Key Prefix:* admonition_label, admonition_label_<name>^[1]^ +3+|*Key Prefix:* admonition_label, admonition_label_<name>^[2]^ |font_color |<<colors,Color>> + @@ -2217,10 +2223,10 @@ The keys in this category control the arrangement and style of admonition blocks label: text_transform: lowercase -3+|[#key-prefix-admonition-icon]*Key Prefix:* <<key-prefix-admonition-icon,admonition_icon_<name> >>^[1]^ +3+|[#key-prefix-admonition-icon]*Key Prefix:* <<key-prefix-admonition-icon,admonition_icon_<name> >>^[2]^ |name -|<icon set>-<icon name>^[2]^ + +|<icon set>-<icon name>^[3]^ + (default: _not set_) |admonition: icon: @@ -2244,6 +2250,7 @@ The keys in this category control the arrangement and style of admonition blocks size: 24 |=== +. The top and bottom padding values are ignored on admonition_label_padding. . `<name>` can be `note`, `tip`, `warning`, `important`, or `caution`. The subkeys in the icon category cannot be flattened (e.g., `tip_name: fa-lightbulb-o` is not valid syntax). . Required. |
