Files
ingo fccd2def59 1) Uses textuals CSS_PATH and an external tcss file to bundle all DEFAULT_CSS into one file
2) Added keyboard shortcut bindings for switching the language (Ctrl-T) and showing the help (Ctrl-A) The help should use a markdown viewer
3) Include a test folder containing all the tests
2026-09-19 14:28:40 +02:00

181 lines
3.1 KiB
CSS

/* ---------------------------------------------------------------------
* Styles for DownloadManagerApp (main screen)
* ------------------------------------------------------------------- */
#form Input {
margin-bottom: 1;
}
.field-row {
height: auto;
margin-bottom: 1;
}
.field-row Label {
width: 10;
padding-top: 1;
}
.field-row Input {
width: 1fr;
}
#selection-area {
height: auto;
margin-bottom: 1;
}
#progress-text {
margin-top: 1;
}
#progress-bar {
width: 100%;
margin-bottom: 1;
}
#button-row {
height: auto;
align-horizontal: left;
}
#button-row Button {
margin-right: 1;
}
/* ---------------------------------------------------------------------
* ErrorScreen
* ------------------------------------------------------------------- */
ErrorScreen {
align: center middle;
}
ErrorScreen > Container {
width: 60%;
max-width: 70;
height: auto;
border: thick $error 80%;
background: $surface;
padding: 1 2;
}
ErrorScreen #error-title {
text-style: bold;
color: $error;
margin-bottom: 1;
}
ErrorScreen #error-message {
margin-bottom: 1;
}
ErrorScreen Horizontal {
align-horizontal: center;
height: auto;
}
/* ---------------------------------------------------------------------
* FormatSelectScreen
* ------------------------------------------------------------------- */
FormatSelectScreen {
align: center middle;
}
FormatSelectScreen > Container {
width: 90%;
max-width: 120;
height: auto;
max-height: 80%;
border: thick $primary 80%;
background: $surface;
padding: 1 2;
}
FormatSelectScreen #dialog-title {
text-style: bold;
margin-bottom: 1;
}
FormatSelectScreen DataTable {
height: auto;
max-height: 20;
margin-bottom: 1;
}
FormatSelectScreen Horizontal {
align-horizontal: center;
height: auto;
}
/* ---------------------------------------------------------------------
* LanguageSelectScreen
* ------------------------------------------------------------------- */
LanguageSelectScreen {
align: center middle;
}
LanguageSelectScreen > Container {
width: 50%;
max-width: 50;
height: auto;
border: thick $primary 80%;
background: $surface;
padding: 1 2;
}
LanguageSelectScreen #language-title {
text-style: bold;
margin-bottom: 1;
}
LanguageSelectScreen Vertical#language-options {
height: auto;
margin-bottom: 1;
}
LanguageSelectScreen Button {
width: 100%;
margin-bottom: 1;
}
LanguageSelectScreen Horizontal {
align-horizontal: center;
height: auto;
}
/* ---------------------------------------------------------------------
* HelpScreen
* ------------------------------------------------------------------- */
HelpScreen {
align: center middle;
}
HelpScreen > Container {
width: 80%;
max-width: 100;
height: 80%;
border: thick $primary 80%;
background: $surface;
padding: 1 2;
}
HelpScreen #help-title {
text-style: bold;
margin-bottom: 1;
height: auto;
}
HelpScreen MarkdownViewer {
height: 1fr;
margin-bottom: 1;
}
HelpScreen Horizontal {
align-horizontal: center;
height: auto;
}