From 07f09ddead2add14ffc4304e907c654fba2b864b Mon Sep 17 00:00:00 2001 From: Iziram Date: Tue, 20 Aug 2024 17:56:59 +0200 Subject: [PATCH] signal_assiduites_group : rendu mobile --- app/static/css/scodoc9_mobile.css | 83 +++++++++++++++++++ .../pages/signal_assiduites_group.j2 | 21 +++-- app/templates/assiduites/widgets/timeline.j2 | 11 ++- 3 files changed, 103 insertions(+), 12 deletions(-) diff --git a/app/static/css/scodoc9_mobile.css b/app/static/css/scodoc9_mobile.css index f86f73f9..d4b8c521 100644 --- a/app/static/css/scodoc9_mobile.css +++ b/app/static/css/scodoc9_mobile.css @@ -12,4 +12,87 @@ #moduleimpl_select { max-width: 200px; } + + #timeline { + flex-wrap: wrap-reverse; + } + + .time-buttons { + display: flex; + justify-content: space-evenly; + } + + #timeline .inputs { + flex-direction: row; + justify-content: space-evenly; + width: 100%; + padding: 8px; + } + + #timeline .inputs>input { + width: 100%; + text-align: center; + } + + .timeline-container .period-handle::before { + width: 40px !important; + height: 100% !important; + content: ""; + display: block; + background-color: red; + border-radius: 12px; + opacity: 0.5; + position: absolute; + top: 0; + + mix-blend-mode: color-dodge; + + } + + .timeline-container .period-handle.left::before { + transform: translateX(-50%); + left: 0; + } + + .timeline-container .period-handle.right::before { + transform: translateX(50%); + right: 0; + } + + .selectors .infos { + flex-direction: column; + } + + .selectors .infos .date-input { + display: flex; + flex-direction: row; + justify-content: space-evenly; + } + + .mass-selection { + flex-wrap: wrap; + } + + .etud_row { + grid-template-columns: 2% 20% auto 25% !important; + max-width: 350px; + gap: 8px; + } + + .etud_row .assiduites_bar { + grid-column: 4 !important; + grid-row: 1; + } + + .etud_row .btns_field.single { + grid-column: 3 !important; + grid-row: 1; + } + + .rbtn::before { + --size: 35px; + width: var(--size) !important; + height: var(--size) !important; + } + } \ No newline at end of file diff --git a/app/templates/assiduites/pages/signal_assiduites_group.j2 b/app/templates/assiduites/pages/signal_assiduites_group.j2 index b939944a..0e3de93f 100644 --- a/app/templates/assiduites/pages/signal_assiduites_group.j2 +++ b/app/templates/assiduites/pages/signal_assiduites_group.j2 @@ -115,6 +115,7 @@ padding: 5px; border-radius: 5px; text-decoration: none; + z-index: 100; } html{ @@ -152,20 +153,22 @@
Groupes : {{grp|safe}}
-
- - +
+ +
+ +
+
-
{{timeline|safe}} -
+
diff --git a/app/templates/assiduites/widgets/timeline.j2 b/app/templates/assiduites/widgets/timeline.j2 index eaac2b84..e16045f0 100644 --- a/app/templates/assiduites/widgets/timeline.j2 +++ b/app/templates/assiduites/widgets/timeline.j2 @@ -3,7 +3,7 @@
-
+
@@ -12,8 +12,6 @@