Skip to content

Commit

Permalink
💄 Mise en page du menu "Gestion" dans la fiche évaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
cprodhomme committed Jan 30, 2023
1 parent 451c677 commit 23485a5
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 15 deletions.
5 changes: 4 additions & 1 deletion app/assets/stylesheets/admin/layout/_main_structure.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#active_admin_content {
padding: 3rem 0;
padding: .5rem 0;
#main_content_wrapper #main_content {
margin-top: 2.5rem;
}
}

body.logged_in {
Expand Down
5 changes: 3 additions & 2 deletions app/assets/stylesheets/admin/layout/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

.sidebar_section.panel {
&.action-items-sidebar {
@include annule-panel;
margin-bottom: 2rem;
@include annule-carte;
@include panel-gris();
margin-bottom: 0.5rem;
}

&.annule-panel {
Expand Down
14 changes: 14 additions & 0 deletions app/assets/stylesheets/admin/mixins/_panels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,17 @@
display: none;
}
}

@mixin panel-gris() {
@include carte-grise();
padding: 1rem;
box-shadow: none;
h3 {
margin-top: 0;
margin-bottom: .5rem;
text-transform: uppercase;
font-size: 1rem;
font-weight: 600;
font-family: $font-texte;
}
}
17 changes: 5 additions & 12 deletions app/assets/stylesheets/admin/pages/_evaluations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,12 @@
}

#responsable_de_suivi_sidebar_section {
$largeur-panel: 18.125rem;
$padding: 1rem;
@include carte-grise();
padding: 1rem;
box-shadow: none;
h3 {
text-transform: uppercase;
font-size: 1rem;
margin-bottom: .5rem;
font-weight: 600;
font-family: $font-texte;
}
@include panel-gris();
.tag {
$largeur-panel: 18.125rem;
$padding: 1rem;

display: inline-block;
@include tronque;
display: inline-block;
max-width: calc(#{ $largeur-panel - ($padding * 2) });
Expand Down
1 change: 1 addition & 0 deletions config/locales/activeadmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ fr:
sidebars:
filters: Rechercher
autres_actualites: Les autres actualités sur eva
action_items: Gestion
scopes:
sans_campagne: Sans campagne 🙈
pas_vraiment_utilisatrices: Pas vraiment utilisatrices ☃️
Expand Down
1 change: 1 addition & 0 deletions config/locales/models/evaluation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ fr:
resources:
evaluation:
delete_model: Supprimer
edit_model: Modifier

0 comments on commit 23485a5

Please sign in to comment.