mirror of
https://codeberg.org/mayx/pages
synced 2026-02-16 13:34:50 +08:00
update
This commit is contained in:
131
assets/css/feed.css
Normal file
131
assets/css/feed.css
Normal file
@@ -0,0 +1,131 @@
|
||||
@namespace atom "http://www.w3.org/2005/Atom";
|
||||
@namespace content "http://purl.org/rss/1.0/modules/content/";
|
||||
@namespace dc "http://purl.org/dc/elements/1.1/";
|
||||
|
||||
body,
|
||||
rss,
|
||||
atom|feed {
|
||||
font-family: -apple-system, BlinkMacSystemFont,
|
||||
"Segoe UI", Roboto,
|
||||
"Noto Sans SC", "PingFang SC",
|
||||
"Microsoft YaHei", Arial, sans-serif;
|
||||
background: #f4f5f7;
|
||||
color: #222;
|
||||
margin: 0;
|
||||
padding: 2em 1em;
|
||||
/* 左右内边距 1em,竖屏不贴边 */
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
|
||||
max-width: 780px;
|
||||
/* 最大宽度,桌面端居中 */
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
channel>title,
|
||||
atom|feed>atom|title {
|
||||
display: block;
|
||||
font-size: 1.7em;
|
||||
font-weight: 700;
|
||||
margin: 0 0 1.2em 0;
|
||||
text-align: center;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
item,
|
||||
atom|entry {
|
||||
display: block;
|
||||
background: #ffffff;
|
||||
padding: 1.1em 1.2em;
|
||||
margin-bottom: 1.1em;
|
||||
border-radius: 14px;
|
||||
box-shadow:
|
||||
0 8px 24px rgba(0, 0, 0, 0.04),
|
||||
0 2px 6px rgba(0, 0, 0, 0.03);
|
||||
}
|
||||
|
||||
item>title,
|
||||
atom|entry>atom|title {
|
||||
display: block;
|
||||
font-size: 1.15em;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.45em;
|
||||
color: #111;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
item>description,
|
||||
atom|entry>atom|summary {
|
||||
display: block;
|
||||
color: #555;
|
||||
line-height: 1.65;
|
||||
max-height: 16.5em;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
item>description::after,
|
||||
atom|entry>atom|summary::after {
|
||||
content: "…";
|
||||
position: absolute;
|
||||
right: 0.3em;
|
||||
bottom: 0;
|
||||
padding-left: 1.5em;
|
||||
background: linear-gradient(to right,
|
||||
rgba(255, 255, 255, 0),
|
||||
#ffffff 70%);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
link,
|
||||
guid,
|
||||
pubDate,
|
||||
author,
|
||||
category,
|
||||
comments,
|
||||
source,
|
||||
enclosure,
|
||||
content|encoded,
|
||||
dc|creator,
|
||||
lastBuildDate,
|
||||
atom|id,
|
||||
atom|link,
|
||||
atom|updated,
|
||||
atom|published,
|
||||
atom|author,
|
||||
atom|category,
|
||||
atom|rights,
|
||||
atom|content,
|
||||
language,
|
||||
generator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
channel>description,
|
||||
atom|feed>atom|subtitle {
|
||||
display: block;
|
||||
margin: 0.4em 0 2em 0;
|
||||
/* 与条目明显拉开 */
|
||||
text-align: center;
|
||||
color: #666;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
channel>title,
|
||||
atom|feed>atom|title {
|
||||
margin-bottom: 0.4em;
|
||||
/* 原来较紧,这里放松 */
|
||||
}
|
||||
|
||||
atom|feed>atom|subtitle::after,
|
||||
channel>description::after {
|
||||
content: "这是一个订阅源(Feed)。复制当前URL到任何支持 Atom/RSS 的阅读器,即可订阅本博客的最新文章。\A以下展示了此订阅源包含的最新文章:";
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: 0.95em;
|
||||
color: #666;
|
||||
margin: 1em 0 2em 0;
|
||||
line-height: 1.5;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
1278
assets/css/gitalk.css
Normal file
1278
assets/css/gitalk.css
Normal file
File diff suppressed because it is too large
Load Diff
179
assets/css/style.scss
Normal file
179
assets/css/style.scss
Normal file
@@ -0,0 +1,179 @@
|
||||
---
|
||||
---
|
||||
|
||||
@import "{{ site.theme }}";
|
||||
|
||||
a:hover {
|
||||
font-weight: inherit;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.backToTop {
|
||||
display: none;
|
||||
width: 18px;
|
||||
line-height: 1.2;
|
||||
padding: 5px 0;
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
_position: absolute;
|
||||
right: 10px;
|
||||
bottom: 100px;
|
||||
_bottom: "auto";
|
||||
cursor: pointer;
|
||||
opacity: .6;
|
||||
filter: Alpha(opacity=60);
|
||||
}
|
||||
|
||||
.post-content {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.post-content h1 {
|
||||
text-indent: -8px;
|
||||
margin:20px 0 10px;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.post-content h2 {
|
||||
text-indent: -6px;
|
||||
margin:20px 0 10px;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.post-content h3 {
|
||||
margin:20px 0 10px;
|
||||
text-indent: -5px;
|
||||
}
|
||||
|
||||
.post-content h4 {
|
||||
margin:20px 0 10px;
|
||||
text-indent: -4px;
|
||||
}
|
||||
|
||||
.post-content h5 {
|
||||
margin:20px 0 10px;
|
||||
text-indent: -3px;
|
||||
}
|
||||
|
||||
.post-content h6 {
|
||||
margin:20px 0 10px;
|
||||
text-indent: -2px;
|
||||
}
|
||||
|
||||
.post-content p {
|
||||
text-indent: 2em;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
h1 .octicon,
|
||||
h2 .octicon,
|
||||
h3 .octicon,
|
||||
h4 .octicon,
|
||||
h5 .octicon,
|
||||
h6 .octicon {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
h1:hover .octicon,
|
||||
h2:hover .octicon,
|
||||
h3:hover .octicon,
|
||||
h4:hover .octicon,
|
||||
h5:hover .octicon,
|
||||
h6:hover .octicon {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.octicon {
|
||||
fill: currentColor;
|
||||
padding: 0;
|
||||
margin-left: -16px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
div.highlight {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
div.highlight:hover button {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
div.highlight button {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: 0.5em;
|
||||
right: 1em;
|
||||
height: 2em;
|
||||
transition: all 0.2s ease-out;
|
||||
}
|
||||
|
||||
div.highlight button:active,
|
||||
div.highlight button:focus,
|
||||
div.highlight button:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.footnotes {
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.footnotes p {
|
||||
margin: 0;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
.wrapper{
|
||||
width: 90%;
|
||||
}
|
||||
header{
|
||||
width: 25%;
|
||||
}
|
||||
footer{
|
||||
width: 25%;
|
||||
}
|
||||
section{
|
||||
width: 65%;
|
||||
}
|
||||
@media print, screen and (max-width: 960px) {
|
||||
.wrapper {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
header {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
footer {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
section {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
|
||||
code.highlighter-rouge{
|
||||
padding: .1em .2em;
|
||||
margin: 0;
|
||||
font-size: 90%;
|
||||
white-space: break-spaces;
|
||||
background-color: lightgray;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.content-tooltip {
|
||||
position: absolute;
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||||
max-width: 300px;
|
||||
z-index: 1000;
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
35
assets/css/xslt.css
Normal file
35
assets/css/xslt.css
Normal file
@@ -0,0 +1,35 @@
|
||||
@namespace xsl "http://www.w3.org/1999/XSL/Transform";
|
||||
|
||||
xsl|template {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
:root {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
background-color: #f8f9fa;
|
||||
margin: 0;
|
||||
padding: 2em 1em;
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
box-sizing: border-box;
|
||||
margin-left: max(1em, env(safe-area-inset-left));
|
||||
margin-right: max(1em, env(safe-area-inset-right));
|
||||
}
|
||||
|
||||
:root::before {
|
||||
content: "💀 这个 XSLT 模板已被谷歌 (Chrome) 杀死";
|
||||
display: block;
|
||||
color: #d93025;
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
padding: 20px;
|
||||
border: 2px solid #d93025;
|
||||
border-radius: 8px;
|
||||
background: #fff1f0;
|
||||
margin-bottom: 10px;
|
||||
box-shadow: 0 4px 12px rgba(217, 48, 37, 0.1);
|
||||
text-align: center;
|
||||
}
|
||||
Reference in New Issue
Block a user