Skip to content

Commit

Permalink
use mixin and add space
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Seipelt authored and jeremy-seipelt committed Oct 20, 2021
1 parent b2aa888 commit 3ea4436
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/app/storefront/src/scss/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

&.floating {
position: fixed;
@include pro-customer-reviews-badge-floating();
}

&.theme-dark {
Expand Down
4 changes: 4 additions & 0 deletions Resources/app/storefront/src/scss/base/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,7 @@ $pro-customer-reviews-badge-dark-color: rgba(255, 255, 255, .6);
color: $color;
font-size: 20px;
}

@mixin pro-customer-reviews-badge-floating() {
position: fixed;
}
5 changes: 5 additions & 0 deletions Resources/config/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
</option>
</options>
</input-field>

<input-field type="single-select">
<name>theme</name>
<label>Badge Theme</label>
Expand All @@ -80,6 +81,7 @@
</option>
</options>
</input-field>

<input-field type="single-select">
<name>float</name>
<label>Badge Float</label>
Expand Down Expand Up @@ -115,6 +117,7 @@
</option>
</options>
</input-field>

<input-field type="int">
<name>offsetX</name>
<label>Offset X axis</label>
Expand All @@ -123,6 +126,7 @@
<helpText lang="de-DE">Abstand auf der X Achse vom nähesten Rand. Nur auf Floating-Badges anwendbar!</helpText>
<defaultValue>0</defaultValue>
</input-field>

<input-field type="int">
<name>offsetY</name>
<label>Offset Y axis</label>
Expand All @@ -131,6 +135,7 @@
<helpText lang="de-DE">Abstand auf der Y Achse vom nähesten Rand. Nur auf Floating-Badges anwendbar!</helpText>
<defaultValue>0</defaultValue>
</input-field>

<input-field type="bool">
<name>loadLib</name>
<label>Load Google Maps Library</label>
Expand Down

0 comments on commit 3ea4436

Please sign in to comment.