magic_stylez 0.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/Gemfile +14 -0
- data/MIT-LICENSE +20 -0
- data/README.md +33 -0
- data/Rakefile +32 -0
- data/lib/magic_stylez/engine.rb +10 -0
- data/lib/magic_stylez/version.rb +3 -0
- data/lib/magic_stylez.rb +53 -0
- data/lib/tasks/magic_stylez_tasks.rake +4 -0
- data/magic_stylez.gemspec +38 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/views/app/start.jst.eco +71 -0
- data/test/dummy/app/assets/javascripts/views/effects/reflections.jst.eco +70 -0
- data/test/dummy/app/assets/javascripts/views/effects/shadows.jst.eco +1528 -0
- data/test/dummy/app/assets/javascripts/views/elements/arrow_infos.jst.eco +46 -0
- data/test/dummy/app/assets/javascripts/views/layout/corset.jst.eco +27 -0
- data/test/dummy/app/assets/javascripts/views/layout/fullpage_table.jst.eco +76 -0
- data/test/dummy/app/assets/javascripts/views/layout/section.jst.eco +109 -0
- data/test/dummy/app/assets/javascripts/views/layout/slide_boxes.jst.eco +33 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +180 -0
- data/test/dummy/app/controllers/application_controller.rb +6 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/controllers/front_controller.rb +7 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/front/_aside.html.erb +36 -0
- data/test/dummy/app/views/front/start.html.erb +77 -0
- data/test/dummy/app/views/layouts/application.html.erb +24 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +32 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +49 -0
- data/test/dummy/config/environments/production.rb +88 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +61 -0
- data/test/dummy/config/secrets.yml +20 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/xindex.html +135 -0
- data/test/magic_stylez_test.rb +7 -0
- data/test/test_helper.rb +21 -0
- data/vendor/assets/filter/magic/filter.svg +10 -0
- data/vendor/assets/filter/magic/noise.svg +70 -0
- data/vendor/assets/fonts/magic/magicons-regular-webfont.eot +0 -0
- data/vendor/assets/fonts/magic/magicons-regular-webfont.svg +461 -0
- data/vendor/assets/fonts/magic/magicons-regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/magic/magicons-regular-webfont.woff +0 -0
- data/vendor/assets/fonts/magic/orderlifticons-webfont.eot +0 -0
- data/vendor/assets/fonts/magic/orderlifticons-webfont.svg +172 -0
- data/vendor/assets/fonts/magic/orderlifticons-webfont.ttf +0 -0
- data/vendor/assets/fonts/magic/orderlifticons-webfont.woff +0 -0
- data/vendor/assets/images/magic/arrows/arrow-round1-a.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow-round1-b.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow-round2-a.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow-round2-b.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow1-a.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow1-b.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow1.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow2-1.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow2-2.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow2-a.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow2-b.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow3-a.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow3-b.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow4-a.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow4-b.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow5-a.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow5-b.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow6-a.png +0 -0
- data/vendor/assets/images/magic/arrows/arrow6-b.png +0 -0
- data/vendor/assets/images/magic/bgs/hdr_landsberger.jpg +0 -0
- data/vendor/assets/images/magic/bgs/rain-flower.jpg +0 -0
- data/vendor/assets/images/magic/bgs/seucide.jpg +0 -0
- data/vendor/assets/javascripts/magic/render_eco.js.coffee +9 -0
- data/vendor/assets/javascripts/magic-stylez.js.coffee +49 -0
- data/vendor/assets/stylesheets/magic/_animation.scss +3 -0
- data/vendor/assets/stylesheets/magic/_forms.scss +42 -0
- data/vendor/assets/stylesheets/magic/_text.scss +41 -0
- data/vendor/assets/stylesheets/magic/content/_banner.scss +77 -0
- data/vendor/assets/stylesheets/magic/corporate/_colors.scss +244 -0
- data/vendor/assets/stylesheets/magic/corporate/_fonts.scss +152 -0
- data/vendor/assets/stylesheets/magic/corporate/_typo.scss +57 -0
- data/vendor/assets/stylesheets/magic/corporate/_variables.scss +636 -0
- data/vendor/assets/stylesheets/magic/effects/_reflections.scss +52 -0
- data/vendor/assets/stylesheets/magic/effects/_shadows.scss +255 -0
- data/vendor/assets/stylesheets/magic/icons/magicons.scss +706 -0
- data/vendor/assets/stylesheets/magic/icons/orderlifticons.scss +258 -0
- data/vendor/assets/stylesheets/magic/layout/_corset.scss +60 -0
- data/vendor/assets/stylesheets/magic/layout/_fullpage_table.scss +176 -0
- data/vendor/assets/stylesheets/magic/layout/_section.scss +126 -0
- data/vendor/assets/stylesheets/magic/layout/_tables.scss +513 -0
- data/vendor/assets/stylesheets/magic/lib/_cross_browser.scss +51 -0
- data/vendor/assets/stylesheets/magic/lib/_media_querries.scss +59 -0
- data/vendor/assets/stylesheets/magic/lib/_twbs.scss +55 -0
- data/vendor/assets/stylesheets/magic/lists/_nav.scss +207 -0
- data/vendor/assets/stylesheets/magic-stylez.scss +140 -0
- metadata +397 -0
@@ -0,0 +1,255 @@
|
|
1
|
+
@mixin make_shadows($horizontal, $vertical, $blur, $size, $color, $times) {
|
2
|
+
$shdw: '';
|
3
|
+
$seprat: "";
|
4
|
+
@while $times > 0 {
|
5
|
+
@if $times > 1 {
|
6
|
+
$seprat: ", ";
|
7
|
+
} @else {
|
8
|
+
$seprat: "";
|
9
|
+
}
|
10
|
+
$shdw: $shdw + "#{$horizontal} #{$vertical} #{$blur} #{$size} #{$color}#{$seprat}";
|
11
|
+
$times: $times - 1;
|
12
|
+
}
|
13
|
+
// @debug $shdw;
|
14
|
+
@include box-shadow( #{$shdw} );
|
15
|
+
}
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
|
21
|
+
// // // B O X - S H A D O W S
|
22
|
+
// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // //
|
23
|
+
|
24
|
+
|
25
|
+
@mixin raised_shadow( $color, $times: 3, $horizontal: 0, $vertical: 10px, $blur: 10px, $size: -10px ) {
|
26
|
+
position: relative;
|
27
|
+
display: block;
|
28
|
+
@include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
|
29
|
+
}
|
30
|
+
|
31
|
+
@mixin pseudo_raised_shadow($color,$times:3,$gap:10px,$radius:3px,$horizontal:0,$vertical:3px,$blur:7px,$size:0){
|
32
|
+
position: relative;
|
33
|
+
display: block;
|
34
|
+
// z-index: 3;
|
35
|
+
&:before {
|
36
|
+
content: ""; display: block; position: absolute; width:auto;
|
37
|
+
top: 0;
|
38
|
+
right: #{$gap};
|
39
|
+
left: #{$gap};
|
40
|
+
bottom: 0;
|
41
|
+
border: solid 1px #ccc;
|
42
|
+
@include border-radius( #{$radius} );
|
43
|
+
@include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
|
44
|
+
z-index: -2;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
@mixin lifted_shadow( $color, $times: 3, $horizontal: 0, $vertical: 15px, $blur: 10px, $size: 0 ) {
|
49
|
+
position: relative;
|
50
|
+
display: block;
|
51
|
+
&:before, &:after {
|
52
|
+
content: ""; display: block; position: absolute;
|
53
|
+
bottom:15px;
|
54
|
+
width:50%;
|
55
|
+
height:20%;
|
56
|
+
z-index: -2;
|
57
|
+
@include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
|
58
|
+
}
|
59
|
+
&:before {
|
60
|
+
left:10px;
|
61
|
+
@include rotation(-3);
|
62
|
+
}
|
63
|
+
&:after {
|
64
|
+
right:10px;
|
65
|
+
@include rotation(3);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
@mixin perspective_shadow( $color, $times: 3, $degre: 30, $blur: 10px ) {
|
70
|
+
position: relative;
|
71
|
+
display: block;
|
72
|
+
&:before, &:after {
|
73
|
+
content: ""; display: block; position: absolute;
|
74
|
+
background: transparent;
|
75
|
+
left: 80px;
|
76
|
+
bottom:5px;
|
77
|
+
right:20px;
|
78
|
+
height:35%;
|
79
|
+
z-index: -2;
|
80
|
+
@include make_shadows(-80px, 0, $blur, 0, $color, $times);
|
81
|
+
-webkit-transform:skew(#{$degre}deg);
|
82
|
+
-moz-transform:skew(#{$degre}deg);
|
83
|
+
-ms-transform:skew(#{$degre}deg);
|
84
|
+
-o-transform:skew(#{$degre}deg);
|
85
|
+
transform:skew(#{$degre}deg);
|
86
|
+
-webkit-transform-origin:0 100%;
|
87
|
+
-moz-transform-origin:0 100%;
|
88
|
+
-ms-transform-origin:0 100%;
|
89
|
+
-o-transform-origin:0 100%;
|
90
|
+
transform-origin:0 100%;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
@mixin vertical_curves( $color, $times: 3, $horizontal: 0, $vertical: 0, $blur: 15px, $size: 0 ) {
|
95
|
+
position: relative;
|
96
|
+
display: block;
|
97
|
+
&:before {
|
98
|
+
content: ""; display: block; position: absolute;
|
99
|
+
top: 10px; bottom: 10px;
|
100
|
+
left: 0; right: 0;
|
101
|
+
z-index: -2;
|
102
|
+
@include elipse( 10, 100 );
|
103
|
+
@include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
@mixin horizontal_curves( $color, $times: 3, $horizontal: 0, $vertical: 0, $blur: 15px, $size: 0 ) {
|
108
|
+
position: relative;
|
109
|
+
display: block;
|
110
|
+
&:before {
|
111
|
+
content: ""; display: block; position: absolute;
|
112
|
+
top: 0; bottom: 0;
|
113
|
+
left: 10px; right: 10px;
|
114
|
+
z-index: -2;
|
115
|
+
@include elipse( 100, 10 );
|
116
|
+
@include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
@mixin vertical_shine( $color, $times: 1, $width: 3px, $blur: 10px, $size: 0 ) {
|
121
|
+
position: relative;
|
122
|
+
display: block;
|
123
|
+
overflow: hidden;
|
124
|
+
&:before, &:after {
|
125
|
+
content: ""; display: block; position: absolute; z-index: 55;
|
126
|
+
}
|
127
|
+
&:before {
|
128
|
+
top:5px; bottom: 5px;
|
129
|
+
width: 100px; left: -100px;
|
130
|
+
@include elipse( 50, 100 );
|
131
|
+
@include make_shadows($width, 0, $blur, $size, $color, $times);
|
132
|
+
}
|
133
|
+
&:after {
|
134
|
+
top:5px; bottom: 5px;
|
135
|
+
width: 100px; right: -100px;
|
136
|
+
@include elipse( 50, 100 );
|
137
|
+
@include make_shadows(-$width, 0, $blur, $size, $color, $times);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
@mixin horizontal_shine( $color, $times: 1, $width: 3px, $blur: 10px, $size: 0 ) {
|
142
|
+
position: relative;
|
143
|
+
display: block;
|
144
|
+
overflow: hidden;
|
145
|
+
&:before, &:after {
|
146
|
+
content: ""; display: block; position: absolute; z-index: 55;
|
147
|
+
}
|
148
|
+
&:before {
|
149
|
+
left:5px; right: 5px;
|
150
|
+
height: 100px; top: -100px;
|
151
|
+
@include elipse( 100, 50 );
|
152
|
+
@include make_shadows(0, $width, $blur, $size, $color, $times);
|
153
|
+
}
|
154
|
+
&:after {
|
155
|
+
left:5px; right: 5px;
|
156
|
+
height: 100px; bottom: -100px;
|
157
|
+
@include elipse( 100, 50 );
|
158
|
+
@include make_shadows(0, -$width, $blur, $size, $color, $times);
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
@mixin single_curve( $color, $times: 3, $position: left, $width: 5px, $blur: 5px, $size: 0, $corner: 100 ) {
|
163
|
+
$that: "";
|
164
|
+
$horizontal: 0;
|
165
|
+
$vertical: 0;
|
166
|
+
position: relative;
|
167
|
+
display: block;
|
168
|
+
&:before {
|
169
|
+
content:""; position:absolute; z-index: -2;
|
170
|
+
@if $position == top {
|
171
|
+
left: 5px; right: 5px;
|
172
|
+
top: 0; bottom: 5px;
|
173
|
+
$horizontal: 0; $vertical: -#{$width};
|
174
|
+
// @include elipse( #{$corner}, #{round($corner / 2)} );
|
175
|
+
@include elipsis( $corner, round($corner / 10) );
|
176
|
+
} @else if $position == bottom {
|
177
|
+
left: 5px; right: 5px;
|
178
|
+
top: 5px; bottom: 0;
|
179
|
+
$horizontal: 0; $vertical: #{$width};
|
180
|
+
// @include elipse( #{$corner}, #{round($corner / 2)} );
|
181
|
+
@include elipsis( $corner, round($corner / 10) );
|
182
|
+
} @else if $position == right {
|
183
|
+
left: 5px; right: 0;
|
184
|
+
top: 5px; bottom: 5px;
|
185
|
+
$horizontal: #{$width}; $vertical: 0;
|
186
|
+
// @include elipse( #{round($corner / 2)}, #{$corner} );
|
187
|
+
@include elipsis( round($corner / 10), $corner );
|
188
|
+
} @else {
|
189
|
+
left: 0; right: 5px;
|
190
|
+
top: 5px; bottom: 5px;
|
191
|
+
$horizontal: -#{$width}; $vertical: 0;
|
192
|
+
// @include elipsis( round($corner / 2), $corner );
|
193
|
+
@include elipsis( round($corner / 10), $corner );
|
194
|
+
}
|
195
|
+
background: transparent;
|
196
|
+
@include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
@mixin single_shine( $color, $times: 3, $position: right, $width: 5px, $blur: 5px, $size: 0, $corner: 100 ) {
|
202
|
+
$that: "";
|
203
|
+
$horizontal: 0;
|
204
|
+
$vertical: 0;
|
205
|
+
position: relative;
|
206
|
+
display: block;
|
207
|
+
overflow:hidden;
|
208
|
+
&:before {
|
209
|
+
content:""; position:absolute; z-index: 3;
|
210
|
+
|
211
|
+
@if $position == top {
|
212
|
+
left: 5px; right: 5px;
|
213
|
+
height: 100px;
|
214
|
+
top: -100px;
|
215
|
+
$horizontal: 0; $vertical: #{$width};
|
216
|
+
@include elipse( #{$corner}, #{round($corner / 2)} );
|
217
|
+
} @else if $position == bottom {
|
218
|
+
left: 5px; right: 5px;
|
219
|
+
height: 100px;
|
220
|
+
bottom: -100px;
|
221
|
+
$horizontal: 0; $vertical: -#{$width};
|
222
|
+
@include elipse( #{$corner}, #{round($corner / 2)} );
|
223
|
+
} @else if $position == right {
|
224
|
+
top:5px; bottom: 5px;
|
225
|
+
width: 100px;
|
226
|
+
right: -100px;
|
227
|
+
$horizontal: -#{$width}; $vertical: 0;
|
228
|
+
@include elipsis( ($corner / 2), $corner );
|
229
|
+
} @else {
|
230
|
+
top:5px; bottom: 5px;
|
231
|
+
width: 100px;
|
232
|
+
left: -100px;
|
233
|
+
$horizontal: #{$width}; $vertical: 0;
|
234
|
+
@include elipsis( ($corner / 2), $corner );
|
235
|
+
}
|
236
|
+
background: transparent;
|
237
|
+
@include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
@mixin paper_shadow( $color, $times: 3 ) {
|
244
|
+
position: relative;
|
245
|
+
display: block;
|
246
|
+
&:before {
|
247
|
+
content:""; position:absolute; z-index: -2;
|
248
|
+
// @include make_shadows($horizontal, $vertical, $blur, $size, $color, $times);
|
249
|
+
top: 0; bottom:10px;
|
250
|
+
left: 0; right: 0;
|
251
|
+
|
252
|
+
@include make_shadows(0, 0, 5px, 3px, $color, $times);
|
253
|
+
@include spezial_radius( 10px 10px 10px 10px / 10px 10px 300px 300px )
|
254
|
+
}
|
255
|
+
}
|