2017-12-02 02:04:52 -08:00
|
|
|
// 本文
|
|
|
|
.article {
|
|
|
|
background: $article-background;
|
2018-02-28 00:51:46 -08:00
|
|
|
padding: 0 1em 1em 1em;
|
2017-12-02 02:04:52 -08:00
|
|
|
|
|
|
|
@include media-mobile {
|
2018-02-28 02:56:22 -08:00
|
|
|
$top-padding: calc(#{$header-height} - #{$font-size-mobile});
|
|
|
|
$top-padding-minus: calc(#{$top-padding} * -1);
|
2017-12-02 02:04:52 -08:00
|
|
|
|
|
|
|
h1[id]::before,
|
|
|
|
h2[id]::before,
|
|
|
|
h3[id]::before,
|
|
|
|
h4[id]::before,
|
|
|
|
h5[id]::before,
|
|
|
|
h6[id]::before {
|
|
|
|
content: "";
|
2017-12-19 18:58:40 -08:00
|
|
|
display: block;
|
2017-12-02 02:04:52 -08:00
|
|
|
height: $top-padding;
|
2018-02-28 02:56:22 -08:00
|
|
|
margin-top: $top-padding-minus;
|
2017-12-02 02:04:52 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .title {
|
|
|
|
@include media-mobile {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .body {
|
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
|
|
|
|
&:link {
|
|
|
|
color: $article-link-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:visited,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
color: $article-link-color-visited;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dt {
|
|
|
|
font-style: italic;
|
|
|
|
font-weight: bold;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
margin-top: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
dd {
|
|
|
|
margin-left: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 1.1em;
|
|
|
|
margin: 1rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
border-bottom: $article-h2-border-bottom;
|
|
|
|
font-size: $article-h2-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
border-bottom: $article-h3-border-bottom;
|
|
|
|
font-size: $article-h3-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
border-bottom: $article-h4-border-bottom;
|
|
|
|
font-size: $article-h4-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
border-bottom: $article-h5-border-bottom;
|
|
|
|
font-size: $article-h5-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
border-bottom: $article-h6-border-bottom;
|
|
|
|
font-size: $article-h6-font-size;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
overflow: auto;
|
|
|
|
white-space: pre;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
border: $border-default;
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
|
|
|
td, th {
|
|
|
|
border: $border-default;
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
2018-03-21 22:06:48 -07:00
|
|
|
|
|
|
|
code {
|
|
|
|
background: $article-code-background;
|
|
|
|
border: $article-code-border;
|
|
|
|
border-radius: $article-code-border-radius;
|
|
|
|
color: $article-code-color;
|
|
|
|
font-family: $article-code-font-family;
|
2018-04-20 20:03:24 -07:00
|
|
|
|
|
|
|
line-height: initial;
|
2018-03-21 22:06:48 -07:00
|
|
|
overflow: auto;
|
|
|
|
word-break: break-all;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
display: block;
|
|
|
|
padding: $article-pre-code-padding;
|
|
|
|
}
|
2018-06-08 22:16:38 -07:00
|
|
|
|
|
|
|
dl {
|
|
|
|
dt {
|
|
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
}
|
2017-12-02 02:04:52 -08:00
|
|
|
}
|
|
|
|
}
|