Skip to content

Commit 6eb1f15

Browse files
committed
fix(with-without): fix ie and edge, cleanup
1 parent f357e4a commit 6eb1f15

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

packages/with-without/with-without.scss

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ $pega-wwo--content-max-mobile-width: 550px;
1717
$bolt-medium-icon-half-size: 12px;
1818
$pega-wwo--sm-circle-top-margin--mobile: $bolt-medium-icon-half-size - ($pega-wwo--sm-circle-size--fixed / 2);
1919

20+
@mixin bolt-edge-all() {
21+
@supports (-ms-ime-align:auto) {
22+
@content;
23+
}
24+
}
25+
2026
// Fix IE 11 opacity inheritance for non-static elements.
2127
bolt-animate {
2228
&[out^="fade"],
@@ -49,6 +55,15 @@ bolt-animate {
4955
min-height: 1px;
5056
}
5157

58+
.c-pega-wwo__shadow-height-inherit {
59+
width: 100%;
60+
height: 100%;
61+
62+
> * {
63+
height: inherit;
64+
}
65+
}
66+
5267
// This is for icon colors wrong w/o shadow dom.
5368
&__content-wo {
5469
.c-pega-wwo__result-blocks {
@@ -73,13 +88,14 @@ bolt-animate {
7388
}
7489

7590
&__wrapper {
76-
width: 100%;
77-
height: 100%;
91+
width: 100%;
92+
height: 100%;
93+
overflow: hidden;
7894

79-
@include bolt-mq($from: xlarge) {
80-
// This div scales to full with of padding-hacked wrapper.
81-
position: absolute;
82-
}
95+
@include bolt-mq($from: xlarge) {
96+
// This div scales to full with of padding-hacked wrapper.
97+
position: absolute;
98+
}
8399
}
84100

85101
// This wrapper is the animate component and establishes z-index outside shadow dom wrapping.
@@ -168,21 +184,6 @@ bolt-animate {
168184
height: 100%;
169185
}
170186

171-
//@include bolt-mq(xxlarge) {
172-
// max-width: bolt-breakpoint(xxlarge);
173-
// max-height: calc(#{bolt-breakpoint(xxlarge)} * #{$pega-wwo--desktop-ratio-decimal});
174-
// top: 35%;
175-
// left: 50%;
176-
// transform: translate(-50%, -50%);
177-
//}
178-
}
179-
180-
&__content-w {
181-
182-
}
183-
184-
&__content-wo {
185-
186187
}
187188

188189
&__bg {
@@ -196,7 +197,6 @@ bolt-animate {
196197
background-repeat: no-repeat;
197198
background-size: $pega-wwo--max-width auto;
198199

199-
// @TODO add webpack build process to allow images here. See handleResize.js.
200200
&-wo {
201201
background-image: url("./img/BG_without_mobile.jpg");
202202

@@ -265,18 +265,18 @@ bolt-animate {
265265
height: calc(#{$pega-wwo--dashed-circle-height} + (#{$pega-wwo--circles-top-padding--height-calculation} / #{$pega-wwo--desktop-ratio-decimal}));
266266
}
267267

268-
.c-pega-wwo__shadow-height-inherit {
269-
width: 100%;
270-
height: 100%;
271-
272-
> * {
273-
height: inherit;
274-
}
275-
}
276-
277268
&-wo {
278269
left: 23.7%;
279270
padding-top: $pega-wwo--circles-top-padding;
271+
272+
@include bolt-edge-all {
273+
left: 26%;
274+
}
275+
276+
@include bolt-ie11-only {
277+
left: 26%;
278+
}
279+
280280
}
281281

282282
&-w {

0 commit comments

Comments
 (0)