Skip to content

Commit

Permalink
迁移Volantis语法
Browse files Browse the repository at this point in the history
  • Loading branch information
MCSeekeri committed Oct 20, 2023
1 parent eb4f240 commit 715197b
Show file tree
Hide file tree
Showing 23 changed files with 175 additions and 311 deletions.
2 changes: 1 addition & 1 deletion assets/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseUrl": ".",
"paths": {
"*": [
"../../../.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!m!c!seekeri/hugo-theme-stack@v1.0.0/assets/*"
"../../hugo-theme-stack/assets/*"
]
}
}
Expand Down
350 changes: 107 additions & 243 deletions assets/scss/custom.scss
Original file line number Diff line number Diff line change
@@ -1,246 +1,3 @@
:root {
--vpc-gray-1: #dddde3;
--vpc-gray-2: #e4e4e9;
--vpc-gray-3: #ebebef;
--vpc-gray-soft: rgba(142, 150, 170, .14);
--vpc-indigo-1: #3451b2;
--vpc-indigo-2: #3a5ccc;
--vpc-indigo-3: #5672cd;
--vpc-indigo-soft: rgba(100, 108, 255, .14);
--vpc-green-1: #18794e;
--vpc-green-2: #299764;
--vpc-green-3: #30a46c;
--vpc-green-soft: rgba(16, 185, 129, .14);
--vpc-yellow-1: #915930;
--vpc-yellow-2: #946300;
--vpc-yellow-3: #9f6a00;
--vpc-yellow-soft: rgba(234, 179, 8, .14);
--vpc-red-1: #b8272c;
--vpc-red-2: #d5393e;
--vpc-red-3: #e0575b;
--vpc-red-soft: rgba(244, 63, 94, .14);
--vpc-sponsor: #db2777
}
:root {
--card-text-color-main: var(--card-text-color-main)
--card-text-color-main: var(--card-text-color-main)
--card-text-color-main: var(--card-text-color-main)
}
:root {
--vpc-default-1: var(--vpc-gray-1);
--vpc-default-2: var(--vpc-gray-2);
--vpc-default-3: var(--vpc-gray-3);
--vpc-default-soft: var(--vpc-gray-soft);
--vpc-b-1: var(--vpc-indigo-1);
--vpc-b-2: var(--vpc-indigo-2);
--vpc-b-3: var(--vpc-indigo-3);
--vpc-b-soft: var(--vpc-indigo-soft);
--vpc-b: var(--vpc-b-1);
--vpc-tip-1: var(--vpc-b-1);
--vpc-tip-2: var(--vpc-b-2);
--vpc-tip-3: var(--vpc-b-3);
--vpc-tip-soft: var(--vpc-b-soft);
--vpc-warning-1: var(--vpc-yellow-1);
--vpc-warning-2: var(--vpc-yellow-2);
--vpc-warning-3: var(--vpc-yellow-3);
--vpc-warning-soft: var(--vpc-yellow-soft);
--vpc-danger-1: var(--vpc-red-1);
--vpc-danger-2: var(--vpc-red-2);
--vpc-danger-3: var(--vpc-red-3);
--vpc-danger-soft: var(--vpc-red-soft)
}

:root {
--vpcb-font-size: 14px;
--vpcb-code-font-size: 13px;
--vpcb-info-border: transparent;
--vpcb-info-text: var(--card-text-color-main);
--vpcb-info-bg: var(--vpc-default-soft);
--vpcb-info-code-bg: var(--vpc-default-soft);
--vpcb-tip-border: transparent;
--vpcb-tip-text: var(--card-text-color-main);
--vpcb-tip-bg: var(--vpc-b-soft);
--vpcb-tip-code-bg: var(--vpc-b-soft);
--vpcb-warning-border: transparent;
--vpcb-warning-text: var(--card-text-color-main);
--vpcb-warning-bg: var(--vpc-warning-soft);
--vpcb-warning-code-bg: var(--vpc-warning-soft);
--vpcb-danger-border: transparent;
--vpcb-danger-text: var(--card-text-color-main);
--vpcb-danger-bg: var(--vpc-danger-soft);
--vpcb-danger-code-bg: var(--vpc-danger-soft);
--vpcb-details-border: var(--vpcb-info-border);
--vpcb-details-text: var(--vpcb-info-text);
--vpcb-details-bg: var(--vpcb-info-bg);
--vpcb-details-code-bg: var(--vpcb-info-code-bg)
}
.custom-block {
border: 1px solid transparent;
border-radius: 8px;
padding: 0px 16px 8px;
line-height: 24px;
font-size: var(--vpcb-font-size);
color: var(--card-text-color-main)

}

