@telia-ace/widget-core-flamingo 1.1.21 → 1.1.22-rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +21 -10
  2. package/index.mjs +21 -10
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -201,23 +201,34 @@
201
201
  display: block;
202
202
  }
203
203
 
204
- :host(.floating) {
204
+ :host(.inline) {
205
+ height: 100%;
205
206
  position: fixed;
207
+ inset: 0 0 0 0;
208
+ }
209
+
210
+ :host(.floating) {
206
211
  z-index: 6;
207
- inset: auto 20px 95px auto;
208
- max-height: calc(100vh - 120px);
209
- width: 400px;
210
- height: 700px;
212
+ position: fixed;
213
+ }
214
+ @media screen and (max-width: 800px) {
215
+ :host(.floating) {
216
+ inset: 0 0 95px 0;
217
+ }
218
+ }
219
+ @media screen and (min-width: 801px) {
220
+ :host(.floating) {
221
+ inset: auto 20px 95px auto;
222
+ max-height: calc(100vh - 120px);
223
+ width: 400px;
224
+ height: 700px;
225
+ }
211
226
  }
227
+
212
228
  :host(.floating) .widget-container {
213
229
  box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
214
230
  border-radius: 0.7rem;
215
231
  }
216
- :host(.inline) {
217
- height: 100%;
218
- position: fixed;
219
- inset: 0 0 0 0;
220
- }
221
232
 
222
233
  * {
223
234
  box-sizing: border-box;
package/index.mjs CHANGED
@@ -1654,23 +1654,34 @@ rt.styles = D`
1654
1654
  display: block;
1655
1655
  }
1656
1656
 
1657
- :host(.floating) {
1657
+ :host(.inline) {
1658
+ height: 100%;
1658
1659
  position: fixed;
1660
+ inset: 0 0 0 0;
1661
+ }
1662
+
1663
+ :host(.floating) {
1659
1664
  z-index: 6;
1660
- inset: auto 20px 95px auto;
1661
- max-height: calc(100vh - 120px);
1662
- width: 400px;
1663
- height: 700px;
1665
+ position: fixed;
1666
+ }
1667
+ @media screen and (max-width: 800px) {
1668
+ :host(.floating) {
1669
+ inset: 0 0 95px 0;
1670
+ }
1671
+ }
1672
+ @media screen and (min-width: 801px) {
1673
+ :host(.floating) {
1674
+ inset: auto 20px 95px auto;
1675
+ max-height: calc(100vh - 120px);
1676
+ width: 400px;
1677
+ height: 700px;
1678
+ }
1664
1679
  }
1680
+
1665
1681
  :host(.floating) .widget-container {
1666
1682
  box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
1667
1683
  border-radius: 0.7rem;
1668
1684
  }
1669
- :host(.inline) {
1670
- height: 100%;
1671
- position: fixed;
1672
- inset: 0 0 0 0;
1673
- }
1674
1685
 
1675
1686
  * {
1676
1687
  box-sizing: border-box;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-core-flamingo",
3
- "version": "1.1.21",
3
+ "version": "1.1.22-rc.1",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
6
  "@teliads/icons": "^8.4.0",