Skip to content

Commit

Permalink
Frontend styling
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Jan 26, 2024
1 parent ec3c60b commit ca94dce
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
20 changes: 20 additions & 0 deletions data/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ table thead th.date {
width: 21em;
}

table thead th.actions {
width: 4em;
}

table tbody tr:nth-child(odd) {
background: var(--odd_row_background);
}
Expand All @@ -269,6 +273,22 @@ td.date-cell {
justify-content: space-between;
}

td.actions-cell button {
padding: 0.1rem 0.3rem;
border-radius: 0.2rem;
border: none;
}

td.actions-cell .rm_form {
display: flex;
place-content: center;
}

td.actions-cell .rm_form button {
background: var(--rm_button_background);
color: var(--rm_button_text_color);
}

.history {
color: var(--date_text_color);
}
Expand Down
2 changes: 2 additions & 0 deletions data/themes/archlinux.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ $generate_default: true !default;
--upload_form_background: #4b5162;
--upload_button_background: #ea95ff;
--upload_button_text_color: #ffffff;
--rm_button_background: #ea95ff;
--rm_button_text_color: #ffffff;
--drag_background: #3333338f;
--drag_border_color: #fefefe;
--drag_text_color: #fefefe;
Expand Down
2 changes: 2 additions & 0 deletions data/themes/monokai.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ $generate_default: true !default;
--upload_form_background: #49483e;
--upload_button_background: #ae81ff;
--upload_button_text_color: #f8f8f0;
--rm_button_background: #ae81ff;
--rm_button_text_color: #f8f8f0;
--drag_background: #3333338f;
--drag_border_color: #f8f8f2;
--drag_text_color: #f8f8f2;
Expand Down
2 changes: 2 additions & 0 deletions data/themes/squirrel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ $generate_default: true !default;
--upload_form_background: #f2f2f2;
--upload_button_background: #d02474;
--upload_button_text_color: #ffffff;
--rm_button_background: #d02474;
--rm_button_text_color: #ffffff;
--drag_background: #3333338f;
--drag_border_color: #ffffff;
--drag_text_color: #ffffff;
Expand Down
2 changes: 2 additions & 0 deletions data/themes/zenburn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ $generate_default: true !default;
--upload_form_background: #777777;
--upload_button_background: #cc9393;
--upload_button_text_color: #efefef;
--rm_button_background: #cc9393;
--rm_button_text_color: #efefef;
--drag_background: #3333338f;
--drag_border_color: #efefef;
--drag_text_color: #efefef;
Expand Down
2 changes: 1 addition & 1 deletion src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ fn rm_form(rm_route: &str, encoded_path: &str) -> Markup {
let rm_action = format!("{rm_route}?path={encoded_path}");
html! {
form class="rm_form" action=(rm_action) method="POST" {
button type="submit" { "X" }
button type="submit" { "" }
}
}
}
Expand Down

0 comments on commit ca94dce

Please sign in to comment.