.custom-block.info {
border-color: var(--vpcb-info-border);
color: var(--vpcb-info-text);
background-color: var(--vpcb-info-bg)
}

.custom-block.info a,.custom-block.info code {
color: var(--vpc-b-1)
}

.custom-block.info a:hover {
color: var(--vpc-b-2)
}

.custom-block.info code {
background-color: var(--vpcb-info-code-bg)
}

.custom-block.tip {
border-color: var(--vpcb-tip-border);
color: var(--vpcb-tip-text);
background-color: var(--vpcb-tip-bg)
}

.custom-block.tip a,.custom-block.tip code {
color: var(--vpc-b-1)
}

.custom-block.tip a:hover {
color: var(--vpc-b-2)
}

.custom-block.tip code {
background-color: var(--vpcb-tip-code-bg)
}

.custom-block.warning {
border-color: var(--vpcb-warning-border);
color: var(--vpcb-warning-text);
background-color: var(--vpcb-warning-bg)
}

.custom-block.warning a,.custom-block.warning code {
color: var(--vpc-warning-1)
}

.custom-block.warning a:hover {
color: var(--vpc-warning-2)
}

.custom-block.warning code {
background-color: var(--vpcb-warning-code-bg)
}

.custom-block.danger {
border-color: var(--vpcb-danger-border);
color: var(--vpcb-danger-text);
background-color: var(--vpcb-danger-bg)
}

.custom-block.danger a,.custom-block.danger code {
color: var(--vpc-danger-1)
}

.custom-block.danger a:hover {
color: var(--vpc-danger-2)
}

.custom-block.danger code {
background-color: var(--vpcb-danger-code-bg)
}

.custom-block.details {
border-color: var(--vpcb-details-border);
color: var(--vpcb-details-text);
background-color: var(--vpcb-details-bg)

}

.custom-block.details a {
color: var(--vpc-b-1)
}

.custom-block.details a:hover {
color: var(--vpc-b-2)
}

.custom-block.details code {
background-color: var(--vpcb-details-code-bg)
}

.custom-block-title {
font-weight: 600
}

.custom-block p+p {
margin: 8px 0
}

.custom-block.details summary {
margin: 0 0 8px;
font-weight: 700;
cursor: pointer
}

.custom-block.details summary+p {
margin: 8px 0
}

.custom-block a {
color: inherit;
font-weight: 600;
text-decoration: underline;
text-underline-offset: 2px;
transition: opacity .25s
}

.custom-block a:hover {
opacity: .75
}

.custom-block code {
font-size: var(--vpcb-code-font-size)
}

.custom-block.custom-block th,.custom-block.custom-block blockquote>p {
font-size: var(--vpcb-font-size);
color: inherit
}

.vp-doc .custom-block {
margin: 16px 0
}

.vp-doc .custom-block p {
margin: 8px 0;
line-height: 24px
}

.vp-doc .custom-block p:first-child {
margin: 0
}

.vp-doc .custom-block div[class*=language-] {
margin: 8px 0;
border-radius: 8px
}

.vp-doc .custom-block div[class*=language-] code {
font-weight: 400;
background-color: transparent
}

.vp-doc .custom-block .vp-code-group .tabs {
margin: 0;
border-radius: 8px 8px 0 0
}

