Add a .vertical class to tables because this is not the default layout
This commit is contained in:
parent
1e61f1388b
commit
9b95a4732f
6 changed files with 21 additions and 16 deletions
|
@ -4,14 +4,16 @@
|
|||
|
||||
.table {
|
||||
width: 100%;
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
|
||||
th,
|
||||
td {
|
||||
@include vertical-padding($default-spacer)
|
||||
}
|
||||
|
||||
&.vertical {
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
|
||||
th {
|
||||
text-align: left;
|
||||
|
||||
|
@ -25,4 +27,5 @@
|
|||
td {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%table.table
|
||||
%table.table.vertical
|
||||
%tbody
|
||||
- champs.each do |c|
|
||||
%tr
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
- etablissement = entreprise.etablissement
|
||||
%h4= entreprise.raison_sociale_or_name
|
||||
|
||||
%table.table
|
||||
%table.table.vertical
|
||||
%tbody
|
||||
%tr
|
||||
%th SIRET :
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%table.table
|
||||
%table.table.vertical
|
||||
%tbody
|
||||
%tr
|
||||
%th Civilité :
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
.card.featured
|
||||
.card-title Pièces jointes
|
||||
|
||||
%table.table
|
||||
%table.table.vertical
|
||||
%tbody
|
||||
- if @dossier.procedure.cerfa_flag?
|
||||
%tr
|
||||
|
|
|
@ -74,7 +74,9 @@
|
|||
|
||||
%h1 Table
|
||||
|
||||
%table.table
|
||||
%h2 Vertical layout (.table.vertical)
|
||||
|
||||
%table.table.vertical
|
||||
%tbody
|
||||
%tr
|
||||
%th Header 1
|
||||
|
|
Loading…
Reference in a new issue