2019-11-04 13:09:44 +00:00
|
|
|
.single {
|
|
|
|
padding: 1rem;
|
|
|
|
position: relaitve;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&__title {
|
2019-11-18 19:18:57 +00:00
|
|
|
font-size: 2.5rem;
|
2019-11-04 13:09:44 +00:00
|
|
|
font-weight: 900;
|
2019-11-08 02:15:12 +00:00
|
|
|
font-family: $single_title_font;
|
2019-11-04 13:09:44 +00:00
|
|
|
line-height: 3rem;
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed("single-header-title-color");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__meta {
|
|
|
|
@include flexbox();
|
|
|
|
@include align-items(center);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__contents {
|
|
|
|
font-size: 1rem;
|
2019-11-08 02:15:12 +00:00
|
|
|
font-family: $single_contents_font;
|
2019-11-04 13:09:44 +00:00
|
|
|
margin: 1rem 0;
|
|
|
|
line-height: 1.7rem;
|
|
|
|
width: inheirt;
|
|
|
|
max-width: inherit;
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
position: relative;
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed("single-contents-title-color");
|
|
|
|
}
|
2019-11-17 11:01:09 +00:00
|
|
|
line-height: 1.25;
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
font-size: 2.6rem;
|
|
|
|
margin: 3.5rem 0 1.75rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
font-size: 2.2rem;
|
|
|
|
margin: 3.2rem 0 1.5rem 0;
|
|
|
|
padding: 0;
|
|
|
|
color: inherit;
|
|
|
|
font-weight: 900;
|
2019-11-17 11:01:09 +00:00
|
|
|
text-rendering: optimizeLegibility;
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 1.8rem;
|
|
|
|
margin: 2.8rem 0 1.25rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
font-size: 1.5rem;
|
|
|
|
margin: 2.4rem 0 1rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
margin: 2rem 0 0.8rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
font-size: 1rem;
|
|
|
|
margin: 1.5rem 0 0.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
@include themify($themes) {
|
2019-11-18 19:18:57 +00:00
|
|
|
background-color: themed("content-pre-background-color");
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
position: relative;
|
|
|
|
padding: 1rem;
|
|
|
|
margin: 2rem 0 2rem 0;
|
|
|
|
width: 100%;
|
|
|
|
line-height: 1rem;
|
|
|
|
overflow-x: auto;
|
|
|
|
white-space: pre;
|
|
|
|
word-wrap: normal;
|
|
|
|
|
|
|
|
code {
|
|
|
|
@include themify($themes) {
|
|
|
|
color: themed('content-code-color');
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
font-size: 0.9rem;
|
|
|
|
padding: 0.2rem;
|
|
|
|
overflow-x: auto;
|
|
|
|
@include themify($themes) {
|
|
|
|
background-color: themed("content-code-background-color");
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code + .copy-to-clipboard {
|
|
|
|
margin-left: -1px;
|
|
|
|
border-left: 0 !important;
|
|
|
|
font-size: inherit !important;
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 21px;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.copy-to-clipboard {
|
2019-11-12 11:24:17 +00:00
|
|
|
@include clippy();
|
2019-11-04 13:09:44 +00:00
|
|
|
background-position: 50% 50%;
|
|
|
|
background-size: 16px 16px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
width: 27px;
|
|
|
|
height: 1.45rem;
|
|
|
|
top: -1px;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
position: relative;
|
|
|
|
margin-left: -0.2rem;
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 0 2px 2px 0;
|
|
|
|
margin-bottom: 1px;
|
|
|
|
@include transition(all, 0.2s, ease);
|
|
|
|
}
|
|
|
|
.copy-to-clipboard:hover {
|
2019-11-12 11:24:17 +00:00
|
|
|
@include translateY(-0.05rem);
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
pre .copy-to-clipboard {
|
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
|
|
|
top: 4px;
|
|
|
|
border-radius: 2px;
|
|
|
|
@include transition(all, 0.2s, ease);
|
|
|
|
}
|
|
|
|
pre .copy-to-clipboard:hover {
|
2019-11-12 11:24:17 +00:00
|
|
|
@include translateY(-0.05rem);
|
2019-11-04 13:09:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
margin: 0 1.75rem 1.75rem 1.5rem;
|
|
|
|
padding: 0 0 0 1.42188rem;
|
|
|
|
font-size: 1.20112rem;
|
|
|
|
line-height: 1.75rem;
|
|
|
|
color: inherit;
|
|
|
|
font-style: italic;
|
|
|
|
opacity: 0.8;
|
|
|
|
@include themify($themes) {
|
|
|
|
border-left: 0.32813rem solid themed("single-blockquote-border-color");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0 0 1.75rem 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin-bottom: 1.75rem;
|
|
|
|
list-style: disc outside none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin-left: 2rem;
|
|
|
|
margin-bottom: calc(1.75rem / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
|
|
|
margin: 0 0 calc(1.75rem - 1px) 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
height: 1px;
|
|
|
|
@include themify($themes) {
|
|
|
|
background: themed("single-hr-background-color");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.anchor {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|