mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Style all Textual CSS as 'sass'
Textual CSS is better highlighted in SASS code blocks because the SASS parser seems to be more lenient.
This commit is contained in:
@@ -35,7 +35,7 @@ The example below shows a 4 by 4 grid where many placeholders span over several
|
||||
|
||||
=== "column_span.css"
|
||||
|
||||
```css
|
||||
```sass
|
||||
--8<-- "docs/examples/styles/column_span.css"
|
||||
```
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ Because there are more rows than scalars in the style rule, the scalars will be
|
||||
|
||||
=== "grid_columns.css"
|
||||
|
||||
```css
|
||||
```sass
|
||||
--8<-- "docs/examples/styles/grid_columns.css"
|
||||
```
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ The example below employs a common trick to apply visually consistent spacing ar
|
||||
|
||||
=== "grid_gutter.css"
|
||||
|
||||
```css
|
||||
```sass
|
||||
--8<-- "docs/examples/styles/grid_gutter.css"
|
||||
```
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ Because there are more rows than scalars in the style rule, the scalars will be
|
||||
|
||||
=== "grid_rows.css"
|
||||
|
||||
```css
|
||||
```sass
|
||||
--8<-- "docs/examples/styles/grid_rows.css"
|
||||
```
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ In the first example, we create a grid with 2 columns and 5 rows, regardless of
|
||||
|
||||
=== "grid_size_both.css"
|
||||
|
||||
```css hl_lines="2"
|
||||
```sass hl_lines="2"
|
||||
--8<-- "docs/examples/styles/grid_size_both.css"
|
||||
```
|
||||
|
||||
@@ -60,7 +60,7 @@ In the second example, we create a grid with 2 columns and however many rows are
|
||||
|
||||
=== "grid_size_columns.css"
|
||||
|
||||
```css
|
||||
```sass
|
||||
--8<-- "docs/examples/styles/grid_size_columns.css"
|
||||
```
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ After placing the placeholders `#p1`, `#p2`, `#p3`, and `#p4`, the next availabl
|
||||
|
||||
=== "row_span.css"
|
||||
|
||||
```css
|
||||
```sass
|
||||
--8<-- "docs/examples/styles/row_span.css"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user