hugo-theme-terminal/assets/css/post.css

133 lines
1.9 KiB
CSS
Raw Normal View History

2020-06-18 01:21:15 +03:00
.index-content {
margin-top: 20px;
}
.framed {
border: 1px solid var(--accent);
padding: 20px;
*:first-child {
margin-top: 0;
}
*:last-child {
margin-bottom: 0;
}
}
2019-09-10 10:29:14 +03:00
.posts {
width: 100%;
}
2019-01-28 03:11:02 +03:00
.post {
width: 100%;
text-align: left;
margin: 20px auto;
padding: 20px 0;
@media (--tablet) {
max-width: 660px;
}
&:not(:last-of-type) {
border-bottom: 1px solid var(--border-color);
}
&-meta {
font-size: 1rem;
margin-bottom: 10px;
color: color-mod(var(--accent) a(70%));
}
&-title {
--border: 3px dotted var(--accent);
position: relative;
color: var(--accent);
margin: 0 0 15px;
padding-bottom: 15px;
border-bottom: var(--border);
&:after {
content: '';
position: absolute;
bottom: 2px;
display: block;
width: 100%;
border-bottom: var(--border);
}
a {
text-decoration: none;
}
}
&-tags {
display: block;
margin-bottom: 20px;
font-size: 1rem;
opacity: .5;
a {
text-decoration: none;
}
}
&-content {
margin-top: 30px;
}
&-cover {
border: 20px solid var(--accent);
background: transparent;
margin: 40px 0;
padding: 20px;
@media (--phone) {
padding: 10px;
border-width: 10px;
}
}
ul {
list-style: none;
2020-06-18 01:21:15 +03:00
li:not(:empty):before {
2020-05-28 21:06:21 +03:00
content: '-';
2019-01-28 03:11:02 +03:00
position: absolute;
left: -20px;
color: var(--accent);
}
}
}
.post--regulation {
h1 {
justify-content: center;
}
h2 {
justify-content: center;
margin-bottom: 10px;
2019-09-10 10:29:14 +03:00
& + h2 {
2019-01-28 03:11:02 +03:00
margin-top: -10px;
margin-bottom: 20px;
}
}
}
2020-01-17 15:11:41 +03:00
.hanchor {
color: color-mod(var(--accent) alpha(90%));
text-decoration: none;
margin-left: 10px;
2020-01-17 15:11:41 +03:00
visibility: hidden;
}
h1:hover a, h2:hover a, h3:hover a, h4:hover a {
visibility: visible;
}
2020-06-18 01:21:15 +03:00
.footnotes {
color: color-mod(var(--color) alpha(50%));
}