Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzhizhia committed Jan 6, 2025
1 parent 4f1dedc commit b22c3d1
Show file tree
Hide file tree
Showing 113 changed files with 5,533 additions and 1 deletion.
1 change: 0 additions & 1 deletion themes/PaperMod
Submodule PaperMod deleted from 9d16e7
11 changes: 11 additions & 0 deletions themes/PaperMod/assets/css/common/404.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.not-found {
position: absolute;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
height: 80%;
font-size: 160px;
font-weight: 700;
}
44 changes: 44 additions & 0 deletions themes/PaperMod/assets/css/common/archive.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.archive-posts {
width: 100%;
font-size: 16px;
}

.archive-year {
margin-top: 40px;
}

.archive-year:not(:last-of-type) {
border-bottom: 2px solid var(--border);
}

.archive-month {
display: flex;
align-items: flex-start;
padding: 10px 0;
}

.archive-month-header {
margin: 25px 0;
width: 200px;
}

.archive-month:not(:last-of-type) {
border-bottom: 1px solid var(--border);
}

.archive-entry {
position: relative;
padding: 5px;
margin: 10px 0;
}

.archive-entry-title {
margin: 5px 0;
font-weight: 400;
}

.archive-count,
.archive-meta {
color: var(--secondary);
font-size: 14px;
}
60 changes: 60 additions & 0 deletions themes/PaperMod/assets/css/common/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
.footer,
.top-link {
font-size: 12px;
color: var(--secondary);
}

.footer {
max-width: calc(var(--main-width) + var(--gap) * 2);
margin: auto;
padding: calc((var(--footer-height) - var(--gap)) / 2) var(--gap);
text-align: center;
line-height: 24px;
}

.footer span {
margin-inline-start: 1px;
margin-inline-end: 1px;
}

.footer span:last-child {
white-space: nowrap;
}

.footer a {
color: inherit;
border-bottom: 1px solid var(--secondary);
}

.footer a:hover {
border-bottom: 1px solid var(--primary);
}

.top-link {
visibility: hidden;
position: fixed;
bottom: 60px;
right: 30px;
z-index: 99;
background: var(--tertiary);
width: 42px;
height: 42px;
padding: 12px;
border-radius: 64px;
transition: visibility 0.5s, opacity 0.8s linear;
}

.top-link,
.top-link svg {
filter: drop-shadow(0px 0px 0px var(--theme));
}

.footer a:hover,
.top-link:hover {
color: var(--primary);
}

.top-link:focus,
#theme-toggle:focus {
outline: 0;
}
93 changes: 93 additions & 0 deletions themes/PaperMod/assets/css/common/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
.nav {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: calc(var(--nav-width) + var(--gap) * 2);
margin-inline-start: auto;
margin-inline-end: auto;
line-height: var(--header-height);
}

.nav a {
display: block;
}

.logo,
#menu {
display: flex;
margin: auto var(--gap);
}

.logo {
flex-wrap: inherit;
}

.logo a {
font-size: 24px;
font-weight: 700;
}

.logo a img, .logo a svg {
display: inline;
vertical-align: middle;
pointer-events: none;
transform: translate(0, -10%);
border-radius: 6px;
margin-inline-end: 8px;
}

button#theme-toggle {
font-size: 26px;
margin: auto 4px;
}

body.dark #moon {
vertical-align: middle;
display: none;
}

body:not(.dark) #sun {
display: none;
}

#menu {
list-style: none;
word-break: keep-all;
overflow-x: auto;
white-space: nowrap;
}

#menu li + li {
margin-inline-start: var(--gap);
}

#menu a {
font-size: 16px;
}

#menu .active {
font-weight: 500;
border-bottom: 2px solid currentColor;
}

.lang-switch li,
.lang-switch ul,
.logo-switches {
display: inline-flex;
margin: auto 4px;
}

.lang-switch {
display: flex;
flex-wrap: inherit;
}

.lang-switch a {
margin: auto 3px;
font-size: 16px;
font-weight: 500;
}

.logo-switches {
flex-wrap: inherit;
}
66 changes: 66 additions & 0 deletions themes/PaperMod/assets/css/common/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
.main {
position: relative;
min-height: calc(100vh - var(--header-height) - var(--footer-height));
max-width: calc(var(--main-width) + var(--gap) * 2);
margin: auto;
padding: var(--gap);
}

.page-header h1 {
font-size: 40px;
}

.pagination {
display: flex;
}

.pagination a {
color: var(--theme);
font-size: 13px;
line-height: 36px;
background: var(--primary);
border-radius: calc(36px / 2);
padding: 0 16px;
}

.pagination .next {
margin-inline-start: auto;
}


.social-icons a {
display: inline-flex;
padding: 10px;
}

.social-icons a svg {
height: 26px;
width: 26px;
}

code {
direction: ltr;
}

div.highlight,
pre {
position: relative;
}

.copy-code {
display: none;
position: absolute;
top: 4px;
right: 4px;
color: rgba(255, 255, 255, 0.8);
background: rgba(78, 78, 78, 0.8);
border-radius: var(--radius);
padding: 0 5px;
font-size: 14px;
user-select: none;
}

div.highlight:hover .copy-code,
pre:hover .copy-code {
display: block;
}
108 changes: 108 additions & 0 deletions themes/PaperMod/assets/css/common/post-entry.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
.first-entry {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
min-height: 320px;
margin: var(--gap) 0 calc(var(--gap) * 2) 0;
}

.first-entry .entry-header {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}

.first-entry .entry-header h1 {
font-size: 34px;
line-height: 1.3;
}

.first-entry .entry-content {
margin: 14px 0;
font-size: 16px;
-webkit-line-clamp: 3;
}

.first-entry .entry-footer {
font-size: 14px;
}

.home-info .entry-content {
-webkit-line-clamp: unset;
}

.post-entry {
position: relative;
margin-bottom: var(--gap);
padding: var(--gap);
background: var(--entry);
border-radius: var(--radius);
transition: transform 0.1s;
border: 1px solid var(--border);
}

.post-entry:active {
transform: scale(0.96);
}

.tag-entry .entry-cover {
display: none;
}

.entry-header h2 {
font-size: 24px;
line-height: 1.3;
}

.entry-content {
margin: 8px 0;
color: var(--secondary);
font-size: 14px;
line-height: 1.6;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}

.entry-footer {
color: var(--secondary);
font-size: 13px;
}

.entry-link {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}

.entry-hint {
color: var(--secondary);
}

.entry-hint-parent {
display: flex;
justify-content: space-between;
}

.entry-cover {
font-size: 14px;
margin-bottom: var(--gap);
text-align: center;
}

.entry-cover img {
border-radius: var(--radius);
pointer-events: none;
width: 100%;
height: auto;
}

.entry-cover a {
color: var(--secondary);
box-shadow: 0 1px 0 var(--primary);
}
Loading

0 comments on commit b22c3d1

Please sign in to comment.