feat: ✨ add markup styling for rendered markdown content
This commit is contained in:
parent
1ac2103f26
commit
ab5fc4a757
35
src/themes/scss/theme/components/_markup.scss
Normal file
35
src/themes/scss/theme/components/_markup.scss
Normal file
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -4,4 +4,5 @@
|
||||
@forward './file-content';
|
||||
@forward './avatar';
|
||||
@forward './button';
|
||||
@forward './boxes';
|
||||
@forward './boxes';
|
||||
@forward './markup';
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user