From c0b658abc030fc28241db4eab3d9ee171c323916 Mon Sep 17 00:00:00 2001 From: Milan Date: Sun, 23 Oct 2022 21:44:29 +0200 Subject: [PATCH] panels: update (especially for studios and projects) --- .../agenda/planung/css/audio-recordings.css | 2 +- website/agenda/planung/css/default.css | 40 ++++++--- website/agenda/planung/css/projects.css | 35 +++++++- website/agenda/planung/css/studios.css | 40 ++++++++- website/agenda/planung/js/projects.js | 11 ++- website/agenda/planung/js/studios.js | 30 ++++--- website/agenda/planung/pot/de/projects.po | 7 +- website/agenda/planung/pot/en/projects.po | 5 +- .../agenda/planung/templates/projects.html | 81 ++++++++++--------- website/agenda/planung/templates/studios.html | 35 ++++---- 10 files changed, 199 insertions(+), 87 deletions(-) diff --git a/website/agenda/planung/css/audio-recordings.css b/website/agenda/planung/css/audio-recordings.css index 16e8694..05fd94d 100644 --- a/website/agenda/planung/css/audio-recordings.css +++ b/website/agenda/planung/css/audio-recordings.css @@ -53,7 +53,7 @@ tr.inactive{ } #progress_container div{ - transition : width 3s linear; + transition : width 1s linear; text-align: center; padding: 1rem; color:white; diff --git a/website/agenda/planung/css/default.css b/website/agenda/planung/css/default.css index ad7adc8..59ed096 100644 --- a/website/agenda/planung/css/default.css +++ b/website/agenda/planung/css/default.css @@ -298,13 +298,23 @@ a { #content .panel { background:white; - margin: 4px; + margin: 1rem; padding: 1rem; border: 1px solid rgba(0, 0, 0, .03); - box-shadow: 0 2px 2px rgba(0, 0, 0, .24), - 0 0 2px rgba(0, 0, 0, .12); - border-radius:0.3rem; + border-radius:0.5rem; + position: relative; +} + +#content .panel, +#content div.card { + box-shadow: 0 1px 3px rgba(0,0,0,0.16), 0 1px 3px rgba(0,0,0,0.23); + transition: all 0.3s cubic-bezier(.25,.8,.25,1); +} + +#content .panel:hover, +#content div.card:hover { + box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22); } #content div.panel-header { @@ -445,7 +455,8 @@ div.badge-error { #content button, #content select, #content input { - padding: 0.5rem; + padding-top: 0.5rem; + padding-bottom: 0.5rem; } #content div.flex { @@ -458,9 +469,7 @@ div.badge-error { #content div.card { border: 0; margin: 1em; - box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .12), 0 2px 10px 0 - rgba(0, 0, 0, .09); - border-radius: 0.3rem; + border-radius: 0.5rem; } #content table.table tr:hover { @@ -541,7 +550,7 @@ table.tablesorter tr { text-align: center; text-decoration: none; min-width: 5rem; - border-radius: 0.3rem; + border-radius: 1rem; color: #fff; height: 2.3rem; position: relative; @@ -639,7 +648,7 @@ input[type='checkbox'] { } input.image { - width: 16rem; + width: 28ch; } #content .select .option { @@ -721,3 +730,14 @@ ul.tabContainer li:last-child{ .right{ margin-left:auto; } + +#content .right, +.right{ + margin-left:auto; +} + +#content .bottom, +.bottom{ + margin-bottom:auto; +} + diff --git a/website/agenda/planung/css/projects.css b/website/agenda/planung/css/projects.css index c9ebf9f..0535287 100644 --- a/website/agenda/planung/css/projects.css +++ b/website/agenda/planung/css/projects.css @@ -1,12 +1,13 @@ + #content .label { - width: 10em; + width: 10ch; padding: 0; margin: 0; color: #555; } #content div.project { - width: 45%; + min-width: 40ch; } #content div.editor { @@ -28,7 +29,7 @@ padding: 0; } -#content div.editor div.buttons button, +#content div.editor div.buttons button, #content div.editor div.buttons input { margin-left: 1em; } @@ -36,3 +37,31 @@ #content div.view { text-align: left; } + +#content div.flex{ + align-items: inherit; +} + +body #content{ + max-width:none; +} + +.buttons{ + display: flex; +} + +#content .bottom, +.bottom{ + position: absolute; + bottom: 1rem; +} + +#content .bottom.right, +.bottom.right{ + position: absolute; + right: 1rem; +} + +#content div.title { + font-size:1.5rem; +} diff --git a/website/agenda/planung/css/studios.css b/website/agenda/planung/css/studios.css index 066f09e..465b4eb 100644 --- a/website/agenda/planung/css/studios.css +++ b/website/agenda/planung/css/studios.css @@ -1,16 +1,20 @@ #content .label { - width: 10em; + width: 10ch; padding: 0; margin: 0; color: #555; } #content div.studio { - width: 45%; + min-width: 40ch; } #content div.editor { - display: inline-block; + clear: both; +} + +#content div.view { + clear: both; } #content div.editor div.right { @@ -31,5 +35,33 @@ #content div.view { text-align: left; - clear: both; } + +#content div.flex{ + align-items: inherit; +} + +body #content{ + max-width:none; +} + +.buttons{ + display: flex; +} + +#content .bottom, +.bottom{ + position: absolute; + bottom: 1rem; +} + +#content .bottom.right, +.bottom.right{ + position: absolute; + right: 1rem; +} + +#content .panel{ + min-height: 25rem; +} + diff --git a/website/agenda/planung/js/projects.js b/website/agenda/planung/js/projects.js index aa41cbf..0aaa1ea 100644 --- a/website/agenda/planung/js/projects.js +++ b/website/agenda/planung/js/projects.js @@ -17,21 +17,26 @@ function cancel_edit_project_assignments(name){ return false; } -function edit_project(name){ +function edit_project(elem, name){ + if ($('#edit_'+name).css('display')=='none'){ $('#view_'+name).hide(); $('#assign_'+name).hide(); $('#edit_'+name).show(); + elem.text(elem.data("cancel")); + elem.addClass("text"); }else{ - cancel_edit_project(name); + cancel_edit_project(elem, name); } return false; } -function cancel_edit_project(name){ +function cancel_edit_project(elem, name){ $('#edit_'+name).hide(); $('#assign_'+name).hide(); $('#view_'+name).show(); + elem.text(elem.data("action")); + elem.removeClass("text"); return false; } diff --git a/website/agenda/planung/js/studios.js b/website/agenda/planung/js/studios.js index 95c3dc1..14958f1 100644 --- a/website/agenda/planung/js/studios.js +++ b/website/agenda/planung/js/studios.js @@ -1,22 +1,28 @@ var region=''; -function edit_studio(name){ - if ($('#edit_'+name).css('display')=='none'){ - $('#view_'+name).hide(); - $('#edit_'+name).show(); - }else{ - cancel_edit_studio(name); - } - return false; -} function add_studio(){ $('.editor').hide(); $('#edit_new').show(); return false; } -function cancel_edit_studio(name){ - $('#edit_'+name).hide(); - $('#view_'+name).show(); + +function edit_studio(elem, name){ + if ($('#edit_'+name).css('display')=='none'){ + $('#view_'+name).hide(); + $('#edit_'+name).show(); + elem.text(elem.data("cancel")); + elem.addClass("text"); + }else{ + cancel_edit_studio(elem, name); + } + return false; +} + +function cancel_edit_studio(elem, name){ + $('#edit_'+name).hide(); + $('#view_'+name).show(); + elem.text(elem.data("action")); + elem.removeClass("text"); return false; } diff --git a/website/agenda/planung/pot/de/projects.po b/website/agenda/planung/pot/de/projects.po index a61a3fa..d64ba9a 100644 --- a/website/agenda/planung/pot/de/projects.po +++ b/website/agenda/planung/pot/de/projects.po @@ -26,7 +26,7 @@ msgid "button_edit" msgstr "Bearbeiten" msgid "button_change" -msgstr "Ändern" +msgstr "Studios zuordnen" msgid "button_create" msgstr "Anlegen" @@ -61,11 +61,14 @@ msgstr "Start" msgid "label_end_date" msgstr "Ende" +msgid "label_activity" +msgstr "aktiv" + msgid "label_image" msgstr "Logo" msgid "label_email" -msgstr "email" +msgstr "E-Mail" msgid "label_studios" msgstr "Studios" diff --git a/website/agenda/planung/pot/en/projects.po b/website/agenda/planung/pot/en/projects.po index ca3e788..e674b12 100644 --- a/website/agenda/planung/pot/en/projects.po +++ b/website/agenda/planung/pot/en/projects.po @@ -44,7 +44,7 @@ msgid "button_edit" msgstr "edit" msgid "button_change" -msgstr "change" +msgstr "edit studios" msgid "button_show_changes" msgstr "show changes" @@ -64,6 +64,9 @@ msgstr "start date" msgid "label_end_date" msgstr "end date" +msgid "label_activity" +msgstr "active" + msgid "label_image" msgstr "logo" diff --git a/website/agenda/planung/templates/projects.html b/website/agenda/planung/templates/projects.html index 53bb18a..fcc6ba3 100644 --- a/website/agenda/planung/templates/projects.html +++ b/website/agenda/planung/templates/projects.html @@ -23,7 +23,7 @@ - + @@ -40,38 +40,39 @@
- - -
- - - - - - + + + + + + + + + + + + + +
 
 
 
 
 
 
 
 
 
-
 

-

-
- - - - -
-
-
+
+ + + +
@@ -84,40 +85,46 @@ - - - - - + + + + + + - - -
+ +
+ +
+
-
- -
-
+ + + + +
diff --git a/website/agenda/planung/templates/studios.html b/website/agenda/planung/templates/studios.html index 1320936..4dd5e4b 100644 --- a/website/agenda/planung/templates/studios.html +++ b/website/agenda/planung/templates/studios.html @@ -20,7 +20,7 @@ - + @@ -36,23 +36,11 @@
-
- - - - - - - -
- @@ -70,7 +58,9 @@ - + + +
 
 
 
 
 
@@ -95,6 +85,23 @@
+ +
+ + + + + + + +
+