:root {
--page-bg: #fff;
--divider: #ddd;
--code-bg: #1e1e1e;
--code-fg: #f8f8f2;
--description: #666;
--mute: #9b9b9b;
--year-td: #e6e6e6;
--month-empty: #f7f7f7;
--webrings: #f7f7f9;
--webrings-hover: #ece8ff;
}
body {
font-family: sans-serif;
max-width: 900px;
margin: 2rem auto;
padding: 0 1rem;
background: var(--page-bg);
}
pre {
max-width: 100%;
overflow-x: auto;
white-space: pre;
background: var(--code-bg);
color: var(--code-fg);
padding: 1.2em 0.8em;
border-radius: 0.5em;
box-sizing: border-box;
font-size: 0.9em;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.content-sidebar-container {
display: grid;
grid-template-columns: 1fr 250px;
gap: 1rem;
}
.content-sidebar-container>* {
min-width: 0;
}
.post-content iframe,
.post-content img,
.post-content video {
max-width: 100%;
}
.post-content img,
.post-content video {
height: auto;
display: block;
padding-left: 10px;
}
.sidebar {
border-left: 2px solid var(--divider);
padding-left: 1rem;
font-size: 0.9rem;
}
@media (max-width: 800px) {
.content-sidebar-container {
grid-template-columns: 1fr;
}
.sidebar {
order: 1;
border-left: none;
border-top: 2px solid var(--divider);
padding: 0 2em;
}
.sidebar-top {
order: -1;
border-left: none;
border-bottom: 2px solid var(--divider);
padding-left: 0;
padding-bottom: 1rem;
}
}
.logo-subtitle-container {
display: flex;
align-items: flex-end;
gap: 1rem;
}
.subtitle-group {
flex: 1;
display: flex;
align-items: flex-start;
flex-direction: column;
}
.logo-group {
flex: 1;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.logo-main,
.logo-thorn {
width: 100%;
}
.logo-thorn {
margin-top: -30px;
}
@media (max-width: 768px) {
.logo-subtitle-container {
flex-direction: column-reverse;
align-items: flex-start;
}
.logo-group {
align-items: flex-start;
}
.subtitle-group {
width: 100%;
}
}
.column-links {
font-size: 0.9rem;
margin-bottom: 1.5rem;
text-align: right;
}
.column-links a {
margin: 0 0.2rem;
line-height: 2.4em;
}
.column-links a img {
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.column-links a img:hover {
transform: scale(1.25);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.post-list-item {
display: flex;
gap: 1rem;
padding: 0.6rem 0;
align-items: stretch;
position: relative;
}
.item-full-link {
position: absolute;
inset: 0;
z-index: 5;
}
.post-list-item a:not(.item-full-link) {
position: relative;
z-index: 10;
}
.post-list-item .item-thumb {
width: 140px;
height: 100px;
overflow: hidden;
flex-shrink: 0;
border-radius: 6px;
}
.post-list-item .item-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: left top;
}
.post-list-item .item-main-group {
flex: 1;
display: flex;
flex-direction: column;
position: relative;
padding-right: 40px;
}
.post-list-item:has(.item-thumb) .item-main-group {
min-height: 100px;
}
.post-list-item .item-main-top-group {
position: relative;
width: 95%;
}
.item-main-top-group .item-title {
font-size: 1.05rem;
font-weight: 600;
line-height: 1.2;
}
.item-column {
position: absolute;
top: 0;
right: -18px;
width: 24px;
}
.item-author {
position: absolute;
top: 24px;
right: 12px;
width: 24px;
}
.item-author-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--divider);
display: block;
}
.post-list-item .item-main-bottom-group {
font-size: 0.9rem;
color: var(--description);
margin-top: 0.35rem;
line-height: 1.4;
overflow: hidden;
max-height: calc(100px - 40px);
}
.item-main-extra-group {
display: flex;
justify-content: space-between;
font-size: 0.85rem;
}
.item-main-extra-group .item-date {
margin-right: auto;
white-space: nowrap;
font-size: 0.65rem;
opacity: 0.7;
}
.year-nav {
padding-top: 0
}
.month-nav {
margin-bottom: 1em;
margin-top: 1em;
font-size: 0.9em;
display: flex;
}
.month-nav a {
text-decoration: none;
padding: 0 0.5em;
}
.month-nav .nav-next {
margin-left: auto;
}
.year-calendar {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
.year-calendar td {
border: 1px solid var(--year-td);
padding: 1rem;
text-align: center;
vertical-align: middle;
width: 33.333%;
min-height: 90px;
background: var(--page-bg);
}
.year-calendar .month-cell.empty {
background: var(--month-empty);
color: var(--month-empty);
}
.year-calendar .month-link {
display: block;
color: inherit;
text-decoration: none;
}
.year-calendar .month-name {
font-weight: 600;
font-size: 1.05rem;
margin-bottom: 0.25rem;
}
.year-calendar .month-count {
font-size: 0.85rem;
color: #000;
}
.year-calendar .mute {
color: var(--mute);
}
.month-calendar .has-post {
font-weight: bold;
}
.author-info {
display: flex;
align-items: flex-start;
gap: 1rem;
}
.author-info-avatar {
width: 60px;
height: 60px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
order: 2;
}
.author-info-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.author-info-text {
display: flex;
flex-direction: column;
gap: 0.25rem;
order: 1;
max-width: 65%;
text-align: left;
}
.author-info-description {
line-height: 1.4;
}
.author-info-site {
font-size: 0.875rem;
color: var(--description);
margin-top: 0.4em;
}
.author-info-site a {
color: inherit;
text-decoration: none;
}
.author-info-site a:hover {
text-decoration: underline;
}
.post-detail-meta-container {
flex-direction: column;
gap: 1rem;
}
@media (max-width: 800px) {
.post-detail-meta-container {
flex-direction: row;
align-items: flex-start;
padding: 1em 1em;
}
.post-detail-meta-container .meta-left {
flex: 1;
}
.post-detail-meta-container .meta-right {
flex: 0 0 auto;
margin-left: 1rem;
}
.post-detail-meta-container .author-info {
flex-direction: column;
}
}
@media (max-width: 475px) {
.post-detail-meta-container {
flex-direction: column;
}
}
.comments-container {
border-top: 2px solid var(--divider);
margin-top: 2em;
}
.author-list {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
padding: 0.25rem 0;
}
.author-list .author-description {
flex: 2;
text-align: left;
word-break: break-word;
margin-right: 1rem;
font-size: small;
max-width: 300px;
}
.author-list .author-name {
flex: 1;
text-align: right;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 20px;
}
.author-list .author-avatar img {
width: 60px;
height: 60px;
border-radius: 50%;
}
.webrings-wrapper {
width: fit-content;
float: right;
padding: 0 0.5em;
}
.webrings {
display: flex;
align-items: left;
justify-content: left;
gap: 0.35rem;
padding: 0.5rem 0.5rem;
background: var(--webrings);
border: 2px solid var(--divider);
border-radius: 10px;
}
.webrings a {
display: flex;
align-items: center;
justify-content: center;
padding: 0.2rem 0.2rem;
border-radius: 6px;
transition: transform 0.15s ease, background 0.15s ease;
}
.webrings a:hover {
background: var(--webrings-hover);
transform: translateY(-5px);
}
.webrings img {
height: 31px;
width: auto;
}
footer {
display: flex;
flex-direction: column;
font-size: small;
font-weight: bold;
justify-content: left;
}
footer .copyright-text {
margin-left: auto;
}
.loading-placeholder {
padding: 1em;
text-align: center;
border-radius: 4px;
opacity: 0.7;
width: 90%;
color:#fff;
}
.loading-failure {
font-weight: bold;
color: #b00020;
}
.loading-success {
font-weight: bold;
color: #006b1f;
}
blockquote {
font-size: 0.95em;
padding-left: 1em;
border-radius: 4px;
}
blockquote p {
margin: 0.5em 0;
line-height: 1.4;
font-size: 0.95em;
}