Website Summary Files Commits Branches @commit @diff @stats
path: root / assets / sass
diff options
context:
space:
mode:
Commit8dad1d1bd0bc7206f16323d220fdce73c400f470 (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-18 15:18:25 +0300
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-18 15:18:25 +0300
Files1dd6b123977afd3e391f39e2bef68f7daa0cbecb /assets/sass
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.tar
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.tar.gz
IPL-8dad1d1bd0bc7206f16323d220fdce73c400f470.zip
Squashed 'website/themes/hugo-clarity/' content from commit 4969d5a
git-subtree-dir: website/themes/hugo-clarity git-subtree-split: 4969d5a1fb2c358c00e2d7f6fc1e39024d7d2355
9 files changed, 1247 insertions, 0 deletions
-rw-r--r--assets/sass/_base.sass151
-rw-r--r--assets/sass/_components.sass536
-rw-r--r--assets/sass/_custom.sass1
-rw-r--r--assets/sass/_fonts.sass55
-rw-r--r--assets/sass/_mobile.sass78
-rw-r--r--assets/sass/_syntax.sass236
-rw-r--r--assets/sass/_utils.sass64
-rw-r--r--assets/sass/_variables.sass118
-rw-r--r--assets/sass/main.sass8
diff --git a/assets/sass/_base.sass b/assets/sass/_base.sass
new file mode 100644
index 0000000..2763337
--- /dev/null
+++ b/assets/sass/_base.sass
@@ -0,0 +1,151 @@
+*
+ box-sizing: border-box
+ -webkit-appearance: none
+ margin: 0
+ padding: 0
+
+body, html
+ scroll-behavior: smooth
+ font-kerning: normal
+ -webkit-font-feature-settings: "kern" 1
+ text-rendering: optimizeLegibility
+ text-rendering: geometricPrecision
+ -webkit-text-size-adjust: 100%
+ font-size: 100%
+ &::-webkit-scrollbar-corner
+ background-color: transparent
+body
+ font-family: var(--font)
+ background: var(--choice-bg)
+ color: var(--text)
+ font-size: 1.1rem
+ line-height: 1.5
+ max-width: 1920px
+ margin: 0 auto
+ position: relative
+ font-kerning: normal
+ display: flex
+ flex-direction: column
+ justify-content: space-between
+ min-height: 100vh
+ -webkit-font-smoothing: antialiased
+ -moz-osx-font-smoothing: grayscale
+a
+ text-decoration: none
+ color: inherit
+ &:focus, &:focus-within
+ outline: none !important
+
+h1,h2,h3,h4,h5
+ font-family: inherit
+ font-weight: 300
+ padding: 5px 0
+ margin: 15px 0
+ color: var(--header-text)
+ line-height: 1.35
+ &:hover .link
+ opacity: 1
+
+h1
+ font-size: 200%
+ font-weight: 400
+h2
+ font-size: 175%
+h3
+ font-size: 150%
+h4
+ font-size: 125%
+h5
+ font-size: 120%
+h6
+ font-size: 100%
+
+img, svg
+ max-width: 100%
+ vertical-align: middle
+img
+ height: auto
+ margin: 1rem auto
+ padding: 0
+ &:focus, &:focus-within
+ outline: none !important
+ border: none !important
+
+main
+ flex: 1
+
+ul
+ list-style: none
+ -webkit-padding-start: 0
+ -moz-padding-start: 0
+
+b, strong, em
+ font-weight: 500
+
+hr
+ border: none
+ padding: 1px
+ background: darken($haze, 7.5%)
+ opacity: 0.5
+ margin: 1rem 0
+ @media (prefers-color-scheme: dark)
+ background: var(--theme)
+
+aside
+ h3
+ position: relative
+ margin: 0 !important
+ ul
+ list-style: initial
+ padding-left: 1rem
+ li
+ padding: 0.25rem 0
+
+table
+ width: 100%
+ border-collapse: collapse
+ background: var(--table-haze)
+ // border-style: hidden
+ margin-bottom: 1.5rem
+ &:not(.ln-table) t
+ background: var(--table-bg)
+
+th
+ text-align: left
+
+td, th
+ padding: 0.5rem 1rem
+ border: 1px solid var(--table-border)
+
+td,
+th
+ padding: 0.5rem 1rem
+ text-align: left
+ font-weight: 400
+ &:not(:first-child)
+ padding-left: 1.5rem
+
+th
+ font-weight: 700
+
+tbody
+ padding: 0
+ tr
+ &:nth-child(even)
+ background-color: var(--table-haze)
+ &:nth-child(odd)
+ background-color: var(--table-bg)
+
+blockquote
+ margin: 25px auto
+ padding: 1.5rem
+ color: #555555
+ padding: 1rem 1.5rem
+ border-left: 0.2rem solid $theme
+ position: relative
+ background: var(--haze)
+p
+ padding: 0.8rem 0
+
+
+
diff --git a/assets/sass/_components.sass b/assets/sass/_components.sass
new file mode 100644
index 0000000..507e65f
--- /dev/null
+++ b/assets/sass/_components.sass
@@ -0,0 +1,536 @@
+.nav
+ color: $haze
+ display: flex
+ justify-content: space-between
+ @include content
+ &_active
+ background-color: rgba($light, 0.05)
+ &, &_body
+ &_icon
+ width: 0.7rem
+ margin-left: 0.33rem
+ transition: transform 0.3s var(--ease)
+ transform-origin: 50% 50%
+ &_body
+ display: flex
+ flex: 1
+ &_header
+ background-color: $bg
+ padding: 0 1.5rem
+ position: fixed
+ width: 100%
+ z-index: 99
+ left: 0
+ &_item
+ padding: 0.5rem 1rem
+ display: inline-flex
+ align-items: center
+
+ &_sub
+ position: absolute
+ z-index: 20
+ border-radius: 0 0 0.5rem 0.5rem
+ top: 3rem
+ transition: height 0.3s ease-in-out
+ height: 0
+ overflow: hidden
+ padding: 0.96rem 0 0
+ background: transparent
+
+ &_parent
+ position: relative
+ display: flex
+ align-items: center
+ margin: 0.25rem 0
+ border-radius: 0.5rem
+
+ &_open + &_sub
+ height: initial
+ z-index: 999
+ @media screen and (min-width: 769px)
+ background-color: $bg
+ min-width: 20.5rem
+ box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.17)
+ &_open &_icon
+ transform: rotate(180deg)
+
+ &_sub &_item
+ position: relative
+ z-index: 5
+ display: block
+ padding-top: 0.75rem
+ padding-bottom: 0.75rem
+ transition: background 0.3s ease-out
+ margin: 0
+
+ &_brand
+ img
+ max-width: 15rem
+ margin: 0
+ @media screen and (min-width: 769px)
+ padding-left: 0
+ // margin-left: -16rem
+ // transform: translateX(50rem)
+ img
+ background: transparent !important
+
+ &_center
+ display: none
+ @media screen and (min-width: 769px)
+ display: flex
+ flex: 1
+ align-items: center
+ justify-content: center
+ + .follow
+ flex: initial
+
+ &_hide
+ @media screen and (min-width: 769px)
+ display: none
+ &_close
+ display: none
+
+.content, .footer
+ padding: 1.5rem
+ @media screen and (min-width: 1441px)
+ padding: 1.5rem 0
+
+.content
+ padding-top: 5rem
+ @include content
+
+.footer
+ // border-top: 1px solid $xhaze
+ background: var(--footer-bg)
+ margin-top: 2rem
+ font-size: 0.9rem
+ &_inner
+ @include content
+ display: grid
+ grid-template-columns: 4rem 1fr
+ align-items: center
+ position: relative
+
+.button
+ background-color: $theme
+ color: $light
+ display: inline-flex
+ padding: 0.5rem 1.5rem
+ text-transform: uppercase
+ border: 1px solid $theme
+ border-radius: 1.5rem
+ font-size: 0.9rem
+ align-items: center
+ user-select: none
+ &:hover, &:focus
+ background-color: darken($theme, 20%)
+ color: $light
+ border: 1px solid darken($theme, 20%)
+
+ &_translucent
+ background-color: rgba($theme, 0.15)
+ color: $theme
+ border: 1px solid transparent
+ &_tally
+ padding: 0 0.75rem
+ border-radius: 0.5rem
+ background-color: $theme
+ display: inline-flex
+ justify-content: center
+ align-items: center
+ color: $light
+ margin: 0.1rem 0 0.1rem 0.2rem
+ font-size: 0.7rem
+
+
+.post
+ &_link, &_title
+ margin-bottom: 0
+ &s
+ margin-top: 2rem
+ &_header
+ height: 50vh
+ max-height: 35rem
+ background-color: $bg
+ // background-image: url(/images/island.jpg)
+ background-size: cover
+ background-position: center
+ margin-top: 4.2rem
+ @media screen and (max-width: 992px)
+ height: 40vh
+ margin-top: 3rem
+ @media screen and (max-width: 667px)
+ height: 30vh
+ & + .content
+ padding-top: 0
+ &_item
+ // box-shadow: 0 2.25rem 1.25rem -1.25rem var(--shadow)
+ margin-bottom: 3rem
+ border-radius: 0.5rem
+ background: var(--post-bg)
+ &_tag
+ padding: 0.2rem 0.8rem
+ font-size: 0.8rem
+ &s
+ display: none
+ &.jswidgetopen
+ display: initial
+ position: fixed
+ top: 0
+ left: 0
+ height: 100vh
+ overflow-y: auto
+ width: 100vw
+ padding: 5rem 1.5rem
+ background: var(--translucent-light)
+ cursor: pointer
+ z-index: 999
+ overflow-y: auto
+ &_toggle
+ margin-top: 0.5rem
+ margin-left: 0.5rem
+ cursor: pointer
+ &_tag, &_share
+ margin: 0.5rem
+ &_share
+ display: inline-flex
+ &_meta
+ display: inline-flex
+ flex-flow: row wrap
+ align-items: center
+ .button
+ margin-bottom: 0
+ &_date
+ margin-right: 0.5rem
+ margin-left: 0.25rem
+ &_content
+ a
+ color: $theme
+ ul, ol
+ list-style: initial
+ padding: 0.5rem 1.25rem
+ li
+ padding-top: 0.25rem
+ ol
+ list-style: decimal
+
+.scrollable
+ display: grid
+ width: 100%
+ max-width: 100%
+ overflow-x: auto
+
+.to-top
+ position: fixed
+ bottom: 2rem
+ @media screen and (max-width: 667px)
+ bottom: 2.25rem
+ right: 1.5rem
+ height: 2.25rem
+ width: 2.25rem
+ background-color: $theme
+ display: flex
+ align-items: center
+ justify-content: center
+ border: none
+ -webkit-appearance: none
+ border-radius: 50%
+ color: $light !important
+ text-decoration: none !important
+ font-size: 1.25rem
+ cursor: pointer
+ &, &:focus
+ outline: none
+
+.mb-0
+ margin-bottom: 0 !important
+
+.tag
+ &s
+ &_list
+ cursor: initial
+ background: var(--choice-bg)
+ padding: 4.5rem 1.5rem 1.5rem 1.5rem
+ border-radius: 1rem
+ max-width: 720px
+ margin: 0 auto
+ box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.12)
+ position: relative
+ display: flex
+ flex-flow: row wrap
+ &_nav
+ position: relative
+ &_hide
+ position: absolute
+ top: 1rem
+ right: 1.5rem
+ padding: 0.5rem
+ border-radius: 50%
+ cursor: pointer
+ @media screen and (min-width: 992px)
+ display: none
+ &_sort
+ font-size: 1rem
+ color: var(--light)
+ background: var(--theme)
+ position: absolute
+ top: 1.5rem
+ left: 1.5rem
+ border-radius: 1.5rem
+ padding: 0.1rem
+ &, span
+ user-select: none
+ span
+ display: inline-flex
+ justify-content: center
+ align-items: center
+ height: 2rem
+ position: relative
+ z-index: 5
+ cursor: pointer
+ width: 5rem
+ font-weight: 500
+ &::before
+ content: ""
+ position: absolute
+ width: 4.5rem
+ top: 0.25rem
+ bottom: 0.25rem
+ left: 0.25rem
+ z-index: 3
+ background: var(--bg)
+ opacity: 0.5
+ border-radius: 1.5rem
+ transition: 0.25s transform var(--ease)
+ &.sorted
+ &::before
+ transform: translateX(5rem)
+ &-title
+ border-bottom: none !important
+ display: inline-block !important
+ position: relative
+ font-size: 2rem
+ margin-bottom: -1rem
+ &::after
+ content: attr(data-count)
+ margin-left: 1.5rem
+ background-color: #eee
+ padding: 0.25rem 1rem
+ border-radius: 15%
+ font-size: 1.5rem
+
+.icon
+ display: inline-flex
+ justify-content: center
+ align-items: center
+ margin: 0 0.5rem
+ &, img, svg
+ width: 1.1rem
+ height: 1.1rem
+ &_2
+ width: 2.2rem
+ height: 2.2rem
+.link
+ opacity: 0
+ position: relative
+ &_yank
+ opacity: 1
+ &ed
+ position: absolute
+ right: -1rem
+ top: -2rem
+ background-color: $theme
+ color: $light
+ width: 7rem
+ padding: 0.25rem 0.5rem
+ font-size: 0.9rem
+ border-radius: 1rem
+ text-align: center
+ &::after
+ position: absolute
+ top: 1rem
+ content: ""
+ border-color: $theme transparent
+ border-style: solid
+ border-width: 1rem 1rem 0 1rem
+ height: 0
+ width: 0
+ transform-origin: 50% 50%
+ transform: rotate(145deg)
+ right: 0.45rem
+
+.excerpt
+ &_header, &_footer
+ padding: 1rem
+ &_footer
+ padding: 0 1rem 2.25rem 1rem
+ &_thumbnail
+ min-height: 10rem
+ display: none
+ @media screen and (min-width: 769px)
+ display: block
+ border-radius: 0.5rem
+ &_footer
+ &.partition
+ display: grid
+ @media screen and (min-width: 769px)
+ grid-template-columns: 2fr 7fr
+ grid-gap: 1rem
+.sidebar
+ &_inner
+ position: relative
+ &::before
+ content: ""
+ padding: 0.5px
+ top: 0
+ bottom: 0
+ // background: var(--light)
+ background: linear-gradient(to bottom, var(--haze), var(--light), var(--haze))
+ position: absolute
+ left: -2rem
+ // display: none
+
+.pagination
+ display: flex
+
+.page
+ &-item
+ padding: 0.2rem
+ &.disabled
+ opacity: 0.7
+ &:first-child, &:last-child
+ display: none
+ &.active a
+ background-color: darken($theme, 20%)
+ &-link
+ padding: 0.25rem 0.75rem
+ background-color: $theme
+ color: $light
+ border-radius: 1rem
+
+
+.float
+ &_left
+ float: left
+ margin-right: 1rem
+ + p
+ padding-top: 0
+ &_right
+ float: right
+ margin-left: 1rem
+ &_left, &_right
+ &::after
+ clear: both
+
+.follow
+ display: flex
+ align-items: center
+ flex: 1
+ justify-content: flex-end
+ svg
+ fill: $haze
+ margin-left: 0.75rem
+
+.img
+ &_alt
+ font-style: italic
+ padding-top: 0rem
+ opacity: 0.67
+ font-size: 0.9rem
+
+.to
+ &_top
+ background-color: $theme
+ width: 2.75rem
+ height: 2.75rem
+ display: flex
+ justify-content: center
+ align-items: center
+ cursor: pointer
+ border-radius: 50%
+ position: fixed
+ bottom: 1.5rem
+ right: 1.5rem
+ z-index: 99
+ &.ios
+ position: absolute
+ bottom: 0.75rem
+ right: 0
+ &:hover
+ background-color: $theme
+ svg
+ fill: $light
+ opacity: 0.5
+ transition: 0.3s opacity var(--ease)
+
+ &:hover svg
+ opacity: 1
+
+.color
+ &_mode
+ // width: 3rem
+ height: 1.5rem
+ display: grid
+ align-items: center
+ margin: 0 0.5rem
+ @media screen and (min-width: 769px)
+ margin: 0 1.5rem
+ grid-template-columns: 1fr
+
+ &_choice
+ width: 3rem
+ background-color: var(--translucent-light)
+ border-radius: 1rem
+ height: 1.5rem
+ outline: none
+ border: none
+ -webkit-appearance: none
+ cursor: pointer
+ position: relative
+ position: relative
+ overflow: hidden
+ box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.15)
+ &::after
+ content: ""
+ position: absolute
+ top: 0.1rem
+ left: 0.1rem
+ width: 1.3rem
+ height: 1.3rem
+ background-image: url("#{$images}sun.svg")
+ background-position: center
+ background-size: cover
+ border-radius: 50%
+ z-index: 2
+ &_animate
+ transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1)
+ &::after
+ transition: transform 0.5s cubic-bezier(.19,1,.22,1)
+ will-change: transform
+
+
+.taxonomy
+ text-transform: capitalize
+
+.image
+ &-scale
+ position: fixed
+ z-index: 999999
+ left: 0
+ right: 0
+ height: 100vh
+ top: 0
+ padding: 1.5rem
+ background-color: var(--bg)
+ display: grid
+ align-items: center
+ overflow: auto
+ &-scale &-scalable
+ background-color: var(--text)
+ &-scalable
+ cursor: pointer
+ transition: transform 0.3s var(--ease)
+ &_featured
+ display: block
+ margin-left: auto !important
+ margin-right: auto !important \ No newline at end of file
diff --git a/assets/sass/_custom.sass b/assets/sass/_custom.sass
new file mode 100644
index 0000000..6055fc5
--- /dev/null
+++ b/assets/sass/_custom.sass
@@ -0,0 +1 @@
+// add custom sass in this file \ No newline at end of file
diff --git a/assets/sass/_fonts.sass b/assets/sass/_fonts.sass
new file mode 100644
index 0000000..3d3351b
--- /dev/null
+++ b/assets/sass/_fonts.sass
@@ -0,0 +1,55 @@
+@font-face
+ font-family: 'Metropolis'
+ font-style: normal
+ font-weight: 200
+ src: local('Metropolis Extra Light'), local('Metropolis-Light'), url('#{$font-path}/Metropolis-ExtraLight.woff2') format('woff2'), url('#{$font-path}/Metropolis-ExtraLight.woff') format('woff')
+ font-display: swap
+
+@font-face
+ font-family: 'Metropolis'
+ font-style: italic
+ font-weight: 200
+ src: local('Metropolis Extra Light Italic'), local('Metropolis-ExtraLightItalic'), url('#{$font-path}/Metropolis-ExtraLightItalic.woff2') format('woff2'), url('#{$font-path}/Metropolis-ExtraLightItalic.woff') format('woff')
+ font-display: swap
+
+@font-face
+ font-family: 'Metropolis'
+ font-style: normal
+ font-weight: 300
+ src: local('Metropolis Light'), local('Metropolis-Light'), url('#{$font-path}/Metropolis-Light.woff2') format('woff2'), url('#{$font-path}/Metropolis-Light.woff') format('woff')
+ font-display: swap
+
+@font-face
+ font-family: 'Metropolis'
+ font-style: italic
+ font-weight: 300
+ src: local('Metropolis Light Italic'), local('Metropolis-LightItalic'), url('#{$font-path}/Metropolis-LightItalic.woff2') format('woff2'), url('#{$font-path}/Metropolis-LightItalic.woff') format('woff')
+ font-display: swap
+
+@font-face
+ font-family: 'Metropolis'
+ font-style: normal
+ font-weight: 400
+ src: local('Metropolis Regular'), local('Metropolis-Regular'), url('#{$font-path}/Metropolis-Regular.woff2') format('woff2'), url('#{$font-path}/Metropolis-Regular.woff') format('woff')
+ font-display: swap
+
+@font-face
+ font-family: 'Metropolis'
+ font-style: italic
+ font-weight: 400
+ src: local('Metropolis Regular Italic'), local('Metropolis-RegularItalic'), url('#{$font-path}/Metropolis-RegularItalic.woff2') format('woff2'), url('#{$font-path}/Metropolis-RegularItalic.woff') format('woff')
+ font-display: swap
+
+@font-face
+ font-family: 'Metropolis'
+ font-style: normal
+ font-weight: 500
+ src: local('Metropolis Medium'), local('Metropolis-Medium'), url('#{$font-path}/Metropolis-Medium.woff2') format('woff2'), url('#{$font-path}/Metropolis-Medium.woff') format('woff')
+ font-display: swap
+
+@font-face
+ font-family: 'Metropolis'
+ font-style: italic
+ font-weight: 500
+ src: local('Metropolis Medium Italic'), local('Metropolis-MediumItalic'), url('#{$font-path}/Metropolis-MediumItalic.woff2') format('woff2'), url('#{$font-path}/Metropolis-MediumItalic.woff') format('woff')
+ font-display: swap
diff --git a/assets/sass/_mobile.sass b/assets/sass/_mobile.sass
new file mode 100644
index 0000000..51e2dd3
--- /dev/null
+++ b/assets/sass/_mobile.sass
@@ -0,0 +1,78 @@
+@media screen and (max-width: 769px)
+ .nav
+ // padding-bottom: 2rem
+ &, &_body
+ flex-direction: column
+ &_body
+ position: fixed
+ width: 90%
+ max-width: 16.5rem
+ top: 0
+ bottom: 0
+ background-color: $bg
+ transition: transform 0.3s var(--easing)
+ &_right
+ transform: translateX(100vw)
+ right: 0
+ &_left
+ transform: translateX(-100vw)
+ left: 0
+
+ &_close
+ width: 3rem
+ position: absolute
+ right: -4rem
+ top: 0
+ bottom: 0
+ cursor: pointer
+ z-index: 1000
+ display: grid
+ place-items: center
+ svg
+ width: 1.25rem
+ fill: var(--light)
+ height: 1.25rem
+ display: none
+ &:first-child
+ display: initial
+ &.isopen
+ display: none
+ + svg
+ display: initial
+
+ &_brand
+ position: relative
+ z-index: 999
+ width: calc(100% - 3rem)
+ padding-left: 0
+
+ &_parent
+ display: grid
+ &_sub
+ position: relative
+ top: initial
+ padding-top: 0
+
+ .jsopen
+ &::after
+ content: ""
+ position: fixed
+ z-index: 2
+ background-color: rgba(0,0,0,0.3)
+ top: 0
+ left: 0
+ right: 0
+ bottom: 0
+ .nav
+ &_body
+ transform: translateX(0)
+ padding-left: 1.5rem
+ padding-right: 1.5rem
+ &_parent
+ &:first-child
+ margin-top: 4.4rem
+
+ .follow
+ justify-content: flex-start
+ flex: initial
+ margin-top: 0.75rem
diff --git a/assets/sass/_syntax.sass b/assets/sass/_syntax.sass
new file mode 100644
index 0000000..90a604e
--- /dev/null
+++ b/assets/sass/_syntax.sass
@@ -0,0 +1,236 @@
+@keyframes pulse
+ 0%
+ opacity: 1
+ 75%
+ opacity: 0.1
+ 100%
+ opacity: 1
+
+code
+ font-size: 15px
+ font-weight: 400
+ overflow-y: hidden
+ display: block
+ font-family: 'Monaco', monospace
+ word-break: break-all
+ &.noClass
+ --inlineColor: rgb(194, 29, 0)
+ color: var(--inlineColor)
+ display: inline
+ line-break: anywhere
+.windows .highlight
+ overflow-x: hidden
+ &:hover
+ overflow-x: auto
+
+.highlight
+ display: grid
+ width: 100%
+ border-radius: 0 0.2rem 0.2rem 0
+ overflow-x: auto
+ // @media screen and (min-width: 1240px)
+ // overflow-x: hidden
+ // &:hover
+ // overflow-x: auto
+ position: relative
+ &_wrap
+ background: var(--code-bg) !important
+ border-radius: 0.5rem
+ position: relative
+ padding: 0 1rem
+ margin: 1.5rem auto 1rem auto
+ &:hover > div
+ opacity: 1
+ .lang
+ position: absolute
+ // background-color: var(--bg)
+ top: 0
+ right: 0
+ text-align: right
+ width: 7.5rem
+ padding: 0.5rem 1rem
+ font-style: italic
+ text-transform: uppercase
+ font-size: 67%
+ opacity: 0.5
+ color: var(--light)
+ &:hover .lang
+ opacity: 0.1
+ & &
+ margin: 0
+ pre
+ color: var(--light) !important
+ border-radius: 4px
+ font-family: 'Monaco', monospace
+ padding-top: 1.5rem
+ padding-bottom: 2rem
+
+ table
+ display: grid
+ max-width: 100%
+ margin-bottom: 0
+ background: transparent
+ td, th
+ padding: 0
+
+ .lntd
+ width: 100%
+ border: none
+ &:first-child
+ &, pre
+ width: 2.5rem !important
+ padding-left: 0
+ padding-right: 0
+ color: rgba(255,255,255,0.5)
+ user-select: none
+
+ pre
+ width: 100%
+ display: flex
+ align-items: center
+ flex-direction: column
+
+.err
+ color: #a61717
+ background-color: #e3d2d2
+.hl
+ width: 100%
+ background-color: rgba(255,255,255,0.25)
+.ln, .lnt
+ margin-right: 0.75rem
+ padding: 0
+ transition: opacity 0.3s var(--ease)
+ &, span
+ color: #666
+
+.k, .kc, .kd, .kn, .kp, .kr, .kt, .nt
+ color: #6ab825
+ font-weight: 500
+
+.kn, .kp
+ font-weight: 400
+
+.nb, .no, .nv
+ color: #24909d
+
+.nc, .nf, .nn
+ color: #447fcf
+
+.s, .sa, .sb, .sc, .dl, .sd, .s2, .se, .sh, .si, .sx, .sr, .s1, .ss
+ color: #ed9d13
+
+.m, .mb, .mf, .mh, .mi, .il, .mo
+ color: #3677a9
+
+.ow
+ color: #6ab825
+ font-weight: 500
+
+.c, .ch, .cm, .c1
+ color: #999
+ font-style: italic
+
+.cs
+ color: #e50808
+ background-color: #520000
+ font-weight: 500
+
+.cp, .cpf
+ color: #cd2828
+ font-weight: 500
+
+.gd, .gr
+ color: #d22323
+
+.ge
+ font-style: italic
+
+.gh, .gu, .nd, .na, .ne
+ color: #ffa500
+ font-weight: 500
+
+.gi
+ color: #589819
+
+.go
+ color: #ccc
+
+.gp
+ color: #aaa
+
+.gs
+ font-weight: 500
+
+.gt
+ color: #d22323
+.w
+ color: #666
+
+.hljs
+ &-string
+ color: #6ab825
+
+ &-attr
+ color: #ed9d13
+
+ .p &-attr
+ color: var(--light)
+
+.pre
+ &_wrap
+ white-space: pre-wrap
+ white-space: -moz-pre-wrap
+ white-space: -pre-wrap
+ white-space: -o-pre-wrap
+ word-wrap: break-word
+
+ &_nolines.ln
+ display: none
+
+// crayon-like widget styles
+.panel
+ &_box
+ display: inline-flex
+ // grid-template-columns: repeat(3, 1fr)
+ // max-width: 10rem
+ perspective: 300px
+ grid-gap: 0.5rem
+ transition: opacity 0.3s var(--easing)
+ background: var(--code-bg)
+ padding: 0.5rem 1.5rem
+ border-radius: 2rem
+ align-items: center
+ position: absolute
+ right: 0rem
+ top: -2.1rem
+ opacity: 0
+ &_icon
+ display: inline-flex
+ align-items: center
+ justify-content: center
+ cursor: pointer
+ // transition: opacity 0.3s var(--easing)
+ padding: 0.1rem
+ transform-origin: 50% 50%
+ // opacity: 0.7
+ &.active
+ animation: pulse 0.1s linear
+ svg
+ fill: var(--light)
+ width: 1.5rem
+ height: 1.5rem
+ &_hide
+ // hide icon if not needed
+ display: none
+ &_from
+ position: absolute
+ color: var(--theme)
+ bottom: 0
+ font-size: 1.5rem
+ font-weight: 500
+ padding: 0.5rem 0
+ cursor: pointer
+ letter-spacing: 0.1px
+ z-index: 19
+ &_expanded &_from
+ display: none
diff --git a/assets/sass/_utils.sass b/assets/sass/_utils.sass
new file mode 100644
index 0000000..001e980
--- /dev/null
+++ b/assets/sass/_utils.sass
@@ -0,0 +1,64 @@
+@for $i from 1 through 2
+ $size: $i * 1.5rem
+ $x-size: $size * 0.5
+ .pt-#{$i}
+ padding-top: $size
+
+ .pb-#{$i}
+ padding-bottom: $size
+
+ .mt-#{$i}
+ margin-top: $size
+
+ .mb-#{$i}
+ margin-bottom: $size
+
+.flex
+ display: flex
+ flex-direction: column
+ align-items: center
+
+.shadow
+ box-shadow: 0 0 60px rgba(0, 0, 0, 0.17)
+
+
+@media screen and (min-width: 42rem)
+ %grid
+ display: grid
+ grid-template-columns: 1fr
+
+ [class*='grid-']
+ grid-gap: 2rem
+
+ .grid-2, .grid-3, .grid-4, .grid-auto, .grid-inverse
+ @extend %grid
+ .grid-inverse
+ grid-template-columns: 70% 1fr
+ grid-column-gap: 4rem
+ .grid-2
+ grid-template-columns: 1fr 1fr
+ .grid-3
+ grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr))
+ .grid-4
+ grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr))
+
+$sites: ("facebook": #325c94, "twitter": #00abdc,"linkedin": #007bb6)
+
+@each $item, $color in $sites
+ .#{$item}
+ svg
+ fill: $color
+
+// 404 page
+.never
+ height: 75vh
+ display: flex
+ justify-content: center
+ align-items: center
+ flex-direction: column
+ padding: 1.5rem
+ text-align: center
+
+.inline
+ display: inline
+ margin: 0
diff --git a/assets/sass/_variables.sass b/assets/sass/_variables.sass
new file mode 100644
index 0000000..d9646fe
--- /dev/null
+++ b/assets/sass/_variables.sass
@@ -0,0 +1,118 @@
+$font-path: '../fonts'
+$icons: '../icons/'
+$images: '../images/'
+
+$light: #fff
+$haze: #fafafa
+$xhaze: darken($haze, 11%)
+$bg: #002538
+$theme: #0077b8
+
+@mixin content()
+ --maxWidth: 1440px
+ max-width: var(--maxWidth)
+ margin-left: auto
+ margin-right: auto
+
+@mixin viewport($width: 1024px, $margin: 25px)
+ max-width: $width
+ margin: $margin auto
+ @content
+
+@mixin shadow($opacity: 0.17)
+ box-shadow: 0 0 3rem rgba(0,0,0,$opacity)
+ &:hover
+ box-shadow: 0 0 5rem rgba(0,0,0, (1.5 * $opacity))
+
+html
+ --color-mode: 'lit'
+ --light: #fff
+ --dark: #000
+ --bg: #002538
+ --haze: #f2f2f2
+ --gray: #020202
+ --accent: var(--gray)
+ --text: #575757
+ --header-text: var(--dark)
+ --font: 'Metropolis', sans-serif
+ --theme: #0077b8
+ --ease: cubic-bezier(.19,1,.22,1)
+ --code-bg: var(--bg)
+ --table-bg: var(--light)
+ --table-haze: var(--haze)
+ --table-border: #dedede
+ --footer-bg: var(--haze)
+ --shadow: rgba(0,0,0,0.12)
+ --translucent: rgba(0,0,0,0.05)
+ --translucent-light: rgba(255,255,255,0.05)
+ --post-bg: var(--light)
+ --choice-bg: var(--haze)
+ --ease: cubic-bezier(0.39, 0.575, 0.565, 1)
+ --easing: cubic-bezier(.19,1,.22,1)
+ &.page
+ --choice-bg: var(--light)
+ @mixin darkmode
+ --color-mode: 'dim'
+ --text: var(--light)
+ --accent: var(--bubble)
+ --choice-bg: var(--bg)
+ --code-bg: var(--translucent-light)
+ --header-text: var(--light)
+ --table-bg: var(--code-bg)
+ --table-haze: rgba(255,255,255,0.1)
+ --table-border: var(--code-bg)
+ --footer-bg: var(--bg)
+ --post-bg: var(--translucent-light)
+ *
+ box-shadow: none !important
+
+
+ &[data-mode="dim"]
+ @include darkmode
+ blockquote
+ background: var(--translucent-light)
+ color: #dedede
+ svg.icon
+ fill: var(--light)
+ img:not(.nav_icon):not(.transparent)
+ // background: var(--light)
+ .icon
+ img
+ background: none
+ svg
+ fill: #fafafa
+ .sidebar
+ &_inner
+ &::before
+ display: none
+ .color
+ &_choice
+ &::after
+ background-image: url("#{$images}night-moon.jpg")
+ transform: translateX(1.4rem)
+
+ @media (prefers-color-scheme: dark)
+
+ &:not([data-mode="lit"])
+ @include darkmode
+ blockquote
+ background: var(--translucent-light)
+ color: #dedede
+ svg.icon
+ fill: var(--light)
+ img:not(.nav_icon):not(.transparent)
+ // background: var(--light)
+ .icon
+ img
+ background: none
+ svg
+ fill: #fafafa
+ .sidebar
+ &_inner
+ &::before
+ display: none
+ .color
+ &_choice
+ &::after
+ background-image: url("#{$images}night-moon.jpg")
+ transform: translateX(1.4rem)
diff --git a/assets/sass/main.sass b/assets/sass/main.sass
new file mode 100644
index 0000000..50f7bbe
--- /dev/null
+++ b/assets/sass/main.sass
@@ -0,0 +1,8 @@
+@import 'variables'
+@import 'fonts'
+@import 'base'
+@import 'components'
+@import 'utils'
+@import 'mobile'
+@import 'syntax'
+@import 'custom'