jce-mobile-app/www/lib/ionic/scss/_action-sheet.scss

93 lines
1.5 KiB
SCSS
Raw Normal View History

2015-01-10 22:11:51 +00:00
/**
* Action Sheets
* --------------------------------------------------
*/
.action-sheet-backdrop {
@include transition(background-color 300ms ease-in-out);
position: fixed;
top: 0;
left: 0;
z-index: $z-index-action-sheet;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0);
&.active {
background-color: rgba(0,0,0,0.5);
}
}
.action-sheet-wrapper {
@include translate3d(0, 100%, 0);
@include transition(all ease-in-out 300ms);
position: absolute;
bottom: 0;
width: 100%;
}
.action-sheet-up {
@include translate3d(0, 0, 0);
}
.action-sheet {
margin-left: 15px;
margin-right: 15px;
width: auto;
z-index: $z-index-action-sheet;
overflow: hidden;
.button {
display: block;
padding: 1px;
width: 100%;
border-radius: 0;
background-color: transparent;
color: $positive;
font-size: 18px;
&.destructive {
color: $assertive;
}
}
}
.action-sheet-title {
padding: 10px;
color: lighten($base-color, 40%);
text-align: center;
font-size: 12px;
}
.action-sheet-group {
margin-bottom: 5px;
border-radius: $sheet-border-radius;
background-color: #fff;
.button {
border-width: 1px 0px 0px 0px;
border-radius: 0;
&.active {
background-color: transparent;
color: inherit;
}
}
.button:first-child:last-child {
border-width: 0;
}
}
.action-sheet-open {
pointer-events: none;
&.modal-open .modal {
pointer-events: none;
}
.action-sheet-backdrop {
pointer-events: auto;
}
}