Files
textual/sandbox/basic.css
2022-04-07 16:00:17 +01:00

115 lines
1.7 KiB
CSS

/* CSS file for basic.py */
* {
transition: color 500ms linear, background 500ms linear;
}
App > Screen {
layout: dock;
docks: side=left/1;
background: $surface;
color: $text-surface;
}
#sidebar {
color: $text-primary;
background: $primary;
dock: side;
width: 30;
offset-x: -100%;
layout: dock;
transition: offset 500ms in_out_cubic;
}
#sidebar.-active {
offset-x: 0;
}
#sidebar .title {
height: 1;
background: $primary-darken-2;
color: $text-primary-darken-2;
border-right: outer $primary-darken-3;
}
#sidebar .user {
height: 8;
background: $primary-darken-1;
color: $text-primary-darken-1;
border-right: outer $primary-darken-3;
}
#sidebar .content {
background: $primary;
color: $text-primary;
border-right: outer $primary-darken-3;
}
#header {
color: $text-primary-darken-1;
background: $primary-darken-1;
height: 3;
}
#content {
color: $text-surface;
background: $surface;
layout: vertical;
}
Tweet {
height: 10;
max-width: 80;
margin: 1 2;
background: $background;
color: $text-background;
layout: vertical
}
TweetHeader {
height:1
background: $accent1
color: $text-accent1
}
TweetBody {
background: $background
color: $text-background-fade-1
height:6;
}
.button {
background: $accent2;
color: $text-accent2;
width:20;
height: 3
border: tall $text-background;
margin: 0 1 1 1;
transition: background 200ms in_out_cubic, color 300ms in_out_cubic;
}
.button:hover {
background: $accent1-darken-1;
color: $text-accent1-darken-1;
width:20;
height: 3
border: tall $text-background;
margin: 0 1 1 1;
}
#footer {
color: $text-accent2;
background: $accent2;
height: 1;
border-top: hkey $accent2-darken-2;
}