Skip to content

Commit b4b3662

Browse files
authored
Reapply default bottom padding for multi-para alerts (#11407)
Not needed anymore on Docsy 15—the default behavior looks good, so this script clips the padding too much.
1 parent 41ebccc commit b4b3662

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

assets/scss/_styles_project.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
margin-right:12px;
3232
}
3333

34-
.alert.has-line-breaks { // Reduce bottom padding of .alert when alert text has line breaks (class added in alerts.html)
35-
padding-bottom: 0px;
36-
}
37-
3834
// Anchor icon styling for anchor.js
3935

4036
.anchor-icon {

layouts/shortcodes/alert.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,3 @@
4949
</div>
5050
</div>
5151
</div>
52-
53-
<script> // Script for .alert.has-line-breaks styling in _styles_project.scss
54-
$(document).ready(() => {
55-
$('.alert-text').each((index, element) => { // Iterate over each element with class 'alert-text'
56-
if ($(element).find('p, ul, ol').length) { // Check for <p>, <ul>, or <ol> elements in the current 'alert-text' element
57-
$(element).closest('.alert').addClass('has-line-breaks'); // Add class 'has-line-breaks' to the closest 'alert' ancestor element
58-
}
59-
});
60-
});
61-
</script>

0 commit comments

Comments
 (0)