LoveIt/assets/css/_page/_post.scss

327 lines
5.3 KiB
SCSS
Raw Normal View History

2019-08-11 19:36:19 +02:00
/** Post **/
.post-warp {
position: relative;
width: 100%;
max-width: 780px;
margin: 0 auto;
padding-top: 2rem;
.post-header {
.post-title {
margin: 0 !important;
font-size: 2em;
line-height: 1.5em;
}
2019-08-11 19:36:19 +02:00
}
.post-meta {
font-size: 14px;
2019-08-11 19:36:19 +02:00
color: rgba(85, 85, 85, 0.52941) !important;
2019-08-16 22:09:41 +02:00
span {
display: inline-block;
}
2019-08-11 19:36:19 +02:00
.dark-theme & {
color: $global-font-secondary-color-dark !important;
2019-08-11 19:36:19 +02:00
}
a {
color: $post-link-color;
2019-08-11 19:36:19 +02:00
.dark-theme & {
color: $post-link-color-dark;
2019-08-11 19:36:19 +02:00
}
&:hover {
color: $post-link-hover-color;
2019-08-11 19:36:19 +02:00
.dark-theme & {
color: $post-link-hover-color-dark;
2019-08-11 19:36:19 +02:00
}
}
}
}
.post-content {
h2,
h3,
h4,
h5,
h6 {
padding-top: .8em;
padding-bottom: .3em;
}
h2::before {
content: "#";
margin-right: 5px;
color: $post-link-color;
2019-08-11 19:36:19 +02:00
.dark-theme & {
color: $post-link-color-dark;
2019-08-11 19:36:19 +02:00
}
}
h3::before {
content: "|";
margin-right: 5px;
color: $post-link-color;
2019-08-11 19:36:19 +02:00
.dark-theme & {
color: $post-link-color-dark;
2019-08-11 19:36:19 +02:00
}
}
a {
color: $post-link-color;
2019-08-11 19:36:19 +02:00
.dark-theme & {
color: $post-link-color-dark;
2019-08-11 19:36:19 +02:00
}
}
a:hover {
color: $post-link-hover-color;
2019-08-11 19:36:19 +02:00
.dark-theme &:hover {
color: $post-link-hover-color-dark;
2019-08-11 19:36:19 +02:00
font-weight: bold;
}
}
ul {
padding-left: 2em;
}
table {
max-width: 100%;
margin: 10px 0;
border-spacing: 0;
box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.125);
th,
td {
padding: 5px 15px;
border: 1px double #ebe9f5;
}
}
figure {
text-align: center;
img:hover {
cursor: zoom-in;
}
}
.image-caption:not(:empty) {
min-width: 20%;
max-width: 80%;
display: inline-block;
padding: 10px;
margin: 0 auto;
border-bottom: 1px solid #d9d9d9;
font-size: 14px;
color: #969696;
line-height: 1.7;
}
img {
display: block;
max-width: 80%;
height: auto;
margin: 0 auto;
overflow: hidden;
}
img[data-action="zoom"] {
cursor: zoom-in;
}
.featured_image {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
margin: 0 !important;
}
blockquote {
font-size: 1rem;
display: block;
border-width: 1px 0;
border-style: solid;
border-color: $global-border-color;
padding: 1.5em 1.2em 0.5em 1.2em;
margin: 0 0 2em 0;
position: relative;
&:before {
content: '\201C';
position: absolute;
top: 0em;
left: 50%;
transform: translate(-50%, -50%);
width: 3rem;
height: 2rem;
font: 6em/1.08em 'PT Sans', sans-serif;
color: $post-link-color;
text-align: center;
.dark-theme & {
color: $post-link-color-dark;
}
}
&:after {
content: "#blockquote" attr(cite);
display: block;
text-align: right;
font-size: 0.875em;
color: $post-link-color;
.dark-theme & {
color: $post-link-color-dark;
}
}
.dark-theme & {
border-color: $global-border-color-dark;
}
}
@import "../_partial/_post/code";
@import "../_partial/_post/admonition";
2019-08-11 19:36:19 +02:00
.typeit {
.code {
padding: 6px;
font-size: 14px;
font-family: Consolas, Monaco, Menlo, Consolas, monospace;
font-weight: bold;
word-break: break-all;
.k {
color: #D371E3;
}
.kt {
color: #D371E3;
}
.kc {
color: #D371E3;
}
.o {
color: #D371E3;
}
.nf {
color: #F16473;
}
.na {
color: #41B1F5;
}
.s {
color: #8BC56F;
}
.n {
color: #DB975C;
}
.c1 {
color: #7E848F;
}
}
}
}
p {
font-size: 1em;
margin: .5em 0 .5em 0;
}
.post-info {
2019-08-11 19:36:19 +02:00
margin-top: 5rem;
border-top: 1px solid $global-border-color;
border-bottom: 1px solid $global-border-color;
2019-08-11 19:36:19 +02:00
.post-info-item {
2019-08-11 19:36:19 +02:00
margin: 5px 0;
}
.dark-theme & {
border-top: 1px solid $global-border-color-dark;
border-bottom: 1px solid $global-border-color-dark;
2019-08-11 19:36:19 +02:00
}
}
.post-tags {
padding: 1rem 0 1rem;
display: flex;
justify-content: space-between;
}
.post-nav {
&:before,
&:after {
content: " ";
display: table;
}
& a.prev,
& a.next {
font-weight: 600;
font-size: 16px;
transition-property: transform;
transition-timing-function: ease-out;
transition-duration: 0.3s;
}
& a.prev {
float: left;
}
& a.prev:hover {
transform: translateX(-4px);
}
& a.next {
float: right;
}
& a.next:hover {
transform: translateX(4px);
}
}
.post-comment {
padding: 3em 0;
}
.align-left {
text-align: left;
}
.align-center {
text-align: center;
}
.align-right {
text-align: right;
}
.float-left {
float: left;
}
.float-right {
float: right;
}
2019-08-11 19:36:19 +02:00
}