refactored
This commit is contained in:
parent
913cdfea8c
commit
d6aad02078
1 changed files with 13 additions and 93 deletions
|
|
@ -1,36 +1,29 @@
|
||||||
@use "sass:map"
|
@use "sass:map"
|
||||||
@use "sass:color"
|
@use "sass:color"
|
||||||
|
|
||||||
|
@use 'default-org-mode'
|
||||||
|
|
||||||
@use 'variables' as *
|
@use 'variables' as *
|
||||||
@use 'fonts' as fonts
|
@use 'fonts' as fonts
|
||||||
@use 'mixins' as mixins-basic
|
@use 'mixins' as mixins-basic
|
||||||
|
|
||||||
|
@use 'collapsible'
|
||||||
|
|
||||||
@include mixins-basic.set-header-sizes($default-header-sizes)
|
@include mixins-basic.set-header-sizes($default-header-sizes)
|
||||||
@include mixins-basic.set-header-colors($default-header-colors)
|
@include mixins-basic.set-header-colors($default-header-colors)
|
||||||
@include mixins-basic.set-header-margins-sides($default-header-margins-sides)
|
@include mixins-basic.set-header-margins-sides($default-header-margins-sides)
|
||||||
@include mixins-basic.set-header-margins-vertical($default-header-margins-vertical)
|
@include mixins-basic.set-header-margins-vertical($default-header-margins-vertical)
|
||||||
|
|
||||||
@include mixins-basic.remove-section-number(h2)
|
|
||||||
@include mixins-basic.remove-section-number(h4)
|
|
||||||
|
|
||||||
|
|
||||||
/* Base Styles */
|
/* Base Styles */
|
||||||
body
|
body
|
||||||
font-family: $primary-font
|
font-family: $primary-font
|
||||||
font-size: 1em
|
|
||||||
line-height: 1.6
|
|
||||||
|
|
||||||
color: $text-color
|
color: $text-color
|
||||||
background-color: $background-color
|
background-color: $background-color
|
||||||
|
|
||||||
margin: 0 auto
|
|
||||||
max-width: 900px
|
|
||||||
padding: 1em
|
|
||||||
|
|
||||||
/* Link Styles */
|
/* Link Styles */
|
||||||
a
|
a
|
||||||
color: $anchor-color
|
color: $anchor-color
|
||||||
text-decoration: underline
|
|
||||||
text-underline-offset: 2px
|
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
color: $anchor-hover-color
|
color: $anchor-hover-color
|
||||||
|
|
@ -39,37 +32,18 @@ a
|
||||||
ul, ol
|
ul, ol
|
||||||
padding-left: $list-padding-left
|
padding-left: $list-padding-left
|
||||||
|
|
||||||
ul
|
|
||||||
margin: 1em 0em
|
|
||||||
list-style-type: disc
|
|
||||||
|
|
||||||
ol
|
|
||||||
margin: 1em .5em
|
|
||||||
list-style-type: decimal
|
|
||||||
|
|
||||||
li
|
|
||||||
margin-bottom: 0.5em
|
|
||||||
|
|
||||||
// Blockquotes
|
// Blockquotes
|
||||||
blockquote
|
blockquote
|
||||||
border-left: 4px solid $secondary-color
|
border-color: $secondary-color
|
||||||
padding-left: 1em
|
|
||||||
color: color.adjust($text-color, $lightness: 10%)
|
color: color.adjust($text-color, $lightness: 10%)
|
||||||
margin: 1.5em 0
|
|
||||||
|
|
||||||
font-family: $secondary-font
|
font-family: $secondary-font
|
||||||
|
|
||||||
// Tables
|
// Tables
|
||||||
table
|
table
|
||||||
width: 100%
|
|
||||||
border-collapse: collapse
|
|
||||||
margin-bottom: 1em
|
|
||||||
color: $text-color
|
color: $text-color
|
||||||
|
|
||||||
th, td
|
th, td
|
||||||
padding: 0.75em
|
border-color: $table-border-color
|
||||||
text-align: left
|
|
||||||
border: 1px solid $table-border-color
|
|
||||||
|
|
||||||
th
|
th
|
||||||
background-color: $table-header-bg
|
background-color: $table-header-bg
|
||||||
|
|
@ -85,85 +59,31 @@ pre, code
|
||||||
|
|
||||||
font-family: $secondary-font
|
font-family: $secondary-font
|
||||||
|
|
||||||
border-radius: 4px
|
|
||||||
padding: 0.5em
|
|
||||||
display: block
|
|
||||||
overflow-x: auto
|
|
||||||
|
|
||||||
// Section
|
|
||||||
section
|
|
||||||
margin-bottom: 2em
|
|
||||||
|
|
||||||
/* Header Styles */
|
/* Header Styles */
|
||||||
h1, h2, h3, h4, h5, h6
|
h1, h2, h3, h4, h5, h6
|
||||||
text-transform: capitalize
|
|
||||||
font-family: $secondary-font
|
font-family: $secondary-font
|
||||||
font-weight: bold
|
|
||||||
|
|
||||||
h3
|
h3
|
||||||
a
|
a
|
||||||
color: color.adjust($anchor-color, $lightness: -12%)
|
color: color.adjust($anchor-color, $lightness: -12%)
|
||||||
&:hover
|
&:hover
|
||||||
text-decoration: none
|
|
||||||
color: color.adjust($anchor-hover-color, $lightness: -12%)
|
color: color.adjust($anchor-hover-color, $lightness: -12%)
|
||||||
|
|
||||||
// Paragraphs
|
|
||||||
p
|
|
||||||
margin-bottom: 1em
|
|
||||||
|
|
||||||
// Notes
|
// Notes
|
||||||
.note
|
.note
|
||||||
background-color: $note-background-color
|
background-color: $note-background-color
|
||||||
padding: 0.5em
|
border-color: $note-border-color
|
||||||
border-left: 3px solid $note-border-color
|
|
||||||
margin-bottom: 1em
|
|
||||||
color: $text-color
|
color: $text-color
|
||||||
|
|
||||||
div#postamble
|
div#postamble
|
||||||
border-top: 1px dashed $note-border-color
|
border-color: $note-border-color
|
||||||
margin-top: 2em
|
|
||||||
padding-top: 1em
|
|
||||||
color: color.adjust($note-border-color, $lightness: 20%)
|
color: color.adjust($note-border-color, $lightness: 20%)
|
||||||
font-size: 0.9em
|
|
||||||
|
|
||||||
.outline-3
|
|
||||||
margin-left: .5em
|
|
||||||
|
|
||||||
.outline-4
|
|
||||||
margin-left: .5em
|
|
||||||
|
|
||||||
/* Table of Contents Link */
|
/* Table of Contents Link */
|
||||||
.toc
|
.toc
|
||||||
font-weight: bold
|
|
||||||
color: $primary-color
|
color: $primary-color
|
||||||
|
|
||||||
ul.links
|
div#table-of-contents ul li a
|
||||||
padding-left: 2em
|
|
||||||
list-style-type: square
|
|
||||||
li
|
|
||||||
margin: 0
|
|
||||||
|
|
||||||
a
|
|
||||||
text-transform: capitalize
|
|
||||||
|
|
||||||
div#table-of-contents
|
|
||||||
ul
|
|
||||||
padding-left: 1em
|
|
||||||
margin: 0
|
|
||||||
list-style-type: none
|
|
||||||
|
|
||||||
li
|
|
||||||
margin: .4 0
|
|
||||||
|
|
||||||
a
|
|
||||||
color: $toc-anchor-color
|
color: $toc-anchor-color
|
||||||
text-transform: lowercase
|
|
||||||
text-decoration: none
|
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
color: $toc-anchor-hover-color
|
color: $toc-anchor-hover-color
|
||||||
|
|
||||||
h2
|
|
||||||
margin-left: 0
|
|
||||||
margin-bottom: .2em
|
|
||||||
text-transform: uppercase
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue