Skip to content

Commit d712a77

Browse files
committed
make callouts relative to font-size
enhance font rendering
1 parent 7a01cbc commit d712a77

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

css/body.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ body {
44
font-family: Inter;
55
text-rendering: optimizeLegibility;
66
font-size: 16px;
7+
-webkit-font-smoothing: antialiased;
8+
-moz-osx-font-smoothing: grayscale;
9+
text-rendering: optimizeLegibility;
10+
text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
711
}
812

913
#wrapper {

css/callouts.css

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
.obsidian-callout {
2-
line-height: 20.8px;
3-
padding: 12px;
4-
padding-left: 25px;
5-
padding-right: 25px;
2+
line-height: 1em;
3+
padding: 0.6em;
4+
padding-left: 1.35em;
5+
padding-right: 1.35em;
66
border-radius: 5px;
7-
margin-top: 10px;
8-
margin-bottom: 10px;
7+
margin-top: 0.5em;
8+
margin-bottom: 0.5em;
99
}
1010

1111
.obsidian-callout-icon {
12-
width: 18px;
13-
height: 18px;
14-
line-height: 20.8px;
15-
margin-right: 2px;
12+
width: 1em;
13+
height: 1em;
14+
line-height: 1.35em;
15+
margin-right: 1em;
1616
}
1717

1818
.obsidian-callout-title {
19-
line-height: 20.8px;
19+
line-height: 1.35em;
2020
position: relative;
21-
top: -2px;
22-
font-size: 16px;
21+
top: 0em;
22+
font-size: 0.89em;
2323
font-weight: 600;
2424
display: inline-block;
2525
}

0 commit comments

Comments
 (0)