Files
textual/examples/basic.css
Will McGugan 82c0bd877c remove accent3
2022-04-05 17:10:04 +01:00

89 lines
1.3 KiB
CSS

/* CSS file for basic.py */
App > Screen {
layout: dock;
docks: side=left/1;
background: $surface;
color: $on-surface;
}
#sidebar {
color: $on-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-darken2;
color: $on-primary-darken2;
border-right: outer $primary-darken3;
}
#sidebar .user {
height: 8;
background: $primary-darken1;
color: $on-primary-darken1;
border-right: outer $primary-darken3;
}
#sidebar .content {
background: $primary;
color: $on-primary;
border-right: outer $primary-darken3;
}
#header {
color: $on-primary-darken2;
background: $primary-darken2;
height: 3;
border: hkey $primary-darken3;
}
#content {
color: $on-surface;
background: $surface;
layout: vertical;
}
Tweet {
height: 7;
max-width: 80;
margin: 1 2;
background: $background;
color: $on-background;
layout: vertical
}
TweetHeader {
height:1
background: $accent1
color: $on-accent1
}
TweetBody {
background: $background
color: $on-background
}
#footer {
color: $on-accent2;
background: $accent2;
height: 1;
border-top: hkey $accent2-darken2;
}