blog-theme

This commit is contained in:
Elnu 2023-02-18 16:42:54 -08:00
parent 29b925d36b
commit e00e6162ac
22 changed files with 349 additions and 1875 deletions

View file

@ -0,0 +1,25 @@
$ef-bg_dim: #232A2E
$ef-bg0: #2D353B
$ef-bg1: #343F44
$ef-bg2: #3D484D
$ef-bg3: #475258
$ef-bg4: #4F585E
$ef-bg5: #56635f
$ef-bg_visual: #543A48
$ef-bg_red: #514045
$ef-bg_green: #425047
$ef-bg_blue: #3A515D
$ef-bg_yellow: #4D4C43
$ef-fg: #D3C6AA
$ef-red: #E67E80
$ef-orange: #E69875
$ef-yellow: #DBBC7F
$ef-green: #A7C080
$ef-aqua: #7FBBB3
$ef-purple: #D699B6
$ef-grey0: #7A8478
$ef-grey1: #859289
$ef-grey2: #9DA9A0
$ef-statusline1: #A7C080
$ef-statusline2: #D3C6AA
$ef-statusline3: #E67E80

File diff suppressed because one or more lines are too long

23
assets/sass/soudan.sass Normal file
View file

@ -0,0 +1,23 @@
.soudan-comment
display: flex
gap: 0.5em
& > div
width: 100%
@keyframes
soudan-highlighted
from
background: rgba(255, 255, 0, 0.25)
to
background: rgba(255, 255, 0, 0)
.soudan-highlighted
background: rgba(255, 255, 0, 0.25)
border-radius: 0.25em
animation-name: soudan-highlighted
animation-duration: 4s
animation-delay: 2s
animation-fill-mode: forwards
.soudan-avatar
border-radius: 100%
width: 60px
height: 60px
background-color: gray

33
assets/sass/stork.sass Normal file
View file

@ -0,0 +1,33 @@
.stork-attribution
display: none
.stork-results
list-style-type: none
padding-left: 0
margin-bottom: 0
.stork-excerpt p, .stork-title p
margin: 0
.stork-excerpt
p
font-size: 0.875em
.stork-title
font-weight: bold
.stork-search
width: 100%
height: 2em
display: flex
& > *
height: 100%
input[data-stork]
width: 100%
input[data-stork]:nth-last-child(3)
border-top-right-radius: 0
border-bottom-right-radius: 0
.stork-close-button, .stork-output-visible
border-radius: 4px
border-top-left-radius: 0
border-bottom-left-radius: 0
.stork-progress
display: none
.stork-output-visible
background: #f7f7f7
padding: 0 0.5em

107
assets/sass/style.sass Normal file
View file

@ -0,0 +1,107 @@
@import "syntax.scss"
@import "stork.sass"
@import "_everforest.sass"
@import "_topography.sass"
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Roboto+Slab&family=Roboto:ital,wght@0,300;0,400;0,700;1,400;1,700&display=swap');
$shadow: $ef-bg_dim
$bg0: $ef-bg0
$bg1: $ef-bg1
$bg2: $ef-bg2
$dim: $ef-bg5
$fg: $ef-fg
$primary: $ef-green
$padding: 1rem
html
color: $fg
font-family: 'Roboto', sans-serif
font-size: 1.2em
line-height: 1.75
background-color: #2d353b
background-image: $topography;
background-attachment: fixed
body
margin: 0
h1, h2, h3, h4, h5, h6
font-family: 'Roboto Slab', sans-serif
.content
width: 80ch
max-width: 100%;
margin: 2em auto;
.page
padding: $padding
background: $bg1
pre
padding: 1em
overflow-x: scroll
div
&.highlight
position: relative
&:not([data-lang="text"])::before
background: $shadow
z-index: 1
content: attr(data-lang)
position: absolute
right: 0
top: 0
padding: 0.25em
padding-left: 2em
clip-path: polygon(0 0, 100% 0, 100% 100%, 2em 100%)
div.highlight::before, code, kbd
font-family: 'Fira Code', monospace
*:not(pre) > code, kbd
background: $bg0
padding: 0 0.5em
a
color: $primary
&:not(:hover)
text-decoration: none
pre, #_content
box-shadow: 4px 4px $shadow
img
max-width: 100%
box-shadow: 4px 4px $bg0
border: 2px solid $bg0
header
h2
margin: 0
blockquote
margin: 0
padding-left: 1em
border-left: 2px solid $primary
hr
border: 1px solid $dim
nav
$margin: 1em
margin: -$padding
display: flex
background: $bg2
font-weight: 300
justify-content: center
user-select: none
&:first-of-type
margin-bottom: $margin
&:last-of-type
margin-top: $margin
& > :nth-child(2)
margin-right: auto
& > :nth-last-child(2)
margin-left: auto
& > *
padding: 2px 0.375em 0
border-bottom: 2px solid transparent
text-decoration: none !important
& > svg
height: 1em
vertical-align: middle
margin-bottom: 0.225em
& > a
&:hover
border-color: $primary
.disabled, footer
color: $dim
footer
margin-top: 2em;
text-align: center

87
assets/sass/syntax.scss Normal file
View file

