470 lines
8.0 KiB
CSS
470 lines
8.0 KiB
CSS
:root {
|
|
--theme-color: #e50914;
|
|
--theme-color-dark: #b20710;
|
|
|
|
/* --theme-color: #39d40e;
|
|
--theme-color-dark: #8fd795; */
|
|
|
|
--text-color-base: #2e2e46;
|
|
--text-color-secondary: #646473;
|
|
--text-color-tertiary: #81818e;
|
|
}
|
|
|
|
body {
|
|
font-size: 100%;
|
|
line-height: 1.5;
|
|
color: var(--text-color-base);
|
|
}
|
|
|
|
* {
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
a {
|
|
transition: all 0.3s linear;
|
|
}
|
|
|
|
.github-corner {
|
|
z-index: 5;
|
|
}
|
|
|
|
/****** Cover Page ******/
|
|
section.cover {
|
|
padding-bottom: 112px; /* fixed footer (liu) height */
|
|
height: auto;
|
|
min-height: 100vh;
|
|
/**
|
|
* Intended to defeat this inline style on initial boot that flashes when on page load:
|
|
* https://github.com/docsifyjs/docsify/blob/8352a1e489abc2a7b6361fe02d696e1891a031cd/src/core/render/tpl.js#L56-L70
|
|
*/
|
|
background: #fff !important;
|
|
}
|
|
|
|
section.cover .cover-main {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
margin: 0;
|
|
padding: 32px 16px 0;
|
|
}
|
|
|
|
section.cover img {
|
|
width: 170px;
|
|
}
|
|
|
|
section.cover h1 {
|
|
margin: 0.625rem 0 1rem;
|
|
}
|
|
|
|
section.cover blockquote,
|
|
section.cover blockquote p {
|
|
margin: 0;
|
|
}
|
|
|
|
section.cover ul {
|
|
font-size: 1.25rem;
|
|
line-height: 2rem;
|
|
display: grid;
|
|
text-align: left;
|
|
grid-column-gap: 16px;
|
|
grid-row-gap: 20px;
|
|
grid-template-columns: repeat(2, 50%);
|
|
list-style: none;
|
|
max-width: unset;
|
|
margin: 1.5em 0;
|
|
}
|
|
|
|
section.cover ul li {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
section.cover.show ~ .sidebar,
|
|
section.cover.show ~ .sidebar-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.cover-main .liu-logo {
|
|
position: fixed;
|
|
display: flex;
|
|
align-items: center;
|
|
background: #ffffff;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
padding: 40px;
|
|
z-index: 5;
|
|
}
|
|
|
|
.cover-main .liu-logo .logo {
|
|
width: 125px;
|
|
height: 32px;
|
|
background: url('/_media/Logo_Liu.png');
|
|
background-size: 100%;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
}
|
|
|
|
.cover-main .buttons {
|
|
width: 100%;
|
|
}
|
|
|
|
.cover-main .buttons a {
|
|
font-weight: 700;
|
|
position: relative;
|
|
display: inline-block;
|
|
padding: 12px 25px;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
line-height: 18px;
|
|
color: #221f1f;
|
|
background: #fff;
|
|
outline: none;
|
|
border: none;
|
|
background-color: #fff;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
cursor: pointer;
|
|
margin: 0 1rem;
|
|
color: var(--theme-color);
|
|
overflow: hidden;
|
|
transition: color 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
vertical-align: baseline;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.cover-main .buttons a:before,
|
|
.cover-main .buttons a:after {
|
|
content: '';
|
|
display: block;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
border: 2px solid var(--theme-color);
|
|
box-sizing: border-box;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.cover-main .buttons a:after {
|
|
background: var(--theme-color);
|
|
transform: translateX(-101%);
|
|
transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
}
|
|
|
|
.cover-main .buttons a:hover {
|
|
color: white;
|
|
box-shadow: 0 5px 16px rgba(229, 9, 20, 0.3);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.cover-main .buttons a:hover:after {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.cover-main .buttons a span {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
@media (max-width: 850px) {
|
|
section.cover ul {
|
|
grid-template-columns: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
section.cover ul li {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 450px) {
|
|
section.cover ul li {
|
|
white-space: normal;
|
|
}
|
|
|
|
.cover-main .buttons a {
|
|
width: 100%;
|
|
margin: 0.2rem 0;
|
|
}
|
|
}
|
|
|
|
/****** Sidebar ******/
|
|
.sidebar .app-name-link img {
|
|
height: 100px;
|
|
}
|
|
|
|
.sidebar ul li a {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.sidebar ul li a:hover {
|
|
color: var(--theme-color);
|
|
}
|
|
|
|
.app-sub-sidebar li:before {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar .search .clear-button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sidebar-nav ul li p {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.sidebar-nav ul li p a {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/****** Sidebar Toggle ******/
|
|
.sidebar-toggle {
|
|
cursor: pointer;
|
|
}
|
|
|
|
body .sidebar-toggle {
|
|
background: none;
|
|
top: 1.5rem;
|
|
left: calc(300px + 1.5rem);
|
|
cursor: pointer;
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
padding: 0;
|
|
transition: left 0.25s ease-out;
|
|
}
|
|
|
|
body .sidebar-toggle span {
|
|
background-color: var(--theme-color);
|
|
height: 0.2rem;
|
|
width: 1.5rem;
|
|
position: absolute;
|
|
left: 0;
|
|
margin: 0;
|
|
transform-origin: 0;
|
|
border-radius: 1px;
|
|
}
|
|
|
|
body.close .sidebar-toggle {
|
|
transition: left 0.25s ease-out;
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
left: 1.5rem;
|
|
}
|
|
|
|
body.close .sidebar-toggle span {
|
|
transform-origin: center;
|
|
}
|
|
|
|
body .sidebar-toggle span:nth-child(1) {
|
|
top: 0;
|
|
}
|
|
body .sidebar-toggle span:nth-child(2) {
|
|
top: 0.5rem;
|
|
}
|
|
body .sidebar-toggle span:nth-child(3) {
|
|
top: 1rem;
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
opacity: 0.8;
|
|
}
|
|
.sidebar-toggle .sidebar-toggle-button:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
body .sidebar-toggle {
|
|
left: 1rem;
|
|
}
|
|
|
|
body.close .sidebar-toggle {
|
|
left: calc(300px + 1.5rem);
|
|
}
|
|
}
|
|
|
|
/****** Markdown General ******/
|
|
.markdown-section {
|
|
padding: 30px 30px 40px;
|
|
}
|
|
|
|
.markdown-section a {
|
|
text-decoration: none;
|
|
border-bottom: 0.1rem solid var(--theme-color);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.markdown-section a:hover {
|
|
border-color: var(--theme-color-dark);
|
|
color: var(--theme-color-dark);
|
|
}
|
|
|
|
.markdown-section a.anchor {
|
|
border: none;
|
|
}
|
|
|
|
/****** Markdown Table ******/
|
|
.markdown-section table {
|
|
display: table;
|
|
}
|
|
|
|
.markdown-section table tr {
|
|
border-width: 0.15rem 0;
|
|
border-style: solid;
|
|
border-color: #f1f1f2;
|
|
}
|
|
|
|
.markdown-section table thead tr {
|
|
text-transform: uppercase;
|
|
font-size: 90%;
|
|
border-top: none;
|
|
}
|
|
|
|
.markdown-section table tbody tr:last-of-type {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.markdown-section table tr:nth-child(2n) {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.markdown-section table td,
|
|
.markdown-section table th {
|
|
border: none;
|
|
padding: 1.1rem 0.5rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.markdown-section table td p {
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-section blockquote {
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.markdown-section blockquote > p {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.markdown-section em,
|
|
.markdown-section blockquote {
|
|
color: var(--text-color-tertiary);
|
|
}
|
|
|
|
/****** CODE HIGHLIGHTING ******/
|
|
.token.string {
|
|
color: #42b983;
|
|
}
|
|
|
|
.token.boolean,
|
|
.token.number {
|
|
color: var(--theme-color);
|
|
}
|
|
|
|
.lang-bash .token.function,
|
|
.lang-json .token.property {
|
|
color: #e96900;
|
|
}
|
|
|
|
/****** COPY TO CLIPBOARD ******/
|
|
.docsify-copy-code-button {
|
|
font-size: 0.7em !important;
|
|
}
|
|
|
|
/****** FOOTER *******/
|
|
.footer {
|
|
color: #747a83;
|
|
position: absolute;
|
|
bottom: -62%;
|
|
z-index: 10;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.footer > a {
|
|
color: #747a83;
|
|
}
|
|
|
|
.sidebar-logo {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 32px 0;
|
|
}
|
|
|
|
.sidebar-logo > .app-sub-sidebar {
|
|
display: none;
|
|
}
|
|
|
|
.logo-title {
|
|
font-size: 32px;
|
|
}
|
|
|
|
.logo-name {
|
|
background-image: -webkit-linear-gradient(
|
|
left,
|
|
#3498db,
|
|
#f47920 10%,
|
|
#d71345 20%,
|
|
#f7acbc 30%,
|
|
#ffd400 40%,
|
|
#3498db 50%,
|
|
#f47920 60%,
|
|
#d71345 70%,
|
|
#f7acbc 80%,
|
|
#ffd400 90%,
|
|
#3498db
|
|
);
|
|
color: transparent;
|
|
-webkit-background-clip: text;
|
|
background-size: 200% 100%;
|
|
animation: logo-name 5s infinite linear;
|
|
font-size: 100px;
|
|
font-family: fantasy;
|
|
}
|
|
|
|
@keyframes logo-name {
|
|
0% {
|
|
background-position: 0 0;
|
|
}
|
|
|
|
100% {
|
|
background-position: -100% 0;
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'icomoon';
|
|
src: url('../fonts/icomoon.eot?9wlqx1');
|
|
src: url('../fonts/icomoon.eot?9wlqx1#iefix') format('embedded-opentype'),
|
|
url('../fonts/icomoon.ttf?9wlqx1') format('truetype'),
|
|
url('../fonts/icomoon.woff?9wlqx1') format('woff'),
|
|
url('../fonts/icomoon.svg?9wlqx1#icomoon') format('svg');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-display: block;
|
|
}
|
|
|
|
[class^='icon-'],
|
|
[class*=' icon-'] {
|
|
/* use !important to prevent issues with browser extensions that change fonts */
|
|
font-family: 'icomoon' !important;
|
|
speak: never;
|
|
font-style: normal;
|
|
font-weight: normal;
|
|
font-variant: normal;
|
|
text-transform: none;
|
|
line-height: 1;
|
|
|
|
/* Better Font Rendering =========== */
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
.icon-logo:before {
|
|
content: '\e900';
|
|
}
|