Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
@mixin transition($transition-property, $transition-time, $method) { | |
-webkit-transition: $transition-property $transition-time $method; | |
-moz-transition: $transition-property $transition-time $method; | |
-ms-transition: $transition-property $transition-time $method; | |
-o-transition: $transition-property $transition-time $method; | |
transition: $transition-property $transition-time $method; | |
} | |
/* Usage - Stick into the top of your SCSS sheet and @include where needed for cross browser transitions. | |
.class { |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
/* Vertically aling on ion-content */ | |
.center { | |
border: 1px solid red; | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
-webkit-box-direction: normal; | |
-moz-box-direction: normal; |
@mixin box-shadow($top, $left, $blur, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $top $left $blur $color; | |
-moz-box-shadow:inset $top $left $blur $color; | |
box-shadow:inset $top $left $blur $color; | |
} @else { | |
-webkit-box-shadow: $top $left $blur $color; | |
-moz-box-shadow: $top $left $blur $color; | |
box-shadow: $top $left $blur $color; | |
} |
//Cross browser CSS3 mixins | |
@mixin box-shadow($left, $top, $radius, $color) { | |
box-shadow: $left $top $radius $color; | |
-webkit-box-shadow: $left $top $radius $color; | |
-moz-box-shadow: $left $top $radius $color; | |
} | |
@mixin transition($property, $duration, $easing: linear) { | |
transition: $property $duration $easing; |
// Mixins | |
// -------------------------- | |
@mixin fa-icon() { | |
display: inline-block; | |
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration | |
font-size: inherit; // can't have font-size inherit on line above, so need to override | |
text-rendering: auto; // optimizelegibility throws things off #1094 | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; |
<div class="group"> | |
<input type="text" required> | |
<span class="highlight"></span> | |
<span class="bar"></span> | |
<label>Nombre y Apellido</label> | |
</div> | |
<div class="group"> | |
<input type="text" required> | |
<span class="highlight"></span> | |
<span class="bar"></span> |
enum VisibilityState { | |
Visible = 'visible', | |
Hidden = 'hidden' | |
} | |
enum Direction { | |
Up = 'Up', | |
Down = 'Down' | |
} |
// -------------------------------------------------- | |
// Flexbox SASS mixins | |
// The spec: http://www.w3.org/TR/css3-flexbox | |
// -------------------------------------------------- | |
// Flexbox display | |
@mixin flexbox() { | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; |
// Browser Prefixes | |
@mixin transform($transforms) { | |
-webkit-transform: $transforms; | |
-moz-transform: $transforms; | |
-ms-transform: $transforms; | |
transform: $transforms; | |
} | |
// Rotate | |
@mixin rotate ($deg) { |