Website Summary Files Commits Branches @commit @diff @stats
path: root / assets / sass / _base.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/_base.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
1 files changed, 151 insertions, 0 deletions
-rw-r--r--assets/sass/_base.sass151
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
+
+
+