-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
115 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
<header> | ||
<h5> | ||
<a href="/">{{ site.title }}</a> | ||
</h5> | ||
<header class="site-header-post"> | ||
{% if page.url != "/" %} | ||
<button aria-checked="false" data-testid="add-button" class="menu button-clear" aria-label="收藏至音乐库" data-encore-id="buttonTertiary"> | ||
<a href="/"> | ||
<span aria-hidden="true" class="IconWrapper__Wrapper-sc-16usrgb-0 hYdsxw"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-left-short" viewBox="0 0 16 16"> | ||
<path fill-rule="evenodd" d="M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5a.5.5 0 0 1 .5.5"/> | ||
</svg> | ||
</span> | ||
</a> | ||
</button> | ||
{% endif %} | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
header { | ||
.menu { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
text-align: center; | ||
|
||
h5 { | ||
padding-top: 2vmin; | ||
font-size: 12px; | ||
font-weight: 800; | ||
// text-align: center; | ||
// text-transform: uppercase; | ||
// letter-spacing: 0.1em; | ||
margin: 0; | ||
} | ||
top: 2.7vmin; | ||
left: 2.8vmin; | ||
z-index: 2024; | ||
outline: none; | ||
-webkit-tap-highlight-color: transparent; | ||
width: 43px; | ||
padding: 10px; | ||
cursor: pointer; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: rgba(var(--black), 0.5); | ||
.button-clear { | ||
border: none; | ||
background-color: transparent; | ||
} | ||
|
||
&:active { | ||
color: inherit; | ||
} | ||
.bi-arrow-left-short { | ||
fill: currentColor; | ||
width: 40px; | ||
height: 40px; | ||
padding: 4px; | ||
border-radius: 50%; | ||
color: #666; | ||
background-color: rgba(220, 220, 220, 0.2); | ||
|
||
&:hover { | ||
color: rgba(var(--black), 0.75) | ||
} | ||
&:hover { | ||
transform: scale(1.04); | ||
color: #333; | ||
background-color: rgba(220, 220, 220, 0.4); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,36 @@ | ||
div.highlight { | ||
max-width: calc(var(--post-max-width) + 80px); | ||
margin: 0 auto 2em; | ||
padding: 2em 0; | ||
border-radius: 1em; | ||
line-height: 1.3em; | ||
background-color: #f4f4f6; | ||
color: rgb(var(--darkgray)); | ||
overflow: auto; | ||
border-radius: var(--rounded); | ||
padding: 2.4em 1em 2.6em; | ||
width: 100%; | ||
max-width: 820px; | ||
overflow-x: auto; | ||
margin-right: auto; | ||
margin-bottom: 2em; | ||
margin-left: auto; | ||
line-height: 1.3em; | ||
box-sizing: border-box; | ||
position: relative; | ||
font-family: var(--mono-font); | ||
|
||
> pre { | ||
max-width: var(--post-max-width); | ||
padding: 0 var(--gutter-x); | ||
margin: 0 auto; | ||
max-width: 700px; | ||
font-size: 14px; | ||
background-color: inherit; | ||
} | ||
|
||
.c, | ||
.c1 { | ||
color: gray; | ||
margin: 0 auto; | ||
} | ||
} | ||
|
||
code { | ||
font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;; | ||
font-family: var(--mono-font) | ||
} | ||
|
||
div.language-shell .nv { | ||
div.language-console .gp { | ||
-webkit-user-select: none; | ||
user-select: none; | ||
} | ||
|
||
code.highlighter-rouge { | ||
font-size: 14px; | ||
padding: 0.3em 0.5em; | ||
border-radius: 7px; | ||
background-color: #eee; | ||
} | ||
|
||
@media (max-width: 1000px) { | ||
div.highlight { | ||
max-width: var(--post-max-width);; | ||
} | ||
} | ||
|
||
@media (max-width: 780px) { | ||
div.highlight { | ||
max-width: 100%; | ||
border-radius: 0; | ||
position: unset; | ||
} | ||
} | ||
|
||
// .language-shell div.highlight::before { | ||
// content: "Shell" | ||
// } | ||
|
||
// .language-css div.highlight::before { | ||
// content: "CSS" | ||
// } | ||
|
||
// .language-html div.highlight::before { | ||
// content: "HTML" | ||
// } | ||
|
||
// .language-javascript div.highlight::before { | ||
// content: "JavaScript" | ||
// } | ||
|
||
// div.highlight { | ||
// position: relative; | ||
// } | ||
|
||
// div.highlight::before { | ||
// z-index: 100; | ||
// position: absolute; | ||
// content: ""; | ||
// top: 10px; | ||
// right: 10px; | ||
// font-size: 13px; | ||
// font-weight: 400; | ||
// background-color: #ccc; | ||
// padding: 4px 10px; | ||
// border-radius: 9px; | ||
// letter-spacing: 0.04em; | ||
// color: #fff; | ||
// opacity: 0; | ||
// transition: opacity 0.2s ease-out; | ||
// } | ||
|
||
// div.highlight:hover::before { | ||
// opacity: 1; | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters