implemented outline

This commit is contained in:
Will McGugan
2022-07-02 14:37:00 +01:00
parent 81481a0e16
commit 97c58a7b0a
6 changed files with 156 additions and 81 deletions

View File

@@ -16,7 +16,8 @@
}
*:hover {
/* tint: 30% red; */
tint: 30% red;
/* outline: heavy red; */
}
App > Screen {
@@ -224,13 +225,15 @@ Warning {
Success {
width: 100%;
height:3;
width:90%;
height:auto;
box-sizing: border-box;
background: $success-lighten-3;
color: $text-success-lighten-3-fade-1;
border-top: hkey $success;
border-bottom: hkey $success;
margin: 1 2;
text-style: bold;
align-horizontal: center;
}

View File

@@ -88,7 +88,7 @@ class Warning(Widget):
class Success(Widget):
def render(self) -> Text:
return Text("This is a success message", justify="center")
return Text("This\nis\na\nsuccess\n message", justify="center")
class BasicApp(App, css_path="basic.css"):