répartition des styles entre table et styling

This commit is contained in:
raphaelgoettter 2015-07-02 09:13:41 +02:00
parent 5fa49413b6
commit 58bc80183e
4 changed files with 40 additions and 22 deletions

View file

@ -9,30 +9,20 @@ table,
table-layout: fixed; table-layout: fixed;
border-collapse: collapse; border-collapse: collapse;
vertical-align: top; vertical-align: top;
border: 1px solid #ccc;
} }
.@{kna-namespace}table { .@{kna-namespace}table {
display: table; display: table;
} }
table#@{kna-namespace}recaptcha_table, #recaptcha_table,
table.@{kna-namespace}table-auto { table.@{kna-namespace}table-auto {
table-layout:auto; table-layout:auto;
} }
caption {
padding: @small-value;
color: #555;
font-style: italic;
}
td, td,
th { th {
padding: 0.3em 0.8em;
border: 1px #aaa dotted;
vertical-align: top; vertical-align: top;
min-width: @medium-value; min-width: @medium-value;
cursor: default; cursor: default;
text-align: left;
} }

View file

@ -95,6 +95,25 @@ hr {
background-color: #ccc; background-color: #ccc;
} }
/* tables */
table,
.@{kna-namespace}table {
border: 1px solid #ccc;
}
caption {
padding: @small-value;
color: #555;
font-style: italic;
}
td,
th {
padding: 0.3em 0.8em;
border: 1px #aaa dotted;
text-align: left;
}
/* alternate tables */ /* alternate tables */
.@{kna-namespace}table-alternate { .@{kna-namespace}table-alternate {
border: 0; border: 0;

View file

@ -9,30 +9,20 @@ table,
table-layout: fixed; table-layout: fixed;
border-collapse: collapse; border-collapse: collapse;
vertical-align: top; vertical-align: top;
border: 1px solid #ccc;
} }
.#{$kna-namespace}table { .#{$kna-namespace}table {
display: table; display: table;
} }
table##{$kna-namespace}recaptcha_table, #recaptcha_table,
table.#{$kna-namespace}table-auto { table.#{$kna-namespace}table-auto {
table-layout:auto; table-layout:auto;
} }
caption {
padding: $small-value;
color: #555;
font-style: italic;
}
td, td,
th { th {
padding: 0.3em 0.8em;
border: 1px #aaa dotted;
vertical-align: top; vertical-align: top;
min-width: $medium-value; min-width: $medium-value;
cursor: default; cursor: default;
text-align: left;
} }

View file

@ -93,6 +93,25 @@ hr {
background-color: #ccc; background-color: #ccc;
} }
/* tables */
table,
.#{$kna-namespace}table {
border: 1px solid #ccc;
}
caption {
padding: @small-value;
color: #555;
font-style: italic;
}
td,
th {
padding: 0.3em 0.8em;
border: 1px #aaa dotted;
text-align: left;
}
/* alternate tables */ /* alternate tables */
.#{$kna-namespace}table-alternate { .#{$kna-namespace}table-alternate {
border: 0; border: 0;