@ -0,0 +1,87 @@
@import "_everforest.sass";
/* Background */ .bg { color: $ef-fg; background-color: #272822; }
/* PreWrapper */ .chroma { color: $ef-fg; background-color: $ef-bg0; }
/* Other */ .chroma .x { }
/* Error */ .chroma .err { color: #960050; background-color: #1e0010 }
/* CodeLine */ .chroma .cl { }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineHighlight */ .chroma .hl { background-color: #ffffcc }
/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* Line */ .chroma .line { display: flex; }
/* Keyword */ .chroma .k { color: $ef-red }
/* KeywordConstant */ .chroma .kc { color: $ef-red }
/* KeywordDeclaration */ .chroma .kd { color: $ef-red }
/* KeywordNamespace */ .chroma .kn { color: $ef-aqua }
/* KeywordPseudo */ .chroma .kp { color: $ef-red }
/* KeywordReserved */ .chroma .kr { color: $ef-red }
/* KeywordType */ .chroma .kt { color: $ef-red }
/* Name */ .chroma .n { }
/* NameAttribute */ .chroma .na { color: $ef-green }
/* NameBuiltin */ .chroma .nb { }
/* NameBuiltinPseudo */ .chroma .bp { }
/* NameClass */ .chroma .nc { color: $ef-green }
/* NameConstant */ .chroma .no { color: $ef-red }
/* NameDecorator */ .chroma .nd { color: $ef-green }
/* NameEntity */ .chroma .ni { }
/* NameException */ .chroma .ne { color: $ef-green }
/* NameFunction */ .chroma .nf { color: $ef-green }
/* NameFunctionMagic */ .chroma .fm { }
/* NameLabel */ .chroma .nl { }
/* NameNamespace */ .chroma .nn { }
/* NameOther */ .chroma .nx { color: $ef-green }
/* NameProperty */ .chroma .py { }
/* NameTag */ .chroma .nt { color: $ef-aqua }
/* NameVariable */ .chroma .nv { }
/* NameVariableClass */ .chroma .vc { }
/* NameVariableGlobal */ .chroma .vg { }
/* NameVariableInstance */ .chroma .vi { }
/* NameVariableMagic */ .chroma .vm { }
/* Literal */ .chroma .l { color: $ef-purple }
/* LiteralDate */ .chroma .ld { color: $ef-green }
/* LiteralString */ .chroma .s { color: $ef-green }
/* LiteralStringAffix */ .chroma .sa { color: $ef-green }
/* LiteralStringBacktick */ .chroma .sb { color: $ef-green }
/* LiteralStringChar */ .chroma .sc { color: $ef-green }
/* LiteralStringDelimiter */ .chroma .dl { color: $ef-green }
/* LiteralStringDoc */ .chroma .sd { color: $ef-green }
/* LiteralStringDouble */ .chroma .s2 { color: $ef-green }
/* LiteralStringEscape */ .chroma .se { color: $ef-purple }
/* LiteralStringHeredoc */ .chroma .sh { color: $ef-green }
/* LiteralStringInterpol */ .chroma .si { color: $ef-green }
/* LiteralStringOther */ .chroma .sx { color: $ef-green }
/* LiteralStringRegex */ .chroma .sr { color: $ef-green }
/* LiteralStringSingle */ .chroma .s1 { color: $ef-green }
/* LiteralStringSymbol */ .chroma .ss { color: $ef-green }
/* LiteralNumber */ .chroma .m { color: $ef-purple }
/* LiteralNumberBin */ .chroma .mb { color: $ef-purple }
/* LiteralNumberFloat */ .chroma .mf { color: $ef-purple }
/* LiteralNumberHex */ .chroma .mh { color: $ef-purple }
/* LiteralNumberInteger */ .chroma .mi { color: $ef-purple }
/* LiteralNumberIntegerLong */ .chroma .il { color: $ef-purple }
/* LiteralNumberOct */ .chroma .mo { color: $ef-purple }
/* Operator */ .chroma .o { color: $ef-aqua }
/* OperatorWord */ .chroma .ow { color: $ef-aqua }
/* Punctuation */ .chroma .p { }
/* Comment */ .chroma .c { color: $ef-grey0 }
/* CommentHashbang */ .chroma .ch { color: $ef-grey0 }
/* CommentMultiline */ .chroma .cm { color: $ef-grey0 }
/* CommentSingle */ .chroma .c1 { color: $ef-grey0 }
/* CommentSpecial */ .chroma .cs { color: $ef-grey0 }
/* CommentPreproc */ .chroma .cp { color: $ef-grey0 }
/* CommentPreprocFile */ .chroma .cpf { color: $ef-grey0 }
/* Generic */ .chroma .g { }
/* GenericDeleted */ .chroma .gd { color: $ef-aqua }
/* GenericEmph */ .chroma .ge { font-style: italic }
/* GenericError */ .chroma .gr { }
/* GenericHeading */ .chroma .gh { }
/* GenericInserted */ .chroma .gi { color: $ef-green }
/* GenericOutput */ .chroma .go { }
/* GenericPrompt */ .chroma .gp { }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: $ef-grey0 }
/* GenericTraceback */ .chroma .gt { }
/* GenericUnderline */ .chroma .gl { }
/* TextWhitespace */ .chroma .w { }