From da9a481f1c104038e759a963ca297c27ed4c0680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Mon, 9 Jan 2023 11:28:47 +0000 Subject: [PATCH] Remove inclusion of old css types snippets. Supposedly, this had been done in an earlier commit for all styles. Apparently, I forgot to open styles references that were one level deeper in the directory, so the pages about grid, links, and scrollbar colors still included the css types values directly in their reference pages. --- docs/styles/grid/column_span.md | 4 ---- docs/styles/grid/grid_columns.md | 4 ---- docs/styles/grid/grid_gutter.md | 4 ---- docs/styles/grid/grid_rows.md | 4 ---- docs/styles/grid/grid_size.md | 4 ---- docs/styles/grid/index.md | 11 ----------- docs/styles/grid/row_span.md | 4 ---- docs/styles/links/index.md | 14 -------------- docs/styles/links/link_background.md | 10 ---------- docs/styles/links/link_color.md | 10 ---------- docs/styles/links/link_hover_background.md | 10 ---------- docs/styles/links/link_hover_color.md | 10 ---------- docs/styles/links/link_hover_style.md | 4 ---- docs/styles/links/link_style.md | 4 ---- docs/styles/scrollbar_colors/index.md | 10 ---------- .../scrollbar_colors/scrollbar_background.md | 10 ---------- .../scrollbar_background_active.md | 10 ---------- .../scrollbar_colors/scrollbar_background_hover.md | 10 ---------- docs/styles/scrollbar_colors/scrollbar_color.md | 10 ---------- .../scrollbar_colors/scrollbar_color_active.md | 10 ---------- .../scrollbar_colors/scrollbar_color_hover.md | 10 ---------- .../scrollbar_colors/scrollbar_corner_color.md | 10 ---------- 22 files changed, 177 deletions(-) diff --git a/docs/styles/grid/column_span.md b/docs/styles/grid/column_span.md index 72ba1a5f3..cb4fbe813 100644 --- a/docs/styles/grid/column_span.md +++ b/docs/styles/grid/column_span.md @@ -14,10 +14,6 @@ column-span: <integer>; The style `column-span` accepts a single non-negative [``](../../../css_types/integer) that quantifies how many columns the given widget spans. -### Values - ---8<-- "docs/snippets/type_syntax/integer.md" - ## Example The example below shows a 4 by 4 grid where many placeholders span over several columns. diff --git a/docs/styles/grid/grid_columns.md b/docs/styles/grid/grid_columns.md index ab6edb79c..6ea34dfff 100644 --- a/docs/styles/grid/grid_columns.md +++ b/docs/styles/grid/grid_columns.md @@ -17,10 +17,6 @@ The style `grid-columns` takes one or more [``](../../../css_types/scala If there are more columns in the grid than scalars specified in `grid-columns`, they are reused cyclically. If the number of [``](../../../css_types/scalar) is in excess, the excess is ignored. -### Values - ---8<-- "docs/snippets/type_syntax/scalar.md" - ## Example The example below shows a grid with 10 labels laid out in a grid with 2 rows and 5 columns. diff --git a/docs/styles/grid/grid_gutter.md b/docs/styles/grid/grid_gutter.md index 9293c0672..1b61a1ae1 100644 --- a/docs/styles/grid/grid_gutter.md +++ b/docs/styles/grid/grid_gutter.md @@ -20,10 +20,6 @@ The style `grid-gutter` takes one or two [``](../../../css_types/scalar) If only one [``](../../../css_types/scalar) is supplied, it sets the vertical and horizontal gutters. If two are supplied, they set the vertical and horizontal gutters, respectively. -### Values - ---8<-- "docs/snippets/type_syntax/scalar.md" - ## Example The example below employs a common trick to apply visually consistent spacing around all grid cells. diff --git a/docs/styles/grid/grid_rows.md b/docs/styles/grid/grid_rows.md index dbf5a161a..94d87f856 100644 --- a/docs/styles/grid/grid_rows.md +++ b/docs/styles/grid/grid_rows.md @@ -17,10 +17,6 @@ The style `grid-rows` takes one or more [``](../../../css_types/scalar) If there are more rows in the grid than scalars specified in `grid-rows`, they are reused cyclically. If the number of [``](../../../css_types/scalar) is in excess, the excess is ignored. -### Values - ---8<-- "docs/snippets/type_syntax/scalar.md" - ## Example The example below shows a grid with 10 labels laid out in a grid with 5 rows and 2 columns. diff --git a/docs/styles/grid/grid_size.md b/docs/styles/grid/grid_size.md index 3752bdfba..812408906 100644 --- a/docs/styles/grid/grid_size.md +++ b/docs/styles/grid/grid_size.md @@ -18,10 +18,6 @@ The style `grid-size` takes one or two non-negative [``](../../../css_t The first defines how many columns there are in the grid. If present, the second one sets the number of rows – regardless of the number of children of the grid –, otherwise the number of rows is computed automatically. -### Values - ---8<-- "docs/snippets/type_syntax/integer.md" - ## Examples In the first example, we create a grid with 2 columns and 5 rows, regardless of the fact that we do not have enough labels to fill in the whole grid: diff --git a/docs/styles/grid/index.md b/docs/styles/grid/index.md index b96f1fbd5..c68172865 100644 --- a/docs/styles/grid/index.md +++ b/docs/styles/grid/index.md @@ -31,17 +31,6 @@ For an in-depth look at the grid layout, visit the grid [guide](../guide/layout. Visit each style's reference page to learn more about how the values are used. - -### Values - -#### <integer> - ---8<-- "docs/snippets/type_syntax/integer.md" - -#### <scalar> - ---8<-- "docs/snippets/type_syntax/scalar.md" - ## Example The example below shows all the properties above in action. diff --git a/docs/styles/grid/row_span.md b/docs/styles/grid/row_span.md index b7afb8146..a6e15c3ac 100644 --- a/docs/styles/grid/row_span.md +++ b/docs/styles/grid/row_span.md @@ -14,10 +14,6 @@ row-span: <integer>; The style `row-span` accepts a single non-negative [``](../../../css_types/integer) that quantifies how many rows the given widget spans. -### Values - ---8<-- "docs/snippets/type_syntax/integer.md" - ## Example The example below shows a 4 by 4 grid where many placeholders span over several rows. diff --git a/docs/styles/links/index.md b/docs/styles/links/index.md index edbc86bb5..031af1d6e 100644 --- a/docs/styles/links/index.md +++ b/docs/styles/links/index.md @@ -34,20 +34,6 @@ There are a number of styles which influence the appearance of these links withi Visit each style's reference page to learn more about how the values are used. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - -#### <text-style> - ---8<-- "docs/snippets/type_syntax/text_style.md" - ## Example In the example below, the first label illustrates default link styling. diff --git a/docs/styles/links/link_background.md b/docs/styles/links/link_background.md index ab6e775f5..e171f3fcf 100644 --- a/docs/styles/links/link_background.md +++ b/docs/styles/links/link_background.md @@ -14,16 +14,6 @@ link-background: <color> [<color> [<color> [`](../../../css_types/color) (with an optional transparency level defined by a [``](../../../css_types/percentage)) that is used to define the background color of text enclosed in Textual action links when the mouse pointer is over it. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ### Defaults If not provided, a Textual action link will have `link-hover-background` set to `$accent`. diff --git a/docs/styles/links/link_hover_color.md b/docs/styles/links/link_hover_color.md index ec36aec95..026c8d264 100644 --- a/docs/styles/links/link_hover_color.md +++ b/docs/styles/links/link_hover_color.md @@ -14,16 +14,6 @@ link-hover-color: <color> [<text-style>; `link-hover-style` applies its [``](../../../css_types/text_style) to the text of Textual action links when the mouse pointer is over them. -### Values - ---8<-- "docs/snippets/type_syntax/text_style.md" - ### Defaults If not provided, a Textual action link will have `link-hover-style` set to `bold`. diff --git a/docs/styles/links/link_style.md b/docs/styles/links/link_style.md index 000222b41..8c2eac88c 100644 --- a/docs/styles/links/link_style.md +++ b/docs/styles/links/link_style.md @@ -14,10 +14,6 @@ link-style: <text-style>; `link-style` will take all the values specified and will apply that styling to text that is enclosed by a Textual action link. -### Values - ---8<-- "docs/snippets/type_syntax/text_style.md" - ### Defaults If not provided, a Textual action link will have `link-style` set to `underline`. diff --git a/docs/styles/scrollbar_colors/index.md b/docs/styles/scrollbar_colors/index.md index 997891805..a136e00ea 100644 --- a/docs/styles/scrollbar_colors/index.md +++ b/docs/styles/scrollbar_colors/index.md @@ -33,16 +33,6 @@ You won't typically need to do this, as the default themes have carefully chosen Visit each style's reference page to learn more about how the values are used. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ## Example This example shows two planels that contain oversized text. diff --git a/docs/styles/scrollbar_colors/scrollbar_background.md b/docs/styles/scrollbar_colors/scrollbar_background.md index aa375a93f..97fe18f61 100644 --- a/docs/styles/scrollbar_colors/scrollbar_background.md +++ b/docs/styles/scrollbar_colors/scrollbar_background.md @@ -9,16 +9,6 @@ The `scrollbar-background` sets the background color of the scrollbar. `scrollbar-background` accepts a [``](../../../css_types/color) (with an optional transparency level defined by a [``](../../../css_types/percentage)) that is used to define the background color of a scrollbar. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ## Example === "Output" diff --git a/docs/styles/scrollbar_colors/scrollbar_background_active.md b/docs/styles/scrollbar_colors/scrollbar_background_active.md index be98ec44c..6f83a2622 100644 --- a/docs/styles/scrollbar_colors/scrollbar_background_active.md +++ b/docs/styles/scrollbar_colors/scrollbar_background_active.md @@ -10,16 +10,6 @@ The `scrollbar-background-active` sets the background color of the scrollbar whe `scrollbar-background-active` accepts a [``](../../../css_types/color) (with an optional transparency level defined by a [``](../../../css_types/percentage)) that is used to define the background color of a scrollbar when its thumb is being dragged. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ## Example === "Output" diff --git a/docs/styles/scrollbar_colors/scrollbar_background_hover.md b/docs/styles/scrollbar_colors/scrollbar_background_hover.md index e815db3c7..fd4349f91 100644 --- a/docs/styles/scrollbar_colors/scrollbar_background_hover.md +++ b/docs/styles/scrollbar_colors/scrollbar_background_hover.md @@ -10,16 +10,6 @@ The `scrollbar-background-hover` sets the background color of the scrollbar when `scrollbar-background-hover` accepts a [``](../../../css_types/color) (with an optional transparency level defined by a [``](../../../css_types/percentage)) that is used to define the background color of a scrollbar when the cursor is over it. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ## Example === "Output" diff --git a/docs/styles/scrollbar_colors/scrollbar_color.md b/docs/styles/scrollbar_colors/scrollbar_color.md index 6d461dfcf..5b1bb92be 100644 --- a/docs/styles/scrollbar_colors/scrollbar_color.md +++ b/docs/styles/scrollbar_colors/scrollbar_color.md @@ -10,16 +10,6 @@ The `scrollbar-color` sets the color of the scrollbar. `scrollbar-color` accepts a [``](../../../css_types/color) (with an optional transparency level defined by a [``](../../../css_types/percentage)) that is used to define the color of a scrollbar. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ## Example === "Output" diff --git a/docs/styles/scrollbar_colors/scrollbar_color_active.md b/docs/styles/scrollbar_colors/scrollbar_color_active.md index dd38b9fd7..57fba7383 100644 --- a/docs/styles/scrollbar_colors/scrollbar_color_active.md +++ b/docs/styles/scrollbar_colors/scrollbar_color_active.md @@ -10,16 +10,6 @@ The `scrollbar-color-active` sets the color of the scrollbar when the thumb is b `scrollbar-color-active` accepts a [``](../../../css_types/color) (with an optional transparency level defined by a [``](../../../css_types/percentage)) that is used to define the color of a scrollbar when its thumb is being dragged. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ## Example === "Output" diff --git a/docs/styles/scrollbar_colors/scrollbar_color_hover.md b/docs/styles/scrollbar_colors/scrollbar_color_hover.md index dde2c1443..a3fe72153 100644 --- a/docs/styles/scrollbar_colors/scrollbar_color_hover.md +++ b/docs/styles/scrollbar_colors/scrollbar_color_hover.md @@ -10,16 +10,6 @@ The `scrollbar-color-hover` sets the color of the scrollbar when the cursor is o `scrollbar-color-hover` accepts a [``](../../../css_types/color) (with an optional transparency level defined by a [``](../../../css_types/percentage)) that is used to define the color of a scrollbar when the cursor is over it. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ## Example === "Output" diff --git a/docs/styles/scrollbar_colors/scrollbar_corner_color.md b/docs/styles/scrollbar_colors/scrollbar_corner_color.md index 65738a825..05b3517c3 100644 --- a/docs/styles/scrollbar_colors/scrollbar_corner_color.md +++ b/docs/styles/scrollbar_colors/scrollbar_corner_color.md @@ -10,16 +10,6 @@ The `scrollbar-corner-color` sets the color of the gap between the horizontal an `scrollbar-corner-color` accepts a [``](../../../css_types/color) (with an optional transparency level defined by a [``](../../../css_types/percentage)) that is used to define the color of the gap between the horizontal and vertical scrollbars of a widget. -### Values - -#### <color> - ---8<-- "docs/snippets/type_syntax/color.md" - -#### <percentage> - ---8<-- "docs/snippets/type_syntax/percentage.md" - ## Example The example below sets the scrollbar corner (bottom-right corner of the screen) to white.