// Action Menu // -------------------------------------------------- $action-menu-width: 100% !default; $action-menu-max-width: 520px !default; $action-menu-background-color: rgba(243,243,243,.95) !default; $action-menu-button-text-color: #007aff !default; $action-menu-backdrop-color: #000 !default; $action-menu-backdrop-active-opacity: 0.4 !default; $action-menu-margin: 8px !default; $action-menu-border-radius: 4px !default; $action-menu-options-bg-color: #f1f2f3 !default; $action-menu-options-bg-active-color: #e4e5e7 !default; $action-menu-options-text-color: #007aff !default; $action-menu-options-border-color: #d1d3d6 !default; .action-menu { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: $z-index-action-menu; } .action-menu-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: $action-menu-backdrop-color; opacity: 0; tranform: translateZ(0); } .action-menu-wrapper { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; max-width: 500px; margin: auto; transform: translate3d(0, 100%, 0); } .action-menu-container { margin-left: $action-menu-margin; margin-right: $action-menu-margin; width: auto; z-index: $z-index-action-menu; overflow: hidden; button, [button] { display: block; padding: 1px; width: 100%; border-radius: 0; border-color: $action-menu-options-border-color; background-color: transparent; color: $action-menu-options-text-color; font-size: 21px; &:hover { color: $action-menu-options-text-color; } &.destructive { color: #ff3b30; &:hover { color: #ff3b30; } } } button.activated, [button].activated { box-shadow: none; border-color: $action-menu-options-border-color; color: $action-menu-options-text-color; background: $action-menu-options-bg-active-color; } } .action-menu-has-icons .icon { position: absolute; left: 16px; } .action-menu-title { padding: $action-menu-margin * 2; color: #8f8f8f; text-align: center; font-size: 13px; } .action-menu-group { margin-bottom: $action-menu-margin; border-radius: $action-menu-border-radius; background-color: #fff; overflow: hidden; button, [button] { border-width: 1px 0px 0px 0px; } button:first-child:last-child, [button]:first-child:last-child { border-width: 0; } } .action-menu-options { background: $action-menu-options-bg-color; } .action-menu-cancel { button, [button] { font-weight: 500; } } .action-menu-open { pointer-events: none; &.modal-open .modal { pointer-events: none; } .action-menu-backdrop { pointer-events: auto; } }