Improve procedure logo on procedure#show
This commit is contained in:
parent
ce738913e0
commit
fe7f772f96
2 changed files with 22 additions and 3 deletions
17
app/assets/stylesheets/new_design/procedure-logo.scss
Normal file
17
app/assets/stylesheets/new_design/procedure-logo.scss
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
@import "colors";
|
||||||
|
@import "constants";
|
||||||
|
|
||||||
|
.procedure-logo {
|
||||||
|
display: flex;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border: 1px solid $border-grey;
|
||||||
|
height: 84px;
|
||||||
|
width: 84px;
|
||||||
|
margin-right: 2 * $default-spacer;
|
||||||
|
|
||||||
|
img {
|
||||||
|
margin: auto;
|
||||||
|
max-width: 80%;
|
||||||
|
max-height: 80%;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,10 +1,12 @@
|
||||||
#procedure-show
|
#procedure-show
|
||||||
.backoffice-header
|
.backoffice-header
|
||||||
.container.flex
|
.container.flex
|
||||||
- if @procedure.logo.present?
|
|
||||||
= image_tag @procedure.logo, height: 40, class: 'procedure-logo'
|
|
||||||
|
|
||||||
.width-100
|
.procedure-logo
|
||||||
|
- if @procedure.logo.present?
|
||||||
|
= image_tag @procedure.logo, alt: "Logo de la procédure"
|
||||||
|
|
||||||
|
.procedure-header
|
||||||
%h1= @procedure.libelle
|
%h1= @procedure.libelle
|
||||||
%ul.tabs
|
%ul.tabs
|
||||||
%li{ class: (@statut == 'a-suivre') ? 'active' : nil }>
|
%li{ class: (@statut == 'a-suivre') ? 'active' : nil }>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue