Files
template/components/styles-article.css
T
Shan Carter 6ef2df375c Style tweaks
2017-01-13 13:35:02 -08:00

249 lines
3.6 KiB
CSS

dt-article {
display: block;
color: rgba(0, 0, 0, 0.8);
font: 15px/1.55em -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
margin-bottom: 72px;
overflow: hidden;
}
@media(min-width: 1024px) {
dt-article {
font-size: 20px;
}
}
/* H1 */
dt-article h1 {
margin-top: 48px;
font-weight: 400;
font-size: 36px;
line-height: 1.1em;
font-family: Cochin, Georgia, serif;
}
@media(min-width: 1080px) {
dt-article.centered h1 {
text-align: center;
}
dt-article h1 {
font-size: 50px;
margin-bottom: 12px;
letter-spacing: -0.02em;
}
dt-article > h1:first-of-type {
margin-top: 80px;
}
}
@media(min-width: 1200px) {
dt-article h1 {
font-size: 54px;
}
dt-article > h1:first-of-type {
margin-top: 100px;
}
}
/* H2 */
dt-article h2 {
font-weight: 700;
font-size: 22px;
line-height: 1.25em;
margin-top: 12px;
margin-bottom: 24px;
}
@media(min-width: 1024px) {
dt-article h2 {
font-size: 24px;
}
}
dt-article h1 + h2 {
font-weight: 300;
font-size: 20px;
line-height: 1.5em;
margin-top: 8px;
}
@media(min-width: 1024px) {
dt-article.centered h1 + h2 {
text-align: center;
}
dt-article h1 + h2 {
margin-top: 12px;
font-size: 24px;
letter-spacing: 0.015em;
}
}
/* H3 */
dt-article h3 {
font-weight: 700;
font-size: 13px;
line-height: 1.4em;
margin-top: 36px;
margin-bottom: 18px;
text-transform: uppercase;
letter-spacing: -0.03em;
}
dt-article h1 + h3 {
margin-top: 48px;
}
@media(min-width: 1024px) {
dt-article h3 {
font-size: 16px;
}
}
/* H4 */
dt-article h4 {
font-weight: 600;
text-transform: uppercase;
font-size: 14px;
line-height: 1.4em;
}
dt-article a {
color: inherit;
}
dt-article p {
margin-bottom: 24px;
-webkit-font-smoothing: antialiased;
font-family: Georgia, serif;
}
dt-article p a {
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
text-decoration: none;
}
dt-article p a:hover {
border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}
dt-article p .link {
text-decoration: underline;
cursor: pointer;
}
dt-article ul {
padding-left: 20px;
}
dt-article li {
/*margin-bottom: 24px;*/
}
dt-article pre {
font-size: 14px;
margin-bottom: 20px;
}
dt-article hr {
border: none;
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
margin-top: 60px;
margin-bottom: 60px;
}
dt-article section {
margin-top: 60px;
margin-bottom: 60px;
}
/* Figure */
dt-article figure {
position: relative;
margin-top: 30px;
margin-bottom: 30px;
}
@media(min-width: 1024px) {
dt-article figure {
margin-top: 48px;
margin-bottom: 48px;
}
}
dt-article figure img {
width: 100%;
}
dt-article figure svg text,
dt-article figure svg tspan {
}
dt-article figure figcaption {
color: rgba(0, 0, 0, 0.6);
font-size: 12px;
line-height: 1.5em;
}
@media(min-width: 1024px) {
dt-article figure figcaption {
font-size: 13px;
}
}
dt-article figure.external img {
background: white;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
padding: 18px;
box-sizing: border-box;
}
dt-article figure figcaption a {
color: rgba(0, 0, 0, 0.6);
}
/*dt-article figure figcaption::before {
position: relative;
display: block;
top: -20px;
content: "";
width: 25px;
border-top: 1px solid rgba(0, 0, 0, 0.3);
}*/
dt-article span.equation-mimic {
font-family: georgia;
font-size: 115%;
font-style: italic;
}
dt-article figure figcaption b {
font-weight: 600;
color: rgba(0, 0, 0, 1.0);
}
dt-article > dt-code {
display: block;
}
dt-article .citation {
color: #668;
cursor: pointer;
}
dt-include {
width: auto;
display: block;
}