clean trailing whitespace in css examples

This commit is contained in:
TomJGooding
2024-08-27 17:38:15 +01:00
parent 1e6dce3b63
commit 2b64b6e4b9
9 changed files with 20 additions and 20 deletions

View File

@@ -9,11 +9,11 @@
padding: 1 2; padding: 1 2;
margin: 1 2; margin: 1 2;
text-align: center; text-align: center;
border: heavy $panel; border: heavy $panel;
/* Style the Yes button */ /* Style the Yes button */
&.affirmative { &.affirmative {
border: heavy $success; border: heavy $success;
} }
/* Style the No button */ /* Style the No button */

View File

@@ -49,7 +49,7 @@ class NameApp(App):
CSS = """ CSS = """
Screen { Screen {
align: center middle; align: center middle;
} }
""" """
greeting_no: var[int] = var(0) greeting_no: var[int] = var(0)
BINDINGS = [("space", "greeting")] BINDINGS = [("space", "greeting")]

View File

@@ -49,7 +49,7 @@ class NameApp(App):
CSS = """ CSS = """
Screen { Screen {
align: center middle; align: center middle;
} }
""" """
greeting_no: var[int] = var(0) greeting_no: var[int] = var(0)
BINDINGS = [("space", "greeting")] BINDINGS = [("space", "greeting")]

View File

@@ -1,17 +1,17 @@
QuestionScreen { QuestionScreen {
layout: grid; layout: grid;
grid-size: 2 2; grid-size: 2 2;
align: center bottom; align: center bottom;
} }
QuestionScreen > Label { QuestionScreen > Label {
margin: 1; margin: 1;
text-align: center; text-align: center;
column-span: 2; column-span: 2;
width: 1fr; width: 1fr;
} }
QuestionScreen Button { QuestionScreen Button {
margin: 2; margin: 2;
width: 1fr; width: 1fr;
} }

View File

@@ -1,7 +1,7 @@
.hatch { .hatch {
height: 1fr; height: 1fr;
border: solid $secondary; border: solid $secondary;
&.cross { &.cross {
hatch: cross $success; hatch: cross $success;
} }

View File

@@ -5,16 +5,16 @@ Grid {
keyline: heavy green; keyline: heavy green;
} }
Placeholder { Placeholder {
height: 1fr; height: 1fr;
} }
.hidden { .hidden {
visibility: hidden; visibility: hidden;
} }
#foo { #foo {
column-span: 2; column-span: 2;
} }
#bar { #bar {
row-span: 2; row-span: 2;
} }
#baz { #baz {
column-span:3; column-span:3;

View File

@@ -23,7 +23,7 @@ CodeBrowser.-show-tree #tree-view {
#code-view { #code-view {
overflow: auto scroll; overflow: auto scroll;
min-width: 100%; min-width: 100%;
hatch: right $primary; hatch: right $primary;
} }
#code { #code {
width: auto; width: auto;

View File

@@ -9,7 +9,7 @@ Input {
#results { #results {
width: 100%; width: 100%;
height: auto; height: auto;
} }
#results-container { #results-container {

View File

@@ -49,8 +49,8 @@ class LabelSwitch(Widget):
DEFAULT_CSS = """ DEFAULT_CSS = """
LabelSwitch Label { LabelSwitch Label {
text-align: center; text-align: center;
width: 1fr; width: 1fr;
text-style: bold; text-style: bold;
} }
LabelSwitch Label#label-5 { LabelSwitch Label#label-5 {
@@ -101,7 +101,7 @@ class MerlinApp(App):
CSS = """ CSS = """
Screen { Screen {
align: center middle; align: center middle;
} }
Screen.-win { Screen.-win {
@@ -110,8 +110,8 @@ class MerlinApp(App):
Screen.-win Timer { Screen.-win Timer {
color: $success; color: $success;
} }
Grid { Grid {
width: auto; width: auto;
height: auto; height: auto;