KNACSS/less/03-tables.less

71 lines
1.2 KiB
Text
Raw Normal View History

@import "00-config";
2013-09-12 11:59:14 +02:00
/* ----------------------------- */
/* ==tables */
/* ----------------------------- */
table,
.table {
2014-05-03 11:22:45 +02:00
width: 100%;
2013-09-12 11:59:14 +02:00
max-width : 100%;
table-layout: fixed;
border-collapse: collapse;
vertical-align: top;
2014-05-03 11:22:45 +02:00
border: 1px solid #ccc;
2013-09-12 11:59:14 +02:00
}
.table {
display: table;
}
table#recaptcha_table,
table.table-auto {
table-layout:auto;
}
caption {
2014-05-03 11:22:45 +02:00
padding: @small-value;
2013-09-12 11:59:14 +02:00
color: #555;
font-style: italic;
}
2014-05-03 11:22:45 +02:00
td,
th {
2013-09-12 11:59:14 +02:00
padding: .3em .8em;
2014-05-03 11:22:45 +02:00
border: 1px #aaa dotted;
vertical-align: top;
min-width: @medium-value;
cursor: default;
2013-09-12 11:59:14 +02:00
text-align: left;
}
/* alternate tables */
.alternate { border: 0; }
.alternate tbody {
border: 1px solid #ccc;
}
.alternate thead tr > * + * {
border-left: 0;
}
.alternate tbody tr > * + * {
border-left: 1px solid #ccc;
}
/* alternate-vert tables */
.alternate-vert {
border: 0;
border-right: 1px solid #ccc;
}
.alternate-vert tr > :first-child {
border-bottom: 0;
}
.alternate-vert tr > * + * {
border-top: 1px solid #ccc;
}
/* striped tables */
.striped tbody tr:nth-child(odd) {
background: #eee;
background: rgba(0, 0, 0, .05);
}
/* striped-vert tables */
.striped-vert tr > :first-child {
background: #eee;
background: rgba(0, 0, 0, .05);
}