actionsheet css touch up

This commit is contained in:
Adam Bradley
2013-11-07 13:09:42 -06:00
parent 1df5aed0b4
commit 992d8b6227
3 changed files with 39 additions and 42 deletions

48
dist/css/ionic.css vendored
View File

@ -2013,7 +2013,7 @@ sub {
fieldset { fieldset {
margin: 0 2px; margin: 0 2px;
padding: 0.35em 0.625em 0.75em; padding: 0.35em 0.625em 0.75em;
border: 1px solid silver; } border: 1px solid #c0c0c0; }
/** /**
* 1. Correct `color` not being inherited in IE 8/9. * 1. Correct `color` not being inherited in IE 8/9.
@ -2372,34 +2372,34 @@ a.subdued {
padding-right: 0; } padding-right: 0; }
.action-sheet { .action-sheet {
position: fixed;
z-index: 10;
width: calc(100% - 30px);
bottom: 0;
left: 15px;
-webkit-transform: translate3d(0, 100%, 0); -webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0);
overflow: hidden; } position: fixed;
bottom: 0;
left: 15px;
z-index: 10;
overflow: hidden;
width: calc(100% - 30px); }
.action-sheet .button { .action-sheet .button {
display: block; display: block;
width: 100%;
padding: 10px; padding: 10px;
width: 100%;
border-radius: none; border-radius: none;
background-color: transparent; background-color: transparent;
font-size: 18px; color: #4a87ee;
color: #4a87ee; } font-size: 18px; }
.action-sheet .button.destructive { .action-sheet .button.destructive {
color: #ef4e3a; } color: #ef4e3a; }
.action-sheet-title { .action-sheet-title {
font-size: 12px;
padding: 10px; padding: 10px;
text-align: center; } text-align: center;
font-size: 12px; }
.action-sheet-group { .action-sheet-group {
margin-bottom: 10px;
border-radius: 3px; border-radius: 3px;
background-color: rgba(255, 255, 255, 0.95); background-color: rgba(255, 255, 255, 0.95); }
margin-bottom: 10px; }
.bar { .bar {
-webkit-user-select: none; -webkit-user-select: none;
@ -3809,7 +3809,7 @@ input[type="file"] {
line-height: 34px; } line-height: 34px; }
select { select {
border: 1px solid #cccccc; border: 1px solid #ccc;
background-color: white; } background-color: white; }
select[multiple], select[multiple],
@ -3864,7 +3864,7 @@ input[type="checkbox"][readonly] {
border-radius: 50%; border-radius: 50%;
background: white; background: white;
content: ' '; content: ' ';
transition: background-color 0.1s ease-in-out; } transition: background-color .1s ease-in-out; }
/* the checkmark within the box */ /* the checkmark within the box */
.checkbox input:after { .checkbox input:after {
@ -3879,7 +3879,7 @@ input[type="checkbox"][readonly] {
border-right: 0; border-right: 0;
content: ' '; content: ' ';
opacity: 0; opacity: 0;
transition: opacity 0.05s ease-in-out; transition: opacity .05s ease-in-out;
-webkit-transform: rotate(-45deg); -webkit-transform: rotate(-45deg);
transform: rotate(-45deg); } transform: rotate(-45deg); }
@ -4292,7 +4292,7 @@ input[type="range"] {
.button-icon:active, .button-icon.active { .button-icon:active, .button-icon.active {
background: none; background: none;
box-shadow: none; box-shadow: none;
text-shadow: 0px 0px 10px white; } text-shadow: 0px 0px 10px #fff; }
.padding > .button.block:first-child { .padding > .button.block:first-child {
margin-top: 0; } margin-top: 0; }
@ -4633,9 +4633,9 @@ a.button {
line-height: 1; line-height: 1;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-animation: spin 0.75s linear infinite; -webkit-animation: spin .75s linear infinite;
-moz-animation: spin 0.75s linear infinite; -moz-animation: spin .75s linear infinite;
animation: spin 0.75s linear infinite; } animation: spin .75s linear infinite; }
.ion-loading:before { .ion-loading:before {
content: "\e144"; } content: "\e144"; }
@ -4648,9 +4648,9 @@ a.button {
line-height: 1; line-height: 1;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-animation: spin 0.75s linear infinite; -webkit-animation: spin .75s linear infinite;
-moz-animation: spin 0.75s linear infinite; -moz-animation: spin .75s linear infinite;
animation: spin 0.75s linear infinite; } animation: spin .75s linear infinite; }
.ion-refreshing:before { .ion-refreshing:before {
content: "\e144"; } content: "\e144"; }

View File

@ -1,4 +1,3 @@
@charset "UTF-8";
/** /**
* Nav controllers and header bar animations * Nav controllers and header bar animations
*/ */
@ -119,7 +118,7 @@
right: 20px; right: 20px;
transition: 0.2s ease; transition: 0.2s ease;
transition-property: left, right; transition-property: left, right;
transition-delay: 0s, 0.05s; } transition-delay: 0s, .05s; }
.toggle :checked + .track { .toggle :checked + .track {
/* When the toggle is "on" */ /* When the toggle is "on" */
@ -134,4 +133,4 @@
right: 0; right: 0;
left: 20px; left: 20px;
-webkit-transform: none; -webkit-transform: none;
transition-delay: 0.05s, 0s; } transition-delay: .05s, 0s; }

View File

@ -1,28 +1,26 @@
// Action Sheets
// --------------------------------------------------
.action-sheet { .action-sheet {
position: fixed; @include translate3d(0, 100%, 0);
z-index: $zindex-modal;
width: calc(100% - 30px);
position: fixed;
bottom: 0; bottom: 0;
left: 15px; left: 15px;
z-index: $zindex-modal;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
overflow: hidden; overflow: hidden;
width: calc(100% - 30px);
.button { .button {
display: block; display: block;
width: 100%;
padding: 10px; padding: 10px;
width: 100%;
border-radius: none; border-radius: none;
background-color: transparent; background-color: transparent;
font-size: 18px;
color: $brand-primary; color: $brand-primary;
font-size: 18px;
&.destructive { &.destructive {
color: $brand-danger; color: $brand-danger;
@ -31,13 +29,13 @@
} }
.action-sheet-title { .action-sheet-title {
font-size: 12px;
padding: 10px; padding: 10px;
text-align: center; text-align: center;
font-size: 12px;
} }
.action-sheet-group { .action-sheet-group {
margin-bottom: 10px;
border-radius: $sheet-border-radius; border-radius: $sheet-border-radius;
background-color: rgba($sheet-bg-color, $sheet-opacity); background-color: rgba($sheet-bg-color, $sheet-opacity);
margin-bottom: 10px;
} }