diff --git a/src/main/resources/i18n/fr.json b/src/main/resources/i18n/fr.json index a924663e..08c778ca 100644 --- a/src/main/resources/i18n/fr.json +++ b/src/main/resources/i18n/fr.json @@ -189,5 +189,6 @@ "magneto.dropzone.overlay.solution": "Veuillez importer un fichier", "magneto.dropzone.overlay.action": "J'ai compris", "magneto.shared.push.notif.body": "a partagé avec vous un nouveau tableau", - "magneto.loading": "Chargement" + "magneto.loading": "Chargement", + "magneto.zoom": "Zoom" } diff --git a/src/main/resources/public/sass/global/components/_icons.scss b/src/main/resources/public/sass/global/components/_icons.scss index f92a18c0..3aa9ad5d 100644 --- a/src/main/resources/public/sass/global/components/_icons.scss +++ b/src/main/resources/public/sass/global/components/_icons.scss @@ -244,4 +244,12 @@ i { font-family: 'magneto-mdi'; content: '\F04EB'; } + &.magneto-plus::before{ + font-family: 'magneto-mdi'; + content: '\F0415'; + } + &.magneto-minus::before{ + font-family: 'magneto-mdi'; + content: '\F0374'; + } } \ No newline at end of file diff --git a/src/main/resources/public/sass/global/components/containers/_board-read.scss b/src/main/resources/public/sass/global/components/containers/_board-read.scss index d5127bac..d7ccf286 100644 --- a/src/main/resources/public/sass/global/components/containers/_board-read.scss +++ b/src/main/resources/public/sass/global/components/containers/_board-read.scss @@ -98,4 +98,4 @@ overflow: hidden; } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_card-comment.scss b/src/main/resources/public/sass/global/components/directives/_card-comment.scss index e4e6001a..2883fad1 100644 --- a/src/main/resources/public/sass/global/components/directives/_card-comment.scss +++ b/src/main/resources/public/sass/global/components/directives/_card-comment.scss @@ -64,6 +64,7 @@ &-content { line-height: 18px; margin-left: 40px; + white-space: initial !important; } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_card-list-item.scss b/src/main/resources/public/sass/global/components/directives/_card-list-item.scss index 996b49ce..75d2651b 100644 --- a/src/main/resources/public/sass/global/components/directives/_card-list-item.scss +++ b/src/main/resources/public/sass/global/components/directives/_card-list-item.scss @@ -18,6 +18,18 @@ } } + $start: 0; + $end: 5; + @for $i from $start through $end { + &-zoom-#{$i} { + $width-value: 120 + $i * 48px; + width: #{$width-value}; + @if $i < 2 { + height: #{$width-value}; + } + } + } + &.draggable { cursor: move; } @@ -31,17 +43,25 @@ height: 15%; align-items: center; display: flex; + justify-content: space-between; &.reduced-format { height: 20% !important; } + &.dezoom{ + height: 25% !important; + margin-bottom: 0.5em; + } &-creation { - width: 80%; margin-left: 8px; display: flex; flex-direction: column; + &.dezoom{ + width: 49%; + margin-left: 0; + } &-user { @include noTextOverflow(1); } @@ -73,10 +93,27 @@ } } + &-flex-row { + display: flex; + position: relative; + align-items: end; + bottom: 0; + } &-preview { position: relative; height: 18vh; + + $start: 0; + $end: 5; + @for $i from $start through $end { + &-zoom-#{$i} { + $width-value: 3 + $i * 3em; + height: #{$width-value}; + display: flex; + flex: 1; + } + } img { margin-left: auto; margin-right: auto; @@ -120,7 +157,14 @@ bottom: 0; left: 0; z-index: 1; - + &-zoom-0{ + margin-left: -5px; + height: 1.5em; + } + &-zoom-1{ + margin-left: -5px; + height: 1.5em; + } i { font-size: $spacing-M; } @@ -137,15 +181,37 @@ } &-infos { + &-0 ,&-1{ + display: flex; + flex-direction: column; + justify-content: space-between; + flex-wrap: nowrap; + align-content: stretch; + align-items: stretch; + height: 70%; + } &-title { font-size: 16px; font-weight: bold; margin-bottom: 5px; height: 3vh; - + white-space: initial; &-ellipsis { @include noTextOverflow(1); + height: 1.5em; + &.dezoom-0{ + @include noTextOverflow(3); + width: 100%; + line-height: 18px; + height: auto; + } + &.dezoom-1{ + @include noTextOverflow(4); + line-height: 130%; + width: 100%; + height: auto; + } } &.reduced-format { @@ -183,4 +249,4 @@ font-size: 25px; right: 5px; } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_card-list.scss b/src/main/resources/public/sass/global/components/directives/_card-list.scss index ea99a396..eaa4ad87 100644 --- a/src/main/resources/public/sass/global/components/directives/_card-list.scss +++ b/src/main/resources/public/sass/global/components/directives/_card-list.scss @@ -2,14 +2,25 @@ &.no-background-image { background: $magneto-lighter-light-grey; } + $start: 0; + $end: 5; + @for $i from $start through $end { + &-zoom-#{$i} { + $width-value: 120 + $i * 48px; + grid-template-columns: repeat(auto-fill, minmax(#{$width-value}, 1fr)); + } + } + + transform-origin: 0 0; + display: grid; + grid-gap: 10px; + column-gap: 14px; + grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); + grid-auto-rows: 0; &-free { min-height: 70vh; justify-content: center; - display: grid; - grid-gap: 10px; - grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); - grid-auto-rows: 0; } &-vertical { @@ -18,7 +29,6 @@ overflow-x: hidden; display: grid; grid-gap: 10px; - grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); grid-auto-rows: 0; } @@ -27,7 +37,6 @@ overflow-x: auto; flex-wrap: nowrap; padding-bottom: 20px; - display: flex; gap: 10px; } @@ -37,4 +46,4 @@ overflow-y: scroll; height: 55vh; } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_index.scss b/src/main/resources/public/sass/global/components/directives/_index.scss index 89559d27..5053f675 100644 --- a/src/main/resources/public/sass/global/components/directives/_index.scss +++ b/src/main/resources/public/sass/global/components/directives/_index.scss @@ -23,4 +23,5 @@ @import 'comments-panel'; @import 'board-description-lightbox'; @import 'favorite-button'; -@import 'pdf-viewer'; \ No newline at end of file +@import 'pdf-viewer'; +@import 'zoom'; \ No newline at end of file diff --git a/src/main/resources/public/sass/global/components/directives/_section-list.scss b/src/main/resources/public/sass/global/components/directives/_section-list.scss index b185d7a3..35aa697d 100644 --- a/src/main/resources/public/sass/global/components/directives/_section-list.scss +++ b/src/main/resources/public/sass/global/components/directives/_section-list.scss @@ -5,6 +5,14 @@ overflow-y: hidden; min-width: min-content; + $start: 3; + $end: 5; + @for $i from $start through $end { + &-zoom-#{$i} { + $width-value: 100 + ($i - 3) * 20%; + width: $width-value + } + } i.magneto-card-settings { font-size: 25px; @@ -113,4 +121,4 @@ &-content-vertical:not(:first-child) { border-left: solid 2px rgba(211, 211, 211, .5); } -} \ No newline at end of file +} diff --git a/src/main/resources/public/sass/global/components/directives/_zoom.scss b/src/main/resources/public/sass/global/components/directives/_zoom.scss new file mode 100644 index 00000000..b265bdb2 --- /dev/null +++ b/src/main/resources/public/sass/global/components/directives/_zoom.scss @@ -0,0 +1,52 @@ +.zoom{ + background-color: $magneto-grey; + opacity: 75%; + display: flex; + color: $magneto-white; + position: fixed; + border-radius: 32px; + padding: 8px; + right: 45%; + bottom: 1em; + z-index: 2; + + &-plus{ + font-size: 32px; + padding-left: 1em; + margin-top: 3px; + &-disabled{ + color: $magneto-light-grey; + } + } + &-minus{ + padding-right: 1em; + font-size: 32px; + margin-top: 3px; + &-disabled{ + color: $magneto-light-grey; + } + } + &-label{ + margin: 0 1em ; + } + + &-line1 { + content: ""; + position: absolute; + top: 50%; + left: 20%; + width: 40px; + height: 1px; + background-color: #ffffff; + } + + &-line2 { + content: ""; + position: absolute; + top: 50%; + left: 62%; + width: 40px; + height: 1px; + background-color: #ffffff; + } +} \ No newline at end of file diff --git a/src/main/resources/public/template/board.html b/src/main/resources/public/template/board.html index ae3620e2..906ddbb6 100644 --- a/src/main/resources/public/template/board.html +++ b/src/main/resources/public/template/board.html @@ -31,6 +31,11 @@