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;
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 */

View File

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

View File

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

View File

@@ -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;
}

View File

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

View File

@@ -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;

View File

@@ -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;

View File

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

View File

@@ -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;