mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
block as button default
This commit is contained in:
@ -1,9 +1,8 @@
|
||||
.button {
|
||||
position: relative;
|
||||
display: block;
|
||||
margin: $button-block-margin;
|
||||
|
||||
display: inline-block;
|
||||
|
||||
margin: 0;
|
||||
padding: $button-padding;
|
||||
|
||||
border-width: $button-border-width;
|
||||
@ -20,31 +19,29 @@
|
||||
cursor: pointer;
|
||||
|
||||
&.button-icon {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: $button-clear-padding;
|
||||
width: auto;
|
||||
border: none;
|
||||
background: none;
|
||||
padding: $button-clear-padding;
|
||||
}
|
||||
|
||||
&.button-clear {
|
||||
@include transition(opacity .1s);
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: $button-clear-padding;
|
||||
width: auto;
|
||||
border: none;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
padding: $button-clear-padding;
|
||||
|
||||
// A nice iOS 7 style fade click
|
||||
@include transition(opacity .1s);
|
||||
|
||||
&:active, &.active {
|
||||
opacity: 0.3;
|
||||
}
|
||||
}
|
||||
|
||||
&.button-block {
|
||||
display: block;
|
||||
margin: $button-block-margin;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&.button-default {
|
||||
@include button-style($button-default-bg, $button-default-border, $button-default-active-bg, $button-default-active-border, $gray-dark);
|
||||
@include button-clear($gray-dark);
|
||||
@ -85,28 +82,35 @@
|
||||
}
|
||||
|
||||
&.button-outline {
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
|
||||
/* padding: $button-clear-padding; */
|
||||
|
||||
// A nice iOS 7 style fade click
|
||||
@include transition(opacity .1s);
|
||||
|
||||
&:active, &.active {
|
||||
}
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
width: auto;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
|
||||
&.button-icon {
|
||||
border: none;
|
||||
background: none;
|
||||
&:active, &.active {
|
||||
text-shadow: 0px 0px 10px #fff;
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
text-shadow: 0px 0px 10px #fff;
|
||||
}
|
||||
}
|
||||
|
||||
&.button-inline {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
&.button-block {
|
||||
display: block;
|
||||
margin: $button-block-margin;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
a.button {
|
||||
|
||||
Reference in New Issue
Block a user