123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- @mixin arrow($color) {
- border: 1px solid $color;
- border-right: 0;
- border-top: 0;
- content: " ";
- display: block;
- height: 7px;
- pointer-events: none;
- position: absolute;
- transform: rotate(-45deg);
- width: 7px;
- }
- @mixin clearfix {
- &:after {
- clear: both;
- content: " ";
- display: table;
- }
- }
- @mixin center($size) {
- left: 50%;
- margin-left: -($size / 2);
- margin-top: -($size / 2);
- position: absolute;
- top: 50%;
- }
- @mixin fa($size, $dimensions) {
- display: inline-block;
- font-size: $size;
- height: $dimensions;
- line-height: $dimensions;
- text-align: center;
- vertical-align: top;
- width: $dimensions;
- }
- @mixin overlay($offset: 0) {
- bottom: $offset;
- left: $offset;
- position: absolute;
- right: $offset;
- top: $offset;
- }
- @mixin placeholder {
- $placeholders: ":-moz" ":-webkit-input" "-moz" "-ms-input";
- @each $placeholder in $placeholders {
- &:#{$placeholder}-placeholder {
- @content;
- }
- }
- }
- @mixin replace($background, $width, $height) {
- background-color: $background;
- background-position: center center;
- background-repeat: no-repeat;
- background-size: $width $height;
- display: block;
- height: $height;
- outline: none;
- overflow: hidden;
- text-indent: -290486px;
- width: $width;
- }
- @mixin from($device) {
- @media screen and (min-width: $device) {
- @content;
- }
- }
- @mixin until($device) {
- @media screen and (max-width: $device - 1px) {
- @content;
- }
- }
- @mixin mobile {
- @media screen and (max-width: $tablet - 1px) {
- @content;
- }
- }
- @mixin tablet {
- @media screen and (min-width: $tablet) {
- @content;
- }
- }
- @mixin tablet-only {
- @media screen and (min-width: $tablet) and (max-width: $desktop - 1px) {
- @content;
- }
- }
- @mixin touch {
- @media screen and (max-width: $desktop - 1px) {
- @content;
- }
- }
- @mixin desktop {
- @media screen and (min-width: $desktop) {
- @content;
- }
- }
- @mixin desktop-only {
- @media screen and (min-width: $desktop) and (max-width: $widescreen - 1px) {
- @content;
- }
- }
- @mixin widescreen {
- @media screen and (min-width: $widescreen) {
- @content;
- }
- }
|