1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- // Mixin
- @mixin hover-state {
- &:hover, &:active, &:focus {
- @content;
- }
- }
- @mixin hover-full-state {
- &:hover, &:active, &:focus, &.active {
- @content;
- }
- }
- @mixin hover-focus-state {
- &:hover, &:focus {
- @content;
- }
- }
- @mixin active-focus-state {
- &:active, &.active, &:focus {
- @content;
- }
- }
- @mixin hover-active-state {
- &:hover, &:active, &.active {
- @content;
- }
- }
- @mixin before-after-state {
- &:before, &:after {
- @content;
- }
- }
- @mixin clear() {
- overflow:hidden;
- clear:both;
- float:none;
- }
- @mixin placeholder {
- &::-webkit-input-placeholder {@content}
- &:-moz-placeholder {@content}
- &::-moz-placeholder {@content}
- &:-ms-input-placeholder {@content}
- }
- @mixin transition($transition...) {
- -moz-transition: $transition;
- -o-transition: $transition;
- -webkit-transition: $transition;
- transition: $transition;
- }
- @mixin transition-property($property...) {
- -moz-transition-property: $property;
- -o-transition-property: $property;
- -webkit-transition-property: $property;
- transition-property: $property;
- }
- @mixin transition-duration($duration...) {
- -moz-transition-property: $duration;
- -o-transition-property: $duration;
- -webkit-transition-property: $duration;
- transition-property: $duration;
- }
- @mixin transition-timing-function($timing...) {
- -moz-transition-timing-function: $timing;
- -o-transition-timing-function: $timing;
- -webkit-transition-timing-function: $timing;
- transition-timing-function: $timing;
- }
- @mixin transition-delay($delay...) {
- -moz-transition-delay: $delay;
- -o-transition-delay: $delay;
- -webkit-transition-delay: $delay;
- transition-delay: $delay;
- }
- @mixin box-shadow($value) {
- -webkit-box-shadow: $value;
- -moz-box-shadow: $value;
- box-shadow: $value;
- }
|