Skip to content

Commit

Permalink
clean trailing whitespace in css examples
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJGooding committed Aug 27, 2024
1 parent 1e6dce3 commit 2b64b6e
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions docs/examples/guide/css/nesting02.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/guide/reactivity/set_reactive01.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class NameApp(App):
CSS = """
Screen {
align: center middle;
}
}
"""
greeting_no: var[int] = var(0)
BINDINGS = [("space", "greeting")]
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/guide/reactivity/set_reactive02.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class NameApp(App):
CSS = """
Screen {
align: center middle;
}
}
"""
greeting_no: var[int] = var(0)
BINDINGS = [("space", "greeting")]
Expand Down
10 changes: 5 additions & 5 deletions docs/examples/guide/screens/questions01.tcss
Original file line number Diff line number Diff line change
@@ -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;
}
2 changes: 1 addition & 1 deletion docs/examples/styles/hatch.tcss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.hatch {
height: 1fr;
border: solid $secondary;

&.cross {
hatch: cross $success;
}
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/styles/keyline.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/code_browser.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/dictionary.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Input {

#results {
width: 100%;
height: auto;
height: auto;
}

#results-container {
Expand Down
10 changes: 5 additions & 5 deletions examples/merlin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -101,7 +101,7 @@ class MerlinApp(App):

CSS = """
Screen {
align: center middle;
align: center middle;
}
Screen.-win {
Expand All @@ -110,8 +110,8 @@ class MerlinApp(App):
Screen.-win Timer {
color: $success;
}
}
Grid {
width: auto;
height: auto;
Expand Down

0 comments on commit 2b64b6e

Please sign in to comment.