hacks-guide-minimal-mistake.../assets/less/typography.less

153 lines
2.4 KiB
Text
Raw Normal View History

2013-09-07 08:44:10 -04:00
// Body
// --------------------------------------------------
body {
font-family: @base-font;
color: @text-color;
}
// Headings
// --------------------------------------------------
2013-05-24 10:25:31 -04:00
h1, h2, h3, h4, h5, h6 {
2013-09-07 08:44:10 -04:00
font-family: @heading-font;
2013-05-24 10:25:31 -04:00
}
2013-09-07 08:44:10 -04:00
h1 {
2013-09-07 11:59:02 -04:00
.font-size(32)
}
h2 {
.font-size(28)
}
h3 {
.font-size(24)
}
h4 {
.font-size(18)
}
h5 {
.font-size(16)
}
h6 {
.font-size(14);
2013-05-24 10:25:31 -04:00
}
2013-09-07 08:44:10 -04:00
// Links
// --------------------------------------------------
2013-05-24 10:25:31 -04:00
a {
text-decoration: none;
2013-09-07 08:44:10 -04:00
color: @link-color;
2013-05-24 10:25:31 -04:00
&:visited {
2013-09-07 08:44:10 -04:00
color: lighten(@link-color, 20);
2013-05-24 10:25:31 -04:00
}
&:hover {
2013-09-07 08:44:10 -04:00
color: darken(@link-color, 20);
2013-05-24 10:25:31 -04:00
}
&:focus {
outline: thin dotted;
2013-09-07 08:44:10 -04:00
color: darken(@link-color, 20);
2013-05-24 10:25:31 -04:00
}
&:hover,
&:active {
outline: 0;
}
}
2013-09-07 08:44:10 -04:00
// Figures
// --------------------------------------------------
figcaption {
padding-top: 10px;
.font(14);
line-height: 1.3;
color: lighten(@text-color, 10);
2013-05-24 10:25:31 -04:00
}
2013-09-07 08:44:10 -04:00
// Feature Image Caption
// --------------------------------------------------
.image-credit {
.grid(12,10);
.prefix(12,1);
.suffix(12,1);
display: block;
2013-09-07 08:44:10 -04:00
text-align: right;
.font(12);
2013-09-07 08:44:10 -04:00
line-height: 1.3;
font-style: italic;
2013-09-07 08:44:10 -04:00
color: lighten(@text-color, 30);
@media @600px {
.grid(12,9);
.prefix(12,0);
.suffix(12,0);
}
@media @1382px {
.grid(12,8.5);
}
2013-09-07 08:44:10 -04:00
a {
color: lighten(@text-color, 30);
2013-05-24 10:25:31 -04:00
}
}
2013-09-07 08:44:10 -04:00
// Note text
// --------------------------------------------------
2013-05-24 10:25:31 -04:00
.notice {
margin-top: 1.5em;
padding: .5em 1em;
text-indent: 0;
2013-09-07 08:44:10 -04:00
.font-rem(14);
background-color: @body-color;
border: 1px solid darken(@body-color,20);
.rounded(3px);
2013-05-24 10:25:31 -04:00
}
2013-09-07 08:44:10 -04:00
// Blockquotes
// --------------------------------------------------
2013-05-24 10:25:31 -04:00
blockquote {
2013-09-07 08:44:10 -04:00
margin-left: -28px;
padding-left: 20px;
border-left: 8px solid @border-color;
font-family: @alt-font;
2013-05-24 10:25:31 -04:00
font-style: italic;
2013-09-07 08:44:10 -04:00
.font-rem(24);
2013-05-24 10:25:31 -04:00
}
2013-09-07 08:44:10 -04:00
// Footnotes
// --------------------------------------------------
2013-09-07 12:57:20 -04:00
.footnotes {
2013-09-07 08:44:10 -04:00
ol, li, p {
2013-12-09 09:32:40 -05:00
margin-bottom: 0;
.font-rem(14);
2013-09-07 08:44:10 -04:00
}
2013-06-30 15:41:53 -04:00
}
2013-09-07 08:44:10 -04:00
2013-09-07 10:10:55 -04:00
// Paragraphs
// --------------------------------------------------
p {
margin: 0 0 @indent-var;
& + p {
//siblings indentation
text-indent: @indent-var;
margin-top: -(@indent-var);
}
}
2013-09-07 08:44:10 -04:00
// Code
// --------------------------------------------------
2013-06-30 15:41:53 -04:00
tt, code, kbd, samp, pre {
2013-09-07 08:44:10 -04:00
font-family: @code-font;
}
p,
li {
code {
.font-rem(12);
line-height: 1.5;
white-space: nowrap;
margin: 0 2px;
padding: 0 5px;
border: 1px solid lighten(@black, 90);
2013-09-09 11:56:09 -04:00
background-color: #efefef;
2013-09-07 08:44:10 -04:00
.rounded(3px);
}
}
pre {
.font-rem(12);
line-height: 1.5;
overflow-x: auto;
2013-06-30 15:41:53 -04:00
}