mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-13 19:22:13 +00:00
Compare commits
2 Commits
fa942bd755
...
9c9d22af3e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9c9d22af3e | ||
![]() |
4782161c4c |
@ -64,139 +64,3 @@
|
|||||||
@extend %no-bottom-border;
|
@extend %no-bottom-border;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.footnotes > ol {
|
|
||||||
padding-left: 2rem;
|
|
||||||
margin-top: 0.5rem;
|
|
||||||
|
|
||||||
> li {
|
|
||||||
&:not(:last-child) {
|
|
||||||
margin-bottom: 0.3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@extend %sup-fn-target;
|
|
||||||
|
|
||||||
> p {
|
|
||||||
margin-left: 0.25em;
|
|
||||||
|
|
||||||
@include mx.mt-mb(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.footnote {
|
|
||||||
@at-root a#{&} {
|
|
||||||
@include mx.ml-mr(1px);
|
|
||||||
@include mx.pl-pr(2px);
|
|
||||||
|
|
||||||
border-bottom-style: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
sup {
|
|
||||||
@extend %sup-fn-target;
|
|
||||||
}
|
|
||||||
|
|
||||||
.reversefootnote {
|
|
||||||
@at-root a#{&} {
|
|
||||||
font-size: 0.6rem;
|
|
||||||
line-height: 1;
|
|
||||||
position: relative;
|
|
||||||
bottom: 0.25em;
|
|
||||||
margin-left: 0.25em;
|
|
||||||
border-bottom-style: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --- Begin of Markdown table style --- */
|
|
||||||
|
|
||||||
/* it will be created by Liquid */
|
|
||||||
.table-wrapper {
|
|
||||||
overflow-x: auto;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
|
|
||||||
> table {
|
|
||||||
min-width: 100%;
|
|
||||||
overflow-x: auto;
|
|
||||||
border-spacing: 0;
|
|
||||||
|
|
||||||
thead {
|
|
||||||
border-bottom: solid 2px rgba(210, 215, 217, 0.75);
|
|
||||||
|
|
||||||
th {
|
|
||||||
@extend %table-cell;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tbody {
|
|
||||||
tr {
|
|
||||||
border-bottom: 1px solid var(--tb-border-color);
|
|
||||||
|
|
||||||
&:nth-child(2n) {
|
|
||||||
background-color: var(--tb-even-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:nth-child(2n + 1) {
|
|
||||||
background-color: var(--tb-odd-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
|
||||||
@extend %table-cell;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} /* tbody */
|
|
||||||
} /* table */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --- post --- */
|
|
||||||
|
|
||||||
.preview-img {
|
|
||||||
aspect-ratio: 40 / 21;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
@extend %rounded;
|
|
||||||
|
|
||||||
&:not(.no-bg) {
|
|
||||||
background: var(--img-bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
img {
|
|
||||||
height: 100%;
|
|
||||||
-o-object-fit: cover;
|
|
||||||
object-fit: cover;
|
|
||||||
|
|
||||||
@extend %rounded;
|
|
||||||
|
|
||||||
@at-root #post-list & {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-preview {
|
|
||||||
@extend %rounded;
|
|
||||||
|
|
||||||
border: 0;
|
|
||||||
background: var(--card-bg);
|
|
||||||
box-shadow: var(--card-shadow);
|
|
||||||
|
|
||||||
&::before {
|
|
||||||
@extend %rounded;
|
|
||||||
|
|
||||||
content: '';
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
position: absolute;
|
|
||||||
background-color: var(--card-hovor-bg);
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.35s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
&::before {
|
|
||||||
opacity: 0.3;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user