Remove css type <fractional>.

This commit is contained in:
Rodrigo Girão Serrão
2022-12-21 17:52:15 +00:00
parent 673088ca93
commit bcd08d2d46
2 changed files with 0 additions and 34 deletions

View File

@@ -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)

View File

@@ -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.