diff options
Diffstat (limited to 'styles/global/_window.scss')
-rw-r--r-- | styles/global/_window.scss | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/styles/global/_window.scss b/styles/global/_window.scss index 7b1c07b..d05ff7c 100644 --- a/styles/global/_window.scss +++ b/styles/global/_window.scss @@ -21,6 +21,7 @@ transform: translate(-50%, -50%); max-width: 21rem; margin: 0 auto; + line-height: 1.25; &:not(.window--popup-with-title) { border-top-left-radius: .5em; @@ -47,6 +48,10 @@ border-top: 1px solid var(--color-window-border-top); border-top-left-radius: .5em; border-top-right-radius: .5em; + + @media(max-width: 40em) { + display: none; + } } &--popup > .window__title { @@ -90,6 +95,14 @@ right: 0; bottom: 0; left: 0; + + & > div:nth-of-type(2) { + top: 5em; + left: 0; + bottom: 0; + right: 0; + position: fixed; + } } &.window__content { @@ -142,7 +155,7 @@ @media(max-width: 40em) { height: 3em; - overflow: auto; + overflow-x: scroll; & > div { display: flex; @@ -155,8 +168,10 @@ } &__scroll { - height: calc(100% - 2em); - overflow: auto; + height: 100%; + overflow-y: scroll; + overflow-x: hidden; + -webkit-overflow-scrolling: touch; } &__buttons--popup { |