Merge pull request #838 from sgmap/better_dossier_champ_display

[Fix #854] Better dossier display
This commit is contained in:
LeSim 2017-10-17 10:55:20 +02:00 committed by GitHub
commit 16b4395474
3 changed files with 74 additions and 3 deletions

View file

@ -0,0 +1,71 @@
@import "constants";
.dossier-champs {
th,
td {
vertical-align: top;
}
.libelle {
width: 250px;
}
i {
font-style: italic;
}
b {
font-weight: bold;
}
small {
font-size: 14px;
}
ol,
ul {
list-style: inside;
}
ol {
list-style-type: decimal;
}
blockquote {
margin: $default-padding 0 $default-padding $default-padding;
}
p {
margin-bottom: $default-padding;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: $default-padding;
line-height: 1;
}
h2 {
font-size: 32px;
}
h3 {
font-size: 28px;
}
h4 {
font-size: 24px;
}
h5 {
font-size: 20px;
}
h6 {
font-size: 16px;
}
}

View file

@ -27,7 +27,7 @@
}
&.vertical {
font-size: 14px;
font-size: 16px;
line-height: 22px;
tr {

View file

@ -1,4 +1,4 @@
%table.table.vertical
%table.table.vertical.dossier-champs
%tbody
- champs.each do |c|
%tr
@ -6,7 +6,7 @@
%th.header-section{ colspan: 2 }
= c.libelle
- elsif c.type_champ != "explication"
%th
%th.libelle
= "#{c.libelle} :"
%td
= sanitize(c.value)