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)
|
||||
Reference in New Issue
Block a user