mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
common: fix modal animation on mobile & tweak some transition & animation css
This commit is contained in:
5
js/dist/forum.js
vendored
5
js/dist/forum.js
vendored
@@ -15608,7 +15608,12 @@ var ModalManager = /*#__PURE__*/function (_Component) {
|
|||||||
|
|
||||||
micromodal__WEBPACK_IMPORTED_MODULE_1__["default"].show('Modal', {
|
micromodal__WEBPACK_IMPORTED_MODULE_1__["default"].show('Modal', {
|
||||||
awaitCloseAnimation: true,
|
awaitCloseAnimation: true,
|
||||||
|
awaitOpenAnimation: true,
|
||||||
|
onShow: function onShow() {
|
||||||
|
return $('body').addClass('modal-open');
|
||||||
|
},
|
||||||
onClose: function onClose() {
|
onClose: function onClose() {
|
||||||
|
$('body').removeClass('modal-open');
|
||||||
var backdrop = $('.modal-backdrop');
|
var backdrop = $('.modal-backdrop');
|
||||||
backdrop.fadeOut(200, function () {
|
backdrop.fadeOut(200, function () {
|
||||||
backdrop.remove();
|
backdrop.remove();
|
||||||
|
2
js/dist/forum.js.map
vendored
2
js/dist/forum.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -58,7 +58,11 @@ export default class ModalManager extends Component {
|
|||||||
|
|
||||||
MicroModal.show('Modal', {
|
MicroModal.show('Modal', {
|
||||||
awaitCloseAnimation: true,
|
awaitCloseAnimation: true,
|
||||||
|
awaitOpenAnimation: true,
|
||||||
|
onShow: () => $('body').addClass('modal-open'),
|
||||||
onClose: () => {
|
onClose: () => {
|
||||||
|
$('body').removeClass('modal-open');
|
||||||
|
|
||||||
const backdrop = $('.modal-backdrop');
|
const backdrop = $('.modal-backdrop');
|
||||||
|
|
||||||
backdrop.fadeOut(200, () => {
|
backdrop.fadeOut(200, () => {
|
||||||
|
@@ -142,13 +142,17 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
will-change: transform;
|
||||||
|
animation: none !important;
|
||||||
|
display: block;
|
||||||
.transition-transform(0.2s);
|
.transition-transform(0.2s);
|
||||||
.translate3d(0, 100vh, 0);
|
.translate3d(0, 100vh, 0);
|
||||||
|
|
||||||
&.in {
|
&[aria-hidden="false"] {
|
||||||
-webkit-transform: none !important;
|
-webkit-transform: none;
|
||||||
transform: none !important;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: " ";
|
content: " ";
|
||||||
.header-background();
|
.header-background();
|
||||||
|
Reference in New Issue
Block a user