1 /* ------------------------------
3 ------------------------------ */
5 /* Calculate px to rem */
6 @function calculateRem($size) {
7 $remSize: $size / $base-font-size;
8 @return $remSize * 1rem;
11 @mixin font-size($size) {
13 font-size: calculateRem($size);
16 /* Photoshop letter spacing */
17 @function tracking($target) {
18 @return ($target / 1000) * 1rem;
21 @mixin tracking($target) {
22 letter-spacing: tracking($target);
34 /* Input placeholder selector */
36 $placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input";
37 @each $placeholder in $placeholders {
38 &:#{$placeholder}-placeholder {
44 @mixin keyframes($animation-name) {
45 @keyframes #{$animation-name} {
56 transform: translate(0,0);
61 @for $i from 1 through 14 {
63 animation: slide-up 250ms cubic-bezier(0.645, 0.045, 0.355, 1) forwards #{$i * 0.1}s;
68 $scrimStops: 0% 0%, 26.2% 19%, 45.9% 34%, 61.8% 47%, 72.2% 56.5%, 80.6% 65%, 87.4% 73%, 92.5% 80.2%, 95.8% 86.1%, 97.9% 91%, 99.2% 95.2%, 99.8% 98.2%, 100% 100%;
70 @function getColorStop($colorTo, $colorFrom, $weight, $stop) {
71 @return mix($colorFrom, $colorTo, $weight) $stop;
74 @function getColorStops($colorTo, $colorFrom) {
76 @each $scrimStop in $scrimStops {
77 $stops: append($stops, getColorStop($colorTo, $colorFrom, nth($scrimStop, 1), nth($scrimStop, 2)), comma)
82 @function scrim-linear-gradient($args...) {
83 @if (length($args) == 2) {
84 @return linear-gradient(#{getColorStops(nth($args, 1), nth($args, 2))});
86 @return linear-gradient(#{nth($args, 1)}, #{getColorStops(nth($args, 2), nth($args, 3))});
89 @function unicode($str) {
90 @return unquote("\"") + $str + unquote("\"");
97 $only-desktop: 1025px;
104 @mixin mq($breakpoint) {
105 @media only screen and (max-width: $breakpoint) {
110 @mixin rwd($canvas) {
112 // Really Small devices
113 @if $canvas == 'phone' {
114 @media only screen and (max-width: $phone) {
120 @else if $canvas == 'smartphone' {
121 @media only screen and (max-width: $smartphone) {
125 @else if $canvas == 'smartphone-portrait' {
126 @media only screen and (max-width: $smartphone) and (orientation: portrait) {
130 @else if $canvas == 'smartphone-landscape' {
131 @media only screen and (max-width: $smartphone) and (orientation: landscape) {
137 @else if $canvas == 'tablet' {
138 @media only screen and (max-width: $tablet) {
142 @else if $canvas == 'tablet-portrait' {
143 @media only screen and (max-width: $tablet) and (orientation: portrait) {
147 @else if $canvas == 'tablet-landscape' {
148 @media only screen and (max-width: $tablet) and (orientation: landscape) {
154 @else if $canvas == 'screen-xs' {
155 @media only screen and (max-width: $screen-xs) {
159 @else if $canvas == 'screen-sm' {
160 @media only screen and (max-width: $screen-sm) {
164 @else if $canvas == 'screen-md' {
165 @media only screen and (max-width: $screen-md) {
169 @else if $canvas == 'screen-xl' {
170 @media only screen and (max-width: $screen-xl) {
176 @else if $canvas == 'only-desktop' {
177 @media only screen and (min-width: 1025px) {
183 @else if $canvas == 'print' {