org-media-sass/course_listings.sass

155 lines
3.1 KiB
Sass
Raw Normal View History

2025-01-21 02:10:25 +02:00
@use "sass:map"
@use "sass:color"
2024-11-27 02:08:59 +02:00
2025-01-21 02:10:25 +02:00
@use 'themes/course_listings/dark' as theme
@use 'mixins'
@use 'collapsible'
@include mixins.toggle-section-numbers(h4, false)
@include mixins.remove-section-number(h2)
2024-11-27 02:08:59 +02:00
// @include set-header-sizes($default-header-sizes)
// @include set-header-color($text-color)
// Base body styles
body
2025-01-21 02:10:25 +02:00
font-family: theme.$primary-font
2024-11-27 02:08:59 +02:00
font-size: 16px
line-height: 1.6
2025-01-21 02:10:25 +02:00
color: theme.$text-color
background-color: theme.$background-color
2024-11-27 02:08:59 +02:00
// Headers
2025-01-21 02:10:25 +02:00
@each $header, $props in theme.$header-styles
2024-11-27 02:08:59 +02:00
#{$header}
2025-01-21 02:10:25 +02:00
font-family: theme.$secondary-font
2024-11-27 02:08:59 +02:00
font-weight: bold
2025-01-21 02:10:25 +02:00
color: map.get($props, color)
font-size: map.get($props, size)
2024-11-27 02:08:59 +02:00
margin-top: 20px
margin-bottom: 10px
div#postamble
2025-01-21 02:10:25 +02:00
border-color: theme.$text-color
2024-11-27 02:08:59 +02:00
a
2025-01-21 02:10:25 +02:00
color: theme.$anchor-color
2024-11-27 02:08:59 +02:00
text-decoration: none
&:hover
2025-01-21 02:10:25 +02:00
color: theme.$anchor-hover-color
border-bottom-color: theme.$anchor-hover-color
2024-11-27 02:08:59 +02:00
text-decoration: underline
h2
margin-top: 1.5em
h3
margin-top: 2em
margin-left: 1em
border-bottom: solid 1px get-header-property(h3, 'color')
h3 + .outline-text-3 p
margin-top: 0
h3 + .outline-text-3 p > a:first-of-type
font-size: 1em
2025-01-21 02:10:25 +02:00
margin-left: theme.$first-anchor-margin-left
2024-11-27 02:08:59 +02:00
h4
text-transform: uppercase
padding-left: 2em
margin-top: 0
h4 + .outline-text-4 ol, h4 + .outline-text-4 ul
padding-left: 4em
a
color: #a19581
text-decoration: none
&:hover
color: #ffad42 // A warm, light orange that pairs well with the yellow marker
border-bottom-color: #ffad42
text-decoration: underline
li
&::marker
color: #8b872b
font-size: 1.2em
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3)
b
font-family: arial-black
font-size: .7em
text-transform: uppercase
padding-left: 2em
color: #c5b06a
ul.notes
list-style-type: square
padding-left: 3em
ul.desc-link
li
margin-bottom: .2em // Add space between list items
> a
display: block
ul.explanation
list-style-type: none
margin-left: 2em
margin-top: 0
margin-bottom: 1.5em
li
2025-01-21 02:10:25 +02:00
// color: darken(theme.$primary-color, 10)
color: color.adjust(theme.$primary-color, $lightness: -10%)
2024-11-27 02:08:59 +02:00
font-weight: bold
2025-01-21 02:10:25 +02:00
font-family: theme.$secondary-font
2024-11-27 02:08:59 +02:00
text-transform: uppercase
font-size: .9rem
a
text-transform: none
font-weight: normal
2025-01-21 02:10:25 +02:00
color: theme.$anchor-secondary-color
2024-11-27 02:08:59 +02:00
&:hover
2025-01-21 02:10:25 +02:00
color: theme.$anchor-secondary-hover-color
2024-11-27 02:08:59 +02:00
/*
&:not(a)
color: darken($primary-color, 10)
font-weight: bold
font-family: $secondary-font
text-transform: lowercase
ul.toc
list-style-type: none
padding-left: 2em
margin-top: 0
margin-bottom: 0
li
a
text-transform: uppercase
font-weight: bold
font-size: 1rem
2025-01-21 02:10:25 +02:00
font-family: theme.$secondary-font
color: theme.$tertiary-color
color: color.adjust(theme.$quinary-color, $lightness: 5%)
2024-11-27 02:08:59 +02:00
text-transform: uppercase
&:hover
2025-01-21 02:10:25 +02:00
// color: lighten($quinary-color, 10)
color: color.adjust(theme.$quinary-color, $lightness: 5%)
2024-11-27 02:08:59 +02:00
&::after
content: " Notes"