Skip to content

Commit c5f0671

Browse files
authored
Change parameters order to avoid YUI Compressor bug (#1680)
The previous code lead to an invalid value for the left property: `left: calc(-50vw+50%);` This was being caused due to a bug in YUI Compressor. You can read a detailed explanation about it in this issue: yui/yuicompressor#59 This is fixed since version 2.4.9-BSI-2. But, until we don't update prod's YUI Compressor, this PR work as a bugfix since it changes the parameters order to one properly understood by the bugged version. More aboute this in this issue comment: yui/yuicompressor#59 (comment)
1 parent 515c333 commit c5f0671

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

static/sass/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3661,7 +3661,7 @@ span.highlighted {
36613661
display: block;
36623662
width: 100vw;
36633663
position: relative;
3664-
left: calc(-50vw + 50%); }
3664+
left: calc(50% - 50vw); }
36653665
#sponsorship_application_container #benefits_container .title {
36663666
margin: 0 0 1em 0;
36673667
padding: 0;

static/sass/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2444,7 +2444,7 @@ span.highlighted {
24442444
display: block;
24452445
width: 100vw;
24462446
position: relative;
2447-
left: calc(-50vw + 50%);
2447+
left: calc(50% - 50vw);
24482448

24492449
.title {
24502450
margin: 0 0 1em 0;

0 commit comments

Comments
 (0)