app_sleuth 0.0.1.pre
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.
- data/.gitignore +25 -0
- data/Gemfile +7 -0
- data/LICENSE +22 -0
- data/README.md +29 -0
- data/Rakefile +2 -0
- data/app_sleuth.gemspec +20 -0
- data/bin/app_sleuth +20 -0
- data/config.ru +10 -0
- data/lib/app_sleuth.rb +10 -0
- data/lib/app_sleuth/colors.rb +36 -0
- data/lib/app_sleuth/fonts.rb +108 -0
- data/lib/app_sleuth/server.rb +22 -0
- data/lib/app_sleuth/server/assets/css/style.css +910 -0
- data/lib/app_sleuth/server/assets/js/libs/jquery-1.7.1.js +9266 -0
- data/lib/app_sleuth/server/assets/js/libs/jquery-1.7.1.min.js +4 -0
- data/lib/app_sleuth/server/assets/js/libs/modernizr-2.5.3.min.js +4 -0
- data/lib/app_sleuth/server/assets/js/plugins.js +11 -0
- data/lib/app_sleuth/server/assets/js/script.js +26 -0
- data/lib/app_sleuth/server/assets/sass/_boilerplate.scss +88 -0
- data/lib/app_sleuth/server/assets/sass/_marcotte-grid.scss +206 -0
- data/lib/app_sleuth/server/assets/sass/_normalize.scss +504 -0
- data/lib/app_sleuth/server/assets/sass/_print.scss +19 -0
- data/lib/app_sleuth/server/assets/sass/mixins/_mixins.scss +136 -0
- data/lib/app_sleuth/server/assets/sass/mixins/addons/_button.scss +170 -0
- data/lib/app_sleuth/server/assets/sass/mixins/addons/_font-family.scss +30 -0
- data/lib/app_sleuth/server/assets/sass/mixins/addons/_html5-input-types.scss +36 -0
- data/lib/app_sleuth/server/assets/sass/mixins/addons/_non-semantic-helpers.scss +58 -0
- data/lib/app_sleuth/server/assets/sass/mixins/addons/_position.scss +30 -0
- data/lib/app_sleuth/server/assets/sass/mixins/addons/_timing-functions.scss +32 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_animation.scss +171 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_appearance.scss +7 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_background-clip.scss +10 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_background-image.scss +147 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_background-origin.scss +10 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_background-size.scss +15 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_border-image.scss +7 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_border-radius.scss +59 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_box-shadow.scss +16 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_box-sizing.scss +8 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_columns.scss +67 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_flex-box.scss +67 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_font-smoothing.scss +9 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_inline-block.scss +10 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_linear-gradient.scss +41 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_radial-gradient.scss +31 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_transform.scss +57 -0
- data/lib/app_sleuth/server/assets/sass/mixins/css3/_transition.scss +104 -0
- data/lib/app_sleuth/server/assets/sass/mixins/functions/_deprecated-webkit-gradient.scss +36 -0
- data/lib/app_sleuth/server/assets/sass/mixins/functions/_linear-gradient.scss +23 -0
- data/lib/app_sleuth/server/assets/sass/mixins/functions/_modular-scale.scss +40 -0
- data/lib/app_sleuth/server/assets/sass/mixins/functions/_radial-gradient.scss +15 -0
- data/lib/app_sleuth/server/assets/sass/mixins/functions/_render-gradients.scss +14 -0
- data/lib/app_sleuth/server/assets/sass/mixins/functions/_tint-shade.scss +9 -0
- data/lib/app_sleuth/server/assets/sass/mixins/hacks/_ie.scss +37 -0
- data/lib/app_sleuth/server/assets/sass/style.scss +219 -0
- data/lib/app_sleuth/server/views/colors.html.erb +44 -0
- data/lib/app_sleuth/version.rb +3 -0
- metadata +124 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@mixin position ($position: relative, $coordinates: 0 0 0 0) {
|
|
2
|
+
|
|
3
|
+
@if type-of($position) == list {
|
|
4
|
+
$coordinates: $position;
|
|
5
|
+
$position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
$top: nth($coordinates, 1);
|
|
9
|
+
$right: nth($coordinates, 2);
|
|
10
|
+
$bottom: nth($coordinates, 3);
|
|
11
|
+
$left: nth($coordinates, 4);
|
|
12
|
+
|
|
13
|
+
position: $position;
|
|
14
|
+
|
|
15
|
+
@if not(unitless($top)) {
|
|
16
|
+
top: $top;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@if not(unitless($right)) {
|
|
20
|
+
right: $right;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@if not(unitless($bottom)) {
|
|
24
|
+
bottom: $bottom;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@if not(unitless($left)) {
|
|
28
|
+
left: $left;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -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,171 @@
|
|
|
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 ($animation-1,
|
|
6
|
+
$animation-2: false, $animation-3: false,
|
|
7
|
+
$animation-4: false, $animation-5: false,
|
|
8
|
+
$animation-6: false, $animation-7: false,
|
|
9
|
+
$animation-8: false, $animation-9: false)
|
|
10
|
+
{
|
|
11
|
+
$full: compact($animation-1, $animation-2, $animation-3, $animation-4,
|
|
12
|
+
$animation-5, $animation-6, $animation-7, $animation-8, $animation-9);
|
|
13
|
+
|
|
14
|
+
-webkit-animation: $full;
|
|
15
|
+
-moz-animation: $full;
|
|
16
|
+
animation: $full;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Individual Animation Properties
|
|
20
|
+
@mixin animation-name ($name-1,
|
|
21
|
+
$name-2: false, $name-3: false,
|
|
22
|
+
$name-4: false, $name-5: false,
|
|
23
|
+
$name-6: false, $name-7: false,
|
|
24
|
+
$name-8: false, $name-9: false)
|
|
25
|
+
{
|
|
26
|
+
$full: compact($name-1, $name-2, $name-3, $name-4,
|
|
27
|
+
$name-5, $name-6, $name-7, $name-8, $name-9);
|
|
28
|
+
|
|
29
|
+
-webkit-animation-name: $full;
|
|
30
|
+
-moz-animation-name: $full;
|
|
31
|
+
animation-name: $full;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@mixin animation-duration ($time-1: 0,
|
|
36
|
+
$time-2: false, $time-3: false,
|
|
37
|
+
$time-4: false, $time-5: false,
|
|
38
|
+
$time-6: false, $time-7: false,
|
|
39
|
+
$time-8: false, $time-9: false)
|
|
40
|
+
{
|
|
41
|
+
$full: compact($time-1, $time-2, $time-3, $time-4,
|
|
42
|
+
$time-5, $time-6, $time-7, $time-8, $time-9);
|
|
43
|
+
|
|
44
|
+
-webkit-animation-duration: $full;
|
|
45
|
+
-moz-animation-duration: $full;
|
|
46
|
+
animation-duration: $full;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@mixin animation-timing-function ($motion-1: ease,
|
|
51
|
+
// ease | linear | ease-in | ease-out | ease-in-out
|
|
52
|
+
$motion-2: false, $motion-3: false,
|
|
53
|
+
$motion-4: false, $motion-5: false,
|
|
54
|
+
$motion-6: false, $motion-7: false,
|
|
55
|
+
$motion-8: false, $motion-9: false)
|
|
56
|
+
{
|
|
57
|
+
$full: compact($motion-1, $motion-2, $motion-3, $motion-4,
|
|
58
|
+
$motion-5, $motion-6, $motion-7, $motion-8, $motion-9);
|
|
59
|
+
|
|
60
|
+
-webkit-animation-timing-function: $full;
|
|
61
|
+
-moz-animation-timing-function: $full;
|
|
62
|
+
animation-timing-function: $full;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@mixin animation-iteration-count ($value-1: 1,
|
|
67
|
+
// infinite | <number>
|
|
68
|
+
$value-2: false, $value-3: false,
|
|
69
|
+
$value-4: false, $value-5: false,
|
|
70
|
+
$value-6: false, $value-7: false,
|
|
71
|
+
$value-8: false, $value-9: false)
|
|
72
|
+
{
|
|
73
|
+
$full: compact($value-1, $value-2, $value-3, $value-4,
|
|
74
|
+
$value-5, $value-6, $value-7, $value-8, $value-9);
|
|
75
|
+
|
|
76
|
+
-webkit-animation-iteration-count: $full;
|
|
77
|
+
-moz-animation-iteration-count: $full;
|
|
78
|
+
animation-iteration-count: $full;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
@mixin animation-direction ($direction-1: normal,
|
|
83
|
+
// normal | alternate
|
|
84
|
+
$direction-2: false, $direction-3: false,
|
|
85
|
+
$direction-4: false, $direction-5: false,
|
|
86
|
+
$direction-6: false, $direction-7: false,
|
|
87
|
+
$direction-8: false, $direction-9: false)
|
|
88
|
+
{
|
|
89
|
+
$full: compact($direction-1, $direction-2, $direction-3, $direction-4,
|
|
90
|
+
$direction-5, $direction-6, $direction-7, $direction-8, $direction-9);
|
|
91
|
+
|
|
92
|
+
-webkit-animation-direction: $full;
|
|
93
|
+
-moz-animation-direction: $full;
|
|
94
|
+
animation-direction: $full;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
@mixin animation-play-state ($state-1: running,
|
|
99
|
+
// running | paused
|
|
100
|
+
$state-2: false, $state-3: false,
|
|
101
|
+
$state-4: false, $state-5: false,
|
|
102
|
+
$state-6: false, $state-7: false,
|
|
103
|
+
$state-8: false, $state-9: false)
|
|
104
|
+
{
|
|
105
|
+
$full: compact($state-1, $state-2, $state-3, $state-4,
|
|
106
|
+
$state-5, $state-6, $state-7, $state-8, $state-9);
|
|
107
|
+
|
|
108
|
+
-webkit-animation-play-state: $full;
|
|
109
|
+
-moz-animation-play-state: $full;
|
|
110
|
+
animation-play-state: $full;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@mixin animation-delay ($time-1: 0,
|
|
115
|
+
$time-2: false, $time-3: false,
|
|
116
|
+
$time-4: false, $time-5: false,
|
|
117
|
+
$time-6: false, $time-7: false,
|
|
118
|
+
$time-8: false, $time-9: false)
|
|
119
|
+
{
|
|
120
|
+
$full: compact($time-1, $time-2, $time-3, $time-4,
|
|
121
|
+
$time-5, $time-6, $time-7, $time-8, $time-9);
|
|
122
|
+
|
|
123
|
+
-webkit-animation-delay: $full;
|
|
124
|
+
-moz-animation-delay: $full;
|
|
125
|
+
animation-delay: $full;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
@mixin animation-fill-mode ($mode-1: none,
|
|
130
|
+
// http://goo.gl/l6ckm
|
|
131
|
+
// none | forwards | backwards | both
|
|
132
|
+
$mode-2: false, $mode-3: false,
|
|
133
|
+
$mode-4: false, $mode-5: false,
|
|
134
|
+
$mode-6: false, $mode-7: false,
|
|
135
|
+
$mode-8: false, $mode-9: false)
|
|
136
|
+
{
|
|
137
|
+
$full: compact($mode-1, $mode-2, $mode-3, $mode-4,
|
|
138
|
+
$mode-5, $mode-6, $mode-7, $mode-8, $mode-9);
|
|
139
|
+
|
|
140
|
+
-webkit-animation-fill-mode: $full;
|
|
141
|
+
-moz-animation-fill-mode: $full;
|
|
142
|
+
animation-fill-mode: $full;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
// Deprecated
|
|
147
|
+
@mixin animation-basic ($name, $time: 0, $motion: ease) {
|
|
148
|
+
$length-of-name: length($name);
|
|
149
|
+
$length-of-time: length($time);
|
|
150
|
+
$length-of-motion: length($motion);
|
|
151
|
+
|
|
152
|
+
@if $length-of-name > 1 {
|
|
153
|
+
@include animation-name(zip($name));
|
|
154
|
+
} @else {
|
|
155
|
+
@include animation-name( $name);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@if $length-of-time > 1 {
|
|
159
|
+
@include animation-duration(zip($time));
|
|
160
|
+
} @else {
|
|
161
|
+
@include animation-duration( $time);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@if $length-of-motion > 1 {
|
|
165
|
+
@include animation-timing-function(zip($motion));
|
|
166
|
+
} @else {
|
|
167
|
+
@include animation-timing-function( $motion);
|
|
168
|
+
}
|
|
169
|
+
@warn "The animation-basic mixin is deprecated. Use the animation mixin instead.";
|
|
170
|
+
}
|
|
171
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// http://www.w3.org/TR/css3-background/#the-background-clip
|
|
2
|
+
// Values can be border-box, padding-box or content-box.
|
|
3
|
+
|
|
4
|
+
@mixin background-clip ($value) {
|
|
5
|
+
-webkit-background-clip: $value;
|
|
6
|
+
-moz-background-clip: $value;
|
|
7
|
+
-ms-background-clip: $value;
|
|
8
|
+
-o-background-clip: $value;
|
|
9
|
+
background-clip: $value;
|
|
10
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
//************************************************************************//
|
|
2
|
+
// Background-image property for adding multiple background images with
|
|
3
|
+
// gradients, or for stringing multiple gradients together.
|
|
4
|
+
//************************************************************************//
|
|
5
|
+
@import "../functions/linear-gradient";
|
|
6
|
+
@import "../functions/radial-gradient";
|
|
7
|
+
|
|
8
|
+
@mixin background-image(
|
|
9
|
+
$image-1 , $image-2: false,
|
|
10
|
+
$image-3: false, $image-4: false,
|
|
11
|
+
$image-5: false, $image-6: false,
|
|
12
|
+
$image-7: false, $image-8: false,
|
|
13
|
+
$image-9: false, $image-10: false
|
|
14
|
+
) {
|
|
15
|
+
$images: compact($image-1, $image-2,
|
|
16
|
+
$image-3, $image-4,
|
|
17
|
+
$image-5, $image-6,
|
|
18
|
+
$image-7, $image-8,
|
|
19
|
+
$image-9, $image-10);
|
|
20
|
+
|
|
21
|
+
background-image: add-prefix($images, webkit);
|
|
22
|
+
background-image: add-prefix($images, moz);
|
|
23
|
+
background-image: add-prefix($images, ms);
|
|
24
|
+
background-image: add-prefix($images, o);
|
|
25
|
+
background-image: add-prefix($images);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@function add-prefix($images, $vendor: false) {
|
|
30
|
+
$images-prefixed: ();
|
|
31
|
+
|
|
32
|
+
@for $i from 1 through length($images) {
|
|
33
|
+
$type: type-of(nth($images, $i)); // Get type of variable - List or String
|
|
34
|
+
|
|
35
|
+
// If variable is a list - Gradient
|
|
36
|
+
@if $type == list {
|
|
37
|
+
$gradient-type: nth(nth($images, $i), 1); // Get type of gradient (linear || radial)
|
|
38
|
+
$gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue)
|
|
39
|
+
|
|
40
|
+
$gradient: render-gradients($gradient-args, $gradient-type, $vendor);
|
|
41
|
+
$images-prefixed: append($images-prefixed, $gradient, comma);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// If variable is a string - Image
|
|
45
|
+
@else if $type == string {
|
|
46
|
+
$images-prefixed: join($images-prefixed, nth($images, $i), comma);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@return $images-prefixed;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@function render-gradients($gradients, $gradient-type, $vendor: false) {
|
|
54
|
+
$vendor-gradients: false;
|
|
55
|
+
@if $vendor {
|
|
56
|
+
$vendor-gradients: -#{$vendor}-#{$gradient-type}-gradient($gradients);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@else if $vendor == false {
|
|
60
|
+
$vendor-gradients: "#{$gradient-type}-gradient(#{$gradients})";
|
|
61
|
+
$vendor-gradients: unquote($vendor-gradients);
|
|
62
|
+
}
|
|
63
|
+
@return $vendor-gradients;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
//Examples:
|
|
67
|
+
//@include background-image(linear-gradient(top, orange, red));
|
|
68
|
+
//@include background-image(radial-gradient(50% 50%, cover circle, orange, red));
|
|
69
|
+
//@include background-image(url("/images/a.png"), linear-gradient(orange, red));
|
|
70
|
+
//@include background-image(url("image.png"), linear-gradient(orange, red), url("image.png"));
|
|
71
|
+
//@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);
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// Gradients
|
|
77
|
+
@mixin gradient-horizontal($startColor: #555, $endColor: $grayDarker) {
|
|
78
|
+
background-color: $endColor;
|
|
79
|
+
background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
|
|
80
|
+
background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
|
|
81
|
+
background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
|
|
82
|
+
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
|
|
83
|
+
background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
|
84
|
+
background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
|
|
85
|
+
background-image: linear-gradient(left, $startColor, $endColor); // Le standard
|
|
86
|
+
background-repeat: repeat-x;
|
|
87
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1); // IE9 and down
|
|
88
|
+
}
|
|
89
|
+
@mixin gradient-vertical($startColor: #555, $endColor: $grayDarker) {
|
|
90
|
+
background-color: $endColor;
|
|
91
|
+
background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
|
|
92
|
+
background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
|
|
93
|
+
background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
|
|
94
|
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
|
|
95
|
+
background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
|
96
|
+
background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
|
|
97
|
+
//background-image: linear-gradient(top left, $startColor, $endColor); // The standard
|
|
98
|
+
background-repeat: repeat-x;
|
|
99
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0); // IE9 and down
|
|
100
|
+
}
|
|
101
|
+
@mixin gradient-directional($startColor: #555, $endColor: $grayDarker, $deg: 45deg) {
|
|
102
|
+
background-color: $endColor;
|
|
103
|
+
background-repeat: repeat-x;
|
|
104
|
+
background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
|
|
105
|
+
background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
|
|
106
|
+
background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
|
107
|
+
background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
|
|
108
|
+
background-image: linear-gradient($deg, $startColor, $endColor); // The standard
|
|
109
|
+
}
|
|
110
|
+
@mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
|
|
111
|
+
background-color: $endColor;
|
|
112
|
+
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
|
|
113
|
+
background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
|
114
|
+
background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor);
|
|
115
|
+
background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
|
116
|
+
background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
|
117
|
+
background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
|
|
118
|
+
background-repeat: no-repeat;
|
|
119
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0); // IE9 and down, gets no color-stop at all the proper fallback
|
|
120
|
+
}
|
|
121
|
+
@mixin gradient-radial($centerColor: #555, $outsideColor: $grayDarker) {
|
|
122
|
+
background-color: $outsideColor;
|
|
123
|
+
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($centerColor), to($outsideColor));
|
|
124
|
+
background-image: -webkit-radial-gradient(circle, $centerColor, $outsideColor);
|
|
125
|
+
background-image: -moz-radial-gradient(circle, $centerColor, $outsideColor);
|
|
126
|
+
background-image: -ms-radial-gradient(circle, $centerColor, $outsideColor);
|
|
127
|
+
background-repeat: no-repeat;
|
|
128
|
+
// Opera cannot do radial gradients yet
|
|
129
|
+
}
|
|
130
|
+
@mixin gradient-striped($color,$angle: -45deg) {
|
|
131
|
+
background-color: $color;
|
|
132
|
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
|
|
133
|
+
background-image: -webkit-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
|
134
|
+
background-image: -moz-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
|
135
|
+
background-image: -ms-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
|
136
|
+
background-image: -o-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
|
137
|
+
//background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Gradient Bar Colors for buttons and alerts
|
|
141
|
+
@mixin gradientBar($primaryColor, $secondaryColor) {
|
|
142
|
+
@include gradient-vertical($primaryColor, $secondaryColor);
|
|
143
|
+
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
|
|
144
|
+
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fade-in(rgba(0,0,0,.1), 0.15);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// http://www.w3.org/TR/css3-background/#background-origin
|
|
2
|
+
// Values can be padding-box, border-box or content-box.
|
|
3
|
+
|
|
4
|
+
@mixin background-origin ($value) {
|
|
5
|
+
-webkit-background-origin: $value;
|
|
6
|
+
-moz-background-origin: $value;
|
|
7
|
+
-ms-background-origin: $value;
|
|
8
|
+
-o-background-origin: $value;
|
|
9
|
+
background-origin: $value;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@mixin background-size ($length-1,
|
|
2
|
+
$length-2: false, $length-3: false,
|
|
3
|
+
$length-4: false, $length-5: false,
|
|
4
|
+
$length-6: false, $length-7: false,
|
|
5
|
+
$length-8: false, $length-9: false)
|
|
6
|
+
{
|
|
7
|
+
$full: compact($length-1, $length-2, $length-3, $length-4,
|
|
8
|
+
$length-5, $length-6, $length-7, $length-8, $length-9);
|
|
9
|
+
|
|
10
|
+
-webkit-background-size: $full;
|
|
11
|
+
-moz-background-size: $full;
|
|
12
|
+
-ms-background-size: $full;
|
|
13
|
+
-o-background-size: $full;
|
|
14
|
+
background-size: $full;
|
|
15
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@mixin border-radius ($radii) {
|
|
2
|
+
-webkit-border-radius: $radii;
|
|
3
|
+
-moz-border-radius: $radii;
|
|
4
|
+
-ms-border-radius: $radii;
|
|
5
|
+
-o-border-radius: $radii;
|
|
6
|
+
border-radius: $radii;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin border-top-left-radius($radii) {
|
|
10
|
+
-webkit-border-top-left-radius: $radii;
|
|
11
|
+
-moz-border-top-left-radius: $radii;
|
|
12
|
+
-ms-border-top-left-radius: $radii;
|
|
13
|
+
-o-border-top-left-radius: $radii;
|
|
14
|
+
border-top-left-radius: $radii;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin border-top-right-radius($radii) {
|
|
18
|
+
-webkit-border-top-right-radius: $radii;
|
|
19
|
+
-moz-border-top-right-radius: $radii;
|
|
20
|
+
-ms-border-top-right-radius: $radii;
|
|
21
|
+
-o-border-top-right-radius: $radii;
|
|
22
|
+
border-top-right-radius: $radii;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin border-bottom-left-radius($radii) {
|
|
26
|
+
-webkit-border-bottom-left-radius: $radii;
|
|
27
|
+
-moz-border-bottom-left-radius: $radii;
|
|
28
|
+
-ms-border-bottom-left-radius: $radii;
|
|
29
|
+
-o-border-bottom-left-radius: $radii;
|
|
30
|
+
border-bottom-left-radius: $radii;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin border-bottom-right-radius($radii) {
|
|
34
|
+
-webkit-border-bottom-right-radius: $radii;
|
|
35
|
+
-moz-border-bottom-right-radius: $radii;
|
|
36
|
+
-ms-border-bottom-right-radius: $radii;
|
|
37
|
+
-o-border-bottom-right-radius: $radii;
|
|
38
|
+
border-bottom-right-radius: $radii;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin border-top-radius($radii) {
|
|
42
|
+
@include border-top-left-radius($radii);
|
|
43
|
+
@include border-top-right-radius($radii);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin border-right-radius($radii) {
|
|
47
|
+
@include border-top-right-radius($radii);
|
|
48
|
+
@include border-bottom-right-radius($radii);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@mixin border-bottom-radius($radii) {
|
|
52
|
+
@include border-bottom-left-radius($radii);
|
|
53
|
+
@include border-bottom-right-radius($radii);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@mixin border-left-radius($radii) {
|
|
57
|
+
@include border-top-left-radius($radii);
|
|
58
|
+
@include border-bottom-left-radius($radii);
|
|
59
|
+
}
|