diff --git a/docs/css_types/fractional.md b/docs/css_types/fractional.md deleted file mode 100644 index 9ef896916..000000000 --- a/docs/css_types/fractional.md +++ /dev/null @@ -1,28 +0,0 @@ -# Fractional - -## Syntax - ---8<-- "docs/styles/snippets/fractional_syntax.md" - -!!! warning - - Not to be confused with the [percentage](./percentage.md) unit nor with the [scalar](./scalar.md) unit. - -## Examples - -```css -Widget { - text-opacity: 0.45; - text-opacity: 45%; -} -``` - -```py -widget.styles.text_opacity = 0.45 -widget.styles.text_opacity = "45%" -``` - -## Used by - - - [`opacity`](../opacity.md) - - [`text-opacity`](../text_opacity.md) diff --git a/docs/snippets/fractional_syntax.md b/docs/snippets/fractional_syntax.md deleted file mode 100644 index 9c7a28029..000000000 --- a/docs/snippets/fractional_syntax.md +++ /dev/null @@ -1,6 +0,0 @@ -A [fractional](/styles/css_units/fractional) value can be set to - - - a float between 0 and 1 (e.g., `0.45`); or - - a percentage between 0% and 100% (e.g., `45%`). - -Values outside their ranges will be clamped.