KNACSS/less/_10-styling.less

159 lines
2.2 KiB
Text
Raw Normal View History

2014-05-03 14:03:41 +02:00
/* ----------------------------- */
/* ==minor stylings */
/* ----------------------------- */
2014-05-03 10:46:54 +02:00
/* styling elements */
code,
kbd,
mark {
2015-07-01 13:47:48 +02:00
border-radius: 2px;
}
kbd {
2015-07-01 13:47:48 +02:00
padding: 0 2px;
border: 1px solid #999;
}
code {
2015-07-01 13:47:48 +02:00
padding: 2px 4px;
background: rgba(0,0,0,0.04);
color: #b11;
}
pre code {
2015-07-01 13:47:48 +02:00
padding: none;
background: none;
color: inherit;
border-radius: 0;
}
mark {
2015-07-01 13:47:48 +02:00
padding:2px 4px;
}
sup,
sub {
2015-07-01 13:47:48 +02:00
vertical-align: 0;
}
sup {
2015-07-01 13:47:48 +02:00
bottom: 1ex;
}
sub {
2015-07-01 13:47:48 +02:00
top: 0.5ex;
}
blockquote {
2015-07-01 13:47:48 +02:00
position: relative;
padding-left: 3em;
}
blockquote::before {
2015-07-01 13:47:48 +02:00
content: "\201C";
position: absolute;
left: 0;
top: 0;
font-family: georgia, serif;
font-size: 5em;
line-height: 0.9;
color: rgba(0, 0, 0, .3);
}
blockquote > footer {
2015-07-01 13:47:48 +02:00
margin-top: .75em;
font-size: 0.9em;
color: rgba(0, 0, 0, .7);
}
blockquote > footer::before {
2015-07-01 13:47:48 +02:00
content: "\2014 \0020";
}
q {
2015-07-01 13:47:48 +02:00
font-style: normal;
}
q,
.@{kna-namespace}q {
2015-07-01 13:47:48 +02:00
quotes: "“\00a0" "\00a0”";
}
q:lang(fr),
.@{kna-namespace}q:lang(fr) {
2015-07-01 13:47:48 +02:00
quotes: "«\00a0" "\00a0»";
}
hr {
2015-07-01 13:47:48 +02:00
display: block;
clear: both;
height: 1px;
margin: 1em 0 2em;
padding: 0;
border: 0;
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 */
.@{kna-namespace}table-alternate {
2015-07-01 13:47:48 +02:00
border: 0;
}
.@{kna-namespace}table-alternate tbody {
2015-07-01 13:47:48 +02:00
border: 1px solid #ccc;
}
.@{kna-namespace}table-alternate thead tr > * + * {
2015-07-01 13:47:48 +02:00
border-left: 0;
}
.@{kna-namespace}table-alternate tbody tr > * + * {
2015-07-01 13:47:48 +02:00
border-left: 1px solid #ccc;
}
/* alternate-vert tables */
.@{kna-namespace}table-alternate-v {
2015-07-01 13:47:48 +02:00
border: 0;
border-right: 1px solid #ccc;
}
.@{kna-namespace}table-alternate-v tr > :first-child {
2015-07-01 13:47:48 +02:00
border-bottom: 0;
}
.@{kna-namespace}table-alternate-v tr > * + * {
2015-07-01 13:47:48 +02:00
border-top: 1px solid #ccc;
}
/* striped tables */
.@{kna-namespace}table-striped tbody tr:nth-child(odd) {
2015-07-01 13:47:48 +02:00
background: #eee;
background: rgba(0, 0, 0, .05);
}
/* striped-vert tables */
.@{kna-namespace}table-striped-v tr > :first-child {
2015-07-01 13:47:48 +02:00
background: #eee;
background: rgba(0, 0, 0, .05);
2014-05-07 10:45:47 +02:00
}