From 2b64b6e4b9c69580b33b8ed481f25cd14dd58f80 Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:38:15 +0100 Subject: [PATCH] clean trailing whitespace in css examples --- docs/examples/guide/css/nesting02.tcss | 4 ++-- docs/examples/guide/reactivity/set_reactive01.py | 2 +- docs/examples/guide/reactivity/set_reactive02.py | 2 +- docs/examples/guide/screens/questions01.tcss | 10 +++++----- docs/examples/styles/hatch.tcss | 2 +- docs/examples/styles/keyline.tcss | 6 +++--- examples/code_browser.tcss | 2 +- examples/dictionary.tcss | 2 +- examples/merlin.py | 10 +++++----- 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/examples/guide/css/nesting02.tcss b/docs/examples/guide/css/nesting02.tcss index febcc77b6..9777d7a9e 100644 --- a/docs/examples/guide/css/nesting02.tcss +++ b/docs/examples/guide/css/nesting02.tcss @@ -9,11 +9,11 @@ padding: 1 2; margin: 1 2; text-align: center; - border: heavy $panel; + border: heavy $panel; /* Style the Yes button */ &.affirmative { - border: heavy $success; + border: heavy $success; } /* Style the No button */ diff --git a/docs/examples/guide/reactivity/set_reactive01.py b/docs/examples/guide/reactivity/set_reactive01.py index d9e34f9dc..3cccbc56b 100644 --- a/docs/examples/guide/reactivity/set_reactive01.py +++ b/docs/examples/guide/reactivity/set_reactive01.py @@ -49,7 +49,7 @@ class NameApp(App): CSS = """ Screen { align: center middle; - } + } """ greeting_no: var[int] = var(0) BINDINGS = [("space", "greeting")] diff --git a/docs/examples/guide/reactivity/set_reactive02.py b/docs/examples/guide/reactivity/set_reactive02.py index c4e36fc5c..c726ceddc 100644 --- a/docs/examples/guide/reactivity/set_reactive02.py +++ b/docs/examples/guide/reactivity/set_reactive02.py @@ -49,7 +49,7 @@ class NameApp(App): CSS = """ Screen { align: center middle; - } + } """ greeting_no: var[int] = var(0) BINDINGS = [("space", "greeting")] diff --git a/docs/examples/guide/screens/questions01.tcss b/docs/examples/guide/screens/questions01.tcss index e56b2a949..042d16b0b 100644 --- a/docs/examples/guide/screens/questions01.tcss +++ b/docs/examples/guide/screens/questions01.tcss @@ -1,17 +1,17 @@ QuestionScreen { layout: grid; - grid-size: 2 2; + grid-size: 2 2; align: center bottom; } QuestionScreen > Label { - margin: 1; + margin: 1; text-align: center; - column-span: 2; + column-span: 2; width: 1fr; } QuestionScreen Button { - margin: 2; - width: 1fr; + margin: 2; + width: 1fr; } diff --git a/docs/examples/styles/hatch.tcss b/docs/examples/styles/hatch.tcss index b2bcbce11..cfcc89133 100644 --- a/docs/examples/styles/hatch.tcss +++ b/docs/examples/styles/hatch.tcss @@ -1,7 +1,7 @@ .hatch { height: 1fr; border: solid $secondary; - + &.cross { hatch: cross $success; } diff --git a/docs/examples/styles/keyline.tcss b/docs/examples/styles/keyline.tcss index 41bf30d5e..d0f869ff0 100644 --- a/docs/examples/styles/keyline.tcss +++ b/docs/examples/styles/keyline.tcss @@ -5,16 +5,16 @@ Grid { keyline: heavy green; } Placeholder { - height: 1fr; + height: 1fr; } .hidden { visibility: hidden; -} +} #foo { column-span: 2; } #bar { - row-span: 2; + row-span: 2; } #baz { column-span:3; diff --git a/examples/code_browser.tcss b/examples/code_browser.tcss index a97a35fe9..1d7994131 100644 --- a/examples/code_browser.tcss +++ b/examples/code_browser.tcss @@ -23,7 +23,7 @@ CodeBrowser.-show-tree #tree-view { #code-view { overflow: auto scroll; min-width: 100%; - hatch: right $primary; + hatch: right $primary; } #code { width: auto; diff --git a/examples/dictionary.tcss b/examples/dictionary.tcss index 79d785149..301336a73 100644 --- a/examples/dictionary.tcss +++ b/examples/dictionary.tcss @@ -9,7 +9,7 @@ Input { #results { width: 100%; - height: auto; + height: auto; } #results-container { diff --git a/examples/merlin.py b/examples/merlin.py index 0a0287a4e..915fa4e10 100644 --- a/examples/merlin.py +++ b/examples/merlin.py @@ -49,8 +49,8 @@ class LabelSwitch(Widget): DEFAULT_CSS = """ LabelSwitch Label { text-align: center; - width: 1fr; - text-style: bold; + width: 1fr; + text-style: bold; } LabelSwitch Label#label-5 { @@ -101,7 +101,7 @@ class MerlinApp(App): CSS = """ Screen { - align: center middle; + align: center middle; } Screen.-win { @@ -110,8 +110,8 @@ class MerlinApp(App): Screen.-win Timer { color: $success; - } - + } + Grid { width: auto; height: auto;