style: replace legacy folder icon

This commit is contained in:
Colin Darie 2023-11-28 09:50:43 +01:00
parent eff2b856df
commit 2a31fc68d7
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
11 changed files with 10 additions and 29 deletions

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" fill-rule="evenodd"><path stroke="#000091" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"/><path d="M0 0h24v24H0z"/></g></svg>

Before

Width:  |  Height:  |  Size: 337 B

View file

@ -15,10 +15,6 @@ $dossier-actions-bar-border-width: 1px;
h1 { h1 {
font-size: 2rem; font-size: 2rem;
.icon.folder {
vertical-align: -3px;
}
} }
.dossier-form-actions { .dossier-form-actions {

View file

@ -30,15 +30,6 @@
padding: (2 * $default-spacer) $default-spacer; padding: (2 * $default-spacer) $default-spacer;
} }
.icon.folder {
position: relative;
.notifications {
top: -3px;
right: -6px;
}
}
.notification-col { .notification-col {
a { a {
font-size: 16px; font-size: 16px;

View file

@ -31,10 +31,6 @@
background-image: image-url("icons/unarchive.svg"); background-image: image-url("icons/unarchive.svg");
} }
&.folder {
background-image: image-url("icons/folder.svg");
}
&.accept { &.accept {
background-image: image-url("icons/accept.svg"); background-image: image-url("icons/accept.svg");
} }

View file

@ -49,7 +49,7 @@
- else - else
%span.fr-badge= procedure.instructeurs.count %span.fr-badge= procedure.instructeurs.count
%span.icon.folder.fr-ml-1w = dsfr_icon('fr-icon-file-text-fill fr-ml-1w')
%span.fr-badge= procedure.dossiers.state_not_brouillon.visible_by_administration.count %span.fr-badge= procedure.dossiers.state_not_brouillon.visible_by_administration.count
.text-right .text-right

View file

@ -37,7 +37,7 @@
%tr %tr
%td.number-col %td.number-col
= link_to(expert_avis_path(avis.procedure, avis), class: 'cell-link') do = link_to(expert_avis_path(avis.procedure, avis), class: 'cell-link') do
%span.icon.folder = dsfr_icon('fr-icon-file-text-line')
#{avis.dossier.id} #{avis.dossier.id}
%td= link_to(avis.dossier.user_email_for(:display), expert_avis_path(avis.procedure, avis), class: 'cell-link') %td= link_to(avis.dossier.user_email_for(:display), expert_avis_path(avis.procedure, avis), class: 'cell-link')
%td= link_to(avis.procedure.libelle, expert_avis_path(avis.procedure, avis), class: 'cell-link') %td= link_to(avis.procedure.libelle, expert_avis_path(avis.procedure, avis), class: 'cell-link')

View file

@ -46,7 +46,7 @@
- @deleted_dossiers.each do |deleted_dossier| - @deleted_dossiers.each do |deleted_dossier|
%tr %tr
%td.text-center %td.text-center
%span.icon.folder = dsfr_icon('fr-icon-file-text-line')
%td.number-col %td.number-col
= deleted_dossier.dossier_id = deleted_dossier.dossier_id
%td %td

View file

@ -145,12 +145,12 @@
- else - else
- if p.hidden_by_administration_at.present? - if p.hidden_by_administration_at.present?
%span.cell-link %span.cell-link
%span.icon.folder = dsfr_icon('fr-icon-file-text-line')
- else - else
%a.cell-link{ href: path } %a.cell-link{ href: path }
%span.icon.folder = dsfr_icon('fr-icon-file-text-line')
- if @not_archived_notifications_dossier_ids.include?(p.dossier_id) - if @not_archived_notifications_dossier_ids.include?(p.dossier_id)
%span.notifications{ 'aria-label': 'notifications' } %span.notifications{ 'aria-label': 'notifications' }
%td.number-col %td.number-col
- if p.hidden_by_administration_at.present? - if p.hidden_by_administration_at.present?

View file

@ -1,6 +1,6 @@
%td.text-center %td.text-center
%p.cell-link %p.cell-link
%span.icon.folder = dsfr_icon('fr-icon-file-text-line')
%td.number-col %td.number-col
%p.cell-link= p.dossier_id %p.cell-link= p.dossier_id

View file

@ -37,7 +37,7 @@
%tr{ class: [p.hidden_by_administration_at.present? && "file-hidden-by-user"] } %tr{ class: [p.hidden_by_administration_at.present? && "file-hidden-by-user"] }
- if instructeur_and_expert_dossier - if instructeur_and_expert_dossier
%td.text-center.cell-link %td.text-center.cell-link
%span.icon.folder = dsfr_icon('fr-icon-file-text-line')
%td.number-col %td.number-col
.cell-link= p.dossier_id .cell-link= p.dossier_id
%td %td
@ -54,7 +54,7 @@
%td.text-center %td.text-center
%a.cell-link{ href: path } %a.cell-link{ href: path }
%span.icon.folder = dsfr_icon('fr-icon-file-text-line')
%td.number-col %td.number-col
%a.cell-link{ href: path }= p.dossier_id %a.cell-link{ href: path }= p.dossier_id

View file

@ -6,7 +6,6 @@
%span.icon.unfollow %span.icon.unfollow
%span.icon.archive %span.icon.archive
%span.icon.unarchive %span.icon.unarchive
%span.icon.folder
%span.icon.accept %span.icon.accept
%span.icon.refuse %span.icon.refuse
%span.icon.without-continuation %span.icon.without-continuation