brouilleursdeblanc/_sass/typography.scss

126 lines
2.2 KiB
SCSS
Raw Normal View History

2013-06-25 20:19:49 +00:00
// Body
// --------------------------------------------------
body {
font-family: $base-font;
color: $text-color;
2013-06-25 20:19:49 +00:00
}
// Headings
// --------------------------------------------------
h1, h2, h3, h4, h5, h6 {
font-family: $heading-font;
2013-06-25 20:19:49 +00:00
}
// Links
// --------------------------------------------------
a {
text-decoration: none;
color: $link-color;
2013-06-25 20:19:49 +00:00
&:visited {
color: lighten($link-color, 20);
2013-06-25 20:19:49 +00:00
}
&:hover {
color: darken($link-color, 20);
2013-06-25 20:19:49 +00:00
}
&:focus {
outline: thin dotted;
color: darken($link-color, 20);
2013-06-25 20:19:49 +00:00
}
&:hover,
&:active {
outline: 0;
}
}
.link-arrow {
font-weight: 100;
text-decoration: underline;
font-style: normal;
}
2013-06-25 20:19:49 +00:00
// Figures
// --------------------------------------------------
figcaption {
padding-top: 10px;
@include font(14);
2013-06-25 20:19:49 +00:00
line-height: 1.3;
color: lighten($text-color, 10);
2013-06-25 20:19:49 +00:00
}
2013-08-05 15:59:05 +00:00
// Feature Image Caption
// --------------------------------------------------
.image-credit {
margin: 0 auto;
max-width: 440px;
padding-top: 5px;
padding-right: 20px;
padding-left: 20px;
text-align: right;
@include font(14);
2013-08-05 15:59:05 +00:00
line-height: 1.3;
color: lighten($text-color, 30);
@include clearfix();
@media #{$medium} {
2013-08-05 15:59:05 +00:00
max-width: 760px;
padding-right: 60px;
padding-left: 60px;
}
@media #{$large} {
2013-08-05 15:59:05 +00:00
max-width: 960px;
}
a {
color: lighten($text-color, 30);
2013-08-05 15:59:05 +00:00
}
}
2013-06-25 20:19:49 +00:00
// Note text
// --------------------------------------------------
.notice {
margin-top: 1.5em;
padding: .5em 1em;
text-indent: 0;
@include font-rem(16);
background-color: lighten($black, 95);
border: 1px solid lighten($black, 90);
@include rounded(4px);
2013-06-25 20:19:49 +00:00
}
2013-06-25 20:19:49 +00:00
// Blockquotes
// --------------------------------------------------
blockquote {
font-family: $alt-font;
2013-06-27 19:21:30 +00:00
font-style: italic;
@include font-size(16);
2013-06-27 19:21:30 +00:00
padding-left: 20px;
border-left: 8px solid $black;
2013-06-25 20:19:49 +00:00
}
// Footnotes
// --------------------------------------------------
.footnotes {
@include font(14);
font-family: $base-font;
2013-06-25 20:19:49 +00:00
}
// Code
// --------------------------------------------------
tt, code, kbd, samp, pre {
font-family: $code-font;
2013-06-27 15:12:29 +00:00
}
p,
li {
code {
@include font(12);
white-space: nowrap;
margin: 0 2px;
padding: 0 5px;
border: 1px solid lighten($black, 90);
background-color: lighten($black, 95);
@include rounded(3px);
}
}
pre {
@include font(12);
overflow-x: auto;
}