ajout de préfixes .table- devant les styles déco

concerne le fichier styling.less/sass
This commit is contained in:
raphaelgoettter 2015-03-04 16:03:08 +01:00
parent 96d5b2e5f8
commit 7b78556a34
2 changed files with 24 additions and 18 deletions

View file

@ -98,41 +98,44 @@ hr {
}
/* alternate tables */
.alternate { border: 0; }
.alternate tbody {
.table-alternate {
border: 0;
}
.table-alternate tbody {
border: 1px solid #ccc;
}
.alternate thead tr > * + * {
.table-alternate thead tr > * + * {
border-left: 0;
}
.alternate tbody tr > * + * {
.table-alternate tbody tr > * + * {
border-left: 1px solid #ccc;
}
/* alternate-vert tables */
.alternate-vert {
.table-alternate-vert {
border: 0;
border-right: 1px solid #ccc;
}
.alternate-vert tr > :first-child {
.table-alternate-vert tr > :first-child {
border-bottom: 0;
}
.alternate-vert tr > * + * {
.table-alternate-vert tr > * + * {
border-top: 1px solid #ccc;
}
/* striped tables */
.striped tbody tr:nth-child(odd) {
.table-striped tbody tr:nth-child(odd) {
background: #eee;
background: rgba(0, 0, 0, .05);
}
/* striped-vert tables */
.striped-vert tr > :first-child {
.table-striped-vert tr > :first-child {
background: #eee;
background: rgba(0, 0, 0, .05);
}

View file

@ -96,41 +96,44 @@ hr {
}
/* alternate tables */
.alternate { border: 0; }
.alternate tbody {
.table-alternate {
border: 0;
}
.table-alternate tbody {
border: 1px solid #ccc;
}
.alternate thead tr > * + * {
.table-alternate thead tr > * + * {
border-left: 0;
}
.alternate tbody tr > * + * {
.table-alternate tbody tr > * + * {
border-left: 1px solid #ccc;
}
/* alternate-vert tables */
.alternate-vert {
.table-alternate-vert {
border: 0;
border-right: 1px solid #ccc;
}
.alternate-vert tr > :first-child {
.table-alternate-vert tr > :first-child {
border-bottom: 0;
}
.alternate-vert tr > * + * {
.table-alternate-vert tr > * + * {
border-top: 1px solid #ccc;
}
/* striped tables */
.striped tbody tr:nth-child(odd) {
.table-striped tbody tr:nth-child(odd) {
background: #eee;
background: rgba(0, 0, 0, .05);
}
/* striped-vert tables */
.striped-vert tr > :first-child {
.table-striped-vert tr > :first-child {
background: #eee;
background: rgba(0, 0, 0, .05);
}