|
| 1 | +.lex-web-ui-iframe { |
| 2 | + bottom: 1.5rem; |
| 3 | + display: none; /* hidden by default changed once iframe is loaded */ |
| 4 | + margin-bottom: 0; |
| 5 | + margin-left: 2px; |
| 6 | + margin-right: 3vw; |
| 7 | + margin-top: 2px; |
| 8 | + max-width: 27vw; |
| 9 | + height: 80vh; /* dynamically changed on iframe maximize/minimize */ |
| 10 | + min-width: calc(30vw - 3vw); /* half viewport width minus margin right */ |
| 11 | + position: fixed; |
| 12 | + right: 0; |
| 13 | + z-index: 2147483637; /* max z-index (2147483647) - 10 */ |
| 14 | +} |
| 15 | + |
| 16 | +.lex-web-ui-iframe iframe { |
| 17 | + border-radius: 8px 8px 10px 10px; |
| 18 | + /* overflow: hidden; */ |
| 19 | + width: 100%; |
| 20 | + height: 100%; |
| 21 | +} |
| 22 | + |
| 23 | +.lex-web-ui-iframe--show { |
| 24 | + display: flex; |
| 25 | +} |
| 26 | + |
| 27 | +.lex-web-ui-iframe--minimize { |
| 28 | + max-width: 90px !important; |
| 29 | + max-height: 90px !important; |
| 30 | + border-radius: 85px !important; |
| 31 | + min-width: 90px !important; |
| 32 | +} |
| 33 | + |
| 34 | +.lex-web-ui-iframe--minimize:hover { |
| 35 | + max-width: 200px !important; |
| 36 | +} |
| 37 | + |
| 38 | +.lex-web-ui-iframe--minimize.add-space-for-bubble { |
| 39 | + max-width: 250px !important; |
| 40 | + max-height: 150px !important; |
| 41 | + border-radius: 85px !important; |
| 42 | + min-width: 250px !important; |
| 43 | +} |
| 44 | + |
| 45 | +.lex-web-ui-iframe--maximize { |
| 46 | + max-width: 55vw !important; |
| 47 | + height: 90vh; /* dynamically changed on iframe maximize/minimize */ |
| 48 | + min-width: calc(55vw - 3vw) !important; |
| 49 | +} |
| 50 | + |
| 51 | +/* disable box shadow when minimized */ |
| 52 | +.lex-web-ui-iframe.lex-web-ui-iframe--minimize iframe { |
| 53 | + box-shadow: none; |
| 54 | + border-radius: none; |
| 55 | +} |
| 56 | + |
| 57 | +/* hide on very small resolutions */ |
| 58 | +@media only screen and (max-width: 240px), only screen and (max-height: 256px) { |
| 59 | + .lex-web-ui-iframe { |
| 60 | + display: none !important; |
| 61 | + } |
| 62 | + |
| 63 | + .lex-web-ui-iframe--minimize { |
| 64 | + max-width: 300px !important; |
| 65 | + max-height: 185px !important; |
| 66 | + } |
| 67 | +} |
| 68 | + |
| 69 | +/* take most space on small resolutions (smart phones) */ |
| 70 | +@media only screen and (min-width: 241px) and (max-width: 480px) { |
| 71 | + .lex-web-ui-iframe { |
| 72 | + min-width: 85vw !important; |
| 73 | + height: 84vh; |
| 74 | + margin-right: 2vw; |
| 75 | + align-self: center; |
| 76 | + } |
| 77 | + |
| 78 | + .lex-web-ui-iframe--maximize { |
| 79 | + max-width: 96vw !important; |
| 80 | + height: 90vh; /* dynamically changed on iframe maximize/minimize */ |
| 81 | + min-width: 96vw !important; |
| 82 | + } |
| 83 | +} |
| 84 | + |
| 85 | +/* adjust down on medium resolutions */ |
| 86 | +@media only screen and (min-width: 481px) and (max-width: 960px) { |
| 87 | + .lex-web-ui-iframe { |
| 88 | + max-width: 55vw; |
| 89 | + height: 80vh; /* dynamically changed on iframe maximize/minimize */ |
| 90 | + min-width: calc(55vw - 3vw); /* half viewport width minus margin right */ |
| 91 | + } |
| 92 | + |
| 93 | + .lex-web-ui-iframe--maximize { |
| 94 | + max-width: 90vw !important; |
| 95 | + height: 90vh; /* dynamically changed on iframe maximize/minimize */ |
| 96 | + min-width: 90vw !important; |
| 97 | + } |
| 98 | + |
| 99 | + /* .lex-web-ui-iframe.lex-web-ui-iframe--show.lex-web-ui-iframe--minimize { |
| 100 | + max-width: 245px !important; |
| 101 | + max-height: 145px !important; |
| 102 | + border-radius: 85px !important; |
| 103 | + min-width: 245px !important; |
| 104 | + } */ |
| 105 | + .lex-web-ui-iframe.lex-web-ui-iframe--show.lex-web-ui-iframe--minimize--bubble { |
| 106 | + max-width: 245px !important; |
| 107 | + max-height: 145px !important; |
| 108 | + border-radius: 85px !important; |
| 109 | + min-width: 245px !important; |
| 110 | + } |
| 111 | +} |
0 commit comments