mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
204 lines
3.5 KiB
SCSS
204 lines
3.5 KiB
SCSS
|
|
// 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;
|
|
|
|
$sheet-margin: 8px !default;
|
|
$sheet-border-radius: 4px !default;
|
|
|
|
$sheet-options-bg-color: #f1f2f3 !default;
|
|
$sheet-options-bg-active-color: #e4e5e7 !default;
|
|
$sheet-options-text-color: #007aff !default;
|
|
$sheet-options-border-color: #d1d3d6 !default;
|
|
|
|
|
|
/*
|
|
.action-menu-container {
|
|
position: absolute;
|
|
z-index: $z-index-action-menu;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
|
|
.list,
|
|
.list-header {
|
|
width: $action-menu-width;
|
|
max-width: $action-menu-max-width;
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|
|
|
|
}
|
|
*/
|
|
|
|
.action-menu-backdrop {
|
|
transition: background-color 150ms ease-in-out;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: $z-index-action-menu;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0,0,0,0);
|
|
|
|
&.active {
|
|
background-color: rgba(0,0,0,0.4);
|
|
}
|
|
}
|
|
|
|
.action-menu-wrapper {
|
|
transform: translate3d(0, 100%, 0);
|
|
//transition: all cubic-bezier(.36, .66, .04, 1) 500ms;
|
|
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin: auto;
|
|
}
|
|
|
|
.action-menu-up {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
|
|
.action-menu-container {
|
|
margin-left: $sheet-margin;
|
|
margin-right: $sheet-margin;
|
|
width: auto;
|
|
z-index: $z-index-action-menu;
|
|
overflow: hidden;
|
|
|
|
.button {
|
|
display: block;
|
|
padding: 1px;
|
|
width: 100%;
|
|
border-radius: 0;
|
|
border-color: $sheet-options-border-color;
|
|
background-color: transparent;
|
|
|
|
color: $sheet-options-text-color;
|
|
font-size: 21px;
|
|
|
|
&:hover {
|
|
color: $sheet-options-text-color;
|
|
}
|
|
&.destructive {
|
|
color: #ff3b30;
|
|
&:hover {
|
|
color: #ff3b30;
|
|
}
|
|
}
|
|
}
|
|
|
|
.button.active, .button.activated {
|
|
box-shadow: none;
|
|
border-color: $sheet-options-border-color;
|
|
color: $sheet-options-text-color;
|
|
background: $sheet-options-bg-active-color;
|
|
}
|
|
}
|
|
|
|
.action-menu-has-icons .icon {
|
|
position: absolute;
|
|
left: 16px;
|
|
}
|
|
|
|
.action-menu-title {
|
|
padding: $sheet-margin * 2;
|
|
color: #8f8f8f;
|
|
text-align: center;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.action-menu-group {
|
|
margin-bottom: $sheet-margin;
|
|
border-radius: $sheet-border-radius;
|
|
background-color: #fff;
|
|
overflow: hidden;
|
|
|
|
.button {
|
|
border-width: 1px 0px 0px 0px;
|
|
}
|
|
.button:first-child:last-child {
|
|
border-width: 0;
|
|
}
|
|
}
|
|
|
|
.action-menu-options {
|
|
background: $sheet-options-bg-color;
|
|
}
|
|
|
|
.action-menu-cancel {
|
|
.button {
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
|
|
.action-menu-open {
|
|
pointer-events: none;
|
|
|
|
&.modal-open .modal {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.action-menu-backdrop {
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
|
|
|
|
.platform-android {
|
|
|
|
.action-menu-backdrop.active {
|
|
background-color: rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.action-menu {
|
|
margin: 0;
|
|
|
|
.action-menu-title,
|
|
.button {
|
|
text-align: left;
|
|
border-color: transparent;
|
|
font-size: 16px;
|
|
color: inherit;
|
|
}
|
|
|
|
.action-menu-title {
|
|
font-size: 14px;
|
|
padding: 16px;
|
|
color: #666;
|
|
}
|
|
|
|
.button.active,
|
|
.button.activated {
|
|
background: #e8e8e8;
|
|
}
|
|
}
|
|
|
|
.action-menu-group {
|
|
margin: 0;
|
|
border-radius: 0;
|
|
background-color: #fafafa;
|
|
}
|
|
|
|
.action-menu-cancel {
|
|
display: none;
|
|
}
|
|
|
|
.action-menu-has-icons {
|
|
|
|
.button {
|
|
padding-left: 56px;
|
|
}
|
|
|
|
}
|
|
|
|
}
|