Browse Source

Fix: visible issue in touch device (#3491)

pull/3495/head
Daniel 4 years ago committed by GitHub
parent
commit
a01ec7a1fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      build/scss/_mixins.scss
  2. 11
      build/scss/mixins/_touch-support.scss
  3. 8
      build/scss/pages/_iframe.scss

1
build/scss/_mixins.scss

@ -11,4 +11,5 @@
@import "mixins/backgrounds";
@import "mixins/direct-chat";
@import "mixins/toasts";
@import "mixins/touch-support";
@import "mixins/miscellaneous";

11
build/scss/mixins/_touch-support.scss

@ -0,0 +1,11 @@
//
// Mixins: Touch Support
//
@mixin on-touch-device {
@media (hover: none) and (pointer: coarse) {
@content;
}
}
//

8
build/scss/pages/_iframe.scss

@ -37,6 +37,10 @@ body.iframe-mode-fullscreen {
animation-fill-mode: both;
visibility: visible;
}
@include on-touch-device () {
visibility: visible;
}
}
.navbar-nav {
overflow-y: auto;
@ -55,6 +59,10 @@ body.iframe-mode-fullscreen {
animation-duration: $transition-speed;
animation-fill-mode: both;
visibility: visible;
@include on-touch-device () {
visibility: visible;
}
}
}
}

Loading…
Cancel
Save