Skip to content

Commit bf7d5ad

Browse files
lamATnginxnginx-jack
authored andcommitted
Callout: Added class names to each strong tag
1 parent e45e13b commit bf7d5ad

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

assets/css/v2/style.css

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,18 +1117,14 @@ blockquote ul {
11171117
blockquote.call-out {
11181118
padding: 0.5rem;
11191119

1120-
strong {
1120+
.call-out-type {
11211121
display: block;
11221122
padding: 0.25rem 0.5rem;
11231123
margin: -0.5rem 0 0.5rem -0.5rem;
11241124
width: calc(100% + 1rem);
11251125
font-weight: 500;
11261126
}
11271127

1128-
p {
1129-
padding: 0.5rem;
1130-
}
1131-
11321128
br {
11331129
display: none;
11341130
}
@@ -1138,7 +1134,7 @@ blockquote.caution {
11381134
--color-shadow: oklch(var(--color-callout-caution-shadow));
11391135
border: 1px solid oklch(var(--color-callout-caution-primary));
11401136

1141-
strong {
1137+
.call-out-type {
11421138
background-color: oklch(var(--color-callout-caution-shadow));
11431139
border-bottom: 1px solid oklch(var(--color-callout-caution-primary));
11441140
}
@@ -1148,7 +1144,7 @@ blockquote.warning {
11481144
--color-shadow: oklch(var(--color-callout-warning-shadow));
11491145
border: 1px solid oklch(var(--color-callout-warning-primary));
11501146

1151-
strong {
1147+
.call-out-type {
11521148
background-color: oklch(var(--color-callout-warning-shadow));
11531149
border-bottom: 1px solid oklch(var(--color-callout-warning-primary));
11541150
}
@@ -1158,7 +1154,7 @@ blockquote.important {
11581154
--color-shadow: oklch(var(--color-callout-important-shadow));
11591155
border: 1px solid oklch(var(--color-callout-important-primary));
11601156

1161-
strong {
1157+
.call-out-type {
11621158
background-color: oklch(var(--color-callout-important-shadow));
11631159
border-bottom: 1px solid oklch(var(--color-callout-important-primary));
11641160
}

layouts/shortcodes/caution.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<blockquote class="caution call-out">
2-
<div><strong>Caution</strong><br/> {{ .Inner | markdownify }}</div>
2+
<div><strong class="call-out-type">Caution</strong><br/> {{ .Inner | markdownify }}</div>
33
</blockquote>

layouts/shortcodes/deprecated.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<blockquote class="warning call-out">
2-
<div><strong>Deprecated</strong><br/> {{ .Inner | markdownify }}</div>
2+
<div><strong class="call-out-type">Deprecated</strong><br/> {{ .Inner | markdownify }}</div>
33
</blockquote>

layouts/shortcodes/important.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<blockquote class="important call-out">
2-
<div><strong>Important</strong><br/> {{ .Inner | markdownify }}</div>
2+
<div><strong class="call-out-type">Important</strong><br/> {{ .Inner | markdownify }}</div>
33
</blockquote>

layouts/shortcodes/warning.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<blockquote class="warning call-out">
2-
<div><strong>Warning</strong><br/> {{ .Inner | markdownify }}</div>
2+
<div><strong class="call-out-type">Warning</strong><br/> {{ .Inner | markdownify }}</div>
33
</blockquote>

0 commit comments

Comments
 (0)