Skip to content

Commit 31a9075

Browse files
committed
simple and default style share more common rules
1 parent 1ef0e6c commit 31a9075

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

src/resources/formats/revealjs/quarto.scss

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -938,12 +938,21 @@ kbd {
938938
border-top: solid 1px $table-border-color;
939939
border-bottom: solid 1px $table-border-color;
940940

941-
.callout-body,
942-
div.callout-title {
943-
// Font size is inherited from the parent div.callout
944-
// which is scaled down like .smaller
945-
font-size: inherit;
941+
div {
942+
&.callout-body,
943+
&.callout-title {
944+
// Font size is inherited from the parent div.callout
945+
// which is scaled down like .smaller
946+
font-size: inherit;
947+
}
948+
949+
&.callout-title {
950+
border-bottom: none;
951+
font-weight: 600;
952+
font-size: 0.9rem;
953+
}
946954
}
955+
947956
.callout-icon::before {
948957
height: 2rem;
949958
width: 2rem;
@@ -983,9 +992,6 @@ kbd {
983992
}
984993

985994
div.callout-title {
986-
border-bottom: none;
987-
font-size: 0.9rem;
988-
font-weight: 600;
989995
opacity: 75%;
990996
}
991997
}
@@ -1013,10 +1019,7 @@ kbd {
10131019

10141020
div {
10151021
&.callout-title {
1016-
border-bottom: none;
1017-
font-weight: 600;
10181022
opacity: 85%;
1019-
font-size: 0.9rem;
10201023
padding-left: 0.5em;
10211024
padding-right: 0.5em;
10221025
}

0 commit comments

Comments
 (0)