Add overflow CSS type.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-04 11:25:47 +00:00
parent 80f2ad214b
commit 8fd118c4bc
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# <overflow>
The `<overflow>` CSS type represents overflow modes.
## Syntax
--8<-- "docs/snippets/type_syntax/overflow.md"
## Examples
### CSS
```sass
* {
rule: auto; /* Determine overflow mode automatically. */
rule: hidden; /* Don't overflow. */
rule: scroll; /* Allow overflowing. */
}
```
### Python
```py
overflow = "auto" # Determine overflow mode automatically.
overflow = "hidden" # Don't overflow.
overflow = "scroll" # Allow overflowing.
```

View File

@@ -0,0 +1,7 @@
The [`<overflow>`](/css_types/overflow) type can take any of the following values:
| Value | Description |
|----------|----------------------------------------|
| `auto` | Determine overflow mode automatically. |
| `hidden` | Don't overflow. |
| `scroll` | Allow overflowing. |

View File

@@ -36,6 +36,7 @@ nav:
- "css_types/integer.md"
- "css_types/name.md"
- "css_types/number.md"
- "css_types/overflow.md"
- "css_types/percentage.md"
- "css_types/scalar.md"
- "css_types/text_style.md"