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 { .table {
width: 100%; width: 100%;
font-size: 14px;
line-height: 22px;
th, th,
td { td {
@include vertical-padding($default-spacer) @include vertical-padding($default-spacer)
} }
th { &.vertical {
text-align: left; font-size: 14px;
line-height: 22px;
&.header-section { th {
color: $blue; text-align: left;
&.header-section {
color: $blue;
font-weight: bold;
font-size: 20px;
}
}
td {
font-weight: bold; font-weight: bold;
font-size: 20px;
} }
} }
td {
font-weight: bold;
}
} }

View file

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

View file

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

View file

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

View file

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

View file

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