mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove css type <fractional>.
This commit is contained in:
@@ -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)
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user