Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit 5aba3b4

Browse files
author
Matthias Leutenegger
committed
change: adapt BEM notation
1 parent d76e5ff commit 5aba3b4

File tree

6 files changed

+6
-27
lines changed

6 files changed

+6
-27
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div class="element $SimpleClassName.LowerCase<% if $StyleVariant %> $StyleVariant<% end_if %><% if $ExtraClass %> $ExtraClass<% end_if %>" id="$Anchor">
1+
<div class="element $SimpleClassName.LowerCase $ElementName <% if $StyleVariant %>$ElementName--$StyleVariant $StyleVariant<% end_if %><% if $ExtraClass %> $ExtraClass<% end_if %>" id="$Anchor">
22
$Element
33
</div>

templates/Syntro/BootstrapElemental/Blocks/AlertSection/ButtonHolder.ss

Lines changed: 0 additions & 9 deletions
This file was deleted.

templates/Syntro/BootstrapElemental/Blocks/AlertSection/ContentHolder.ss

Lines changed: 0 additions & 3 deletions
This file was deleted.

templates/Syntro/BootstrapElemental/Blocks/AlertSection/HeaderHolder.ss

Lines changed: 0 additions & 8 deletions
This file was deleted.

templates/Syntro/BootstrapElemental/Blocks/AlertSection/IconHolder.ss

Lines changed: 0 additions & 1 deletion
This file was deleted.

templates/Syntro/SilverStripeElementalBootstrapAlertSection/Elements/AlertSection.ss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
<% if DisplayIcon && useIcons || ShowTitle %>
44
<div class="mb-2 d-flex align-items-center justify-content-center text-left">
55
<% if DisplayIcon && useIcons %>
6-
<span class="mr-3 mr-md-2" style="font-size:1.5em;">
6+
<span class="{$ElementName}__icon mr-3 mr-md-2" style="font-size:1.5em;">
77
<i class="$FAIcon"></i>
88
</span>
99
<% end_if %>
1010
<% if ShowTitle %>
11-
<b>$Title</b>
11+
<b class="{$ElementName}__title">$Title</b>
1212
<% end_if %>
1313
</div>
1414
<% end_if %>
15-
<p class="m-0 text-justify text-md-center">
15+
<p class="{$ElementName}__content m-0 text-justify text-md-center">
1616
$Content
1717
</p>
1818
<% if $Buttons %>
19-
<p class="mb-0 mt-2">
19+
<p class="{$ElementName}__buttonholder mb-0 mt-2">
2020
<% loop Buttons %>
2121
<% if LinkURL %>
22-
<a {$IDAttr} class="mx-1 btn btn-sm btn-outline-$Up.LinkColor" href="{$LinkURL}"{$TargetAttr}>
22+
<a {$IDAttr} class="{$ElementName}__button mx-1 btn btn-sm btn-outline-$Up.LinkColor" href="{$LinkURL}"{$TargetAttr}>
2323
{$Title}
2424
</a>
2525
<% end_if %>

0 commit comments

Comments
 (0)