Skip to content

Commit 0545de2

Browse files
onweruchipzoller
andauthored
fix styling regressions (snippets, alerts, anchor links) (#1290)
* fix styling regressions (snippets, alerts, anchor links) Signed-off-by: Weru <[email protected]> * include anchor links while rendering headings Signed-off-by: Weru <[email protected]> --------- Signed-off-by: Weru <[email protected]> Co-authored-by: Chip Zoller <[email protected]>
1 parent dde1014 commit 0545de2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

assets/scss/_styles_project.scss

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ body {
22
scroll-behavior: smooth;
33
overscroll-behavior: none;
44
}
5+
a {
6+
text-decoration: none;
7+
}
8+
9+
.alert {
10+
max-width: 100% !important;
11+
}
12+
513
.td-navbar {
614
min-height: auto;
715
}
@@ -509,6 +517,7 @@ code.noClass {
509517
overflow: initial;
510518
display: initial;
511519
margin: 0;
520+
border: none;
512521
}
513522

514523
.highlight table {
@@ -897,4 +906,4 @@ code.noClass {
897906
.markmap > svg {
898907
width: 100%;
899908
height: 300px;
900-
}
909+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<h{{ .Level }} id="{{ .Anchor }}">
2+
{{ .Text | safeHTML }}
3+
<a href="#{{ .Anchor }}">
4+
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="24" height="24" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg>
5+
</a>
6+
</h{{ .Level }}>

0 commit comments

Comments
 (0)