From ea1dd86a3bf4e0316ddc703eba134fc5afebbcd8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?=
<5621605+rodrigogiraoserrao@users.noreply.github.com>
Date: Wed, 21 Dec 2022 21:38:05 +0000
Subject: [PATCH] Uniformise CSS rules reference format.
---
docs/styles/align.md | 11 ++++++++---
docs/styles/background.md | 4 ++++
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/docs/styles/align.md b/docs/styles/align.md
index eccb0b637..41fb1b80f 100644
--- a/docs/styles/align.md
+++ b/docs/styles/align.md
@@ -3,18 +3,19 @@
The `align` style aligns children within a container.
Not to be confused with [`content-align`](../content_align).
-You can specify the alignment of children on both the horizontal and vertical axes at the same time,
-or on each of the axis separately.
-
## Syntax
--8<-- "docs/snippets/syntax_block_start.md"
align: <horizontal> <vertical>;
+
align-horizontal: <horizontal>;
align-vertical: <vertical>;
--8<-- "docs/snippets/syntax_block_end.md"
The style `align` takes a [``](../css_types/horizontal.md) followed by a [``](../css_types/vertical.md).
+
+You can specify the alignment of children on both the horizontal and vertical axes at the same time,
+or on each of the axis separately.
To specify alignment on a single axis, use the respective style and type:
- `align-horizontal` takes a [``](../css_types/horizontal.md) and does alignment along the horizontal axis; and
@@ -22,8 +23,12 @@ To specify alignment on a single axis, use the respective style and type:
### Values
+#### <horizontal>
+
--8<-- "docs/snippets/type_syntax/horizontal.md"
+#### <vertical>
+
--8<-- "docs/snippets/type_syntax/vertical.md"
diff --git a/docs/styles/background.md b/docs/styles/background.md
index 09a94f609..be2d7f867 100644
--- a/docs/styles/background.md
+++ b/docs/styles/background.md
@@ -12,8 +12,12 @@ The style `background` needs a [``](../css_types/color.md) followed by an
### Values
+#### <color>
+
--8<-- "docs/snippets/type_syntax/color.md"
+#### <percentage>
+
--8<-- "docs/snippets/type_syntax/percentage.md"
This is clamped between `0%` and `100%`.