Add a .vertical class to tables because this is not the default layout

This commit is contained in:
Mathieu Magnin 2017-07-27 15:30:25 +02:00
parent 1e61f1388b
commit 9b95a4732f
6 changed files with 21 additions and 16 deletions

View file

@ -4,25 +4,28 @@
.table {
width: 100%;
font-size: 14px;
line-height: 22px;
th,
td {
@include vertical-padding($default-spacer)
}
th {
text-align: left;
&.vertical {
font-size: 14px;
line-height: 22px;
&.header-section {
color: $blue;
th {
text-align: left;
&.header-section {
color: $blue;
font-weight: bold;
font-size: 20px;
}
}
td {
font-weight: bold;
font-size: 20px;
}
}
td {
font-weight: bold;
}
}

View file

@ -1,4 +1,4 @@
%table.table
%table.table.vertical
%tbody
- champs.each do |c|
%tr

View file

@ -2,7 +2,7 @@
- etablissement = entreprise.etablissement
%h4= entreprise.raison_sociale_or_name
%table.table
%table.table.vertical
%tbody
%tr
%th SIRET :

View file

@ -1,4 +1,4 @@
%table.table
%table.table.vertical
%tbody
%tr
%th Civilité :

View file

@ -23,7 +23,7 @@
.card.featured
.card-title Pièces jointes
%table.table
%table.table.vertical
%tbody
- if @dossier.procedure.cerfa_flag?
%tr

View file

@ -74,7 +74,9 @@
%h1 Table
%table.table
%h2 Vertical layout (.table.vertical)
%table.table.vertical
%tbody
%tr
%th Header 1