moovui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +17 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +1 -0
  7. data/Rakefile +1 -0
  8. data/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
  9. data/bourbon/_bourbon.scss +59 -0
  10. data/bourbon/addons/_button.scss +273 -0
  11. data/bourbon/addons/_clearfix.scss +29 -0
  12. data/bourbon/addons/_font-family.scss +5 -0
  13. data/bourbon/addons/_hide-text.scss +5 -0
  14. data/bourbon/addons/_html5-input-types.scss +56 -0
  15. data/bourbon/addons/_position.scss +42 -0
  16. data/bourbon/addons/_prefixer.scss +49 -0
  17. data/bourbon/addons/_retina-image.scss +32 -0
  18. data/bourbon/addons/_size.scss +44 -0
  19. data/bourbon/addons/_timing-functions.scss +32 -0
  20. data/bourbon/addons/_triangle.scss +45 -0
  21. data/bourbon/css3/_animation.scss +52 -0
  22. data/bourbon/css3/_appearance.scss +3 -0
  23. data/bourbon/css3/_backface-visibility.scss +6 -0
  24. data/bourbon/css3/_background-image.scss +48 -0
  25. data/bourbon/css3/_background.scss +103 -0
  26. data/bourbon/css3/_border-image.scss +55 -0
  27. data/bourbon/css3/_border-radius.scss +22 -0
  28. data/bourbon/css3/_box-sizing.scss +4 -0
  29. data/bourbon/css3/_columns.scss +47 -0
  30. data/bourbon/css3/_flex-box.scss +52 -0
  31. data/bourbon/css3/_font-face.scss +23 -0
  32. data/bourbon/css3/_hidpi-media-query.scss +10 -0
  33. data/bourbon/css3/_image-rendering.scss +13 -0
  34. data/bourbon/css3/_inline-block.scss +8 -0
  35. data/bourbon/css3/_keyframes.scss +43 -0
  36. data/bourbon/css3/_linear-gradient.scss +41 -0
  37. data/bourbon/css3/_perspective.scss +8 -0
  38. data/bourbon/css3/_placeholder.scss +29 -0
  39. data/bourbon/css3/_radial-gradient.scss +44 -0
  40. data/bourbon/css3/_transform.scss +15 -0
  41. data/bourbon/css3/_transition.scss +34 -0
  42. data/bourbon/css3/_user-select.scss +3 -0
  43. data/bourbon/functions/_compact.scss +11 -0
  44. data/bourbon/functions/_flex-grid.scss +39 -0
  45. data/bourbon/functions/_grid-width.scss +13 -0
  46. data/bourbon/functions/_linear-gradient.scss +13 -0
  47. data/bourbon/functions/_modular-scale.scss +40 -0
  48. data/bourbon/functions/_px-to-em.scss +8 -0
  49. data/bourbon/functions/_radial-gradient.scss +23 -0
  50. data/bourbon/functions/_tint-shade.scss +9 -0
  51. data/bourbon/functions/_transition-property-name.scss +22 -0
  52. data/bourbon/helpers/_deprecated-webkit-gradient.scss +39 -0
  53. data/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  54. data/bourbon/helpers/_linear-positions-parser.scss +61 -0
  55. data/bourbon/helpers/_radial-arg-parser.scss +69 -0
  56. data/bourbon/helpers/_radial-positions-parser.scss +18 -0
  57. data/bourbon/helpers/_render-gradients.scss +26 -0
  58. data/bourbon/helpers/_shape-size-stripper.scss +10 -0
  59. data/chosen.jquery.js +1166 -0
  60. data/custom.modernizr.js +4 -0
  61. data/fonts/TSTARPRO-BoldWeb.eot +0 -0
  62. data/fonts/TSTARPRO-BoldWeb.woff +0 -0
  63. data/fonts/entypo.eot +0 -0
  64. data/fonts/entypo.svg +235 -0
  65. data/fonts/entypo.ttf +0 -0
  66. data/fonts/entypo.woff +0 -0
  67. data/foundation.alerts.js +52 -0
  68. data/foundation.dropdown.js +177 -0
  69. data/foundation.js +440 -0
  70. data/foundation.reveal.js +330 -0
  71. data/foundation.section.js +400 -0
  72. data/foundation.tooltips.custom.js +222 -0
  73. data/globals/_base.scss +41 -0
  74. data/globals/_entypo.scss +711 -0
  75. data/globals/_footer.scss +29 -0
  76. data/globals/_header.scss +64 -0
  77. data/globals/_mixins.scss +69 -0
  78. data/globals/_normalize.scss +405 -0
  79. data/globals/_vars.scss +67 -0
  80. data/index.html +1254 -0
  81. data/lib/moovui/version.rb +3 -0
  82. data/lib/moovui.rb +4 -0
  83. data/modules/_accordion.scss +51 -0
  84. data/modules/_btn.scss +130 -0
  85. data/modules/_btnbar.scss +56 -0
  86. data/modules/_code.scss +55 -0
  87. data/modules/_copy.scss +99 -0
  88. data/modules/_definition.scss +34 -0
  89. data/modules/_docs.scss +127 -0
  90. data/modules/_dropdown.scss +32 -0
  91. data/modules/_flex.scss +300 -0
  92. data/modules/_grid.scss +72 -0
  93. data/modules/_input.scss +59 -0
  94. data/modules/_label.scss +6 -0
  95. data/modules/_list.scss +57 -0
  96. data/modules/_media.scss +17 -0
  97. data/modules/_modal.scss +71 -0
  98. data/modules/_notice.scss +111 -0
  99. data/modules/_pane.scss +25 -0
  100. data/modules/_resp.scss +71 -0
  101. data/modules/_select.scss +94 -0
  102. data/modules/_sidebar.scss +117 -0
  103. data/modules/_syntax-highlighter.scss +100 -0
  104. data/modules/_table.scss +63 -0
  105. data/modules/_tooltip.scss +59 -0
  106. data/moovui.gemspec +21 -0
  107. data/moovui.scss +43 -0
  108. data/shBrushBash.js +59 -0
  109. data/shBrushJScript.js +52 -0
  110. data/shBrushNull.js +35 -0
  111. data/shBrushSass.js +90 -0
  112. data/shBrushTritium.js +46 -0
  113. data/shBrushXml.js +69 -0
  114. data/shCore.custom.js +2399 -0
  115. data/shInit.js +14 -0
  116. metadata +187 -0
