From 7b78556a34982baee9d7edc600803a72def74665 Mon Sep 17 00:00:00 2001 From: raphaelgoettter Date: Wed, 4 Mar 2015 16:03:08 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20de=20pr=C3=A9fixes=20.table-=20devant?= =?UTF-8?q?=20les=20styles=20d=C3=A9co?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit concerne le fichier styling.less/sass --- less/_11-styling.less | 21 ++++++++++++--------- sass/_11-styling.scss | 21 ++++++++++++--------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/less/_11-styling.less b/less/_11-styling.less index 51e18f1..953e706 100644 --- a/less/_11-styling.less +++ b/less/_11-styling.less @@ -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); } diff --git a/sass/_11-styling.scss b/sass/_11-styling.scss index 78f6ff1..9b9623c 100644 --- a/sass/_11-styling.scss +++ b/sass/_11-styling.scss @@ -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); }