Add support for HSL and HSLA

This commit is contained in:
Darren Burns
2022-06-07 15:23:24 +01:00
parent 0438a6b78e
commit 01ef1dc7f0
6 changed files with 79 additions and 13 deletions

11
sandbox/hsl.py Normal file
View File

@@ -0,0 +1,11 @@
from textual.app import App, ComposeResult
from textual.widgets import Static
class HSLApp(App):
def compose(self) -> ComposeResult:
yield Static(classes="box")
app = HSLApp(css_path="hsl.scss", watch_css=True)
app.run()

5
sandbox/hsl.scss Normal file
View File

@@ -0,0 +1,5 @@
.box {
height: 1fr;
/*background: rgb(180,50, 50);*/
background: hsl(180,50%, 50%);
}