mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
375 lines
12 KiB
SCSS
375 lines
12 KiB
SCSS
// ==============================
|
|
// Variables
|
|
// ==============================
|
|
|
|
// ========== Global ========== //
|
|
// Font and Line Height
|
|
$global-font-family: system-ui, -apple-system, BlinkMacSystemFont, PingFang SC, Microsoft YaHei UI, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, Helvetica, Arial, sans-serif !default;
|
|
$global-font-size: 16px;
|
|
$global-font-weight: 400;
|
|
$global-line-height: 1.5rem;
|
|
|
|
// Color of the background
|
|
$global-background-color: #fff !default;
|
|
$global-background-color-dark: #292a2d !default;
|
|
|
|
// Color of the text
|
|
$global-font-color: #161209 !default;
|
|
$global-font-color-dark: #a9a9b3 !default;
|
|
|
|
// Color of the secondary text
|
|
$global-font-secondary-color: #a9a9b3 !default;
|
|
$global-font-secondary-color-dark: #5d5d5f !default;
|
|
|
|
// Color of the link
|
|
$global-link-color: #161209 !default;
|
|
$global-link-color-dark: #a9a9b3 !default;
|
|
|
|
// Color of the hover link
|
|
$global-link-hover-color: #2d96bd !default;
|
|
$global-link-hover-color-dark: #fff !default;
|
|
|
|
// Color of the border
|
|
$global-border-color: #f0f0f0 !default;
|
|
$global-border-color-dark: #363636 !default;
|
|
// ========== Global ========== //
|
|
|
|
// ========== Scrollbar ========== //
|
|
// Color of the scrollbar
|
|
$scrollbar-color: #87878d !default;
|
|
|
|
// Color of the hover scrollbar
|
|
$scrollbar-hover-color: #a9a9b3 !default;
|
|
|
|
// radius of the scrollbar
|
|
$scrollbar-radius: 5px !default;
|
|
// ========== Scrollbar ========== //
|
|
|
|
// ========== Selection ========== //
|
|
// Color of the selected text
|
|
$selection-color: rgba(53, 166, 247, 0.25) !default;
|
|
$selection-color-dark: rgba(50, 112, 194, 0.4) !default;
|
|
// ========== Selection ========== //
|
|
|
|
// ========== Header ========== //
|
|
// Height of the header
|
|
$header-height: 3.5rem !default;
|
|
|
|
// Color of the header background
|
|
$header-background-color: #f8f8f8 !default;
|
|
$header-background-color-dark: #252627 !default;
|
|
|
|
// Font style of the header title
|
|
$header-title-font-family: $global-font-family !default;
|
|
$header-title-font-size: 1.5rem !default;
|
|
|
|
// Color of the hover header item
|
|
$header-hover-color: #161209 !default;
|
|
$header-hover-color-dark: #fff !default;
|
|
|
|
// Color of the search background
|
|
$search-background-color: #e9e9e9 !default;
|
|
$search-background-color-dark: #363636 !default;
|
|
// ========== Header ========== //
|
|
|
|
// ========== Single Content ========== //
|
|
// Font size of the TOC
|
|
$toc-title-font-size: 1.2rem !default;
|
|
$toc-content-font-size: 1rem !default;
|
|
|
|
// Color of the single link
|
|
$single-link-color: #2d96bd !default;
|
|
$single-link-color-dark: #55bde2 !default;
|
|
|
|
// Color of the hover single link
|
|
$single-link-hover-color: #ef3982 !default;
|
|
$single-link-hover-color-dark: #bdebfc !default;
|
|
|
|
// Color of the table background
|
|
$table-background-color: #fff !default;
|
|
$table-background-color-dark: #272c34 !default;
|
|
|
|
// Color of the table thead
|
|
$table-thead-color: #ededed !default;
|
|
$table-thead-color-dark: #20252b !default;
|
|
|
|
// Color of the blockquote
|
|
$blockquote-color: #6bd6fd !default;
|
|
$blockquote-color-dark: #59c5ec !default;
|
|
// ========== Single Content ========== //
|
|
|
|
// ========== Pagination ========== //
|
|
// Color of the link in pagination
|
|
$pagination-link-color: #2d96bd !default;
|
|
$pagination-link-color-dark: #a9a9b3 !default;
|
|
|
|
// Color of the hover link in pagination
|
|
$pagination-link-hover-color: #000 !default;
|
|
$pagination-link-hover-color-dark: #fff !default;
|
|
// ========== Pagination ========== //
|
|
|
|
// ========== Code ========== //
|
|
// Color of the code
|
|
$code-color: #E74C3C !default;
|
|
$code-color-dark: #E5BF78 !default;
|
|
|
|
// Color of the code background
|
|
$code-background-color: #f5f5f5 !default;
|
|
$code-background-color-dark: #272C34 !default;
|
|
|
|
$code-error-color: #ef6155 !default;
|
|
$code-error-background-color: #2f1e2e !default;
|
|
|
|
$code-info-color: #9c9c9c !default;
|
|
$code-info-color-dark: #b1b0b0 !default;
|
|
|
|
// Font size of the code
|
|
$code-font-size: .875rem !default;
|
|
|
|
// Font family of the code
|
|
$code-font-family: Source Code Pro, Menlo, Consolas, Monaco, monospace, $global-font-family !default;
|
|
|
|
// Code type map
|
|
$code-type-map: (
|
|
// Custom code type
|
|
language-bash: 'Bash',
|
|
language-c: 'C',
|
|
language-cs: 'C#',
|
|
language-cpp: 'C++',
|
|
language-clojure: 'Clojure',
|
|
language-coffeescript: 'CoffeeScript',
|
|
language-css: 'CSS',
|
|
language-dart: 'Dart',
|
|
language-diff: 'Diff',
|
|
language-erlang: 'Erlang',
|
|
language-go: 'Go',
|
|
language-go-html-template: 'Go HTML Template',
|
|
language-groovy: 'Groovy',
|
|
language-haskell: 'Haskell',
|
|
language-html: 'HTML',
|
|
language-http: 'HTTP',
|
|
language-xml: 'XML',
|
|
language-java: 'Java',
|
|
language-js: 'JavaScript',
|
|
language-javascript: 'JavaScript',
|
|
language-json: 'JSON',
|
|
language-kotlin: 'Kotlin',
|
|
language-latex: 'LaTeX',
|
|
language-less: 'Less',
|
|
language-lisp: 'Lisp',
|
|
language-lua: 'Lua',
|
|
language-makefile: 'Makefile',
|
|
language-markdown: 'Markdown',
|
|
language-matlab: 'Matlab',
|
|
language-objectivec: 'Objective-C',
|
|
language-php: 'PHP',
|
|
language-perl: 'Perl',
|
|
language-python: 'Python',
|
|
language-r: 'R',
|
|
language-ruby: 'Ruby',
|
|
language-rust: 'Rust',
|
|
language-scala: 'Scala',
|
|
language-scss: 'Scss',
|
|
language-shell: 'Shell',
|
|
language-sql: 'SQL',
|
|
language-swift: 'Swift',
|
|
language-tex: 'TeX',
|
|
language-toml: 'TOML',
|
|
language-ts: 'TypeScript',
|
|
language-typescript: 'TypeScript',
|
|
language-vue: 'Vue',
|
|
language-yml: 'YAML',
|
|
language-yaml: 'YAML',
|
|
) !default;
|
|
|
|
// Color map of the code highlight
|
|
$code-highlight-color-map: (
|
|
/* Keyword */ 'k': #00a8c8,
|
|
/* KeywordConstant */ 'kc': #00a8c8,
|
|
/* KeywordDeclaration */ 'kd': #00a8c8,
|
|
/* KeywordNamespace */ 'kn': #f92672,
|
|
/* KeywordPseudo */ 'kp': #00a8c8,
|
|
/* KeywordReserved */ 'kr': #00a8c8,
|
|
/* KeywordType */ 'kt': #00a8c8,
|
|
/* Name */ 'n': #111111,
|
|
/* NameAttribute */ 'na': #75af00,
|
|
/* NameBuiltin */ 'nb': #111111,
|
|
/* NameBuiltinPseudo */ 'bp': #111111,
|
|
/* NameClass */ 'nc': #75af00,
|
|
/* NameConstant */ 'no': #00a8c8,
|
|
/* NameDecorator */ 'nd': #75af00,
|
|
/* NameEntity */ 'ni': #111111,
|
|
/* NameException */ 'ne': #75af00,
|
|
/* NameFunction */ 'nf': #75af00,
|
|
/* NameFunctionMagic */ 'fm': #111111,
|
|
/* NameLabel */ 'nl': #111111,
|
|
/* NameNamespace */ 'nn': #111111,
|
|
/* NameOther */ 'nx': #75af00,
|
|
/* NameProperty */ 'py': #111111,
|
|
/* NameTag */ 'nt': #f92672,
|
|
/* NameVariable */ 'nv': #111111,
|
|
/* NameVariableClass */ 'vc': #111111,
|
|
/* NameVariableGlobal */ 'vg': #111111,
|
|
/* NameVariableInstance */ 'vi': #111111,
|
|
/* NameVariableMagic */ 'vm': #111111,
|
|
/* Literal */ 'l': #ae81ff,
|
|
/* LiteralDate */ 'ld': #d88200,
|
|
/* LiteralString */ 's': #d88200,
|
|
/* LiteralStringAffix */ 'sa': #d88200,
|
|
/* LiteralStringBacktick */ 'sb': #d88200,
|
|
/* LiteralStringChar */ 'sc': #d88200,
|
|
/* LiteralStringDelimiter */ 'dl': #d88200,
|
|
/* LiteralStringDoc */ 'sd': #d88200,
|
|
/* LiteralStringDouble */ 's2': #d88200,
|
|
/* LiteralStringEscape */ 'se': #8045ff,
|
|
/* LiteralStringHeredoc */ 'sh': #d88200,
|
|
/* LiteralStringInterpol */ 'si': #d88200,
|
|
/* LiteralStringOther */ 'sx': #d88200,
|
|
/* LiteralStringRegex */ 'sr': #d88200,
|
|
/* LiteralStringSingle */ 's1': #d88200,
|
|
/* LiteralStringSymbol */ 'ss': #d88200,
|
|
/* LiteralNumber */ 'm': #ae81ff,
|
|
/* LiteralNumberBin */ 'mb': #ae81ff,
|
|
/* LiteralNumberFloat */ 'mf': #ae81ff,
|
|
/* LiteralNumberHex */ 'mh': #ae81ff,
|
|
/* LiteralNumberInteger */ 'mi': #ae81ff,
|
|
/* LiteralNumberIntegerLong */ 'il': #ae81ff,
|
|
/* LiteralNumberOct */ 'mo': #ae81ff,
|
|
/* Operator */ 'o': #f92672,
|
|
/* OperatorWord */ 'ow': #f92672,
|
|
/* Punctuation */ 'p': #111111,
|
|
/* Comment */ 'c': #75715e,
|
|
/* CommentHashbang */ 'ch': #75715e,
|
|
/* CommentMultiline */ 'cm': #75715e,
|
|
/* CommentSingle */ 'c1': #75715e,
|
|
/* CommentSpecial */ 'cs': #75715e,
|
|
/* CommentPreproc */ 'cp': #75715e,
|
|
/* CommentPreprocFile */ 'cpf': #75715e,
|
|
/* Generic */ 'g': $code-color,
|
|
/* GenericDeleted */ 'gd': $code-color,
|
|
/* GenericEmph */ 'ge': $code-color,
|
|
/* GenericError */ 'gr': $code-color,
|
|
/* GenericHeading */ 'gh': $code-color,
|
|
/* GenericInserted */ 'gi': #75af00,
|
|
/* GenericOutput */ 'go': $code-color,
|
|
/* GenericPrompt */ 'gp': $code-color,
|
|
/* GenericStrong */ 'gs': $code-color,
|
|
/* GenericSubheading */ 'gu': $code-color,
|
|
/* GenericTraceback */ 'gt': $code-color,
|
|
/* GenericUnderline */ 'gl': $code-color,
|
|
/* TextWhitespace */ 'w': $code-color,
|
|
/* Other */ 'x': $code-color
|
|
) !default;
|
|
$code-highlight-color-map-dark: (
|
|
/* Keyword */ 'k': #66d9ef,
|
|
/* KeywordConstant */ 'kc': #66d9ef,
|
|
/* KeywordDeclaration */ 'kd': #66d9ef,
|
|
/* KeywordNamespace */ 'kn': #f92672,
|
|
/* KeywordPseudo */ 'kp': #66d9ef,
|
|
/* KeywordReserved */ 'kr': #66d9ef,
|
|
/* KeywordType */ 'kt': #66d9ef,
|
|
/* Name */ 'n': $code-color-dark,
|
|
/* NameAttribute */ 'na': #a6e22e,
|
|
/* NameBuiltin */ 'nb': $code-color-dark,
|
|
/* NameBuiltinPseudo */ 'bp': $code-color-dark,
|
|
/* NameClass */ 'nc': #a6e22e,
|
|
/* NameConstant */ 'no': #66d9ef,
|
|
/* NameDecorator */ 'nd': #a6e22e,
|
|
/* NameEntity */ 'ni': $code-color-dark,
|
|
/* NameException */ 'ne': #a6e22e,
|
|
/* NameFunction */ 'nf': #a6e22e,
|
|
/* NameFunctionMagic */ 'fm': $code-color-dark,
|
|
/* NameLabel */ 'nl': $code-color-dark,
|
|
/* NameNamespace */ 'nn': $code-color-dark,
|
|
/* NameOther */ 'nx': #a6e22e,
|
|
/* NameProperty */ 'py': $code-color-dark,
|
|
/* NameTag */ 'nt': #f92672,
|
|
/* NameVariable */ 'nv': $code-color-dark,
|
|
/* NameVariableClass */ 'vc': $code-color-dark,
|
|
/* NameVariableGlobal */ 'vg': $code-color-dark,
|
|
/* NameVariableInstance */ 'vi': $code-color-dark,
|
|
/* NameVariableMagic */ 'vm': $code-color-dark,
|
|
/* Literal */ 'l': #ae81ff,
|
|
/* LiteralDate */ 'ld': #e6db74,
|
|
/* LiteralString */ 's': #e6db74,
|
|
/* LiteralStringAffix */ 'sa': #e6db74,
|
|
/* LiteralStringBacktick */ 'sb': #e6db74,
|
|
/* LiteralStringChar */ 'sc': #e6db74,
|
|
/* LiteralStringDelimiter */ 'dl': #e6db74,
|
|
/* LiteralStringDoc */ 'sd': #e6db74,
|
|
/* LiteralStringDouble */ 's2': #e6db74,
|
|
/* LiteralStringEscape */ 'se': #ae81ff,
|
|
/* LiteralStringHeredoc */ 'sh': #e6db74,
|
|
/* LiteralStringInterpol */ 'si': #e6db74,
|
|
/* LiteralStringOther */ 'sx': #e6db74,
|
|
/* LiteralStringRegex */ 'sr': #e6db74,
|
|
/* LiteralStringSingle */ 's1': #e6db74,
|
|
/* LiteralStringSymbol */ 'ss': #e6db74,
|
|
/* LiteralNumber */ 'm': #ae81ff,
|
|
/* LiteralNumberBin */ 'mb': #ae81ff,
|
|
/* LiteralNumberFloat */ 'mf': #ae81ff,
|
|
/* LiteralNumberHex */ 'mh': #ae81ff,
|
|
/* LiteralNumberInteger */ 'mi': #ae81ff,
|
|
/* LiteralNumberIntegerLong */ 'il': #ae81ff,
|
|
/* LiteralNumberOct */ 'mo': #ae81ff,
|
|
/* Operator */ 'o': #f92672,
|
|
/* OperatorWord */ 'ow': #f92672,
|
|
/* Punctuation */ 'p': $code-color-dark,
|
|
/* Comment */ 'c': #75715e,
|
|
/* CommentHashbang */ 'ch': #75715e,
|
|
/* CommentMultiline */ 'cm': #75715e,
|
|
/* CommentSingle */ 'c1': #75715e,
|
|
/* CommentSpecial */ 'cs': #75715e,
|
|
/* CommentPreproc */ 'cp': #75715e,
|
|
/* CommentPreprocFile */ 'cpf': #75715e,
|
|
/* Generic */ 'g': $code-color-dark,
|
|
/* GenericDeleted */ 'gd': #f92672,
|
|
/* GenericEmph */ 'ge': $code-color-dark,
|
|
/* GenericError */ 'gr': $code-color-dark,
|
|
/* GenericHeading */ 'gh': $code-color-dark,
|
|
/* GenericInserted */ 'gi': #a6e22e,
|
|
/* GenericOutput */ 'go': $code-color-dark,
|
|
/* GenericPrompt */ 'gp': $code-color-dark,
|
|
/* GenericStrong */ 'gs': $code-color-dark,
|
|
/* GenericSubheading */ 'gu': #75715e,
|
|
/* GenericTraceback */ 'gt': $code-color-dark,
|
|
/* GenericUnderline */ 'gl': $code-color-dark,
|
|
/* TextWhitespace */ 'w': $code-color-dark,
|
|
/* Other */ 'x': $code-color-dark
|
|
) !default;
|
|
// ========== Code ========== //
|
|
|
|
// ========== Admonition ========== //
|
|
// Color map of the admonition
|
|
$admonition-color-map: (
|
|
'note': #448aff,
|
|
'abstract': #00b0ff,
|
|
'info': #00b8d4,
|
|
'tip': #00bfa5,
|
|
'success': #00c853,
|
|
'question': #64dd17,
|
|
'warning': #ff9100,
|
|
'failure': #ff5252,
|
|
'danger': #ff1744,
|
|
'bug': #f50057,
|
|
'example': #651fff,
|
|
'quote': #9e9e9e,
|
|
) !default;
|
|
|
|
// Color map of the admonition background
|
|
$admonition-background-color-map: (
|
|
'note': rgba(68, 138, 255, 0.1),
|
|
'abstract': rgba(0, 176, 255, 0.1),
|
|
'info': rgba(0, 184, 212, 0.1),
|
|
'tip': rgba(0, 191, 165, 0.1),
|
|
'success': rgba(0, 200, 83, 0.1),
|
|
'question': rgba(100, 221, 23, 0.1),
|
|
'warning': rgba(255, 145, 0, 0.1),
|
|
'failure': rgba(255, 82, 82, 0.1),
|
|
'danger': rgba(255, 23, 68, 0.1),
|
|
'bug': rgba(245, 0, 87, 0.1),
|
|
'example': rgba(101, 31, 255, 0.1),
|
|
'quote': rgba(159, 159, 159, 0.1),
|
|
) !default;
|
|
// ========== Admonition ========== //
|