My bad
This commit is contained in:
@ -1,44 +0,0 @@
|
||||
.admonition{
|
||||
position: relative;
|
||||
margin: 1rem 0 1.5rem 0;
|
||||
border-left: .25rem solid map-get($admonition-color, 'note');
|
||||
box-shadow: 5px 5px 10px -5px rgba(0,0,0,0.5);
|
||||
border-radius: 0 8px 8px 0;
|
||||
overflow: auto;
|
||||
.admonition-title{
|
||||
padding: .25rem .50rem;
|
||||
border-bottom: 1px solid map-get($admonition-background, 'note');
|
||||
background-color: rgba(map-get($admonition-background, 'note'), 0.1);
|
||||
color: map-get($admonition-color, 'note');
|
||||
.icon{
|
||||
display: inline-block;
|
||||
padding: 0 10px 0 0;
|
||||
font-size: 0.85rem;
|
||||
color: map-get($admonition-color, 'note');
|
||||
}
|
||||
}
|
||||
.admonition-content{
|
||||
padding: .25rem .50rem;
|
||||
}
|
||||
@each $type, $color in $admonition-color {
|
||||
&.#{$type} {
|
||||
border-left-color: $color;
|
||||
.admonition-title {
|
||||
color: $color;
|
||||
}
|
||||
.icon {
|
||||
color: $color;
|
||||
}
|
||||
}
|
||||
}
|
||||
@each $type, $color in $admonition-background {
|
||||
&.#{$type} {
|
||||
background-color: $color;
|
||||
|
||||
.admonition-title {
|
||||
border-bottom-color: $color;
|
||||
background-color: rgba($color, 0.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
|
||||
@charset "UTF-8";
|
||||
/*!
|
||||
* animate.css - https://animate.style/
|
||||
* Version - 4.1.0
|
||||
* Licensed under the MIT license - http://opensource.org/licenses/MIT
|
||||
*
|
||||
* Copyright (c) 2020 Animate.css
|
||||
*/:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animated{animation-duration:1s;animation-duration:var(--animate-duration);animation-fill-mode:both}.animated.infinite{animation-iteration-count:infinite}.animated.repeat-1{animation-iteration-count:1;animation-iteration-count:var(--animate-repeat)}.animated.repeat-2{animation-iteration-count:2;animation-iteration-count:calc(var(--animate-repeat)*2)}.animated.repeat-3{animation-iteration-count:3;animation-iteration-count:calc(var(--animate-repeat)*3)}.animated.delay-1s{animation-delay:1s;animation-delay:var(--animate-delay)}.animated.delay-2s{animation-delay:2s;animation-delay:calc(var(--animate-delay)*2)}.animated.delay-3s{animation-delay:3s;animation-delay:calc(var(--animate-delay)*3)}.animated.delay-4s{animation-delay:4s;animation-delay:calc(var(--animate-delay)*4)}.animated.delay-5s{animation-delay:5s;animation-delay:calc(var(--animate-delay)*5)}.animated.faster{animation-duration:.5s;animation-duration:calc(var(--animate-duration)/2)}.animated.fast{animation-duration:.8s;animation-duration:calc(var(--animate-duration)*0.8)}.animated.slow{animation-duration:2s;animation-duration:calc(var(--animate-duration)*2)}.animated.slower{animation-duration:3s;animation-duration:calc(var(--animate-duration)*3)}@media (prefers-reduced-motion:reduce),print{.animated{animation-duration:1ms!important;transition-duration:1ms!important;animation-iteration-count:1!important}.animated[class*=Out]{opacity:0}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}.bounce{animation-name:bounce;transform-origin:center bottom}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}.bounceInRight{animation-name:bounceInRight}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}.bounceOutRight{animation-name:bounceOutRight}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{animation-name:fadeIn}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}.slideInUp{animation-name:slideInUp}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}.slideOutDown{animation-name:slideOutDown}
|
@ -1,6 +0,0 @@
|
||||
.has-jax {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
background: inherit !important;
|
||||
border: none !important;
|
||||
font-size: 100%;
|
||||
}
|
@ -1,341 +0,0 @@
|
||||
/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||
|
||||
/* Document
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Correct the line height in all browsers.
|
||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||
*/
|
||||
|
||||
html {
|
||||
line-height: 1.15; /* 1 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/* Sections
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the margin in all browsers.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the font size and margin on `h1` elements within `section` and
|
||||
* `article` contexts in Chrome, Firefox, and Safari.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in Firefox.
|
||||
* 2. Show the overflow in Edge and IE.
|
||||
*/
|
||||
|
||||
hr {
|
||||
box-sizing: content-box; /* 1 */
|
||||
height: 0; /* 1 */
|
||||
overflow: visible; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background on active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Remove the bottom border in Chrome 57-
|
||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: none; /* 1 */
|
||||
text-decoration: underline; /* 2 */
|
||||
text-decoration: underline dotted; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||
* 2. Correct the odd `em` font sizing in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: monospace, monospace; /* 1 */
|
||||
font-size: 1em; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||
* all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the border on images inside links in IE 10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* 1. Change the font styles in all browsers.
|
||||
* 2. Remove the margin in Firefox and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
font-family: inherit; /* 1 */
|
||||
font-size: 100%; /* 1 */
|
||||
line-height: 1.15; /* 1 */
|
||||
margin: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the overflow in IE.
|
||||
* 1. Show the overflow in Edge.
|
||||
*/
|
||||
|
||||
button,
|
||||
input { /* 1 */
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||
* 1. Remove the inheritance of text transform in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select { /* 1 */
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the inability to style clickable types in iOS and Safari.
|
||||
*/
|
||||
|
||||
button,
|
||||
[type="button"],
|
||||
[type="reset"],
|
||||
[type="submit"] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner border and padding in Firefox.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
[type="button"]::-moz-focus-inner,
|
||||
[type="reset"]::-moz-focus-inner,
|
||||
[type="submit"]::-moz-focus-inner {
|
||||
border-style: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Restore the focus styles unset by the previous rule.
|
||||
*/
|
||||
|
||||
button:-moz-focusring,
|
||||
[type="button"]:-moz-focusring,
|
||||
[type="reset"]:-moz-focusring,
|
||||
[type="submit"]:-moz-focusring {
|
||||
outline: 1px dotted ButtonText;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the padding in Firefox.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
padding: 0.35em 0.75em 0.625em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the text wrapping in Edge and IE.
|
||||
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||
* 3. Remove the padding so developers are not caught out when they zero out
|
||||
* `fieldset` elements in all browsers.
|
||||
*/
|
||||
|
||||
legend {
|
||||
box-sizing: border-box; /* 1 */
|
||||
color: inherit; /* 2 */
|
||||
display: table; /* 1 */
|
||||
max-width: 100%; /* 1 */
|
||||
padding: 0; /* 3 */
|
||||
white-space: normal; /* 1 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the default vertical scrollbar in IE 10+.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Add the correct box sizing in IE 10.
|
||||
* 2. Remove the padding in IE 10.
|
||||
*/
|
||||
|
||||
[type="checkbox"],
|
||||
[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||
*/
|
||||
|
||||
[type="number"]::-webkit-inner-spin-button,
|
||||
[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the odd appearance in Chrome and Safari.
|
||||
* 2. Correct the outline style in Safari.
|
||||
*/
|
||||
|
||||
[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
outline-offset: -2px; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the inner padding in Chrome and Safari on macOS.
|
||||
*/
|
||||
|
||||
[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||
* 2. Change font properties to `inherit` in Safari.
|
||||
*/
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
-webkit-appearance: button; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
}
|
||||
|
||||
/* Interactive
|
||||
========================================================================== */
|
||||
|
||||
/*
|
||||
* Add the correct display in Edge, IE 10+, and Firefox.
|
||||
*/
|
||||
|
||||
details {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
* Add the correct display in all browsers.
|
||||
*/
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
/* Misc
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10+.
|
||||
*/
|
||||
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the correct display in IE 10.
|
||||
*/
|
||||
|
||||
[hidden] {
|
||||
display: none;
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
// Colors
|
||||
//
|
||||
$theme: #018574;
|
||||
$text: #e8eef2;
|
||||
$light-grey: #494f5c;
|
||||
$dark-grey: #3B3E48;
|
||||
$highlight-grey: #7d828a;
|
||||
$midnightblue: #2c3e50;
|
||||
$typewriter: hsl(172, 100%, 36%);
|
||||
|
||||
// Fonts
|
||||
//
|
||||
$fonts: "Trebuchet MS", Verdana, "Verdana Ref", "Segoe UI", Candara, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
|
||||
$code-fonts: Consolas, "Andale Mono WT", "Andale Mono", Menlo, Monaco, "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, "YaHei Consolas Hybrid", monospace, "Segoe UI Emoji", "PingFang SC", "Microsoft YaHei";
|
||||
|
||||
//Admonition
|
||||
//
|
||||
$admonition-background: (
|
||||
'note': rgba(68, 138, 255, 0.1),
|
||||
'info': rgba(0, 184, 212, 0.1),
|
||||
'tip': rgba(0, 191, 165, 0.1),
|
||||
'success': rgba(0, 200, 83, 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),
|
||||
) !default;
|
||||
|
||||
$admonition-color: (
|
||||
'note': #448aff,
|
||||
'info': #00b8d4,
|
||||
'tip': #00bfa5,
|
||||
'success': #00c853,
|
||||
'warning': #ff9100,
|
||||
'failure': #ff5252,
|
||||
'danger': #ff1744,
|
||||
'bug': #f50057,
|
||||
) !default;
|
||||
|
||||
// Mixins
|
||||
//
|
||||
@mixin dimmed {
|
||||
opacity: .6;
|
||||
}
|
||||
|
||||
@mixin aTag {
|
||||
a {
|
||||
word-wrap: break-word;
|
||||
border: none;
|
||||
box-shadow: inset 0 -4px 0 $theme;
|
||||
transition-property: box-shadow;
|
||||
transition-duration: .1s;
|
||||
|
||||
&:hover {
|
||||
box-shadow: inset 0 -1em 0 $theme;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
.scroll-up{
|
||||
position: fixed;
|
||||
bottom: 10%;
|
||||
right: 2%;
|
||||
z-index: 1;
|
||||
opacity: 0;
|
||||
transition: all 0.5s ease;
|
||||
}
|
||||
.hide{
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
.show{
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
#share-links {
|
||||
position: fixed;
|
||||
bottom: 7.0em;
|
||||
right: 0.5em;
|
||||
display: none;
|
||||
padding: .6em 0.5em;
|
||||
z-index: 1;
|
||||
box-sizing: border-box;
|
||||
box-shadow: -1px -2px 3px 0px rgba(0, 0, 0, 0.45);
|
||||
background-color: $midnightblue;
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 2;
|
||||
font-size: 1.2em;
|
||||
a {
|
||||
color: $highlight-grey;
|
||||
&:hover,&:active,&:focus{
|
||||
color: $text;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (max-width: 520px) {
|
||||
#share-links {
|
||||
right: 0.2em;
|
||||
bottom: 8.0em;
|
||||
}
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
/* Background */ .chroma { color: #eee; background-color: $midnightblue }
|
||||
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
|
||||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
||||
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #55595ebb }
|
||||
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
|
||||
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
|
||||
/* Keyword */ .chroma .k { color: #66d9ef }
|
||||
/* KeywordConstant */ .chroma .kc { color: #66d9ef }
|
||||
/* KeywordDeclaration */ .chroma .kd { color: #66d9ef }
|
||||
/* KeywordNamespace */ .chroma .kn { color: #f92672 }
|
||||
/* KeywordPseudo */ .chroma .kp { color: #66d9ef }
|
||||
/* KeywordReserved */ .chroma .kr { color: #66d9ef }
|
||||
/* KeywordType */ .chroma .kt { color: #66d9ef }
|
||||
/* NameAttribute */ .chroma .na { color: #a6e22e }
|
||||
/* NameClass */ .chroma .nc { color: #a6e22e }
|
||||
/* NameConstant */ .chroma .no { color: #66d9ef }
|
||||
/* NameDecorator */ .chroma .nd { color: #a6e22e }
|
||||
/* NameException */ .chroma .ne { color: #a6e22e }
|
||||
/* NameFunction */ .chroma .nf { color: #a6e22e }
|
||||
/* NameOther */ .chroma .nx { color: #a6e22e }
|
||||
/* NameTag */ .chroma .nt { color: #f92672 }
|
||||
/* Literal */ .chroma .l { color: #ae81ff }
|
||||
/* LiteralDate */ .chroma .ld { color: #e6db74 }
|
||||
/* LiteralString */ .chroma .s { color: #e6db74 }
|
||||
/* LiteralStringAffix */ .chroma .sa { color: #e6db74 }
|
||||
/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 }
|
||||
/* LiteralStringChar */ .chroma .sc { color: #e6db74 }
|
||||
/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 }
|
||||
/* LiteralStringDoc */ .chroma .sd { color: #e6db74 }
|
||||
/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 }
|
||||
/* LiteralStringEscape */ .chroma .se { color: #ae81ff }
|
||||
/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 }
|
||||
/* LiteralStringInterpol */ .chroma .si { color: #e6db74 }
|
||||
/* LiteralStringOther */ .chroma .sx { color: #e6db74 }
|
||||
/* LiteralStringRegex */ .chroma .sr { color: #e6db74 }
|
||||
/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 }
|
||||
/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 }
|
||||
/* LiteralNumber */ .chroma .m { color: #ae81ff }
|
||||
/* LiteralNumberBin */ .chroma .mb { color: #ae81ff }
|
||||
/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff }
|
||||
/* LiteralNumberHex */ .chroma .mh { color: #ae81ff }
|
||||
/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff }
|
||||
/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff }
|
||||
/* LiteralNumberOct */ .chroma .mo { color: #ae81ff }
|
||||
/* Operator */ .chroma .o { color: #f92672 }
|
||||
/* OperatorWord */ .chroma .ow { color: #f92672 }
|
||||
/* Comment */ .chroma .c { color: #75715e }
|
||||
/* CommentHashbang */ .chroma .ch { color: #75715e }
|
||||
/* CommentMultiline */ .chroma .cm { color: #75715e }
|
||||
/* CommentSingle */ .chroma .c1 { color: #75715e }
|
||||
/* CommentSpecial */ .chroma .cs { color: #75715e }
|
||||
/* CommentPreproc */ .chroma .cp { color: #75715e }
|
||||
/* CommentPreprocFile */ .chroma .cpf { color: #75715e }
|
||||
/* GenericDeleted */ .chroma .gd { color: #f92672 }
|
||||
/* GenericEmph */ .chroma .ge { font-style: italic }
|
||||
/* GenericInserted */ .chroma .gi { color: #a6e22e }
|
||||
/* GenericStrong */ .chroma .gs { font-weight: bold }
|
||||
/* GenericSubheading */ .chroma .gu { color: #75715e }
|
@ -1,937 +0,0 @@
|
||||
@import "predefined.scss";
|
||||
@import "normalize.scss";
|
||||
@import "syntax.scss";
|
||||
@import "animate.scss";
|
||||
@import "_scroll.scss";
|
||||
@import "_admonition.scss";
|
||||
@import "_mathjax.scss";
|
||||
@import "_socialshare.scss";
|
||||
|
||||
/* Webkit Scrollbar Customize */
|
||||
::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: $midnightblue;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #888;
|
||||
|
||||
&:hover {
|
||||
background: $text;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
background: $light-grey;
|
||||
line-height: 1.6;
|
||||
letter-spacing: .06em;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body,
|
||||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
color: $text;
|
||||
font-family: $fonts;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
pre tt {
|
||||
font-family: $code-fonts;
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: .7em 1.1em;
|
||||
font-size: .9em;
|
||||
line-height: 1.5;
|
||||
letter-spacing: normal;
|
||||
white-space: pre;
|
||||
color: #eee;
|
||||
background: $midnightblue;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
code {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background: #272822;
|
||||
}
|
||||
}
|
||||
|
||||
code {
|
||||
color: #eee;
|
||||
background: $highlight-grey;
|
||||
border-radius: 3px;
|
||||
padding: 0 3px;
|
||||
margin: 0 4px;
|
||||
word-wrap: break-word;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
border-left: .25em solid;
|
||||
margin: 1em;
|
||||
padding: 0 1em;
|
||||
font-style: italic;
|
||||
|
||||
cite {
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
|
||||
&::before {
|
||||
content: "—— ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: $text;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
transition-property: color;
|
||||
transition-duration: .4s;
|
||||
transition-timing-function: ease-out;
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
text-shadow: 0 0 1px #fff;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
opacity: .2;
|
||||
border-width: 0 0 5px 0;
|
||||
border-style: dashed;
|
||||
background: transparent;
|
||||
width: 50%;
|
||||
margin: 1.8em auto;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
empty-cells: show;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 1.5%;
|
||||
border: 1px solid;
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: 700;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
||||
|
||||
.section-inner {
|
||||
margin: 0 auto;
|
||||
max-width: 1200px;
|
||||
width: 93%;
|
||||
}
|
||||
|
||||
.thin {
|
||||
max-width: 720px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.feather {
|
||||
display: inline-block;
|
||||
vertical-align: -.125em;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
}
|
||||
|
||||
.sub-menu {
|
||||
font-size: .7em;
|
||||
}
|
||||
|
||||
.desktop-only, .desktop-only-ib {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Code copy buttons
|
||||
//
|
||||
|
||||
.highlight {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.highlight div,
|
||||
.highlight pre {
|
||||
overflow-x: auto;
|
||||
border-radius: 4px;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.highlight-copy-btn {
|
||||
position: absolute;
|
||||
bottom: 7px;
|
||||
right: 7px;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
padding: 1px;
|
||||
font-size: 0.7em;
|
||||
line-height: 1.8;
|
||||
color: #fff;
|
||||
background-color: #777;
|
||||
opacity: 0.6;
|
||||
min-width: 55px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.highlight-copy-btn:hover {
|
||||
background-color: #666;
|
||||
}
|
||||
|
||||
// Accessibility
|
||||
//
|
||||
.screen-reader-text {
|
||||
border: 0;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
clip-path: inset(50%);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute !important;
|
||||
width: 1px;
|
||||
word-wrap: normal !important;
|
||||
}
|
||||
|
||||
.screen-reader-text:focus {
|
||||
background-color: #f1f1f1;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
||||
clip: auto !important;
|
||||
clip-path: none;
|
||||
color: #21759b;
|
||||
display: block;
|
||||
font-size: 0.875rem;
|
||||
font-weight: bold;
|
||||
height: auto;
|
||||
left: 5px;
|
||||
line-height: normal;
|
||||
padding: 15px 23px 14px;
|
||||
text-decoration: none;
|
||||
top: 5px;
|
||||
width: auto;
|
||||
z-index: 100000;
|
||||
}
|
||||
|
||||
// Header & Footer
|
||||
//
|
||||
#site-header {
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
box-shadow: -1px -2px 3px rgba(0, 0, 0, 0.45);
|
||||
background-color: $dark-grey;
|
||||
animation-duration: .3s;
|
||||
}
|
||||
|
||||
.hdr-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: .5em 0;
|
||||
font-size: 1.2rem;
|
||||
|
||||
.site-branding {
|
||||
display: inline-block;
|
||||
margin-right: .8em;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
display: inline-block;
|
||||
font-size: 1.1em;
|
||||
opacity: .8;
|
||||
|
||||
.has-children {
|
||||
padding-right: .5em;
|
||||
border-right: 2px solid $highlight-grey;
|
||||
}
|
||||
|
||||
.sub-menu > a{
|
||||
margin-left: .3em;
|
||||
}
|
||||
|
||||
a {
|
||||
margin-left: .8em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hdr-icons {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.hdr-social {
|
||||
display: inline-block;
|
||||
margin-left: .6em;
|
||||
|
||||
&>a {
|
||||
margin-left: .4em;
|
||||
}
|
||||
}
|
||||
|
||||
.hdr-btn {
|
||||
border: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
margin-left: .4em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#menu-btn {
|
||||
display: none;
|
||||
margin-left: .6em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#mobile-menu {
|
||||
position: fixed;
|
||||
bottom: 4.8em;
|
||||
right: 4.5em;
|
||||
display: none;
|
||||
padding: .6em 1.8em;
|
||||
z-index: 1;
|
||||
box-sizing: border-box;
|
||||
box-shadow: -1px -2px 3px 0px rgba(0, 0, 0, 0.45);
|
||||
background-color: $dark-grey;
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 2;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
}
|
||||
|
||||
#site-footer {
|
||||
text-align: center;
|
||||
font-size: .9em;
|
||||
margin-bottom: 96px;
|
||||
margin-top: 64px;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Spotlight
|
||||
//
|
||||
#spotlight {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
max-width: 93%;
|
||||
margin: auto;
|
||||
font-size: 1.5rem;
|
||||
|
||||
&.error-404 {
|
||||
flex-direction: row;
|
||||
line-height: normal;
|
||||
}
|
||||
}
|
||||
|
||||
p.img-404 {
|
||||
margin: 0;
|
||||
|
||||
svg {
|
||||
width: 180px;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.banner-404 {
|
||||
margin-left: 2em;
|
||||
|
||||
h1 {
|
||||
font-size: 3em;
|
||||
margin: .5rem 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.btn-404 {
|
||||
font-size: .8em;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
border: 2px solid $text;
|
||||
border-radius: 5px;
|
||||
padding: 5px;
|
||||
transition-property: color, border-color;
|
||||
|
||||
&:first-child {
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
svg {
|
||||
margin-right: .5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#home-center {
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#home-title {
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#home-subtitle {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1.5em;
|
||||
text-align: center;
|
||||
line-height: normal;
|
||||
font-size: .7em;
|
||||
font-style: italic;
|
||||
opacity: .9;
|
||||
}
|
||||
|
||||
#home-social {
|
||||
font-size: 1.4em;
|
||||
text-align: center;
|
||||
opacity: .8;
|
||||
|
||||
a {
|
||||
margin: 0 .2em;
|
||||
}
|
||||
}
|
||||
|
||||
#home-nav {
|
||||
opacity: .8;
|
||||
|
||||
a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin-top: .5em;
|
||||
}
|
||||
}
|
||||
|
||||
#home-footer {
|
||||
text-align: center;
|
||||
font-size: .6em;
|
||||
line-height: normal;
|
||||
@include dimmed;
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// list.html
|
||||
//
|
||||
.posts-group {
|
||||
display: flex;
|
||||
margin-bottom: 1.9em;
|
||||
line-height: normal;
|
||||
|
||||
.post-year {
|
||||
padding-top: 6px;
|
||||
margin-right: 1.8em;
|
||||
font-size: 1.6em;
|
||||
@include dimmed;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.posts-list {
|
||||
flex-grow: 1;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.post-item {
|
||||
border-bottom: 1px $highlight-grey dashed;
|
||||
|
||||
a {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
padding: 12px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.post-day {
|
||||
flex-shrink: 0;
|
||||
margin-left: 1em;
|
||||
@include dimmed;
|
||||
}
|
||||
}
|
||||
|
||||
// single.html
|
||||
//
|
||||
.bg-img {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
opacity: .03;
|
||||
z-index: -1;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
background-attachment: fixed;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
transition: opacity .5s;
|
||||
}
|
||||
|
||||
.show-bg-img {
|
||||
z-index: 100;
|
||||
opacity: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.post-header {
|
||||
margin-top: 1.2em;
|
||||
line-height: normal;
|
||||
|
||||
.post-meta {
|
||||
font-size: .9em;
|
||||
letter-spacing: normal;
|
||||
@include dimmed;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin-top: .1em;
|
||||
}
|
||||
}
|
||||
|
||||
hr.post-end {
|
||||
width: 50%;
|
||||
margin-top: 1.6em;
|
||||
margin-bottom: .8em;
|
||||
margin-left: 0;
|
||||
border-style: solid;
|
||||
border-bottom-width: 4px;
|
||||
}
|
||||
|
||||
.content {
|
||||
{{- with .Site.Params.justifyContent }}
|
||||
text-align: justify;
|
||||
text-justify: inter-ideograph; //For IE/Edge
|
||||
{{- end }}
|
||||
|
||||
@include aTag;
|
||||
|
||||
figure {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
|
||||
p {
|
||||
font-size: .8em;
|
||||
font-style: italic;
|
||||
@include dimmed;
|
||||
}
|
||||
}
|
||||
|
||||
figure.left {
|
||||
float: left;
|
||||
margin-right: 1.5em;
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
figure.right {
|
||||
float: right;
|
||||
margin-left: 1.5em;
|
||||
max-width: 50%;
|
||||
}
|
||||
|
||||
figure.big {
|
||||
max-width: 100vw;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin: auto;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
ul,
|
||||
ol {
|
||||
padding: 0;
|
||||
margin-left: 1.8em;
|
||||
}
|
||||
|
||||
a.anchor {
|
||||
float: left;
|
||||
margin-left: -20px;
|
||||
padding-right: 6px;
|
||||
box-shadow: none;
|
||||
opacity: .8;
|
||||
&:hover {
|
||||
background: none;
|
||||
color: $theme;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: inline-block;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
vertical-align: baseline;
|
||||
visibility: hidden;
|
||||
}
|
||||
&:focus svg {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
h1:hover a.anchor svg,
|
||||
h2:hover a.anchor svg,
|
||||
h3:hover a.anchor svg,
|
||||
h4:hover a.anchor svg,
|
||||
h5:hover a.anchor svg,
|
||||
h6:hover a.anchor svg {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
.footnotes {
|
||||
font-size: .85em;
|
||||
|
||||
a {
|
||||
box-shadow: none;
|
||||
text-decoration: underline;
|
||||
transition-property: color;
|
||||
|
||||
&:hover {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&.footnote-backref {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
ol {
|
||||
line-height: 1.8;
|
||||
}
|
||||
}
|
||||
|
||||
a.footnote-ref {
|
||||
box-shadow: none;
|
||||
text-decoration: none;
|
||||
padding: 2px;
|
||||
border-radius: 2px;
|
||||
background-color: $midnightblue;
|
||||
|
||||
&:hover{
|
||||
box-shadow: none;
|
||||
background-color: $theme;
|
||||
transition-property: background-color;
|
||||
}
|
||||
}
|
||||
|
||||
.post-info {
|
||||
font-size: .8rem;
|
||||
line-height: normal;
|
||||
@include dimmed;
|
||||
|
||||
p {
|
||||
margin: .8em 0;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
border-bottom: 1px solid $theme;
|
||||
}
|
||||
|
||||
svg {
|
||||
margin-right: .8em;
|
||||
}
|
||||
|
||||
.tag {
|
||||
margin-right: .5em;
|
||||
|
||||
&::before {
|
||||
content: "#"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#toc {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.toc-title {
|
||||
margin-left: 1em;
|
||||
margin-bottom: .5em;
|
||||
font-size: .8em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#TableOfContents {
|
||||
font-size: .8em;
|
||||
@include dimmed;
|
||||
|
||||
ul {
|
||||
padding-left: 1em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&>ul {
|
||||
list-style-type: none;
|
||||
|
||||
ul ul {
|
||||
font-size: .9em;
|
||||
}
|
||||
}
|
||||
|
||||
a:hover {
|
||||
border-bottom: $theme 1px solid;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.post-nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 2.5em;
|
||||
font-size: 1.2em;
|
||||
|
||||
a {
|
||||
flex-basis: 50%;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.next-post {text-align: left; padding-right: 5px;}
|
||||
.prev-post {text-align: right; padding-left: 5px;}
|
||||
|
||||
.post-nav-label {
|
||||
font-size: .8em;
|
||||
opacity: .8;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
.related-posts {
|
||||
padding: .8em;
|
||||
margin-top: 1.5em;
|
||||
font-size: .8rem;
|
||||
border: 3px dashed rgba(255, 255, 255, .2);
|
||||
border-radius: 5px;
|
||||
|
||||
h2{
|
||||
margin: 0;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin-top: .5em;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Media Queries
|
||||
//
|
||||
@media (min-width: 800px) {
|
||||
.site-main {
|
||||
margin-top: 3em;
|
||||
}
|
||||
|
||||
hr.post-end {
|
||||
width: 40%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
.site-main {
|
||||
margin-top: 6em;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1300px) {
|
||||
.site-main {
|
||||
margin-top: 8em;
|
||||
}
|
||||
|
||||
.desktop-only,
|
||||
#toc.show-toc {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.desktop-only-ib {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
figure.left {
|
||||
margin-left: -240px;
|
||||
p {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
figure.right {
|
||||
margin-right: -240px;
|
||||
p {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
figure.big {
|
||||
width: 1200px;
|
||||
margin-left: -240px;
|
||||
}
|
||||
|
||||
hr.post-end {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
#toc {
|
||||
top: 13em;
|
||||
margin-left: 370px;
|
||||
max-width: 220px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1800px) {
|
||||
.site-main {
|
||||
margin-top: 10em;
|
||||
}
|
||||
|
||||
.section-inner {
|
||||
max-width: 1600px;
|
||||
}
|
||||
|
||||
.thin {
|
||||
max-width: 960px;
|
||||
}
|
||||
|
||||
figure.left {
|
||||
max-width: 75%;
|
||||
margin-left: -320px;
|
||||
}
|
||||
|
||||
figure.right {
|
||||
max-width: 75%;
|
||||
margin-right: -320px;
|
||||
}
|
||||
|
||||
figure.big {
|
||||
width: 1600px;
|
||||
margin-left: -320px;
|
||||
}
|
||||
|
||||
hr.post-end {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
#toc {
|
||||
top: 15em;
|
||||
margin-left: 490px;
|
||||
max-width: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
|
||||
.hide-in-mobile,
|
||||
.site-nav.hide-in-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#menu-btn {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.posts-group {
|
||||
display: block;
|
||||
|
||||
.post-year {
|
||||
margin: -6px 0 4px;
|
||||
}
|
||||
}
|
||||
|
||||
#spotlight.error-404 {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
|
||||
.banner-404 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
|
||||
.content figure.left,
|
||||
.content figure.right {
|
||||
float: unset;
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
hr.post-end {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
#mobile-menu {
|
||||
right: 4.2em;
|
||||
}
|
||||
#home-subtitle {
|
||||
font-size: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
// If homeSubtitlePrinter is true
|
||||
{{ if .Site.Params.homeSubtitlePrinter }}
|
||||
#home-subtitle{
|
||||
overflow: hidden; /* Ensures the content is not revealed until the animation */
|
||||
border-right: .5em solid $typewriter; /* The typwriter cursor */
|
||||
white-space: nowrap; /* Keeps the content on a single line */
|
||||
margin: 0 auto 1.5em auto; /* Gives that scrolling effect as the typing happens */
|
||||
// letter-spacing: .100em; /* Adjust as needed */
|
||||
animation: typing 5s steps({{ strings.RuneCount .Site.Params.homeSubtitle }}, end),blink-caret .75s linear 5.1s infinite;
|
||||
}
|
||||
|
||||
/* The typing effect */
|
||||
@keyframes typing {
|
||||
from {max-width: 0;}
|
||||
to {max-width: 100%;}
|
||||
}
|
||||
|
||||
/* The typewriter cursor effect */
|
||||
@keyframes blink-caret {
|
||||
from, to { border-color: transparent }
|
||||
50% { border-color: $typewriter}
|
||||
}
|
||||
{{ end }}
|
Reference in New Issue
Block a user