mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
@ -1,35 +0,0 @@
|
|||||||
@import "../menu/menu.ios.vars";
|
|
||||||
@import "../menu/menu.md.vars";
|
|
||||||
|
|
||||||
.menu-content {
|
|
||||||
@include transform(translate3d(0, 0, 0));
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-content-open {
|
|
||||||
cursor: pointer;
|
|
||||||
touch-action: manipulation;
|
|
||||||
|
|
||||||
// the containing element itself should be clickable but
|
|
||||||
// everything inside of it should not clickable when menu is open
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ios .menu-content-reveal {
|
|
||||||
box-shadow: $menu-ios-box-shadow-reveal;
|
|
||||||
}
|
|
||||||
|
|
||||||
[dir=rtl].ios .menu-content-reveal {
|
|
||||||
box-shadow: $menu-ios-box-shadow-reveal-rtl;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ios .menu-content-push {
|
|
||||||
box-shadow: $menu-ios-box-shadow-push;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md .menu-content-reveal {
|
|
||||||
box-shadow: $menu-md-box-shadow;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md .menu-content-push {
|
|
||||||
box-shadow: $menu-md-box-shadow;
|
|
||||||
}
|
|
@ -4,8 +4,7 @@ import { AnimationBuilder, IonicAnimation, MenuI } from '../../interface';
|
|||||||
import { menuController } from '../../utils/menu-controller';
|
import { menuController } from '../../utils/menu-controller';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
tag: 'ion-menu-controller',
|
tag: 'ion-menu-controller'
|
||||||
styleUrl: 'menu-controller.scss'
|
|
||||||
})
|
})
|
||||||
export class MenuController {
|
export class MenuController {
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
@import "../themes/ionic.skip-warns.scss";
|
@import "../themes/ionic.skip-warns.scss";
|
||||||
@import "../themes/ionic.globals";
|
@import "../themes/ionic.globals";
|
||||||
|
@import "../components/menu/menu.ios.vars";
|
||||||
|
@import "../components/menu/menu.md.vars";
|
||||||
|
|
||||||
// Ionic Font Family
|
// Ionic Font Family
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
@ -128,3 +130,41 @@ html.plt-ios.plt-hybrid, html.plt-ios.plt-pwa {
|
|||||||
--ion-safe-area-right: env(safe-area-inset-right);
|
--ion-safe-area-right: env(safe-area-inset-right);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Menu Styles
|
||||||
|
// TODO: Find a better long term solution for this
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
.menu-content {
|
||||||
|
@include transform(translate3d(0, 0, 0));
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-content-open {
|
||||||
|
cursor: pointer;
|
||||||
|
touch-action: manipulation;
|
||||||
|
|
||||||
|
// the containing element itself should be clickable but
|
||||||
|
// everything inside of it should not clickable when menu is open
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ios .menu-content-reveal {
|
||||||
|
box-shadow: $menu-ios-box-shadow-reveal;
|
||||||
|
}
|
||||||
|
|
||||||
|
[dir=rtl].ios .menu-content-reveal {
|
||||||
|
box-shadow: $menu-ios-box-shadow-reveal-rtl;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ios .menu-content-push {
|
||||||
|
box-shadow: $menu-ios-box-shadow-push;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md .menu-content-reveal {
|
||||||
|
box-shadow: $menu-md-box-shadow;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md .menu-content-push {
|
||||||
|
box-shadow: $menu-md-box-shadow;
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user