improve scrollable iframes
This commit is contained in:
committed by
Hans Pagel
parent
66e689afd2
commit
f27ead9b06
@@ -9,7 +9,7 @@
|
|||||||
border-bottom-width: 0;
|
border-bottom-width: 0;
|
||||||
color: $colorBlack;
|
color: $colorBlack;
|
||||||
background-color: $colorWhite;
|
background-color: $colorWhite;
|
||||||
max-height: 50rem;
|
max-height: unquote("max(300px, 60vh)");
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
border: 1px solid rgba($colorBlack, 0.1);
|
border: 1px solid rgba($colorBlack, 0.1);
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
<div class="demo-frame__loader" />
|
<div class="demo-frame__loader" />
|
||||||
</div>
|
</div>
|
||||||
<iframe
|
<iframe
|
||||||
v-resize.quiet
|
class="demo-frame__iframe"
|
||||||
|
v-resize.quiet="{ scrolling: true }"
|
||||||
:src="`/demos/${name}?${query}`"
|
:src="`/demos/${name}?${query}`"
|
||||||
style="background-color: transparent;"
|
|
||||||
width="100%"
|
width="100%"
|
||||||
height="0"
|
height="0"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
@@ -71,6 +71,11 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
min-height: 5rem;
|
min-height: 5rem;
|
||||||
|
|
||||||
|
&__iframe {
|
||||||
|
background-color: transparent;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
&.is-inline {
|
&.is-inline {
|
||||||
border-radius: 0.75rem;
|
border-radius: 0.75rem;
|
||||||
background-color: rgba($colorBlack, 0.03);
|
background-color: rgba($colorBlack, 0.03);
|
||||||
|
|||||||
Reference in New Issue
Block a user