mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
clean trailing whitespace in css examples
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
@@ -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")]
|
||||||
|
|||||||
@@ -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")]
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
.hatch {
|
.hatch {
|
||||||
height: 1fr;
|
height: 1fr;
|
||||||
border: solid $secondary;
|
border: solid $secondary;
|
||||||
|
|
||||||
&.cross {
|
&.cross {
|
||||||
hatch: cross $success;
|
hatch: cross $success;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Input {
|
|||||||
|
|
||||||
#results {
|
#results {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#results-container {
|
#results-container {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user