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;
|
||||
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 */
|
||||
|
||||
@@ -49,7 +49,7 @@ class NameApp(App):
|
||||
CSS = """
|
||||
Screen {
|
||||
align: center middle;
|
||||
}
|
||||
}
|
||||
"""
|
||||
greeting_no: var[int] = var(0)
|
||||
BINDINGS = [("space", "greeting")]
|
||||
|
||||
@@ -49,7 +49,7 @@ class NameApp(App):
|
||||
CSS = """
|
||||
Screen {
|
||||
align: center middle;
|
||||
}
|
||||
}
|
||||
"""
|
||||
greeting_no: var[int] = var(0)
|
||||
BINDINGS = [("space", "greeting")]
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.hatch {
|
||||
height: 1fr;
|
||||
border: solid $secondary;
|
||||
|
||||
|
||||
&.cross {
|
||||
hatch: cross $success;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -9,7 +9,7 @@ Input {
|
||||
|
||||
#results {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#results-container {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user