@@ -0,0 +1,44 @@
1
+ @mixin size($size) {
2
+ @if length($size) == 1 {
3
+ @if $size == auto {
4
+ width: $size;
5
+ height: $size;
6
+ }
7
+
8
+ @else if unitless($size) {
9
+ width: $size + px;
10
+ height: $size + px;
11
+ }
12
+
13
+ @else if not(unitless($size)) {
14
+ width: $size;
15
+ height: $size;
16
+ }
17
+ }
18
+
19
+ // Width x Height
20
+ @if length($size) == 2 {
21
+ $width: nth($size, 1);
22
+ $height: nth($size, 2);
23
+
24
+ @if $width == auto {
25
+ width: $width;
26
+ }
27
+ @else if not(unitless($width)) {
28
+ width: $width;
29
+ }
30
+ @else if unitless($width) {
31
+ width: $width + px;
32
+ }
33
+
34
+ @if $height == auto {
35
+ height: $height;
36
+ }
37
+ @else if not(unitless($height)) {
38
+ height: $height;
39
+ }
40
+ @else if unitless($height) {
41
+ height: $height + px;
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,32 @@
1
+ // CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie)
2
+ // Timing functions are the same as demo'ed here: http://jqueryui.com/demos/effect/easing.html
3
+
4
+ // EASE IN
5
+ $ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
6
+ $ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
7
+ $ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
8
+ $ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
9
+ $ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
10
+ $ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
11
+ $ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335);
12
+ $ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045);
13
+
14
+ // EASE OUT
15
+ $ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
16
+ $ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
17
+ $ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
18
+ $ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
19
+ $ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
20
+ $ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
21
+ $ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000);
22
+ $ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275);
23
+
24
+ // EASE IN OUT
25
+ $ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
26
+ $ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
27
+ $ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
28
+ $ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
29
+ $ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
30
+ $ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
31
+ $ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
32
+ $ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550);
@@ -0,0 +1,45 @@
1
+ @mixin triangle ($size, $color, $direction) {
2
+ height: 0;
3
+ width: 0;
4
+
5
+ @if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
6
+ border-color: transparent;
7
+ border-style: solid;
8
+ border-width: $size / 2;
9
+
10
+ @if $direction == up {
11
+ border-bottom-color: $color;
12
+
13
+ } @else if $direction == right {
14
+ border-left-color: $color;
15
+
16
+ } @else if $direction == down {
17
+ border-top-color: $color;
18
+
19
+ } @else if $direction == left {
20
+ border-right-color: $color;
21
+ }
22
+ }
23
+
24
+ @else if ($direction == up-right) or ($direction == up-left) {
25
+ border-top: $size solid $color;
26
+
27
+ @if $direction == up-right {
28
+ border-left: $size solid transparent;
29
+
30
+ } @else if $direction == up-left {
31
+ border-right: $size solid transparent;
32
+ }
33
+ }
34
+
35
+ @else if ($direction == down-right) or ($direction == down-left) {
36
+ border-bottom: $size solid $color;
37
+
38
+ @if $direction == down-right {
39
+ border-left: $size solid transparent;
40
+
41
+ } @else if $direction == down-left {
42
+ border-right: $size solid transparent;
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,52 @@
1
+ // http://www.w3.org/TR/css3-animations/#the-animation-name-property-
2
+ // Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
3
+
4
+ // Official animation shorthand property.
5
+ @mixin animation ($animations...) {
6
+ @include prefixer(animation, $animations, webkit moz spec);
7
+ }
8
+
9
+ // Individual Animation Properties
10
+ @mixin animation-name ($names...) {
11
+ @include prefixer(animation-name, $names, webkit moz spec);
12
+ }
13
+
14
+
15
+ @mixin animation-duration ($times...) {
16
+ @include prefixer(animation-duration, $times, webkit moz spec);
17
+ }
18
+
19
+
20
+ @mixin animation-timing-function ($motions...) {
21
+ // ease | linear | ease-in | ease-out | ease-in-out
22
+ @include prefixer(animation-timing-function, $motions, webkit moz spec);
23
+ }
24
+
25
+
26
+ @mixin animation-iteration-count ($values...) {
27
+ // infinite | <number>
28
+ @include prefixer(animation-iteration-count, $values, webkit moz spec);
29
+ }
30
+
31
+
32
+ @mixin animation-direction ($directions...) {
33
+ // normal | alternate
34
+ @include prefixer(animation-direction, $directions, webkit moz spec);
35
+ }
36
+
37
+
38
+ @mixin animation-play-state ($states...) {
39
+ // running | paused
40
+ @include prefixer(animation-play-state, $states, webkit moz spec);
41
+ }
42
+
43
+
44
+ @mixin animation-delay ($times...) {
45
+ @include prefixer(animation-delay, $times, webkit moz spec);
46
+ }
47
+
48
+
49
+ @mixin animation-fill-mode ($modes...) {
50
+ // none | forwards | backwards | both
51
+ @include prefixer(animation-fill-mode, $modes, webkit moz spec);
52
+ }
@@ -0,0 +1,3 @@
1
+ @mixin appearance ($value) {
2
+ @include prefixer(appearance, $value, webkit moz ms o spec);
3
+ }
@@ -0,0 +1,6 @@
1
+ //************************************************************************//
2
+ // Backface-visibility mixin
3
+ //************************************************************************//
4
+ @mixin backface-visibility($visibility) {
5
+ @include prefixer(backface-visibility, $visibility, webkit spec);
6
+ }
@@ -0,0 +1,48 @@
1
+ //************************************************************************//
2
+ // Background-image property for adding multiple background images with
3
+ // gradients, or for stringing multiple gradients together.
4
+ //************************************************************************//
5
+
6
+ @mixin background-image($images...) {
7
+ background-image: _add-prefix($images, webkit);
8
+ background-image: _add-prefix($images);
9
+ }
10
+
11
+ @function _add-prefix($images, $vendor: false) {
12
+ $images-prefixed: ();
13
+ $gradient-positions: false;
14
+ @for $i from 1 through length($images) {
15
+ $type: type-of(nth($images, $i)); // Get type of variable - List or String
16
+
17
+ // If variable is a list - Gradient
18
+ @if $type == list {
19
+ $gradient-type: nth(nth($images, $i), 1); // linear or radial
20
+ $gradient-pos: null;
21
+ $gradient-args: null;
22
+
23
+ @if ($gradient-type == linear) or ($gradient-type == radial) {
24
+ $gradient-pos: nth(nth($images, $i), 2); // Get gradient position
25
+ $gradient-args: nth(nth($images, $i), 3); // Get actual gradient (red, blue)
26
+ }
27
+ @else {
28
+ $gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue)
29
+ }
30
+
31
+ $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
32
+ $gradient: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
33
+ $images-prefixed: append($images-prefixed, $gradient, comma);
34
+ }
35
+ // If variable is a string - Image
36
+ @else if $type == string {
37
+ $images-prefixed: join($images-prefixed, nth($images, $i), comma);
38
+ }
39
+ }
40
+ @return $images-prefixed;
41
+ }
42
+
43
+ //Examples:
44
+ //@include background-image(linear-gradient(top, orange, red));
45
+ //@include background-image(radial-gradient(50% 50%, cover circle, orange, red));
46
+ //@include background-image(url("/images/a.png"), linear-gradient(orange, red));
47
+ //@include background-image(url("image.png"), linear-gradient(orange, red), url("image.png"));
48
+ //@include background-image(linear-gradient(hsla(0, 100%, 100%, 0.25) 0%, hsla(0, 100%, 100%, 0.08) 50%, transparent 50%), linear-gradient(orange, red));
@@ -0,0 +1,103 @@
1
+ //************************************************************************//
2
+ // Background property for adding multiple backgrounds using shorthand
3
+ // notation.
4
+ //************************************************************************//
5
+
6
+ @mixin background(
7
+ $background-1 , $background-2: false,
8
+ $background-3: false, $background-4: false,
9
+ $background-5: false, $background-6: false,
10
+ $background-7: false, $background-8: false,
11
+ $background-9: false, $background-10: false,
12
+ $fallback: false
13
+ ) {
14
+ $backgrounds: compact($background-1, $background-2,
15
+ $background-3, $background-4,
16
+ $background-5, $background-6,
17
+ $background-7, $background-8,
18
+ $background-9, $background-10);
19
+
20
+ $fallback-color: false;
21
+ @if (type-of($fallback) == color) or ($fallback == "transparent") {
22
+ $fallback-color: $fallback;
23
+ }
24
+ @else {
25
+ $fallback-color: _extract-background-color($backgrounds);
26
+ }
27
+
28
+ @if $fallback-color {
29
+ background-color: $fallback-color;
30
+ }
31
+ background: _background-add-prefix($backgrounds, webkit);
32
+ background: _background-add-prefix($backgrounds);
33
+ }
34
+
35
+ @function _extract-background-color($backgrounds) {
36
+ $final-bg-layer: nth($backgrounds, length($backgrounds));
37
+ @if type-of($final-bg-layer) == list {
38
+ @for $i from 1 through length($final-bg-layer) {
39
+ $value: nth($final-bg-layer, $i);
40
+ @if type-of($value) == color {
41
+ @return $value;
42
+ }
43
+ }
44
+ }
45
+ @return false;
46
+ }
47
+
48
+ @function _background-add-prefix($backgrounds, $vendor: false) {
49
+ $backgrounds-prefixed: ();
50
+
51
+ @for $i from 1 through length($backgrounds) {
52
+ $shorthand: nth($backgrounds, $i); // Get member for current index
53
+ $type: type-of($shorthand); // Get type of variable - List (gradient) or String (image)
54
+
55
+ // If shorthand is a list (gradient)
56
+ @if $type == list {
57
+ $first-member: nth($shorthand, 1); // Get first member of shorthand
58
+
59
+ // Linear Gradient
60
+ @if index(linear radial, nth($first-member, 1)) {
61
+ $gradient-type: nth($first-member, 1); // linear || radial
62
+ $gradient-args: false;
63
+ $gradient-positions: false;
64
+ $shorthand-start: false;
65
+ @if type-of($first-member) == list { // Linear gradient plus additional shorthand values - lg(red,orange)repeat,...
66
+ $gradient-positions: nth($first-member, 2);
67
+ $gradient-args: nth($first-member, 3);
68
+ $shorthand-start: 2;
69
+ }
70
+ @else { // Linear gradient only - lg(red,orange),...
71
+ $gradient-positions: nth($shorthand, 2);
72
+ $gradient-args: nth($shorthand, 3); // Get gradient (red, blue)
73
+ }
74
+
75
+ $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-positions);
76
+ $gradient: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
77
+
78
+ // Append any additional shorthand args to gradient
79
+ @if $shorthand-start {
80
+ @for $j from $shorthand-start through length($shorthand) {
81
+ $gradient: join($gradient, nth($shorthand, $j), space);
82
+ }
83
+ }
84
+ $backgrounds-prefixed: append($backgrounds-prefixed, $gradient, comma);
85
+ }
86
+ // Image with additional properties
87
+ @else {
88
+ $backgrounds-prefixed: append($backgrounds-prefixed, $shorthand, comma);
89
+ }
90
+ }
91
+ // If shorthand is a simple string (color or image)
92
+ @else if $type == string {
93
+ $backgrounds-prefixed: join($backgrounds-prefixed, $shorthand, comma);
94
+ }
95
+ }
96
+ @return $backgrounds-prefixed;
97
+ }
98
+
99
+ //Examples:
100
+ //@include background(linear-gradient(top, orange, red));
101
+ //@include background(radial-gradient(circle at 40% 40%, orange, red));
102
+ //@include background(url("/images/a.png") no-repeat, linear-gradient(orange, red));
103
+ //@include background(url("image.png") center center, linear-gradient(orange, red), url("image.png"));
@@ -0,0 +1,55 @@
1
+ @mixin border-image($images) {
2
+ -webkit-border-image: _border-add-prefix($images, webkit);
3
+ -moz-border-image: _border-add-prefix($images, moz);
4
+ -o-border-image: _border-add-prefix($images, o);
5
+ border-image: _border-add-prefix($images);
6
+ }
7
+
8
+ @function _border-add-prefix($images, $vendor: false) {
9
+ $border-image: null;
10
+ $images-type: type-of(nth($images, 1));
11
+ $first-var: nth(nth($images, 1), 1); // Get type of Gradient (Linear || radial)
12
+
13
+ // If input is a gradient
14
+ @if $images-type == string {
15
+ @if ($first-var == "linear") or ($first-var == "radial") {
16
+ $gradient-type: nth($images, 1); // Get type of gradient (linear || radial)
17
+ $gradient-pos: nth($images, 2); // Get gradient position
18
+ $gradient-args: nth($images, 3); // Get actual gradient (red, blue)
19
+ $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
20
+ $border-image: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
21
+ }
22
+ // If input is a URL
23
+ @else {
24
+ $border-image: $images;
25
+ }
26
+ }
27
+ // If input is gradient or url + additional args
28
+ @else if $images-type == list {
29
+ $type: type-of(nth($images, 1)); // Get type of variable - List or String
30
+
31
+ // If variable is a list - Gradient
32
+ @if $type == list {
33
+ $gradient: nth($images, 1);
34
+ $gradient-type: nth($gradient, 1); // Get type of gradient (linear || radial)
35
+ $gradient-pos: nth($gradient, 2); // Get gradient position
36
+ $gradient-args: nth($gradient, 3); // Get actual gradient (red, blue)
37
+ $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
38
+ $border-image: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
39
+
40
+ @for $i from 2 through length($images) {
41
+ $border-image: append($border-image, nth($images, $i));
42
+ }
43
+ }
44
+ }
45
+ @return $border-image;
46
+ }
47
+
48
+ //Examples:
49
+ // @include border-image(url("image.png"));
50
+ // @include border-image(url("image.png") 20 stretch);
51
+ // @include border-image(linear-gradient(45deg, orange, yellow));
52
+ // @include border-image(linear-gradient(45deg, orange, yellow) stretch);
53
+ // @include border-image(linear-gradient(45deg, orange, yellow) 20 30 40 50 stretch round);
54
+ // @include border-image(radial-gradient(top, cover, orange, yellow, orange));
55
+
@@ -0,0 +1,22 @@
1
+ //************************************************************************//
2
+ // Shorthand Border-radius mixins
3
+ //************************************************************************//
4
+ @mixin border-top-radius($radii) {
5
+ @include prefixer(border-top-left-radius, $radii, spec);
6
+ @include prefixer(border-top-right-radius, $radii, spec);
7
+ }
8
+
9
+ @mixin border-bottom-radius($radii) {
10
+ @include prefixer(border-bottom-left-radius, $radii, spec);
11
+ @include prefixer(border-bottom-right-radius, $radii, spec);
12
+ }
13
+
14
+ @mixin border-left-radius($radii) {
15
+ @include prefixer(border-top-left-radius, $radii, spec);
16
+ @include prefixer(border-bottom-left-radius, $radii, spec);
17
+ }
18
+
19
+ @mixin border-right-radius($radii) {
20
+ @include prefixer(border-top-right-radius, $radii, spec);
21
+ @include prefixer(border-bottom-right-radius, $radii, spec);
22
+ }
@@ -0,0 +1,4 @@
1
+ @mixin box-sizing ($box) {
2
+ // content-box | border-box | inherit
3
+ @include prefixer(box-sizing, $box, webkit moz spec);
4
+ }
@@ -0,0 +1,47 @@
1
+ @mixin columns($arg: auto) {
2
+ // <column-count> || <column-width>
3
+ @include prefixer(columns, $arg, webkit moz spec);
4
+ }
5
+
6
+ @mixin column-count($int: auto) {
7
+ // auto || integer
8
+ @include prefixer(column-count, $int, webkit moz spec);
9
+ }
10
+
11
+ @mixin column-gap($length: normal) {
12
+ // normal || length
13
+ @include prefixer(column-gap, $length, webkit moz spec);
14
+ }
15
+
16
+ @mixin column-fill($arg: auto) {
17
+ // auto || length
18
+ @include prefixer(columns-fill, $arg, webkit moz spec);
19
+ }
20
+
21
+ @mixin column-rule($arg) {
22
+ // <border-width> || <border-style> || <color>
23
+ @include prefixer(column-rule, $arg, webkit moz spec);
24
+ }
25
+
26
+ @mixin column-rule-color($color) {
27
+ @include prefixer(column-rule-color, $color, webkit moz spec);
28
+ }
29
+
30
+ @mixin column-rule-style($style: none) {
31
+ // none | hidden | dashed | dotted | double | groove | inset | inset | outset | ridge | solid
32
+ @include prefixer(column-rule-style, $style, webkit moz spec);
33
+ }
34
+
35
+ @mixin column-rule-width ($width: none) {
36
+ @include prefixer(column-rule-width, $width, webkit moz spec);
37
+ }
38
+
39
+ @mixin column-span($arg: none) {
40
+ // none || all
41
+ @include prefixer(column-span, $arg, webkit moz spec);
42
+ }
43
+
44
+ @mixin column-width($length: auto) {
45
+ // auto || length
46
+ @include prefixer(column-width, $length, webkit moz spec);
47
+ }
@@ -0,0 +1,52 @@
1
+ // CSS3 Flexible Box Model and property defaults
2
+
3
+ // Custom shorthand notation for flexbox
4
+ @mixin box($orient: inline-axis, $pack: start, $align: stretch) {
5
+ @include display-box;
6
+ @include box-orient($orient);
7
+ @include box-pack($pack);
8
+ @include box-align($align);
9
+ }
10
+
11
+ @mixin display-box {
12
+ display: -webkit-box;
13
+ display: -moz-box;
14
+ display: box;
15
+ }
16
+
17
+ @mixin box-orient($orient: inline-axis) {
18
+ // horizontal|vertical|inline-axis|block-axis|inherit
19
+ @include prefixer(box-orient, $orient, webkit moz spec);
20
+ }
21
+
22
+ @mixin box-pack($pack: start) {
23
+ // start|end|center|justify
24
+ @include prefixer(box-pack, $pack, webkit moz spec);
25
+ }
26
+
27
+ @mixin box-align($align: stretch) {
28
+ // start|end|center|baseline|stretch
29
+ @include prefixer(box-align, $align, webkit moz spec);
30
+ }
31
+
32
+ @mixin box-direction($direction: normal) {
33
+ // normal|reverse|inherit
34
+ @include prefixer(box-direction, $direction, webkit moz spec);
35
+ }
36
+
37
+ @mixin box-lines($lines: single) {
38
+ // single|multiple
39
+ @include prefixer(box-lines, $lines, webkit moz spec);
40
+ }
41
+
42
+ @mixin box-ordinal-group($int: 1) {
43
+ @include prefixer(box-ordinal-group, $int, webkit moz spec);
44
+ }
45
+
46
+ @mixin box-flex($value: 0.0) {
47
+ @include prefixer(box-flex, $value, webkit moz spec);
48
+ }
49
+
50
+ @mixin box-flex-group($int: 1) {
51
+ @include prefixer(box-flex-group, $int, webkit moz spec);
52
+ }
@@ -0,0 +1,23 @@
1
+ // Order of the includes matters, and it is: normal, bold, italic, bold+italic.
2
+
3
+ @mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: false ) {
4
+ @font-face {
5
+ font-family: $font-family;
6
+ font-weight: $weight;
7
+ font-style: $style;
8
+
9
+ @if $asset-pipeline == true {
10
+ src: font-url('#{$file-path}.eot');
11
+ src: font-url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
12
+ font-url('#{$file-path}.woff') format('woff'),
13
+ font-url('#{$file-path}.ttf') format('truetype'),
14
+ font-url('#{$file-path}.svg##{$font-family}') format('svg');
15
+ } @else {
16
+ src: url('#{$file-path}.eot');
17
+ src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'),
18
+ url('#{$file-path}.woff') format('woff'),
19
+ url('#{$file-path}.ttf') format('truetype'),
20
+ url('#{$file-path}.svg##{$font-family}') format('svg');
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,10 @@
1
+ // HiDPI mixin. Default value set to 1.3 to target Google Nexus 7 (http://bjango.com/articles/min-device-pixel-ratio/)
2
+ @mixin hidpi($ratio: 1.3) {
3
+ @media only screen and (-webkit-min-device-pixel-ratio: $ratio),
4
+ only screen and (min--moz-device-pixel-ratio: $ratio),
5
+ only screen and (-o-min-device-pixel-ratio: #{$ratio}/1),
6
+ only screen and (min-resolution: #{round($ratio*96)}dpi),
7
+ only screen and (min-resolution: #{$ratio}dppx) {
8
+ @content;
9
+ }
10
+ }
@@ -0,0 +1,13 @@
1
+ @mixin image-rendering ($mode:optimizeQuality) {
2
+
3
+ @if ($mode == optimize-contrast) {
4
+ image-rendering: -moz-crisp-edges;
5
+ image-rendering: -o-crisp-edges;
6
+ image-rendering: -webkit-optimize-contrast;
7
+ image-rendering: optimize-contrast;
8
+ }
9
+
10
+ @else {
11
+ image-rendering: $mode;
12
+ }
13
+ }
@@ -0,0 +1,8 @@
1
+ // Legacy support for inline-block in IE7 (maybe IE6)
2
+ @mixin inline-block {
3
+ display: inline-block;
4
+ vertical-align: baseline;
5
+ zoom: 1;
6
+ *display: inline;
7
+ *vertical-align: auto;
8
+ }
@@ -0,0 +1,43 @@
1
+ // Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content
2
+ @mixin keyframes($name) {
3
+ $original-prefix-for-webkit: $prefix-for-webkit;
4
+ $original-prefix-for-mozilla: $prefix-for-mozilla;
5
+ $original-prefix-for-microsoft: $prefix-for-microsoft;
6
+ $original-prefix-for-opera: $prefix-for-opera;
7
+ $original-prefix-for-spec: $prefix-for-spec;
8
+
9
+ @if $original-prefix-for-webkit {
10
+ @include disable-prefix-for-all();
11
+ $prefix-for-webkit: true;
12
+ @-webkit-keyframes #{$name} {
13
+ @content;
14
+ }
15
+ }
16
+ @if $original-prefix-for-mozilla {
17
+ @include disable-prefix-for-all();
18
+ $prefix-for-mozilla: true;
19
+ @-moz-keyframes #{$name} {
20
+ @content;
21
+ }
22
+ }
23
+ @if $original-prefix-for-opera {
24
+ @include disable-prefix-for-all();
25
+ $prefix-for-opera: true;
26
+ @-o-keyframes #{$name} {
27
+ @content;
28
+ }
29
+ }
30
+ @if $original-prefix-for-spec {
31
+ @include disable-prefix-for-all();
32
+ $prefix-for-spec: true;
33
+ @keyframes #{$name} {
34
+ @content;
35
+ }
36
+ }
37
+
38
+ $prefix-for-webkit: $original-prefix-for-webkit;
39
+ $prefix-for-mozilla: $original-prefix-for-mozilla;
40
+ $prefix-for-microsoft: $original-prefix-for-microsoft;
41
+ $prefix-for-opera: $original-prefix-for-opera;
42
+ $prefix-for-spec: $original-prefix-for-spec;
43
+ }
@@ -0,0 +1,41 @@
1
+ @mixin linear-gradient($pos, $G1, $G2: false,
2
+ $G3: false, $G4: false,
3
+ $G5: false, $G6: false,
4
+ $G7: false, $G8: false,
5
+ $G9: false, $G10: false,
6
+ $deprecated-pos1: left top,
7
+ $deprecated-pos2: left bottom,
8
+ $fallback: false) {
9
+ // Detect what type of value exists in $pos
10
+ $pos-type: type-of(nth($pos, 1));
11
+ $pos-spec: null;
12
+ $pos-degree: null;
13
+
14
+ // If $pos is missing from mixin, reassign vars and add default position
15
+ @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
16
+ $G10: $G9; $G9: $G8; $G8: $G7; $G7: $G6; $G6: $G5;
17
+ $G5: $G4; $G4: $G3; $G3: $G2; $G2: $G1; $G1: $pos;
18
+ $pos: null;
19
+ }
20
+
21
+ @if $pos {
22
+ $positions: _linear-positions-parser($pos);
23
+ $pos-degree: nth($positions, 1);
24
+ $pos-spec: nth($positions, 2);
25
+ }
26
+
27
+ $full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
28
+
29
+ // Set $G1 as the default fallback color
30
+ $fallback-color: nth($G1, 1);
31
+
32
+ // If $fallback is a color use that color as the fallback color
33
+ @if (type-of($fallback) == color) or ($fallback == "transparent") {
34
+ $fallback-color: $fallback;
35
+ }
36
+
37
+ background-color: $fallback-color;
38
+ background-image: _deprecated-webkit-gradient(linear, $deprecated-pos1, $deprecated-pos2, $full); // Safari <= 5.0
39
+ background-image: -webkit-linear-gradient($pos-degree $full); // Safari 5.1+, Chrome
40
+ background-image: unquote("linear-gradient(#{$pos-spec}#{$full})");
41
+ }