update files
This commit is contained in:
parent
e1eeea3684
commit
f23bf8ab9e
3 changed files with 3 additions and 71 deletions
|
|
@ -1,40 +0,0 @@
|
||||||
@use "sass:map"
|
|
||||||
|
|
||||||
// this file contains the mixins
|
|
||||||
|
|
||||||
@mixin toggle-section-numbers($header, $toggle)
|
|
||||||
@if $toggle == true
|
|
||||||
#{$header} > span[class^="section-number"]:first-of-type
|
|
||||||
display: inline // Uses the default display for the header
|
|
||||||
@else
|
|
||||||
#{$header} > span[class^="section-number"]:first-of-type
|
|
||||||
display: none
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@mixin remove-section-number($element)
|
|
||||||
#{$element} > span[class^="section-number"]:first-of-type
|
|
||||||
display: none
|
|
||||||
|
|
||||||
// @mixin set-header-color($header-color)
|
|
||||||
// h1, h2, h3, h4, h5, h6
|
|
||||||
// color: $header-color
|
|
||||||
|
|
||||||
@mixin set-header-colors($header-colors)
|
|
||||||
@each $header, $size in $header-colors
|
|
||||||
#{$header}
|
|
||||||
color: #{$size}
|
|
||||||
|
|
||||||
@mixin set-header-sizes($header-sizes)
|
|
||||||
@each $header, $size in $header-sizes
|
|
||||||
#{$header}
|
|
||||||
font-size: #{$size}
|
|
||||||
|
|
||||||
@mixin adjust-header-size($scale-factor, $header-sizes)
|
|
||||||
@each $header, $size in $header-sizes
|
|
||||||
#{$header}
|
|
||||||
font-size: calc(#{$scale-factor} * #{$size})
|
|
||||||
|
|
||||||
// Function to return the font size from the $header-styles map
|
|
||||||
@function get-header-property($element, $property)
|
|
||||||
$element-styles: map.get($header-styles, $element) // Get the styles for the element
|
|
||||||
@return map.get($element-styles, $property) // Return the requested property value
|
|
||||||
1
_share/media/sass/_mixins.sass
Symbolic link
1
_share/media/sass/_mixins.sass
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/Users/ronny/notes/_share/media/sass/_mixins.sass
|
||||||
|
|
@ -1,30 +0,0 @@
|
||||||
@use "sass:map"
|
|
||||||
@use 'variables' as *
|
|
||||||
@use '../../../../../_share/media/sass/mixins' as mixins-basic
|
|
||||||
|
|
||||||
h2
|
|
||||||
margin-bottom: 0
|
|
||||||
text-transform: uppercase
|
|
||||||
|
|
||||||
ul, ol
|
|
||||||
margin: 0
|
|
||||||
padding-left: 3em
|
|
||||||
margin-top: 0.5em
|
|
||||||
|
|
||||||
ul.contents-overview
|
|
||||||
padding-left: 1em
|
|
||||||
list-style-type: none
|
|
||||||
|
|
||||||
li
|
|
||||||
margin: 0
|
|
||||||
margin-bottom: .5em
|
|
||||||
|
|
||||||
a
|
|
||||||
font-weight: 600
|
|
||||||
text-transform: uppercase
|
|
||||||
text-decoration: none
|
|
||||||
text-underline-offset: 6px
|
|
||||||
|
|
||||||
&:hover
|
|
||||||
text-decoration: underline
|
|
||||||
|
|
||||||
1
_share/media/sass/content-overview.sass
Symbolic link
1
_share/media/sass/content-overview.sass
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
/Users/ronny/notes/_share/media/sass/content-overview.sass
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
@use "sass:color"
|
@use "sass:color"
|
||||||
@use 'variables' as *
|
@use 'variables' as *
|
||||||
@use 'fonts' as fonts
|
@use 'fonts' as fonts
|
||||||
@use '../../../../../_share/media/sass/mixins' as mixins-basic
|
@use 'mixins' as mixins-basic
|
||||||
|
|
||||||
@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)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue