diff --git a/CHANGELOG.md b/CHANGELOG.md index fbee69b..970c101 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,14 +4,18 @@ * allow to define templates show before and after a murph collection item * add global batch actions * add constraint `Length` in forms +* add sass classes to mange with of elements ### Changed * refactor services using constructor property promotions * remove twig in the mail notifier service +* change pills colors +* change border colors of inputs when focused ### Fixed * fix regression on crud sorting * fix test in RepositoryQuery::addForcedFilterHandler * remove parameter $option on CrudConfiguration::setForm and fix CrudController make template +* fix the aspect of the actions's column in the crud ## [v1.22.0] 2023-09-28 ### Added diff --git a/src/core/Entity/Site/Navigation.php b/src/core/Entity/Site/Navigation.php index 679ec3f..d538df1 100644 --- a/src/core/Entity/Site/Navigation.php +++ b/src/core/Entity/Site/Navigation.php @@ -67,7 +67,7 @@ class Navigation implements EntityInterface return $this->label; } - public function setLabel(string $label): self + public function setLabel(?string $label): self { $this->label = $label; diff --git a/src/core/Resources/assets/css/admin.scss b/src/core/Resources/assets/css/admin.scss index 2d72e22..e6ac634 100644 --- a/src/core/Resources/assets/css/admin.scss +++ b/src/core/Resources/assets/css/admin.scss @@ -12,6 +12,17 @@ $pagination-active-bg: #343a40 !default; $sidebar-width: 260px !default; +$input-border-color: map-get($theme-colors, 'dark-blue'); +$input-btn-focus-color: $input-border-color; + +$component-active-color: map-get($theme-colors, 'dark-blue'); + +$nav-tabs-link-active-bg: map-get($theme-colors, 'dark-blue'); +$nav-pills-link-active-bg: map-get($theme-colors, 'dark-blue'); +$nav-tabs-link-active-color: lighten(map-get($theme-colors, 'dark-blue'), 100%); +$nav-pills-link-active-color: lighten(map-get($theme-colors, 'dark-blue'), 100%); +$input-focus-border-color: lighten(map-get($theme-colors, 'dark-blue'), 80%); + @import "~choices.js/src/styles/choices.scss"; @import "~bootstrap/scss/bootstrap.scss"; @import "~@fortawesome/fontawesome-free/css/all.css"; @@ -19,9 +30,29 @@ $sidebar-width: 260px !default; @import '~grapesjs/dist/css/grapes.min.css'; @import '~grapesjs-component-code-editor/dist/grapesjs-component-code-editor.min.css'; -@for $i from 1 through 100 { - .miw-#{$i*5} { - min-width: $i * 5px; +@for $i from 1 through 400 { + .miw-#{$i}, .min-width-#{$i} { + min-width: #{$i}px; + } + + .min-width-#{$i}p { + min-width: #{$i}#{"%"}; + } + + .maw-#{$i}, .max-width-#{$i} { + max-width: #{$i}px; + } + + .max-width-#{$i}p { + max-width: #{$i}#{"%"}; + } + + .width-#{$i} { + width: #{$i}px; + } + + .width-#{$i}p { + width: #{$i}#{"%"}; } } @@ -110,6 +141,7 @@ body { .table .thead-light { a, th { color: map-get($theme-colors, 'dark-blue'); + background: lighten(map-get($theme-colors, 'dark-blue'), 80%); } } @@ -672,6 +704,16 @@ form { } } +label.required::after { + content: '*'; + margin-left: 3px; + color: #b41215; +} + +.invalid-feedback { + margin-top: -3px; +} + .gjs-editor-cont { border-radius: 10px; overflow: hidden !important; diff --git a/src/core/Resources/views/admin/crud/index.html.twig b/src/core/Resources/views/admin/crud/index.html.twig index d8e17f9..e4e3a6d 100644 --- a/src/core/Resources/views/admin/crud/index.html.twig +++ b/src/core/Resources/views/admin/crud/index.html.twig @@ -144,7 +144,7 @@ {% endblock %} {% endfor %} {% if configuration.showActions %} -