https://blog.naskya.net/
[[ 🗃
^wzWnj blog
]] ::
[📥 Inbox]
[📤 Outbox]
[💥 Errbox]
[🐤 Followers]
[🤝 Collaborators]
[🏗 Projects]
[🛠 Commits]
Clone
HTTPS:
git clone https://code.naskya.net/repos/wzWnj
SSH:
git clone USERNAME@code.naskya.net:wzWnj
Branches
Tags
_post.scss
/* Post */
header {
padding: 1.5rem 0;
h1 {
font-size: 2rem;
display: inline-block;
font-weight: 600;
margin-top: 1rem;
}
u {
display: inline-block;
text-decoration: none;
padding: 0.4rem 0;
}
}
.article-header {
padding-top: 2rem;
margin-bottom: 0.5rem;
.container {
padding-left: 0;
padding-right: 0;
}
.thumb {
display: flex;
flex-direction: column;
}
h1 {
font-weight: 700;
font-size: 1.8rem;
margin: 0;
}
.description {
font-size: 1.2rem;
color: var(--light-font-color);
font-weight: 300;
margin-top: 2rem;
margin-bottom: 0;
}
}
.post-meta {
margin-top: 1rem;
padding: 0;
color: var(--light-font-color);
font-size: 0.9rem;
a {
color: var(--font-color);
border-width: 0;
}
time {
margin-top: 0.2rem;
font-size: 0.9rem;
}
.tags {
margin-top: 0.5rem;
a {
text-decoration: none;
}
}
}
.article-post {
margin-bottom: 2rem;
font-family: var(--article-font-family);
img{
border-radius: 5px;
display: block;
margin-left: auto;
margin-right: auto;
}
a {
box-shadow: 0px -2px 0px rgba(189, 195, 199, 0.5) inset;
transition: all .3s ease;
&:hover {
box-shadow: 0px -10px 0px rgba(189, 195, 199, 0.7) inset;
}
}
code {
overflow-x: auto;
}
@for $i from 1 through 6 {
h#{$i} {
.anchor {
stroke: var(--link-color);
stroke-width: 1px;
fill: var(--link-color);
font-weight: 700;
left: -0.25rem;
border-width: 0;
float: left;
line-height: 1;
margin-left: -20px;
padding-right: 4px;
box-shadow: none;
transition: none;
.icon {
visibility: hidden;
}
}
&:hover {
.anchor {
box-shadow: none;
.icon {
visibility: visible;
}
}
}
}
}
.highlight {
position: relative;
&:hover {
.copyCodeButton {
opacity: 1;
}
}
}
.copyCodeButton {
position: absolute;
top: 35px;
right: 5px;
background: #424242;
border: none;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.04),0px 2px 6px rgba(0, 0, 0, 0.04),0px 0px 1px rgba(0, 0, 0, 0.04);;
border-radius: 4px;
padding: 8px 16px;
color: rgba(255, 255, 255, 0.9);
cursor: pointer;
font-size: 14px;
opacity: 0;
transition: opacity .3s ease;
}
}
@media screen and (min-width: 800px) {
.article-post {
margin-bottom: 3rem;
}
.article-post h1,
.article-post h2,
.article-post h3,
.article-post h4,
.article-post h5 {
padding-top: 1rem;
}
.post-meta {
margin-top: 0.5rem;
padding: 0.5rem 0;
}
header h1 {
font-size: 3rem;
margin-top: 2rem;
}
header u {
background: linear-gradient(transparent 85%, #bac8ff 0);
}
.article-header {
padding-top: 3rem;
h1 {
padding-top: 0;
font-size: 2.5rem;
}
.thumb {
flex-direction: row;
}
.description {
font-size: 1.8rem;
line-height: 1.5;
}
}
}
@media screen and (min-width: 1100px) {
.article-header h1 {
font-size: 2.5rem;
}
}
.post-thumbnail {
display: block !important;
}