Skip to content

Commit cf011fd

Browse files
committed
Update to bootstrap 5: adapt shortcode 'cardpane'
1 parent 3eb2cd0 commit cf011fd

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ For a list of issues targeted for the next release, see the [23Q1][] milestone.
2121
- Dropped `$primary-light`.
2222
- Dropped `color-diff()`.
2323

24+
- **[Adaptation of shortcode 'cardpane'][1376]. renamed CSS class `td-card-deck`
25+
to `td-card-group`.
26+
2427
**Other changes**:
2528

2629
- Non-breaking changes that result from the Bootstrap v5 upgrade:

assets/scss/shortcodes/cards-pane.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.td-card-deck.card-deck {
1+
.td-card-group.card-group {
22
@extend .td-max-width-on-larger-screens;
33
}
44

@@ -8,6 +8,7 @@
88

99
.highlight {
1010
border: none;
11+
margin: 0;
1112
}
1213
}
1314

layouts/shortcodes/card-code.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="td-card card">
1+
<div class="td-card card border me-4">
22
{{ $lang := "" }}
33
{{ with $.Get "lang" }}
44
{{ $lang = $.Get "lang" }}
@@ -12,7 +12,7 @@
1212
{{- $.Get "header" | markdownify -}}
1313
</div>
1414
{{end}}
15-
<div class="card-body code p-l0 m-0">
15+
<div class="card-body code p-0 m-0">
1616
{{ with $.Inner }}
1717
{{- highlight $.Inner $lang $highlight -}}
1818
{{ end }}

layouts/shortcodes/card.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="td-card card mb-4">
1+
<div class="td-card card border me-4">
22
{{ with $.Get "header" }}
33
<div class="card-header">
44
{{ if eq $.Page.File.Ext "md" }}
@@ -19,7 +19,7 @@ <h5 class="card-title">
1919
</h5>
2020
{{ end }}
2121
{{ with $.Get "subtitle" }}
22-
<h6 class="card-title mb-2 text-muted">
22+
<h6 class="card-title ms-2 text-muted">
2323
{{ if eq $.Page.File.Ext "md" }}
2424
{{ $.Get "subtitle" | markdownify }}
2525
{{ else }}

layouts/shortcodes/cardpane.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div class="td-card-deck card-deck mb-4">
1+
<div class="td-card-group card-group p-0 mb-4">
22
{{- .Inner -}}
3-
</div>
3+
</div>

0 commit comments

Comments
 (0)