style(avis): fix font sizes & colors due to h2 strongly styled
This commit is contained in:
parent
8f5a60e283
commit
9571e9481d
6 changed files with 26 additions and 20 deletions
|
@ -48,7 +48,7 @@
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bold-weight-bold {
|
.font-weight-bold {
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-bottom: $default-padding;
|
margin-bottom: $default-padding;
|
||||||
|
font-size: 16px;
|
||||||
|
|
||||||
.email {
|
.email {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -74,6 +75,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-avis {
|
.list-avis {
|
||||||
|
ul {
|
||||||
|
padding-inline-start: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.one-avis {
|
.one-avis {
|
||||||
border-top: 1px solid $grey;
|
border-top: 1px solid $grey;
|
||||||
padding: $default-padding 0;
|
padding: $default-padding 0;
|
||||||
|
@ -84,6 +89,7 @@
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-bottom: $default-spacer;
|
margin-bottom: $default-spacer;
|
||||||
|
font-size: 16px;
|
||||||
|
|
||||||
.email {
|
.email {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -7,30 +7,30 @@
|
||||||
- avis.each do |avis|
|
- avis.each do |avis|
|
||||||
%li.one-avis.flex.align-start
|
%li.one-avis.flex.align-start
|
||||||
.width-100
|
.width-100
|
||||||
%h2.claimant.fr-h6
|
%h2.claimant.fr-font--md.font-weight-normal
|
||||||
= "#{t('claimant', scope: 'activerecord.attributes.avis')} :"
|
= "#{t('claimant', scope: 'activerecord.attributes.avis')} :"
|
||||||
%span.fr-text--xs.fr-text-mention--grey.font-weight-normal= (safe_claimant_email(avis.claimant) == current_expert.email) ? 'Vous' : safe_claimant_email(avis.claimant)
|
%span.font-weight-bold= (safe_claimant_email(avis.claimant) == current_expert.email) ? 'Vous' : safe_claimant_email(avis.claimant)
|
||||||
- if avis.confidentiel?
|
- if avis.confidentiel?
|
||||||
%span.confidentiel.font-weight-normal
|
%span.confidentiel
|
||||||
= t('confidentiel', scope: 'activerecord.attributes.avis')
|
= t('confidentiel', scope: 'activerecord.attributes.avis')
|
||||||
%span.icon.lock{ title: t('confidentiel', scope: 'helpers.hint') }
|
%span.icon.lock{ title: t('confidentiel', scope: 'helpers.hint') }
|
||||||
%span.date.fr-text--xs.fr-text-mention--grey.font-weight-normal{ class: highlight_if_unseen_class(avis_seen_at, avis.created_at) }
|
%span.date.fr-text--xs.fr-text-mention--grey{ class: highlight_if_unseen_class(avis_seen_at, avis.created_at) }
|
||||||
= t('demande_envoyee_le', scope: 'views.shared.avis', date: l(avis.created_at, format: '%d/%m/%y à %H:%M'))
|
= t('demande_envoyee_le', scope: 'views.shared.avis', date: l(avis.created_at, format: '%d/%m/%y à %H:%M'))
|
||||||
%p= avis.introduction
|
%p= avis.introduction
|
||||||
|
|
||||||
.answer.flex.align-start
|
.answer.flex.align-start
|
||||||
%span.icon.bubble.avis-icon
|
%span.icon.bubble.avis-icon
|
||||||
.width-100
|
.width-100
|
||||||
%h2.instructeur.fr-h6
|
%h2.instructeur.fr-font--md.font-weight-normal
|
||||||
= (avis.expert.email == current_expert.email) ? 'Vous' : avis.expert.email
|
= (avis.expert.email == current_expert.email) ? 'Vous' : avis.expert.email
|
||||||
- if avis.answer.present?
|
- if avis.answer.present?
|
||||||
- if avis.revoked?
|
- if avis.revoked?
|
||||||
%span.waiting.font-weight-normal{ class: highlight_if_unseen_class(avis_seen_at, avis.revoked_at) }
|
%span.fr-text--xs.fr-text-mention--grey{ class: highlight_if_unseen_class(avis_seen_at, avis.revoked_at) }
|
||||||
= t('demande_revoquee_le', scope: 'views.shared.avis', date: l(avis.revoked_at, format: '%d/%m/%y à %H:%M'))
|
= t('demande_revoquee_le', scope: 'views.shared.avis', date: l(avis.revoked_at, format: '%d/%m/%y à %H:%M'))
|
||||||
%span.date.fr-text--xs.fr-text-mention--grey.font-weight-normal{ class: highlight_if_unseen_class(avis_seen_at, avis.updated_at) }
|
%span.date.fr-text--xs.fr-text-mention--grey{ class: highlight_if_unseen_class(avis_seen_at, avis.updated_at) }
|
||||||
= t('reponse_donnee_le', scope: 'views.shared.avis', date: l(avis.updated_at, format: '%d/%m/%y à %H:%M'))
|
= t('reponse_donnee_le', scope: 'views.shared.avis', date: l(avis.updated_at, format: '%d/%m/%y à %H:%M'))
|
||||||
- else
|
- else
|
||||||
%span.waiting.font-weight-normal
|
%span.fr-text--xs.fr-text-mention--grey
|
||||||
= t('en_attente', scope: 'views.shared.avis')
|
= t('en_attente', scope: 'views.shared.avis')
|
||||||
- if avis.piece_justificative_file.attached?
|
- if avis.piece_justificative_file.attached?
|
||||||
= render Attachment::ShowComponent.new(attachment: avis.piece_justificative_file.attachment)
|
= render Attachment::ShowComponent.new(attachment: avis.piece_justificative_file.attachment)
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
%span
|
%span
|
||||||
Cet avis est partagé avec les autres experts
|
Cet avis est partagé avec les autres experts
|
||||||
.send-wrapper
|
.send-wrapper
|
||||||
= f.submit 'Envoyer votre avis', class: 'button send'
|
= f.submit 'Envoyer votre avis', class: 'fr-btn'
|
||||||
|
|
||||||
- if !@dossier.termine? && !@avis.procedure.feature_enabled?(:expert_not_allowed_to_invite)
|
- if !@dossier.termine? && !@avis.procedure.feature_enabled?(:expert_not_allowed_to_invite)
|
||||||
= render partial: "instructeurs/shared/avis/form", locals: { url: avis_instructeur_avis_path(@avis.procedure, @avis), linked_dossiers: @dossier.linked_dossiers_for(current_instructeur), must_be_confidentiel: @avis.confidentiel?, avis: @new_avis }
|
= render partial: "instructeurs/shared/avis/form", locals: { url: avis_instructeur_avis_path(@avis.procedure, @avis), linked_dossiers: @dossier.linked_dossiers_for(current_instructeur), must_be_confidentiel: @avis.confidentiel?, avis: @new_avis }
|
||||||
|
|
|
@ -41,4 +41,4 @@
|
||||||
.confidentiel-explanation.hidden
|
.confidentiel-explanation.hidden
|
||||||
Il ne sera pas affiché aux autres experts consultés, mais sera visible par les instructeurs.
|
Il ne sera pas affiché aux autres experts consultés, mais sera visible par les instructeurs.
|
||||||
|
|
||||||
= f.submit 'Demander un avis', class: 'button primary send'
|
= f.submit 'Demander un avis', class: 'fr-btn'
|
||||||
|
|
|
@ -7,36 +7,36 @@
|
||||||
- avis.each do |avis|
|
- avis.each do |avis|
|
||||||
%li.one-avis.flex.align-start
|
%li.one-avis.flex.align-start
|
||||||
.width-100
|
.width-100
|
||||||
%h2.claimant
|
%h2.claimant.fr-font--md.font-weight-normal
|
||||||
= "#{t('claimant', scope: 'activerecord.attributes.avis')} :"
|
= "#{t('claimant', scope: 'activerecord.attributes.avis')} :"
|
||||||
%span.email= (avis.claimant.email == current_instructeur.email) ? 'Vous' : avis.claimant.email
|
%span.font-weight-bold= (avis.claimant.email == current_instructeur.email) ? 'Vous' : avis.claimant.email
|
||||||
- if avis.confidentiel?
|
- if avis.confidentiel?
|
||||||
%span.confidentiel
|
%span.confidentiel
|
||||||
= t('confidentiel', scope: 'activerecord.attributes.avis')
|
= t('confidentiel', scope: 'activerecord.attributes.avis')
|
||||||
%span.icon.lock{ title: t('confidentiel', scope: 'helpers.hint') }
|
%span.icon.lock{ title: t('confidentiel', scope: 'helpers.hint') }
|
||||||
%span.date{ class: highlight_if_unseen_class(avis_seen_at, avis.created_at) }
|
%span.date.fr-text--xs.fr-text-mention--grey{ class: highlight_if_unseen_class(avis_seen_at, avis.created_at) }
|
||||||
= t('demande_envoyee_le', scope: 'views.shared.avis', date: l(avis.created_at, format: '%d/%m/%y à %H:%M'))
|
= t('demande_envoyee_le', scope: 'views.shared.avis', date: l(avis.created_at, format: '%d/%m/%y à %H:%M'))
|
||||||
%p= avis.introduction
|
%p= avis.introduction
|
||||||
|
|
||||||
.answer.flex.align-start
|
.answer.flex.align-start
|
||||||
%span.icon.bubble.avis-icon
|
%span.icon.bubble.avis-icon
|
||||||
.width-100
|
.width-100
|
||||||
%h2.instructeur
|
%h2.instructeur.fr-font--md.font-weight-normal
|
||||||
= (avis.expert.email == current_instructeur.email) ? 'Vous' : avis.expert.email
|
= (avis.expert.email == current_instructeur.email) ? 'Vous' : avis.expert.email
|
||||||
- if avis.answer.present?
|
- if avis.answer.present?
|
||||||
- if avis.revoked?
|
- if avis.revoked?
|
||||||
%span.waiting{ class: highlight_if_unseen_class(avis_seen_at, avis.revoked_at) }
|
%span.fr-text--xs.fr-text-mention--grey{ class: highlight_if_unseen_class(avis_seen_at, avis.revoked_at) }
|
||||||
= t('demande_revoquee_le', scope: 'views.shared.avis', date: l(avis.revoked_at, format: '%d/%m/%y à %H:%M'))
|
= t('demande_revoquee_le', scope: 'views.shared.avis', date: l(avis.revoked_at, format: '%d/%m/%y à %H:%M'))
|
||||||
- else
|
- else
|
||||||
- if avis.revokable_by?(current_instructeur)
|
- if avis.revokable_by?(current_instructeur)
|
||||||
%span.waiting= link_to(t('revoke', scope: 'helpers.label'), revoquer_instructeur_avis_path(avis.procedure, avis), data: { confirm: t('revoke', scope: 'helpers.confirmation', email: avis.expert.email) }, method: :patch)
|
%span.fr-text--xs.fr-text-mention--grey= link_to(t('revoke', scope: 'helpers.label'), revoquer_instructeur_avis_path(avis.procedure, avis), data: { confirm: t('revoke', scope: 'helpers.confirmation', email: avis.expert.email) }, method: :patch)
|
||||||
%span.date{ class: highlight_if_unseen_class(avis_seen_at, avis.updated_at) }
|
%span.date.fr-text--xs.fr-text-mention--grey{ class: highlight_if_unseen_class(avis_seen_at, avis.updated_at) }
|
||||||
= t('reponse_donnee_le', scope: 'views.shared.avis', date: l(avis.updated_at, format: '%d/%m/%y à %H:%M'))
|
= t('reponse_donnee_le', scope: 'views.shared.avis', date: l(avis.updated_at, format: '%d/%m/%y à %H:%M'))
|
||||||
- else
|
- else
|
||||||
%span.waiting
|
%span.fr-text--xs.fr-text-mention--grey
|
||||||
= t('en_attente', scope: 'views.shared.avis')
|
= t('en_attente', scope: 'views.shared.avis')
|
||||||
|
|
|
|
||||||
%span.waiting= link_to(t('revive', scope: 'helpers.label'), revive_instructeur_avis_path(avis.procedure, avis), data: { confirm: t('revive', scope: 'helpers.confirmation', email: avis.expert.email) })
|
%span= link_to(t('revive', scope: 'helpers.label'), revive_instructeur_avis_path(avis.procedure, avis), data: { confirm: t('revive', scope: 'helpers.confirmation', email: avis.expert.email) })
|
||||||
- if avis.revokable_by?(current_instructeur)
|
- if avis.revokable_by?(current_instructeur)
|
||||||
|
|
|
|
||||||
= link_to(t('revoke', scope: 'helpers.label'), revoquer_instructeur_avis_path(avis.procedure, avis), data: { confirm: t('revoke', scope: 'helpers.confirmation', email: avis.expert.email) }, method: :patch)
|
= link_to(t('revoke', scope: 'helpers.label'), revoquer_instructeur_avis_path(avis.procedure, avis), data: { confirm: t('revoke', scope: 'helpers.confirmation', email: avis.expert.email) }, method: :patch)
|
||||||
|
|
Loading…
Reference in a new issue