/* 左侧竖条样式 */
div.timenode {
Expand Down Expand Up @@ -346,3 +103,110 @@ div.timenode .body {
}



div.note {
position: relative;
/* margin-top:1em; */
margin-bottom: 1em;
padding: 4px;
padding-left: calc(16px + 16px);
border-radius: 62px;
-webkit-border-radius: 4px;
/* font-size:.9375rem; */
background: #f6f6f6;
border-left: 4px solid #3dd9b6
}

div.note h2,div.note h3,div.note h4,div.note h5,div.note h6 {
margin-top: 3px;
margin-bottom: 0;
padding-top: 0!important;
border-bottom: initial
}

div.note blockquote,div.note img,div.note ol,div.note p,div.note ul {
margin-top: .5em;
margin-bottom: .5em
}

div.note .link-card {
background: var(--color-card)
}

div.note::before {
position: absolute;
top: calc(50% - 24px * .5);
left: 4px;
width: 24px;
height: 24px;
text-align: center;
font-weight: 600;
line-height: 24px;
vertical-align: middle;
font-family: 'Font Awesome 6 Pro'
}

div.note::before {
color: #3dd9b6;
content: '\f054'
}

div.note::before {
content: '\f054'
}

div.note.quote {
background: #e8f4fd;
border-color: #2196f3
}

div.note.quote::before {
color: #2196f3;
content: '\f10d'
}

div.note.info {
background: #ebfbf7;
/* border-color:#3dd9b6; */
}

div.note.info::before {
color: #3dd9b6;
content: '\f129'
}

div.note.done,div.note.success {
background: #ebf9ed;
border-color: #3dc550
}

div.note.done::before,div.note.success::before {
color: #3dc550;
content: '\f00c'
}

div.note.warning {
background: #fff8e9;
border-color: #ffbd2b
}

div.note.warning::before {
color: #ffbd2b;
content: '\f12a'
}

div.note.danger,div.note.error {
background: #feefee;
border-color: #fe5f58
}

div.note.danger::before,div.note.error::before {
color: #fe5f58;
content: '\f7b9'
}
.article-content emp {
border-bottom: 4px dotted #fe5f58;
}
.article-page .main-article .article-content a{
color :#2092ec;
}
2 changes: 1 addition & 1 deletion content/post/同人/命运新生的碑文.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ references:

墓碑静静地望着那四个融入夜色的坚毅背影。
死寂的墓园中吹来一阵生息的风。
<details class="details custom-block"><summary>原作者后记</summary><p>
<details class="note details"><summary>原作者后记</summary><p>
那么这里是惯例的后记:
抱歉拖了这么久,明明 728 就开始动笔却写了一个多月,没想到和文中凶真一样的纠结中吭哧了这么久(不对,或许应该反过来才对?)
这里联动的是妄想科学 ADV 的混沌子(哼哼,这次我学乖了不打英文,我晓得你会河蟹的度娘!),有稍微的破梗嫌疑,不过我已经最大程度地控制了情报量……嗯……
Expand Down
2 changes: 1 addition & 1 deletion content/post/同人/地方错置的跃时者.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ SERN 入侵成功,屏幕上显示出了 D-mail 的内容。
对方的眉毛颤了一下。
「错了,」她笑得更灿烂了,「是凤凰院凶真。」

<details class="details custom-block"><summary>原版的跃时者</summary><p>
<details class="note details"><summary>原版的跃时者</summary><p>

“哈啊?说什么蠢话呢妳?”
“喂喂,这跟说好的不一样啊!什么‘这可是老子发明的 DA☆ZE’!?”
Expand Down
2 changes: 1 addition & 1 deletion content/post/官方/SG官方设定集.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ slug: cb10de70
date: 2011-09-16 00:00:00
image:
---
<details class="details custom-block"><summary>作品相关 </summary>
<details class="note details"><summary>作品相关 </summary>
Steins;Gate 公式设定集 Question & Answer
回答:5pb.(松原达也氏、林直考氏)
「note」是此书制作人员的考察和备注,并非 5pb.的官方回答。
Expand Down
Loading

0 comments on commit 715197b

Please sign in to comment.