this repo has no description

fix: code blocks in blocks

altagos.dev e0a48648 f1dec15f

verified
+19 -9
+9 -3
content/notes/markdown-overview.smd
··· 212 212 > # [Tip]($block) 213 213 > If you want to add an image from inside your vault, you can also [embed an image in a note](https://help.obsidian.md/embeds#Embed%20an%20image%20in%20a%20note). 214 214 215 - ># [Warning]($block.attrs('warning')) 216 - >This is now a block note. 217 - >Lorem ipsum. 215 + > # [Warning]($block.attrs('warning')) 216 + > This is now a block note. 217 + > Lorem ipsum. 218 + > ```md 219 + > > Human beings face ever more complex and urgent problems, and their effectiveness in dealing with these problems is a matter that is critical to the stability and continued progress of society. 220 + > 221 + > \- Doug Engelbart, 1961 222 + > ``` 223 + > With a code block 218 224 219 225 ## Quotes 220 226
+2 -1
style/base/layout.scss
··· 16 16 font-size-adjust: ex-height 0.5; 17 17 -webkit-text-size-adjust: 100%; 18 18 } 19 + 19 20 html { 20 21 scrollbar-gutter: stable; 21 - scrollbar-color: var(--palette10) var(--bg-dim); 22 + scrollbar-color: var(--palette10) var(--bg-m3); 22 23 overflow-y: scroll; 23 24 } 24 25
+5 -2
style/content/blocks.scss
··· 2 2 --block-highlight: var(--dragonBlue2); 3 3 --block-header: currentColor; 4 4 5 + display: inline-grid; 6 + width: 100%; 5 7 margin: 16px 0; 6 - padding-bottom: 0.01px; 7 8 8 9 background: color-mix(in srgb, currentColor 5%, transparent); 9 10 border-left: 5px solid var(--block-highlight); 10 11 12 + scrollbar-color: var(--block-highlight) var(--bg-m3); 13 + 11 14 > * { 12 - padding-left: 15px; 15 + padding-left: 16px; 13 16 } 14 17 15 18 h1,
+3 -3
style/content/code.scss
··· 25 25 } 26 26 } 27 27 28 - p, 29 - li { 30 - &:has(code) { 28 + .block:has(pre > code) { 29 + pre { 30 + margin: 0 16px; 31 31 } 32 32 } 33 33