Files
textual/sandbox/basic.css
2022-04-08 15:28:43 +01:00

174 lines
2.8 KiB
CSS

/* CSS file for basic.py */
/*
* {
transition: color 500ms linear, background 500ms linear;
}
*/
App > Screen {
layout: dock;
docks: side=left/1;
background: $background;
color: $text-background;
}
#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: 3;
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-background;
background: $background;
layout: vertical;
}
Tweet {
height: 16;
max-width: 80;
margin: 1 3;
background: $surface;
color: $text-surface;
layout: vertical;
border: outer $accent2;
padding: 1;
}
TweetHeader {
height:1
background: $accent1
color: $text-accent1
}
TweetBody {
background: $surface
color: $text-surface-fade-1
height:6;
}
.button {
background: $accent2;
color: $text-accent2;
width:20;
height: 3
border: tall $text-background;
margin: 1 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: 1 1 1 1;
}
#footer {
color: $text-accent2;
background: $accent2;
height: 1;
border-top: hkey $accent2-darken-2;
}
#sidebar .content {
layout: vertical
}
OptionItem {
height: 3;
background: $primary;
transition: background 100ms linear;
border-right: outer $primary-darken-3;
}
OptionItem:hover {
height: 3;
background: $accent1-darken-2;
/* border-top: hkey $accent2-darken-3;
border-bottom: hkey $accent2-darken-3; */
text-style: bold;
border-right: outer $accent1-darken-3;
}
Error {
max-width: 78;
height:3;
background: $error;
color: $text-error;
border-top: hkey $error-darken-3;
border-bottom: hkey $error-darken-3;
margin: 1 3;
text-style: bold;
}
Warning {
max-width: 80;
height:3;
background: $warning;
color: $text-warning-fade-1;
border-top: hkey $warning-darken-3;
border-bottom: hkey $warning-darken-3;
margin: 1 2;
text-style: bold;
}
Success {
max-width: 80;
height:3;
background: $success-lighten-2;
color: $text-success-lighten-2-fade-1;
border-top: hkey $success-darken-3;
border-bottom: hkey $success-darken-3;
margin: 1 2;
text-style: bold;
}