-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
0 parents
commit 9963c7e
Showing
15 changed files
with
2,415 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
markdown-style pre > .copied, | ||
markdown-style [class*='language-'] .copied { | ||
display: flex; | ||
position: absolute; | ||
cursor: pointer; | ||
color: #a5afbb; | ||
top: 6px; | ||
right: 6px; | ||
border-radius: 5px; | ||
background: #82828226; | ||
padding: 6px; | ||
font-size: 12px; | ||
transition: all 0.3s; | ||
z-index: 10; | ||
} | ||
markdown-style pre > .copied:not(.active), | ||
markdown-style [class*='language-'] .copied:not(.active) { | ||
visibility: hidden; | ||
} | ||
markdown-style pre:hover > .copied, | ||
markdown-style [class*='language-']:hover .copied { | ||
visibility: visible; | ||
} | ||
markdown-style pre:hover > .copied:hover, | ||
markdown-style [class*='language-']:hover .copied:hover { | ||
background: #4caf50; | ||
color: #fff; | ||
} | ||
markdown-style [class*='language-']:hover .copied:active, | ||
markdown-style pre > .copied.active { | ||
background: #2e9b33; | ||
color: #fff; | ||
} | ||
markdown-style pre > .copied .octicon-copy, | ||
markdown-style [class*='language-'] .copied .octicon-copy { | ||
display: block; | ||
} | ||
markdown-style pre > .copied .octicon-check, | ||
markdown-style [class*='language-'] .copied .octicon-check { | ||
display: none; | ||
} | ||
markdown-style pre > .active .octicon-copy, | ||
markdown-style [class*='language-'] .active .octicon-copy { | ||
display: none; | ||
} | ||
markdown-style pre > .active .octicon-check, | ||
markdown-style [class*='language-'] .active .octicon-check { | ||
display: block; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.idoc-demo-warpper { | ||
overflow: hidden; | ||
min-height: 60px; | ||
margin-bottom: 16px; | ||
} | ||
|
||
div.idoc-demo-warpper { | ||
position: relative; | ||
background-color: var(--color-canvas-subtle); | ||
border-radius: 6px; | ||
} | ||
|
||
div.idoc-demo-warpper > pre { | ||
padding: 16px; | ||
overflow: auto; | ||
display: block; | ||
margin-bottom: 0 !important; | ||
height: 100%; | ||
} | ||
|
||
div.idoc-demo-previw { | ||
padding: 10px; | ||
font-size: initial; | ||
line-height: initial; | ||
line-height: initial; | ||
font-family: initial; | ||
overflow: auto; | ||
} | ||
.idoc-demo-previw { | ||
border: 0; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
width: 100%; | ||
background-color: var(--color-canvas-subtle); | ||
border: 1px solid var(--color-border-default); | ||
border-radius: 6px; | ||
z-index: 9; | ||
transition: left 0.3s cubic-bezier(1, 0, 1, 0); | ||
} | ||
|
||
.idoc-demo-previw.ishiden { | ||
left: -100%; | ||
} | ||
button.idoc-toggle-previw { | ||
user-select: none; | ||
position: absolute; | ||
z-index: 10; | ||
border: transparent; | ||
background-color: var(--color-border-default); | ||
cursor: pointer; | ||
font-size: 12px; | ||
padding: 2px 5px; | ||
border-radius: 3px; | ||
bottom: 5px; | ||
right: 5px; | ||
} | ||
button.idoc-toggle-previw:hover { | ||
color: var(--color-theme-text); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,253 @@ | ||
[data-color-mode*='dark'], | ||
[data-color-mode*='dark'] body { | ||
--color-header-bg: #3a3a3a8f; | ||
--color-header-border: #21262d; | ||
--color-hover: #ffffff1c; | ||
--color-hoc-bg: #fffefe08; | ||
} | ||
|
||
[data-color-mode*='light'], | ||
[data-color-mode*='light'] body { | ||
--color-header-bg: #ffffff52; | ||
--color-header-border: #d3d3d3; | ||
--color-hover: #0000001a; | ||
--color-hoc-bg: #00000008; | ||
} | ||
|
||
*, | ||
:after, | ||
:before { | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
scroll-behavior: smooth; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
font-size: 14px; | ||
font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: var(--color-accent-fg); | ||
} | ||
a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.warpper { | ||
max-width: 960px; | ||
margin: 0 auto; | ||
} | ||
|
||
markdown-style { | ||
min-height: 60vh; | ||
grid-area: main; | ||
margin-bottom: 18px !important; | ||
} | ||
markdown-style img { | ||
background-color: transparent !important; | ||
} | ||
|
||
.warpper-content { | ||
padding: 0 20px; | ||
padding-top: 32px; | ||
margin-top: 48px; | ||
display: grid; | ||
grid-template-columns: minmax(0, 3.5fr) minmax(0, 15rem); | ||
grid-template-areas: 'main toc'; | ||
grid-gap: 18px; | ||
gap: 18px; | ||
} | ||
.warpper-content.sidebar { | ||
grid-template-columns: 180px minmax(0, 3.5fr) minmax(0, 15rem); | ||
grid-template-areas: 'sidebar main toc'; | ||
} | ||
.warpper-content.notocs { | ||
grid-template-columns: minmax(0, 3.5fr); | ||
grid-template-areas: 'main'; | ||
} | ||
.warpper-content.sidebar.notocs { | ||
grid-template-columns: 180px minmax(0, 3.5fr); | ||
grid-template-areas: 'sidebar main'; | ||
} | ||
|
||
nav.tocs .is-position-fixed { | ||
top: 58px !important; | ||
max-height: calc(100% - 68px); | ||
} | ||
nav.tocs { | ||
position: relative; | ||
grid-area: toc; | ||
} | ||
nav.tocs p { | ||
color: var(--color-fg-muted); | ||
margin-bottom: 0; | ||
} | ||
nav.tocs a { | ||
color: var(--color-fg-muted); | ||
display: block; | ||
padding: 0 5px; | ||
} | ||
nav.tocs .inner { | ||
padding: 10px 10px 10px 10px; | ||
background-color: var(--color-hoc-bg); | ||
max-width: 240px; | ||
width: 240px; | ||
} | ||
|
||
a.gototop { | ||
position: fixed; | ||
bottom: 10px; | ||
right: 10px; | ||
display: inline-block; | ||
background: var(--color-theme-text); | ||
padding: 5px; | ||
border-radius: 5px; | ||
z-index: 9999; | ||
color: var(--color-theme-bg); | ||
font-size: 10px; | ||
opacity: 0; | ||
transition: all 0.3s; | ||
} | ||
a.gototop:hover { | ||
opacity: 1; | ||
} | ||
|
||
.header { | ||
position: fixed; | ||
width: 100%; | ||
background: var(--color-header-bg); | ||
backdrop-filter: saturate(180%) blur(0.4rem); | ||
background-color: var(--color-header-bg); | ||
border-bottom: 1px solid var(--color-header-border); | ||
z-index: 99; | ||
top: 0; | ||
} | ||
|
||
.header .inner { | ||
display: flex; | ||
justify-content: space-between; | ||
min-height: 45px; | ||
padding-left: 10px; | ||
padding-right: 10px; | ||
} | ||
.header .logo { | ||
font-weight: bold; | ||
display: flex; | ||
color: var(--color-theme-text); | ||
align-items: center; | ||
} | ||
.header .logo:hover { | ||
text-decoration: none; | ||
} | ||
.header .logo .title { | ||
padding-left: 8px; | ||
display: flex; | ||
} | ||
.header .logo .title sup { | ||
margin-top: -5px; | ||
font-weight: normal; | ||
color: var(--color-fg-subtle); | ||
} | ||
.header .logo img, | ||
.header .logo svg { | ||
height: 26px; | ||
display: block; | ||
} | ||
|
||
.header .content { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.header .menu { | ||
padding: 0; | ||
margin: 0; | ||
display: flex; | ||
list-style: none; | ||
padding-right: 10px; | ||
} | ||
.header .menu li { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.header a { | ||
color: var(--color-theme-text); | ||
font-weight: bold; | ||
} | ||
.header .menu a { | ||
padding: 3px 7px; | ||
font-size: 14px; | ||
border-radius: 2px; | ||
} | ||
.header .menu a.active { | ||
background-color: var(--color-hover); | ||
} | ||
|
||
.header .github { | ||
width: 18px; | ||
height: 18px; | ||
margin-right: 8px; | ||
} | ||
|
||
section.article-footer { | ||
display: flex; | ||
align-items: center; | ||
font-size: 14px; | ||
justify-content: space-between; | ||
margin-top: 12px; | ||
} | ||
|
||
section.article-footer a { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
section.article-footer .edit-button { | ||
padding-right: 8px; | ||
} | ||
section.article-footer .edit-button svg { | ||
height: 15px; | ||
margin-right: 6px; | ||
} | ||
|
||
section.article-footer .atime { | ||
font-size: 12px; | ||
color: var(--color-fg-muted); | ||
margin-top: 2px; | ||
} | ||
|
||
.previous { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
grid-gap: 12px; | ||
gap: 12px; | ||
background-color: var(--color-canvas-subtle); | ||
padding: 10px; | ||
font-size: 14px; | ||
border-radius: 5px; | ||
margin-top: 26px; | ||
} | ||
.previous a { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.previous a.prev svg { | ||
margin-right: 3px; | ||
} | ||
.previous a.next svg { | ||
margin-left: 3px; | ||
} | ||
|
||
.footer { | ||
text-align: center; | ||
border-top: 1px solid var(--color-header-border); | ||
padding: 32px 0 110px 0; | ||
color: var(--color-fg-muted); | ||
font-size: 14px; | ||
} |
Oops, something went wrong.