diff --git a/assets/css/admin.scss b/assets/css/admin.scss index 61ecf32..2b35e2f 100644 --- a/assets/css/admin.scss +++ b/assets/css/admin.scss @@ -14,6 +14,16 @@ $pagination-active-bg: #343a40; @import "~bootstrap/scss/bootstrap.scss"; @import "~@fortawesome/fontawesome-free/css/all.css"; +@for $i from 1 through 100 { + .miw-#{$i*5} { + min-width: $i * 5px; + } +} + +body { + overflow-x: hidden; +} + #logo { width: 30px; } @@ -116,6 +126,9 @@ tr.table-primary-light { .sidebar { + width: 260px; + display: inline-block; + .nav-link { font-weight: 500; color: #333; @@ -142,32 +155,6 @@ tr.table-primary-light { text-transform: uppercase; display: flex; } - - @media screen and (max-width: 1130px) { - .nav-link { - font-size: 14px; - } - } - - @media screen and (max-width: 770px) { - .nav { - padding-left: 0; - } - - .nav-link { - padding-left: 10px; - } - - .nav-item-label { - display: none; - } - - .sidebar-heading { - display: none; - } - - width: 50px; - } } *[data-selectable-selector] { @@ -194,15 +181,19 @@ tr.table-primary-light { .body { padding-top: 60px; + width: calc(100vw - 260px); + margin-left: 260px; + display: inline-block; .nav { padding-left: 10px; } } -@media screen and (max-width: 580px) { +@media screen and (max-width: 770px) { .body { - margin-left: 45px; + margin-left: 50px; + width: calc(100vw - 50px); } .sidebar { @@ -213,49 +204,39 @@ tr.table-primary-light { width: 50px; max-width: 100% !important; } + + .nav { + padding-left: 0; + } + + .nav-link { + padding-left: 10px; + } + + .nav-item-label { + display: none; + } + + .sidebar-heading { + display: none; + } } } -table.table-fixed, .table-fixed > table { - width: 100%; - - tbody { - overflow: auto; - width: 100%; - height: 500px; - } - - thead, tbody, tr, td, th { - display: block; - } - - tbody { - td, th { - float: left; - min-height: 60px; - } - - tr { - clear: left; +th { + &.sorted { + &::before { + content: '\f0dc'; + font-family: 'FontAwesome'; + color: #aaa; + margin-right: 3px; } } +} - thead { - tr { - th { - float: left; - - &.sorted { - &::before { - content: '\f0dc'; - font-family: 'FontAwesome'; - color: #aaa; - margin-right: 3px; - } - } - } - } - } +.table-responsive { + max-width: 100%; + overflow-y: hidden; } .toast-container { diff --git a/assets/images/core/logo.svg b/assets/images/core/logo.svg new file mode 100644 index 0000000..0fcfb57 --- /dev/null +++ b/assets/images/core/logo.svg @@ -0,0 +1,92 @@ + + + + diff --git a/assets/js/admin.js b/assets/js/admin.js index 99a51a7..858e8f7 100644 --- a/assets/js/admin.js +++ b/assets/js/admin.js @@ -1,3 +1,10 @@ +/*const imagesContext = require.context( + '../images', + true, /\.(png|jpg|jpeg|gif|ico|svg|webp)$/ +); + +imagesContext.keys().forEach(imagesContext);*/ + import '../css/admin.scss'; require('../../node_modules/bootstrap/dist/js/bootstrap.min.js'); diff --git a/core/Resources/translations/messages.fr.yaml b/core/Resources/translations/messages.fr.yaml index 61b0f18..22b6a31 100644 --- a/core/Resources/translations/messages.fr.yaml +++ b/core/Resources/translations/messages.fr.yaml @@ -85,6 +85,7 @@ "Add a menu": "Ajouter un menu" "Actions": "Actions" "Remove": "Supprimer" +"Move": "Déplacer" "Hidden": "Caché" "Show": "Voir" "No result": "Aucun résultat" diff --git a/core/Resources/views/admin/layout.html.twig b/core/Resources/views/admin/layout.html.twig index b168ae9..d8dd78f 100644 --- a/core/Resources/views/admin/layout.html.twig +++ b/core/Resources/views/admin/layout.html.twig @@ -27,16 +27,14 @@ {% block body_container %}
- {{ 'Label'|trans }} - | -- {{ 'Domain'|trans }} - | -- {{ 'Actions'|trans }} - | -|
---|---|---|---|
- - {{ item.label }} - - - {{ item.code }} - | -- - {{ item.domain }} - - | -- - - - - - - | -
-
-
-
-
- {{ 'No result'|trans }}
-
- |
+ + {{ 'Label'|trans }} + | ++ {{ 'Domain'|trans }} + | ++ {{ 'Actions'|trans }} + |
---|
{{ 'Name'|trans }} | -{{ 'Actions'|trans }} | -||
---|---|---|---|
- - {{ item.name }} - - | -- {% for node in item.nodes %} - - {{ node.label }} - - {% endfor %} - | -- - - - - - - | -
-
-
-
-
- {{ 'No result'|trans }}
-
- |
+ {{ 'Name'|trans }} | ++ | {{ 'Actions'|trans }} |
---|
{{ 'Username'|trans }} | -{{ 'Actions'|trans }} | -|
---|---|---|
- - {{ item.displayName }} - - - {{ item.email }} - | -- - - - - - - | -
-
-
-
-
- {{ 'No result'|trans }}
-
- |
+ {{ 'Username'|trans }} | +{{ 'Actions'|trans }} |
---|