Skip to content

Commit f64b33d

Browse files
committed
Compute icon size based on context
This insure when .smaller is applied, it stays visually nice
1 parent 3f3e480 commit f64b33d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/resources/formats/revealjs/quarto.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -963,9 +963,9 @@ kbd {
963963
}
964964

965965
.callout-icon::before {
966-
height: 2rem;
967-
width: 2rem;
968-
background-size: 2rem 2rem;
966+
height: 1.25em;
967+
width: 1.25em;
968+
background-size: 1.25em 1.25em;
969969
}
970970
}
971971

@@ -1080,8 +1080,8 @@ kbd {
10801080
}
10811081
}
10821082
.callout-icon::before {
1083-
margin-top: 0.5rem;
1084-
padding-right: 0.5rem;
1083+
margin-top: 0.25em;
1084+
padding-right: 0.25em;
10851085
}
10861086
}
10871087

0 commit comments

Comments
 (0)