主题
春日樱花
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 基础页面样式 - 春日樱花主题 */
body {
background-color: #fffaf9;
color: #3a2d33;
font-family: "SimSun", "Songti SC", serif;
font-size: 20px;
line-height: 1.8;
max-width: 700px;
margin: 0 auto;
padding: 20px;
}
/* 链接样式 */
a {
color: #d4598c;
text-decoration: none;
}
a:hover {
color: #b13a6d;
text-decoration: underline;
}
/* 页眉样式 */
header {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #f0d8e0;
}
/* 标题样式 - 全部加粗 */
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
color: #4a2a3a;
}
h1 {
font-size: 34px;
color: #3a1e2a;
}
h2 {
font-size: 28px;
margin-bottom: 15px;
color: #4a2a3a;
}
/* 导航栏 */
nav {
margin-top: 15px;
}
nav a {
margin-right: 20px;
}
/* 主要内容区 */
main {
margin-bottom: 60px;
}
article {
margin-bottom: 50px;
}
/* 文章日期 */
.post-date {
color: #8a6677;
font-size: 17px;
margin-bottom: 10px;
}
/* 段落 */
p {
margin-bottom: 20px;
}
/* 图片增强 */
img {
max-width: 100%;
height: auto;
display: block;
margin: 25px 0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(212, 89, 140, 0.1);
}
/* 列表 */
ul, ol {
margin-bottom: 20px;
padding-left: 25px;
}
li {
margin-bottom: 8px;
}
/* 代码块 */
code {
background-color: #f8e8f0;
padding: 2px 6px;
border-radius: 3px;
font-size: 17px;
color: #4a2a3a;
}
pre {
background-color: #f8e8f0;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
margin-bottom: 20px;
border-left: 3px solid #e89db8;
}
pre code {
background-color: transparent;
padding: 0;
}
/* 引用块 */
blockquote {
border-left: 3px solid #e89db8;
padding-left: 15px;
margin-left: 0;
margin-bottom: 20px;
color: #6a4a5a;
background-color: #fef5f9;
}
/* 表格 */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #e0c8d0;
padding: 10px 15px;
text-align: left;
}
th {
background-color: #f8e8f0;
font-weight: bold;
color: #4a2a3a;
}
td {
background-color: #fef5f9;
}
/* 水平分隔线 */
hr {
border: none;
border-top: 1px solid #f0d8e0;
margin: 30px 0;
}
/* 页脚 */
footer {
text-align: center;
padding-top: 20px;
border-top: 1px solid #f0d8e0;
color: #8a6677;
font-size: 17px;
}
/* 移动端适配 */
@media (max-width: 750px) {
body {
padding: 15px;
font-size: 18px;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 25px;
}
img {
box-shadow: 0 2px 8px rgba(212, 89, 140, 0.1);
}
th, td {
padding: 8px 12px;
}
}
夏日抹茶
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 基础页面样式 - 夏日抹茶主题 */
body {
background-color: #f8fff2;
color: #2d3a2d;
font-family: "SimSun", "Songti SC", serif;
font-size: 20px;
line-height: 1.8;
max-width: 700px;
margin: 0 auto;
padding: 20px;
}
/* 链接样式 */
a {
color: #4c8c5f;
text-decoration: none;
}
a:hover {
color: #3a6c4a;
text-decoration: underline;
}
/* 页眉样式 */
header {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #d8e8d0;
}
/* 标题样式 - 全部加粗 */
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
color: #2a4a2a;
}
h1 {
font-size: 34px;
color: #0e2a0e;
}
h2 {
font-size: 28px;
margin-bottom: 15px;
color: #2a4a2a;
}
/* 导航栏 */
nav {
margin-top: 15px;
}
nav a {
margin-right: 20px;
}
/* 主要内容区 */
main {
margin-bottom: 60px;
}
article {
margin-bottom: 50px;
}
/* 文章日期 */
.post-date {
color: #5a735a;
font-size: 17px;
margin-bottom: 10px;
}
/* 段落 */
p {
margin-bottom: 20px;
}
/* 图片增强 */
img {
max-width: 100%;
height: auto;
display: block;
margin: 25px 0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
}
/* 列表 */
ul, ol {
margin-bottom: 20px;
padding-left: 25px;
}
li {
margin-bottom: 8px;
}
/* 代码块 */
code {
background-color: #e8f4e3;
padding: 2px 6px;
border-radius: 3px;
font-size: 17px;
color: #2a4a2a;
}
pre {
background-color: #e8f4e3;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
margin-bottom: 20px;
border-left: 3px solid #8bb596;
}
pre code {
background-color: transparent;
padding: 0;
}
/* 引用块 */
blockquote {
border-left: 3px solid #8bb596;
padding-left: 15px;
margin-left: 0;
margin-bottom: 20px;
color: #4a5e4a;
background-color: #f0f8eb;
}
/* 表格 */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #c8d8c0;
padding: 10px 15px;
text-align: left;
}
th {
background-color: #e8f4e3;
font-weight: bold;
color: #2a4a2a;
}
td {
background-color: #f5faf2;
}
/* 水平分隔线 */
hr {
border: none;
border-top: 1px solid #d8e8d0;
margin: 30px 0;
}
/* 页脚 */
footer {
text-align: center;
padding-top: 20px;
border-top: 1px solid #d8e8d0;
color: #5a735a;
font-size: 17px;
}
/* 移动端适配 */
@media (max-width: 750px) {
body {
padding: 15px;
font-size: 18px;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 25px;
}
img {
box-shadow: 0 2px 8px rgba(74, 124, 89, 0.1);
}
th, td {
padding: 8px 12px;
}
}
秋日枫叶
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 基础页面样式 - 秋日枫叶主题 */
body {
background-color: #fff9f0;
color: #333333;
font-family: "SimSun", "Songti SC", serif;
font-size: 20px;
line-height: 1.8;
max-width: 700px;
margin: 0 auto;
padding: 20px;
}
/* 链接样式 */
a {
color: #d67c3a;
text-decoration: none;
}
a:hover {
color: #b85e1f;
text-decoration: underline;
}
/* 页眉样式 */
header {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #f0e6d8;
}
/* 标题样式 - 全部加粗 */
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
color: #5c3a2a;
}
h1 {
font-size: 34px;
color: #4a2e1e;
}
h2 {
font-size: 28px;
margin-bottom: 15px;
color: #5c3a2a;
}
/* 导航栏 */
nav {
margin-top: 15px;
}
nav a {
margin-right: 20px;
}
/* 主要内容区 */
main {
margin-bottom: 60px;
}
article {
margin-bottom: 50px;
}
/* 文章日期 */
.post-date {
color: #8a7a66;
font-size: 17px;
margin-bottom: 10px;
}
/* 段落 */
p {
margin-bottom: 20px;
}
/* 图片增强 */
img {
max-width: 100%;
height: auto;
display: block;
margin: 25px 0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(214, 124, 58, 0.1);
}
/* 列表 */
ul, ol {
margin-bottom: 20px;
padding-left: 25px;
}
li {
margin-bottom: 8px;
}
/* 代码块 */
code {
background-color: #f5f0e8;
padding: 2px 6px;
border-radius: 3px;
font-size: 17px;
color: #5c3a2a;
}
pre {
background-color: #f5f0e8;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
margin-bottom: 20px;
border-left: 3px solid #e0b89d;
}
pre code {
background-color: transparent;
padding: 0;
}
/* 引用块 */
blockquote {
border-left: 3px solid #e0b89d;
padding-left: 15px;
margin-left: 0;
margin-bottom: 20px;
color: #6a5a4a;
background-color: #fef9f0;
}
/* 表格 */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #e0d6c8;
padding: 10px 15px;
text-align: left;
}
th {
background-color: #f5f0e8;
font-weight: bold;
color: #5c3a2a;
}
td {
background-color: #fef9f0;
}
/* 水平分隔线 */
hr {
border: none;
border-top: 1px solid #f0e6d8;
margin: 30px 0;
}
/* 页脚 */
footer {
text-align: center;
padding-top: 20px;
border-top: 1px solid #f0e6d8;
color: #8a7a66;
font-size: 17px;
}
/* 移动端适配 */
@media (max-width: 750px) {
body {
padding: 15px;
font-size: 18px;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 25px;
}
img {
box-shadow: 0 2px 8px rgba(214, 124, 58, 0.1);
}
th, td {
padding: 8px 12px;
}
}
冬日雪花
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 基础页面样式 - 冬日雪花主题 */
body {
background-color: #f0f8ff;
color: #2c3e50;
font-family: "SimSun", "Songti SC", serif;
font-size: 20px;
line-height: 1.8;
max-width: 700px;
margin: 0 auto;
padding: 20px;
}
/* 链接样式 */
a {
color: #3498db;
text-decoration: none;
}
a:hover {
color: #2980b9;
text-decoration: underline;
}
/* 页眉样式 */
header {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #d1e0f0;
}
/* 标题样式 - 全部加粗 */
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
color: #1a5276;
}
h1 {
font-size: 34px;
color: #154360;
}
h2 {
font-size: 28px;
margin-bottom: 15px;
color: #1a5276;
}
/* 导航栏 */
nav {
margin-top: 15px;
}
nav a {
margin-right: 20px;
}
/* 主要内容区 */
main {
margin-bottom: 60px;
}
article {
margin-bottom: 50px;
}
/* 文章日期 */
.post-date {
color: #5d6d7e;
font-size: 17px;
margin-bottom: 10px;
}
/* 段落 */
p {
margin-bottom: 20px;
}
/* 图片增强 */
img {
max-width: 100%;
height: auto;
display: block;
margin: 25px 0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}
/* 列表 */
ul, ol {
margin-bottom: 20px;
padding-left: 25px;
}
li {
margin-bottom: 8px;
}
/* 代码块 */
code {
background-color: #eaf2f8;
padding: 2px 6px;
border-radius: 3px;
font-size: 17px;
color: #2c3e50;
}
pre {
background-color: #eaf2f8;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
margin-bottom: 20px;
border-left: 3px solid #85c1e9;
}
pre code {
background-color: transparent;
padding: 0;
}
/* 引用块 */
blockquote {
border-left: 3px solid #85c1e9;
padding-left: 15px;
margin-left: 0;
margin-bottom: 20px;
color: #5d6d7e;
background-color: #f7f9fc;
}
/* 表格 */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #d1e0f0;
padding: 10px 15px;
text-align: left;
}
th {
background-color: #eaf2f8;
font-weight: bold;
color: #1a5276;
}
td {
background-color: #f7f9fc;
}
/* 水平分隔线 */
hr {
border: none;
border-top: 1px solid #d1e0f0;
margin: 30px 0;
}
/* 页脚 */
footer {
text-align: center;
padding-top: 20px;
border-top: 1px solid #d1e0f0;
color: #5d6d7e;
font-size: 17px;
}
/* 移动端适配 */
@media (max-width: 750px) {
body {
padding: 15px;
font-size: 18px;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 25px;
}
img {
box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}
th, td {
padding: 8px 12px;
}
}
可可
:root {
/* 变量定义区域 - 定义主题颜色和字体 */
--width: 900px;
--font-main: Times New Roman, serif;
--font-secondary: Times New Roman, serif;
--font-scale: 1.1em;
--background-color: #fff;
--heading-color: #242121;
--text-color: #573d3d;
--link-color: #573d3d;
--visited-color: #8b6b61;
--hover-color: #a1887f;
--code-background-color: #f2f2f2;
--code-color: #222;
--blockquote-color: #222;
--table-header-bg: #f9f5f0;
--table-border-color: #e0d6cc;
--quote-background: #f9f5f0;
}
/* 深色模式变量 */
@media (prefers-color-scheme: dark) {
:root {
--background-color: #19150f;
--heading-color: #eee;
--text-color: #ddd;
--link-color: #ddd;
--visited-color: #bcaaa4;
--hover-color: #d7ccc8;
--code-background-color: #000;
--code-color: #ddd;
--blockquote-color: #ccc;
--table-header-bg: #2a251c;
--table-border-color: #3d3629;
--quote-background: #2a251c;
}
}
/* 基础样式 */
body {
font-family: var(--font-secondary);
font-size: var(--font-scale);
margin: auto;
padding: 20px;
max-width: var(--width);
text-align: left;
background-color: var(--background-color);
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.5;
color: var(--text-color);
}
/* 标题样式 - 保持原来的颜色以区分层级 */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-main);
color: var(--heading-color);
}
/* 加粗文本样式 - 改为正文颜色 */
strong, b {
color: var(--text-color);
font-weight: bold;
}
/* 斜体文本样式 - 改为正文颜色 */
em, i {
color: var(--text-color);
font-style: italic;
}
/* 高亮文本样式 - 改为正文颜色 */
mark {
color: var(--text-color);
background-color: rgba(161, 136, 127, 0.2); /* 浅褐色半透明背景 */
}
/* 链接样式 */
a {
color: var(--link-color);
cursor: pointer;
text-decoration: underline;
transition: color 0.2s ease;
}
/* 链接悬停效果 */
a:hover {
color: var(--hover-color);
}
/* 导航链接间距 */
nav a {
margin-right: 5px;
}
/* 其他组件样式 */
button { margin: 0; }
main { line-height: 1.6; }
/* 表格样式 */
table {
width: 100%;
border-collapse: collapse;
margin: 1em 0;
border: 1px solid var(--table-border-color);
}
/* 表格单元格 */
table th,
table td {
border: 1px solid var(--table-border-color);
padding: 0.75em 1em;
text-align: left;
}
/* 表格表头样式 */
table th {
background-color: var(--table-header-bg);
font-weight: bold;
color: var(--text-color);
}
/* 表格行悬停效果 */
table tr:hover {
background-color: rgba(0, 0, 0, 0.02);
}
/* 深色模式表格行悬停 */
@media (prefers-color-scheme: dark) {
table tr:hover {
background-color: rgba(255, 255, 255, 0.05);
}
}
hr { border: 0; border-top: 1px dashed; }
img { max-width: 100%; }
/* 代码样式 */
code {
font-family: monospace;
padding: 2px;
background-color: var(--code-background-color);
color: var(--code-color);
border-radius: 3px;
}
/* 引用块样式 */
blockquote {
border-left: 3px solid var(--table-border-color);
background-color: var(--quote-background);
color: var(--blockquote-color);
padding: 1.25em 1.5em;
margin: 1.5em 0;
font-style: italic;
border-radius: 0 4px 4px 0;
}
/* 引用块内的段落 */
blockquote p {
margin: 0 0 0.75em 0;
color: var(--text-color); /* 引用块内文字也使用正文颜色 */
}
/* 最后一个段落没有底部边距 */
blockquote p:last-child {
margin-bottom: 0;
}
/* 页脚样式 */
footer {
padding: 25px 0;
text-align: center;
}
/* 标题链接样式 */
.title { text-decoration: none; }
.title h1 { font-size: 1.5em; }
/* 内联元素样式 */
.inline { width: auto !important; }
/* 代码高亮区块 */
.highlight,
.code {
padding: 1px 15px;
background-color: var(--code-background-color);
color: var(--code-color);
border-radius: 3px;
margin-block-start: 1em;
margin-block-end: 1em;
overflow-x: auto;
}
/* 博客文章列表样式 */
ul.blog-posts {
list-style-type: none;
padding: unset;
}
ul.blog-posts li {
display: flex;
margin-bottom: 12px;
}
ul.blog-posts li span {
flex: 0 0 130px;
color: var(--text-color);
}
/* 文章列表链接样式 */
ul.blog-posts li a {
text-decoration: none;
border-bottom: 1px solid transparent;
transition: all 0.2s ease;
color: var(--text-color);
}
/* 文章列表链接悬停效果 */
ul.blog-posts li a:hover {
text-decoration: none;
border-bottom: 1px solid var(--hover-color);
color: var(--hover-color);
}
/* 访问过的文章链接颜色 */
ul.blog-posts li a:visited {
color: var(--visited-color);
}
/* 文章内链接样式(区别于列表链接) */
article a {
text-decoration: underline;
color: var(--text-color);
}
/* 文章内链接悬停效果 */
article a:hover {
color: var(--hover-color);
}
/* 文章内已访问链接 */
article a:visited {
color: var(--visited-color);
opacity: 0.9;
}
可可2
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 基础页面样式 - 可可巧克力主题 */
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: var(--font-secondary);
font-size: var(--font-scale);
line-height: 1.5;
max-width: var(--width);
margin: auto;
padding: 20px;
text-align: left;
word-wrap: break-word;
overflow-wrap: break-word;
}
/* 变量定义区域 - 定义主题颜色和字体 */
:root {
--width: 900px;
--font-main: Times New Roman, serif;
--font-secondary: Times New Roman, serif;
--font-scale: 1.1em;
--background-color: #fff;
--heading-color: #242121;
--text-color: #573d3d;
--link-color: #573d3d;
--visited-color: #8b6b61;
--hover-color: #a1887f;
--code-background-color: #f2f2f2;
--code-color: #222;
--blockquote-color: #222;
--table-header-bg: #f9f5f0;
--table-border-color: #e0d6cc;
--quote-background: #f9f5f0;
}
/* 链接样式 */
a {
color: var(--link-color);
text-decoration: underline;
transition: color 0.2s ease;
cursor: pointer;
}
a:hover {
color: var(--hover-color);
}
/* 页眉样式 */
header {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid var(--table-border-color);
}
/* 标题样式 - 全部加粗 */
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
color: var(--heading-color);
font-family: var(--font-main);
}
h1 {
font-size: 34px;
}
h2 {
font-size: 28px;
margin-bottom: 15px;
}
/* 导航栏 */
nav {
margin-top: 15px;
}
nav a {
margin-right: 20px;
}
/* 主要内容区 */
main {
margin-bottom: 60px;
line-height: 1.6;
}
article {
margin-bottom: 50px;
}
/* 文章日期 */
.post-date {
color: var(--text-color);
font-size: 17px;
margin-bottom: 10px;
}
/* 段落 */
p {
margin-bottom: 20px;
}
/* 加粗文本 */
strong, b {
color: var(--text-color);
font-weight: bold;
}
/* 斜体文本 */
em, i {
color: var(--text-color);
font-style: italic;
}
/* 高亮文本 */
mark {
color: var(--text-color);
background-color: rgba(161, 136, 127, 0.2);
}
/* 图片增强 */
img {
max-width: 100%;
height: auto;
display: block;
margin: 25px 0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(87, 61, 61, 0.1);
}
/* 列表 */
ul, ol {
margin-bottom: 20px;
padding-left: 25px;
}
li {
margin-bottom: 8px;
}
/* 博客文章列表样式 */
ul.blog-posts {
list-style-type: none;
padding: unset;
}
ul.blog-posts li {
display: flex;
margin-bottom: 12px;
}
ul.blog-posts li span {
flex: 0 0 130px;
color: var(--text-color);
}
ul.blog-posts li a {
text-decoration: none;
border-bottom: 1px solid transparent;
transition: all 0.2s ease;
color: var(--text-color);
}
ul.blog-posts li a:hover {
text-decoration: none;
border-bottom: 1px solid var(--hover-color);
color: var(--hover-color);
}
ul.blog-posts li a:visited {
color: var(--visited-color);
}
/* 代码块 */
code {
background-color: var(--code-background-color);
padding: 2px 6px;
border-radius: 3px;
font-size: 17px;
color: var(--code-color);
font-family: monospace;
}
pre {
background-color: var(--code-background-color);
padding: 15px;
border-radius: 5px;
overflow-x: auto;
margin-bottom: 20px;
border-left: 3px solid var(--table-border-color);
}
pre code {
background-color: transparent;
padding: 0;
}
/* 代码高亮区块 */
.highlight,
.code {
padding: 1px 15px;
background-color: var(--code-background-color);
color: var(--code-color);
border-radius: 3px;
margin-block-start: 1em;
margin-block-end: 1em;
overflow-x: auto;
}
/* 引用块 */
blockquote {
border-left: 3px solid var(--table-border-color);
padding-left: 15px;
margin-left: 0;
margin-bottom: 20px;
color: var(--blockquote-color);
background-color: var(--quote-background);
border-radius: 0 4px 4px 0;
font-style: italic;
}
blockquote p {
margin: 0 0 0.75em 0;
color: var(--text-color);
}
blockquote p:last-child {
margin-bottom: 0;
}
/* 表格 */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
border: 1px solid var(--table-border-color);
}
th, td {
border: 1px solid var(--table-border-color);
padding: 10px 15px;
text-align: left;
}
th {
background-color: var(--table-header-bg);
font-weight: bold;
color: var(--text-color);
}
td {
background-color: var(--background-color);
}
table tr:hover {
background-color: rgba(0, 0, 0, 0.02);
}
/* 水平分隔线 */
hr {
border: none;
border-top: 1px dashed var(--table-border-color);
margin: 30px 0;
}
/* 页脚 */
footer {
text-align: center;
padding-top: 20px;
border-top: 1px solid var(--table-border-color);
color: var(--text-color);
font-size: 17px;
}
/* 标题链接样式 */
.title {
text-decoration: none;
}
.title h1 {
font-size: 1.5em;
}
/* 内联元素样式 */
.inline {
width: auto !important;
}
/* 文章内链接样式 */
article a {
text-decoration: underline;
color: var(--text-color);
}
article a:hover {
color: var(--hover-color);
}
article a:visited {
color: var(--visited-color);
opacity: 0.9;
}
/* 深色模式变量 */
@media (prefers-color-scheme: dark) {
:root {
--background-color: #19150f;
--heading-color: #eee;
--text-color: #ddd;
--link-color: #ddd;
--visited-color: #bcaaa4;
--hover-color: #d7ccc8;
--code-background-color: #000;
--code-color: #ddd;
--blockquote-color: #ccc;
--table-header-bg: #2a251c;
--table-border-color: #3d3629;
--quote-background: #2a251c;
}
table tr:hover {
background-color: rgba(255, 255, 255, 0.05);
}
}
/* 移动端适配 */
@media (max-width: 750px) {
body {
padding: 15px;
font-size: 18px;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 25px;
}
img {
box-shadow: 0 2px 8px rgba(87, 61, 61, 0.1);
}
th, td {
padding: 8px 12px;
}
ul.blog-posts li {
flex-direction: column;
}
ul.blog-posts li span {
flex: none;
margin-bottom: 5px;
}
}
简约白橙
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 基础页面样式 - 简约白橙主题 */
body {
background-color: #ffffff;
color: #000000;
font-family: "SimSun", "Songti SC", serif;
font-size: 20px;
line-height: 1.8;
max-width: 700px;
margin: 0 auto;
padding: 20px;
}
/* 链接样式 */
a {
color: #e67e22;
text-decoration: none;
}
a:hover {
color: #d35400;
text-decoration: underline;
}
/* 页眉样式 */
header {
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 1px solid #e0d0c0;
}
/* 标题样式 - 全部加粗 */
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
color: #000000;
}
h1 {
font-size: 34px;
color: #000000;
}
h2 {
font-size: 28px;
margin-bottom: 15px;
color: #000000;
}
/* 导航栏 */
nav {
margin-top: 15px;
}
nav a {
margin-right: 20px;
}
/* 主要内容区 */
main {
margin-bottom: 60px;
}
article {
margin-bottom: 50px;
}
/* 文章日期 */
.post-date {
color: #000000;
font-size: 17px;
margin-bottom: 10px;
}
/* 段落 */
p {
margin-bottom: 20px;
}
/* 图片增强 */
img {
max-width: 100%;
height: auto;
display: block;
margin: 25px 0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(230, 126, 34, 0.1);
}
/* 列表 */
ul, ol {
margin-bottom: 20px;
padding-left: 25px;
}
li {
margin-bottom: 8px;
}
/* 代码块 */
code {
background-color: #f9f1e9;
padding: 2px 6px;
border-radius: 3px;
font-size: 17px;
color: #000000;
}
pre {
background-color: #f9f1e9;
padding: 15px;
border-radius: 5px;
overflow-x: auto;
margin-bottom: 20px;
border-left: 3px solid #f0c78c;
}
pre code {
background-color: transparent;
padding: 0;
}
/* 引用块 */
blockquote {
border-left: 3px solid #f0c78c;
padding-left: 15px;
margin-left: 0;
margin-bottom: 20px;
color: #000000;
background-color: #f9f1e9;
}
/* 表格 */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th, td {
border: 1px solid #e0d0c0;
padding: 10px 15px;
text-align: left;
}
th {
background-color: #f9f1e9;
font-weight: bold;
color: #000000;
}
td {
background-color: #fef8f2;
}
/* 水平分隔线 */
hr {
border: none;
border-top: 1px solid #e0d0c0;
margin: 30px 0;
}
/* 页脚 */
footer {
text-align: center;
padding-top: 20px;
border-top: 1px solid #e0d0c0;
color: #000000;
font-size: 17px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* 移动端适配 */
@media (max-width: 750px) {
body {
padding: 15px;
font-size: 18px;
}
h1 {
font-size: 30px;
}
h2 {
font-size: 25px;
}
img {
box-shadow: 0 2px 8px rgba(230, 126, 34, 0.1);
}
th, td {
padding: 8px 12px;
}
}
Low Vision Reader改1-红引用文字
body {
font-family: Verdana, 'Open Sans', sans-serif;
font-size: 1em;
margin: 60px auto;
padding: 30px;
max-width: 700px;
text-align: left;
background-color: #fff;
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.5;
color: #001f2c;
border: 2px solid #001f2c; border-width: 2px !important;
}
h1, h2, h3, h4, h5, h6 {
}
a {
cursor: pointer;
text-decoration: none;
border-bottom: 2px solid;
color: #001f2c;
}
a:hover {
}
nav a {
text-transform: uppercase;
margin-right: 8px;
padding: 10px 0;
}
nav a:hover {
background-color: #001f2c;
color: #fff;
}
button {
margin: 0;
cursor: pointer;
}
time {
font-family: monospace;
font-style: normal;
font-size: 15px;
}
nav {
padding-top: 20px;
padding-bottom: 60px;
border-bottom: 2px solid;
}
main {
padding-top: 20px;
line-height: 1.6;
}
header {
text-align: center;
padding-top: 30px;
}
table {
width: 100%;
border-collapse: collapse;
border: 1px solid #e0e0e0;
}
table th,
table td {
border: 1px solid #e0e0e0;
padding: 8px 12px;
}
table th {
background-color: #f8f9fa;
font-weight: bold;
}
hr {
border: 0;
border-top: 1px dashed;
}
img {
max-width: 100%;
border-radius: 6px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
code {
font-family: monospace;
padding: 2px;
background-color: #f2f2f2;
color: #222;
border-radius: 3px;
}
blockquote {
border-left: 3px solid #9B3235;
color: #222;
padding: 15px 20px;
font-style: italic;
background-color: #f9f5f6;
margin: 20px 0;
border-radius: 0 4px 4px 0;
}
footer {
padding: 25px 0;
text-align: center;
}
.title:hover {
text-decoration: none;
}
.title h1 {
color: #49232D;
font-size: 1.9em;
}
.inline {
width: auto !important;
}
.highlight, .code {
padding: 1px 15px;
background-color: #f2f2f2;
color: #222;
border-radius: 3px;
margin-block-start: 1em;
margin-block-end: 1em;
overflow-x: auto;
}
/* blog post list */
ul.blog-posts {
list-style-type: none;
padding: unset;
}
ul.blog-posts li {
display: flex;
}
ul.blog-posts li span {
flex: 0 0 130px;
}
ul.blog-posts li a:visited {
color: #9B3235;
}
Low Vision Reader改2-黑引用文字
body {
font-family: Verdana, 'Open Sans', sans-serif;
font-size: 1em;
margin: 60px auto;
padding: 30px;
max-width: 700px;
text-align: left;
background-color: #fff;
word-wrap: break-word;
overflow-wrap: break-word;
line-height: 1.5;
color: #001f2c;
border: 2px solid #001f2c;
border-width: 2px !important;}
h1, h2, h3, h4, h5, h6 {
}
a {
cursor: pointer;
text-decoration: none;
border-bottom: 2px solid;
color: #001f2c;}
a:hover {
}
nav a {
text-transform: uppercase;
margin-right: 8px;
padding: 10px 0;}
nav a:hover {
background-color: #001f2c;
color: #fff; }
button {
margin: 0;
cursor: pointer;}
time {
font-family: monospace;
font-style: normal;
font-size: 15px;}
nav {
padding-top: 20px;
padding-bottom: 60px;
border-bottom: 2px solid;}
main {
padding-top: 20px;
line-height: 1.6;}
header {
text-align: center;
padding-top: 30px;}
table {
width: 100%;
border-collapse: collapse;
border: 1px solid #e0e0e0;}
table th,
table td {
border: 1px solid #e0e0e0;
padding: 8px 12px;}
table th {
background-color: #f8f9fa;
font-weight: bold;}
hr {
border: 0;
border-top: 1px dashed;}
img {
max-width: 100%;
border-radius: 6px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);}
code {
font-family: monospace;
padding: 2px;
background-color: #f2f2f2;
color: #222;
border-radius: 3px;}
blockquote {
border-left: 3px solid #6c757d;
color: #222;
padding: 15px 20px;
font-style: italic;
background-color: #f8f9fa;
margin: 20px 0;
border-radius: 0 4px 4px 0;}
footer {
padding: 25px 0;
text-align: center;}
.title:hover {
text-decoration: none;}
.title h1 {
color: #49232D;
font-size: 1.9em;}
.inline {
width: auto !important;}
.highlight, .code {
padding: 1px 15px;
background-color: #f2f2f2;
color: #222;
border-radius: 3px;
margin-block-start: 1em;
margin-block-end: 1em;
overflow-x: auto;}
/ blog post list /
ul.blog-posts {
list-style-type: none;
padding: unset;}
ul.blog-posts li {
display: flex;}
ul.blog-posts li span {
flex: 0 0 130px;}
ul.blog-posts li a:visited {
color: #9B3235;}
Claritas改
/**
* Theme Name: Claritas
* Theme URI: https://github.com/kazimieras-mi/bearblog-claritas-theme
* Description: A minimalist responsive theme for Bear Blog.
* Version: 1.0.0
* Author: Kazimieras Mikelis
* Author URI: https://mikelis.net/
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* Config */
:root {
--text-font-family: 'Inter', 'Verdana', system-ui;
--light-theme-text-color: black;
--light-theme-text-color-opposite: white;
--dark-theme-text-color: white;
--dark-theme-text-color-opposite: rgb(23, 23, 23);
}
/* Internal Variables */
:root {
--common-element-size: 16px;
--common-element-size-2x: calc(var(--common-element-size) * 2);
--common-element-size-05x: calc(var(--common-element-size) / 2);
--common-color-shade: rgba(128, 128, 128, 0.05);
--common-color-line: rgba(128, 128, 128, 0.3);
--content-width: calc(var(--common-element-size) * 45);
--content-min-width: calc(var(--common-element-size) * 15);
--sidebar-width: calc(var(--common-element-size) * 10);
--sidebar-left-margin: calc(50vw - (var(--content-width) / 2) - var(--sidebar-width) - (var(--common-element-size) * 2));
--text-color: var(--light-theme-text-color);
--text-color-opposite: var(--light-theme-text-color-opposite);
--text-font-size: var(--common-element-size);
--text-blog-name-size: calc(var(--text-font-size) * 1.5);
--text-title-size: calc(var(--text-font-size) * 3);
--text-spacing: calc(var(--common-element-size) / 20);
--text-line-height: calc(1em + var(--common-element-size));
--text-line-height-scaleable: 1.8em;
--infobox-background-color: rgba(114, 188, 255, 0.25);
--infobox-border-color: rgba(114, 188, 255, 0.6);
--quote-border-color: var(--text-color);
--quote-bg-color: rgba(128, 128, 128, 0.08);
--table-border-color: rgba(128, 128, 128, 0.2);
--table-header-bg-color: rgba(128, 128, 128, 0.15);
--code-highlight-bg-color: rgba(128, 128, 128, 0.08);
}
@media (min-width: 1200px) {
:root {
--text-title-size: calc(var(--text-font-size) * 4);
}
}
@media (prefers-color-scheme: dark) {
:root {
--text-color: var(--dark-theme-text-color);
--text-color-opposite: var(--dark-theme-text-color-opposite);
--quote-bg-color: rgba(255, 255, 255, 0.05);
--table-border-color: rgba(255, 255, 255, 0.15);
--table-header-bg-color: rgba(255, 255, 255, 0.1);
--code-highlight-bg-color: rgba(255, 255, 255, 0.05);
}
img.inverting {
filter: invert(1);
}
}
@media print {
:root {
--common-element-size: 12px;
}
}
/* Common Elements */
body {
color: var(--text-color);
font-family: var(--text-font-family), sans-serif;
font-size: var(--text-font-size);
line-height: var(--text-line-height);
word-spacing: var(--text-spacing);
background-color: var(--text-color-opposite);
min-width: var(--content-min-width);
max-width: var(--content-width);
padding: 0 var(--common-element-size-2x);
margin: var(--common-element-size-2x) auto;
}
p:not(:first-child) {
margin-top: var(--common-element-size);
}
hr {
margin: var(--common-element-size) 0;
border: 0;
border-top: 1px solid var(--common-color-line);
}
/* Links */
a {
color: var(--text-color);
text-decoration-color: transparent;
padding: 0.1em;
border-bottom: 2px solid var(--text-color);
}
a:hover, a:focus, a:focus-visible {
color: var(--text-color-opposite);
background-color: var(--text-color);
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
line-height: var(--text-line-height);
font-weight: 900;
word-break: break-word;
overflow-wrap: break-word;
white-space: normal;
hyphens: auto;
}
h1:not(:first-child), h2:not(:first-child), h3:not(:first-child), h4:not(:first-child), h5:not(:first-child), h6:not(:first-child) {
margin-top: var(--common-element-size-2x);
}
main h1:first-of-type {
font-size: var(--text-title-size);
font-style: italic;
text-transform: uppercase;
}
.title h1 {
font-size: var(--text-blog-name-size);
margin: 0;
}
blockquote {
background-color: var(--quote-bg-color);
border-left: 4px solid var(--quote-border-color);
margin: var(--common-element-size) 0;
padding: var(--common-element-size-05x) var(--common-element-size);
font-style: italic;
position: relative;
}
blockquote:not(:first-child) {
margin-top: var(--common-element-size);
}
blockquote p {
margin: 0;
}
blockquote p:not(:first-child) {
margin-top: var(--common-element-size-05x);
}
/* Embeddings */
img, video, iframe, table, .highlight, .framed {
max-width: 100%;
}
img:not(:first-child), video:not(:first-child), iframe:not(:first-child), table:not(:first-child), .highlight:not(:first-child), .framed:not(:first-child) {
margin-top: var(--common-element-size);
}
.highlight {
font-size: calc(var(--text-font-size) * 0.8);
line-height: var(--text-line-height-scaleable);
padding: var(--common-element-size-05x);
background-color: var(--code-highlight-bg-color);
border-radius: 2px;
}
.highlight, .highlight pre {
word-break: break-word;
overflow-wrap: break-word;
hyphens: auto;
white-space: pre-wrap;
}
table {
display: table;
border-collapse: separate;
border-spacing: 0;
width: 100%;
border-bottom: 1.5px solid var(--table-border-color);
border-right: 1.5px solid var(--table-border-color);
}
th, td {
padding: var(--common-element-size-05x);
border-top: 1.5px solid var(--table-border-color);
border-left: 1.5px solid var(--table-border-color);
}
th {
background-color: var(--table-header-bg-color);
font-weight: bold;
}
td {
vertical-align: top;
background-color: transparent;
}
tr:nth-child(2n) td {
background-color: transparent;
}
th {
background-color: var(--table-header-bg-color) !important;
}
th:empty {
display: none;
}
th hr, td hr {
margin: var(--common-element-size-05x) 0;
}
/* Images */
img.small-image {
max-width: calc(var(--common-element-size) * 8);
}
img.tiny-image {
max-width: calc(var(--common-element-size) * 4);
}
/* Title */
a.title, a.title:hover {
display: block;
border: inherit;
background-color: inherit;
color: inherit;
}
/* Text highlights */
mark {
color: var(--text-color);
display: inline-block;
background-color: var(--infobox-background-color);
border: 1px solid var(--infobox-border-color);
padding: var(--common-element-size-05x);
margin: 0.05em;
}
/* Blog post list */
ul.blog-posts {
padding: 0;
list-style: none;
}
ul.blog-posts li {
display: table;
margin-top: var(--common-element-size-05x);
}
ul.blog-posts li span {
display: table-cell;
padding: 0;
min-width: calc(var(--common-element-size) * 8);
}
ul.blog-posts li a {
display: inline;
}
/* Large screen support */
@media (min-width: 1200px) {
nav {
position: fixed;
top: var(--common-element-size-2x);
left: var(--sidebar-left-margin);
width: var(--sidebar-width);
height: calc(100vh - (var(--common-element-size) * 4));
overflow-y: auto;
}
nav * {
display: block;
margin: 0;
padding: 0.25em;
border: none;
}
}
/* Printing support */
@media print {
tr, th, thead, h1, h2, h3 {
-webkit-column-break-inside: avoid;
break-inside: avoid-page;
page-break-inside: avoid;
}
h1::after, h2::after, h3::after {
content: "";
display: block;
height: 2cm;
margin-bottom: -2cm;
}
nav, #upvote-form small, .invisible-on-print {
display: none;
}
}
/* Compatibility */
body {
-webkit-text-size-adjust: 100%;
}