Files
textual/examples/basic.css
2022-04-04 17:00:29 +01:00

63 lines
1008 B
CSS

/* CSS file for basic.py */
App > Screen {
layout: dock;
docks: side=left/1;
background: $background;
color: $on-background;
}
#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: $secondary-darken1;
color: $on-secondary-darken1;
border-right: vkey $secondary-darken2;
}
#sidebar .user {
height: 8;
background: $secondary;
color: $on-secondary;
border-right: vkey $secondary-darken2;
}
#sidebar .content {
background: $secondary-lighten1;
color: $on-secondary-lighten1;
border-right: vkey $secondary-darken2;
}
#header {
color: $on-primary;
background: $primary;
height: 3;
border: hkey $primary-darken2;
}
#content {
color: $on-background;
background: $background;
border-bottom: hkey #0f2b41;
}
#footer {
color: $on-accent1;
background: $accent1;
height: 1;
}