diff --git a/src/themes/scss/theme/components/_markup.scss b/src/themes/scss/theme/components/_markup.scss new file mode 100644 index 0000000..91008a8 --- /dev/null +++ b/src/themes/scss/theme/components/_markup.scss @@ -0,0 +1,35 @@ +@use '@lucas-labs/lui-micro/color' as color; +@use '@lucas-labs/lui-micro/var' as var; + +@mixin markup { + .markup { + .task-list-item input[type=checkbox] { + margin: 0 .5em .25em -1.4em; + } + + input[type=checkbox] { + --border-radius: #{var.get('measure/.25x')}; + width: var.get('measure/1x'); + height: var.get('measure/1x'); + margin-right: 4px; + --color-input-background: #{color.get('elevation/5')}; + + &:checked { + background-color: var(--color-primary); + } + + &:after { + --color-text: var(--color-primary-contrast); + } + + &:not([disabled]):hover, &:not([disabled]):active { + border-color: var(--color-secondary); + background-color: color.get('elevation/6'); + + &:checked { + background-color: var(--color-primary-hover); + } + } + } + } +} \ No newline at end of file diff --git a/src/themes/scss/theme/components/index.scss b/src/themes/scss/theme/components/index.scss index 6e9c470..6d1ee3a 100644 --- a/src/themes/scss/theme/components/index.scss +++ b/src/themes/scss/theme/components/index.scss @@ -4,4 +4,5 @@ @forward './file-content'; @forward './avatar'; @forward './button'; -@forward './boxes'; \ No newline at end of file +@forward './boxes'; +@forward './markup'; \ No newline at end of file diff --git a/src/themes/scss/theme/index.scss b/src/themes/scss/theme/index.scss index dca2314..de82a20 100644 --- a/src/themes/scss/theme/index.scss +++ b/src/themes/scss/theme/index.scss @@ -16,6 +16,7 @@ @include components.gitea-button; // github-style buttons @include components.segment; @include components.comments; // github-style comment boxes + @include components.markup; // styling rendered for markdown content // code highlighting @include modules.chroma($is-dark); // syntax highlighting