mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(button): refactors button's css to work in chrome/safari
This commit is contained in:
@@ -9,11 +9,7 @@ $button-round-border-radius: 64px !default;
|
||||
|
||||
.button {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
display: inline-block;
|
||||
transition: background-color, opacity 100ms linear;
|
||||
z-index: 0;
|
||||
|
||||
@@ -23,6 +19,7 @@ $button-round-border-radius: 64px !default;
|
||||
|
||||
text-align: center;
|
||||
text-transform: none;
|
||||
font-kerning: none;
|
||||
|
||||
vertical-align: top; // the better option for most scenarios
|
||||
vertical-align: -webkit-baseline-middle; // the best for those that support it
|
||||
@@ -32,6 +29,16 @@ $button-round-border-radius: 64px !default;
|
||||
@include appearance(none);
|
||||
}
|
||||
|
||||
span.button-inner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
flex-flow: row nowrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
a.button {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user