rapido-css 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkdn +21 -0
- data/lib/rapido-css.rb +3 -0
- data/stylesheets/_components.scss +24 -0
- data/stylesheets/_default-styles.scss +480 -0
- data/stylesheets/_functions.scss +50 -0
- data/stylesheets/_normalize.scss +513 -0
- data/stylesheets/_rapido.scss +12 -0
- data/stylesheets/_settings.scss +5 -0
- data/stylesheets/_susy.scss +16 -0
- data/stylesheets/_utilities.scss +8 -0
- data/stylesheets/components/_alerts.scss +24 -0
- data/stylesheets/components/_breadcrumbs.scss +15 -0
- data/stylesheets/components/_button-groups.scss +65 -0
- data/stylesheets/components/_buttons.scss +121 -0
- data/stylesheets/components/_captions.scss +54 -0
- data/stylesheets/components/_close.scss +27 -0
- data/stylesheets/components/_dropdowns.scss +190 -0
- data/stylesheets/components/_forms.scss +579 -0
- data/stylesheets/components/_images.scss +0 -0
- data/stylesheets/components/_modals.scss +271 -0
- data/stylesheets/components/_navs.scss +102 -0
- data/stylesheets/components/_pager.scss +56 -0
- data/stylesheets/components/_pagination.scss +90 -0
- data/stylesheets/components/_pills.scss +91 -0
- data/stylesheets/components/_responsive-navs.scss +166 -0
- data/stylesheets/components/_sliders.scss +86 -0
- data/stylesheets/components/_tables.scss +109 -0
- data/stylesheets/components/_tabs.scss +55 -0
- data/stylesheets/components/_type.scss +266 -0
- data/stylesheets/settings/_base.scss +32 -0
- data/stylesheets/settings/_colors.scss +16 -0
- data/stylesheets/settings/_components.scss +45 -0
- data/stylesheets/settings/_dimensions.scss +103 -0
- data/stylesheets/settings/_effects.scss +15 -0
- data/stylesheets/susy/_susy_background.scss +18 -0
- data/stylesheets/susy/_susy_functions.scss +376 -0
- data/stylesheets/susy/_susy_grid.scss +286 -0
- data/stylesheets/susy/_susy_isolation.scss +50 -0
- data/stylesheets/susy/_susy_margin.scss +93 -0
- data/stylesheets/susy/_susy_media.scss +112 -0
- data/stylesheets/susy/_susy_padding.scss +92 -0
- data/stylesheets/susy/_susy_settings.scss +56 -0
- data/stylesheets/susy/_susy_support.scss +198 -0
- data/stylesheets/susy/_susy_units.scss +159 -0
- data/stylesheets/utilities/_animations.scss +672 -0
- data/stylesheets/utilities/_debug.scss +41 -0
- data/stylesheets/utilities/_helper-classes.scss +32 -0
- data/stylesheets/utilities/_icon-fonts.scss +111 -0
- data/stylesheets/utilities/_media-queries.scss +45 -0
- data/stylesheets/utilities/_mixins.scss +372 -0
- data/stylesheets/utilities/_retina-sprites.scss +70 -0
- data/stylesheets/utilities/_sprites.scss +26 -0
- data/templates/project/manifest.rb +2 -0
- data/templates/project/screen.scss +2 -0
- metadata +116 -0
data/README.mkdn
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Rapido Framework
|
2
|
+
================
|
3
|
+
|
4
|
+
An easy and quick prototyping framework based on Bootstrap without all the default styles.
|
5
|
+
|
6
|
+
It's still a early alpha, when I'll fixed the majority of the bugs I'll write some documentation.
|
7
|
+
|
8
|
+
== Contributing to rapido-css
|
9
|
+
|
10
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
11
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
12
|
+
* Fork the project.
|
13
|
+
* Start a feature/bugfix branch.
|
14
|
+
* Commit and push until you are happy with your contribution.
|
15
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
16
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
17
|
+
|
18
|
+
== Copyright
|
19
|
+
|
20
|
+
Copyright (c) 2013 Raffaele Rasini. See LICENSE.txt for
|
21
|
+
further details.
|
data/lib/rapido-css.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
@import "components/type";
|
2
|
+
@import "components/forms";
|
3
|
+
@import "components/tables";
|
4
|
+
@import "components/images";
|
5
|
+
@import "components/captions";
|
6
|
+
|
7
|
+
@import "components/buttons";
|
8
|
+
@import "components/button-groups";
|
9
|
+
@import "components/dropdowns";
|
10
|
+
@import "components/pills";
|
11
|
+
@import "components/close";
|
12
|
+
|
13
|
+
@import "components/navs";
|
14
|
+
@import "components/responsive-navs";
|
15
|
+
@import "components/breadcrumbs";
|
16
|
+
@import "components/pagination";
|
17
|
+
@import "components/pager";
|
18
|
+
|
19
|
+
@import "components/alerts";
|
20
|
+
|
21
|
+
// Scripts
|
22
|
+
@import "components/modals";
|
23
|
+
@import "components/sliders";
|
24
|
+
@import "components/tabs";
|
@@ -0,0 +1,480 @@
|
|
1
|
+
|
2
|
+
@if $default-styles {
|
3
|
+
|
4
|
+
// Titles
|
5
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
6
|
+
%h1 {}
|
7
|
+
%h2 {}
|
8
|
+
%h3 {}
|
9
|
+
%h4 {}
|
10
|
+
%h5 {}
|
11
|
+
%h6 {}
|
12
|
+
|
13
|
+
// Inputs
|
14
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
15
|
+
%input {
|
16
|
+
color: $text-color;
|
17
|
+
border-color: $gray;
|
18
|
+
background-color: $grayLighter;
|
19
|
+
|
20
|
+
&:focus {
|
21
|
+
background-color: $grayLight;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
%input-addon {
|
26
|
+
color: $text-color;
|
27
|
+
border-color: $grayLight;
|
28
|
+
background-color: $grayLighter;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Selects
|
32
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
33
|
+
|
34
|
+
%select {
|
35
|
+
color: $text-color;
|
36
|
+
border-color: $gray;
|
37
|
+
background-color: $grayLighter;
|
38
|
+
|
39
|
+
&:hover {
|
40
|
+
background-color: $grayLight;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// Buttons
|
45
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
46
|
+
|
47
|
+
// Default
|
48
|
+
%btn {
|
49
|
+
color: $text-color;
|
50
|
+
border-color: $gray;
|
51
|
+
background-color: $grayLight;
|
52
|
+
|
53
|
+
// Hover/focus state
|
54
|
+
&:hover,
|
55
|
+
&:focus {
|
56
|
+
background-color: darken($grayLight, 10% );
|
57
|
+
}
|
58
|
+
|
59
|
+
// Active state
|
60
|
+
&.active,
|
61
|
+
&:active {
|
62
|
+
background-color: darken($grayLight, 20% );
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
%btn-primary {
|
67
|
+
color: #fff;
|
68
|
+
border-color: darken(green, 10%);
|
69
|
+
background-color: green;
|
70
|
+
|
71
|
+
// Hover/focus state
|
72
|
+
&:hover,
|
73
|
+
&:focus {
|
74
|
+
background-color: darken(green, 5%);
|
75
|
+
}
|
76
|
+
|
77
|
+
// Active state
|
78
|
+
&.active,
|
79
|
+
&:active {
|
80
|
+
background-color: darken(green, 10%);
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
|
85
|
+
%btn-secondary {
|
86
|
+
color: #fff;
|
87
|
+
border-color: darken(red, 10%);
|
88
|
+
background-color: red;
|
89
|
+
|
90
|
+
// Hover/focus state
|
91
|
+
&:hover,
|
92
|
+
&:focus {
|
93
|
+
background-color: darken(red, 5%);
|
94
|
+
}
|
95
|
+
|
96
|
+
// Active state
|
97
|
+
&.active,
|
98
|
+
&:active {
|
99
|
+
background-color: darken(red, 10%);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
%btn-warning {}
|
104
|
+
%btn-danger {}
|
105
|
+
%btn-info {}
|
106
|
+
%btn-success {}
|
107
|
+
%btn-inverse {}
|
108
|
+
|
109
|
+
// Generic style for buttons used by the scripts
|
110
|
+
%btn-scripts {
|
111
|
+
@include alpha-color(#000, .6, background);
|
112
|
+
color: #fff;
|
113
|
+
cursor: pointer;
|
114
|
+
display: block;
|
115
|
+
text-align: center;
|
116
|
+
text-decoration: none;
|
117
|
+
|
118
|
+
&:hover {
|
119
|
+
color: #fff;
|
120
|
+
@include alpha-color(#000, .8, background);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
|
125
|
+
// Captions
|
126
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
127
|
+
%caption {
|
128
|
+
@include alpha-color(#000, .8, background);
|
129
|
+
color: #fff;
|
130
|
+
padding: $captions-padding;
|
131
|
+
}
|
132
|
+
|
133
|
+
// Pills (Labels & Badges)
|
134
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
135
|
+
%pill {
|
136
|
+
background-color: $gray;
|
137
|
+
color: $white;
|
138
|
+
}
|
139
|
+
|
140
|
+
// Dropdowns
|
141
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
142
|
+
%dropdown {
|
143
|
+
background: $grayLighter;
|
144
|
+
border-color: $gray;
|
145
|
+
|
146
|
+
.divider { @include nav-divider($gray); margin-top: -1px }
|
147
|
+
|
148
|
+
> li > a { border-bottom: 1px dotted $gray; }
|
149
|
+
|
150
|
+
> li > a:hover,
|
151
|
+
> li > a:focus {
|
152
|
+
// .dropdown-submenu:hover > a,
|
153
|
+
// .dropdown-submenu:focus > a {
|
154
|
+
text-decoration: none;
|
155
|
+
background-color: $grayLight;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
%dropdown-open {
|
160
|
+
background: $grayLighter;
|
161
|
+
&:after {background-color: $grayLighter;}
|
162
|
+
}
|
163
|
+
|
164
|
+
|
165
|
+
// Caret per Dropdown e Select
|
166
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
167
|
+
|
168
|
+
$caret-width: em(12px);
|
169
|
+
|
170
|
+
%caret {
|
171
|
+
min-width: $caret-width;
|
172
|
+
&:after {
|
173
|
+
@include triangle($caret-width, $gray, down);
|
174
|
+
margin-top: -($caret-width / 4);
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
|
179
|
+
// Tables
|
180
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
181
|
+
%table-bordered {
|
182
|
+
thead {
|
183
|
+
th, td {
|
184
|
+
background-color: $gray;
|
185
|
+
color: #FFF;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
tbody {
|
189
|
+
td { border-bottom: 1px solid $grayLight; }
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
%table-striped { background-color: $grayLighter;}
|
194
|
+
|
195
|
+
%table-hover { background-color: $gray;}
|
196
|
+
|
197
|
+
%table-sortable {
|
198
|
+
thead {
|
199
|
+
th {
|
200
|
+
&:hover {background: $grayDark }
|
201
|
+
&.sorting-asc:after {content: "\25BC"; }
|
202
|
+
&.sorting-desc:after {content: "\25B2";}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
// Navs
|
208
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
209
|
+
%nav-btn {}
|
210
|
+
|
211
|
+
%nav-btn_hover { background-color: $grayLighter;}
|
212
|
+
|
213
|
+
%nav-btn_active {
|
214
|
+
color: $white;
|
215
|
+
background-color: $link-color;
|
216
|
+
}
|
217
|
+
|
218
|
+
%nav-btn_disabled {color: $grayLight;}
|
219
|
+
|
220
|
+
|
221
|
+
// Breadcrumbs
|
222
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
223
|
+
%breadcrumb {
|
224
|
+
> li {
|
225
|
+
&:after {
|
226
|
+
color: #ccc;
|
227
|
+
content: "›";
|
228
|
+
padding: 0 10px;
|
229
|
+
}
|
230
|
+
&:last-child {
|
231
|
+
&:after {
|
232
|
+
content: "";
|
233
|
+
padding-right: 0;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
237
|
+
.active { color: $grayLight; }
|
238
|
+
}
|
239
|
+
|
240
|
+
// Pagination
|
241
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
242
|
+
%pagination_btn {
|
243
|
+
background-color: $grayLight;
|
244
|
+
border-color: $gray;
|
245
|
+
}
|
246
|
+
|
247
|
+
%pagination_btn-hover {
|
248
|
+
background-color: $grayLighter;
|
249
|
+
}
|
250
|
+
|
251
|
+
%pagination_btn-active {
|
252
|
+
color: #fff;
|
253
|
+
background-color: $gray;
|
254
|
+
}
|
255
|
+
|
256
|
+
%pagination_btn-disabled {
|
257
|
+
color: $grayLight;
|
258
|
+
background-color: transparent;
|
259
|
+
border-color: $grayLight;
|
260
|
+
}
|
261
|
+
|
262
|
+
|
263
|
+
// Pager
|
264
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
265
|
+
%pager-btn {
|
266
|
+
background-color: $grayLight;
|
267
|
+
border-color: $gray;
|
268
|
+
}
|
269
|
+
|
270
|
+
%pager-btn_hover {
|
271
|
+
background-color: $grayLighter;
|
272
|
+
}
|
273
|
+
|
274
|
+
%pager-btn_disabled {
|
275
|
+
color: $grayLight;
|
276
|
+
background-color: #fff;
|
277
|
+
border-color: $grayLight;
|
278
|
+
}
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
// Loader icon
|
283
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
284
|
+
$loader-ico-size: 44px;
|
285
|
+
|
286
|
+
%loader-ico { background: url('//cdn.jsdelivr.net/wp-advanced-ajax-page-loader/2.5.12/loaders/SMALL%20-%20Spinning%20Arrows.gif') center center no-repeat; }
|
287
|
+
|
288
|
+
// Modals
|
289
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
290
|
+
$modal-btn-size: em(30px);
|
291
|
+
|
292
|
+
// Buttons
|
293
|
+
%modal-btn {
|
294
|
+
@extend %btn-scripts !optional;
|
295
|
+
@include square($modal-btn-size);
|
296
|
+
line-height: $modal-btn-size;
|
297
|
+
}
|
298
|
+
|
299
|
+
%modal-close {
|
300
|
+
@include position(absolute, 0px (em(-5px) - $modal-btn-size) 0 0);
|
301
|
+
}
|
302
|
+
|
303
|
+
%modal-close-alt {
|
304
|
+
@include position(absolute, 0px 0px 0 0);
|
305
|
+
background-color: transparent;
|
306
|
+
color: $link-color;
|
307
|
+
&:hover {
|
308
|
+
color: $link-color-hover;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
%modal-btnbar-size {@include size($modal-btn-size, $modal-btn-size * 5);}
|
313
|
+
|
314
|
+
// Other styles
|
315
|
+
%modal-overlay { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNiqAcAAIgAgoGu+rEAAAAASUVORK5CYII='); }
|
316
|
+
|
317
|
+
%modal-skin {
|
318
|
+
@include box-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
|
319
|
+
@include border-radius($base-border-radius);
|
320
|
+
background: #fff;
|
321
|
+
|
322
|
+
// Icons
|
323
|
+
.fancybox-close:after { @include icon-font(\f00d); }
|
324
|
+
.fancybox-prev span:after { @include icon-font(\f053); }
|
325
|
+
.fancybox-next span:after { @include icon-font(\f054); }
|
326
|
+
.btnPrev:after { @include icon-font(\f04a); }
|
327
|
+
.btnNext:after { @include icon-font(\f051); }
|
328
|
+
.btnPlay:after { @include icon-font(\f04b); }
|
329
|
+
.btnPlayOn:after { @include icon-font(\f04c); }
|
330
|
+
.btnToggle:after { @include icon-font(\f065); }
|
331
|
+
.btnToggleOn:after { @include icon-font(\f066); }
|
332
|
+
.btnClose:after { @include icon-font(\f00d); }
|
333
|
+
}
|
334
|
+
|
335
|
+
%modal-nav { margin-top: (0 - ($modal-btn-size / 2)); }
|
336
|
+
|
337
|
+
%modal-caption { @extend %caption !optional; }
|
338
|
+
|
339
|
+
%modal-loading {
|
340
|
+
margin-top: -($loader-ico-size / 2);
|
341
|
+
margin-left: -($loader-ico-size / 2);
|
342
|
+
opacity: 0.8;
|
343
|
+
|
344
|
+
div {
|
345
|
+
@extend %loader-ico !optional;
|
346
|
+
@include square($loader-ico-size);
|
347
|
+
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
|
352
|
+
// Sliders
|
353
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
354
|
+
$slider-btn-size: em(30px);
|
355
|
+
|
356
|
+
// Buttons
|
357
|
+
%slider-btn {
|
358
|
+
@extend %btn-scripts !optional;
|
359
|
+
@include square($slider-btn-size);
|
360
|
+
line-height: $slider-btn-size;
|
361
|
+
margin-top: -($slider-btn-size / 2);
|
362
|
+
|
363
|
+
&.bx-prev i:after { @include icon-font(\f053); }
|
364
|
+
&.bx-next i:after { @include icon-font(\f054); }
|
365
|
+
}
|
366
|
+
|
367
|
+
// Pager
|
368
|
+
%slider-pager {
|
369
|
+
@include position(absolute, 0 0 -30px 0);
|
370
|
+
padding-top: 20px;
|
371
|
+
.bx-pager-item {
|
372
|
+
a {
|
373
|
+
@include border-radius(5px);
|
374
|
+
@include square(10px);
|
375
|
+
@include hide-text;
|
376
|
+
background: $grayLight;
|
377
|
+
margin: 0 5px;
|
378
|
+
&:hover, &.active { background: $gray; }
|
379
|
+
}
|
380
|
+
}
|
381
|
+
}
|
382
|
+
|
383
|
+
// Other styles
|
384
|
+
%slider-caption { @extend %caption !optional; }
|
385
|
+
|
386
|
+
%slider-loading {
|
387
|
+
@extend %loader-ico !optional;
|
388
|
+
@include alpha-color(#000, .60);
|
389
|
+
min-height: $loader-ico-size;
|
390
|
+
}
|
391
|
+
|
392
|
+
// Tabs
|
393
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
394
|
+
|
395
|
+
%tab-nav {
|
396
|
+
//...
|
397
|
+
}
|
398
|
+
|
399
|
+
%tab-btn {
|
400
|
+
background: $grayLighter;
|
401
|
+
border: solid 1px $grayLight;
|
402
|
+
border-bottom: none;
|
403
|
+
}
|
404
|
+
|
405
|
+
%tab-btn_hover {
|
406
|
+
background: $grayLighter;
|
407
|
+
border: solid 1px $grayLight;
|
408
|
+
border-bottom: none;
|
409
|
+
}
|
410
|
+
|
411
|
+
%tab-btn_current {
|
412
|
+
border-color: $gray;
|
413
|
+
&:after { background: $grayLighter; }
|
414
|
+
}
|
415
|
+
|
416
|
+
%tab-container {
|
417
|
+
border: solid 1px $gray;
|
418
|
+
background: $grayLighter;
|
419
|
+
}
|
420
|
+
|
421
|
+
|
422
|
+
// Alerts
|
423
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
424
|
+
|
425
|
+
%alert {
|
426
|
+
background-color: $grayLighter;
|
427
|
+
border: 1px solid $grayLight;
|
428
|
+
}
|
429
|
+
|
430
|
+
// Responsive NAV
|
431
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
432
|
+
|
433
|
+
%nav-big {}
|
434
|
+
|
435
|
+
%nav-small {
|
436
|
+
background-color: #272c33;
|
437
|
+
|
438
|
+
a {
|
439
|
+
color: #fff;
|
440
|
+
padding: $input-padding;
|
441
|
+
// &:after { display: none;}
|
442
|
+
}
|
443
|
+
|
444
|
+
ul,
|
445
|
+
ul li,
|
446
|
+
ul li a {
|
447
|
+
width: 100%;
|
448
|
+
border: 0;
|
449
|
+
margin: 0;
|
450
|
+
float: none;
|
451
|
+
display: block;
|
452
|
+
position: static;
|
453
|
+
text-align: left;
|
454
|
+
@include border-radius(0);
|
455
|
+
background-color: transparent;
|
456
|
+
}
|
457
|
+
|
458
|
+
.open {
|
459
|
+
background-color: lighten(#272c33, 10);
|
460
|
+
|
461
|
+
.btn.dropdown-toggle[data-toggle=dropdown] {
|
462
|
+
background-color: darken(#272c33, 10);
|
463
|
+
}
|
464
|
+
}
|
465
|
+
}
|
466
|
+
|
467
|
+
%nav-toggle {
|
468
|
+
@extend .btn;
|
469
|
+
@include square($responsive-nav-toggle-size);
|
470
|
+
font-size: $responsive-nav-toggle-size * .6;
|
471
|
+
padding: 0;
|
472
|
+
line-height: $responsive-nav-toggle-size;
|
473
|
+
span {@include hide-text();}
|
474
|
+
&:before {
|
475
|
+
@include icon-font(\f0c9);
|
476
|
+
}
|
477
|
+
}
|
478
|
+
|
479
|
+
}
|
480
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
|
2
|
+
// Conversione da Easing da Transform a Transition
|
3
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
4
|
+
@function toBezier($easing) {
|
5
|
+
|
6
|
+
@if $easing == linear { @return linear; }
|
7
|
+
@elseif $easing == ease { @return ease; }
|
8
|
+
@elseif $easing == ease-in { @return ease-in; }
|
9
|
+
@elseif $easing == ease-out { @return ease-out; }
|
10
|
+
@elseif $easing == ease-in-out { @return ease-in-out; }
|
11
|
+
|
12
|
+
@elseif $easing == easeInQuad { @return cubic-bezier(0.550, 0.085, 0.680, 0.530); }
|
13
|
+
@elseif $easing == easeInCubic { @return cubic-bezier(0.550, 0.055, 0.675, 0.190); }
|
14
|
+
@elseif $easing == easeInQuart { @return cubic-bezier(0.895, 0.030, 0.685, 0.220); }
|
15
|
+
@elseif $easing == easeInQuint { @return cubic-bezier(0.755, 0.050, 0.855, 0.060); }
|
16
|
+
@elseif $easing == easeInSine { @return cubic-bezier(0.470, 0.000, 0.745, 0.715); }
|
17
|
+
@elseif $easing == easeInExpo { @return cubic-bezier(0.950, 0.050, 0.795, 0.035); }
|
18
|
+
@elseif $easing == easeInCirc { @return cubic-bezier(0.600, 0.040, 0.980, 0.335); }
|
19
|
+
@elseif $easing == easeInBack { @return cubic-bezier(.600, -0.280, 0.735, 0.045); }
|
20
|
+
|
21
|
+
@elseif $easing == easeOutQuad { @return cubic-bezier(0.250, 0.460, 0.450, 0.940); }
|
22
|
+
@elseif $easing == easeOutCubic { @return cubic-bezier(0.215, 0.610, 0.355, 1.000); }
|
23
|
+
@elseif $easing == easeOutQuart { @return cubic-bezier(0.165, 0.840, 0.440, 1.000); }
|
24
|
+
@elseif $easing == easeOutQuint { @return cubic-bezier(0.230, 1.000, 0.320, 1.000); }
|
25
|
+
@elseif $easing == easeOutSine { @return cubic-bezier(0.390, 0.575, 0.565, 1.000); }
|
26
|
+
@elseif $easing == easeOutExpo { @return cubic-bezier(0.190, 1.000, 0.220, 1.000); }
|
27
|
+
@elseif $easing == easeOutCirc { @return cubic-bezier(0.075, 0.820, 0.165, 1.000); }
|
28
|
+
@elseif $easing == easeOutBack { @return cubic-bezier(0.175, 0.885, 0.320, 1.275); }
|
29
|
+
|
30
|
+
@elseif $easing == easeInOutQuad { @return cubic-bezier(0.455, 0.030, 0.515, 0.955); }
|
31
|
+
@elseif $easing == easeInOutCubic { @return cubic-bezier(0.645, 0.045, 0.355, 1.000); }
|
32
|
+
@elseif $easing == easeInOutQuart { @return cubic-bezier(0.770, 0.000, 0.175, 1.000); }
|
33
|
+
@elseif $easing == easeInOutQuint { @return cubic-bezier(0.860, 0.000, 0.070, 1.000); }
|
34
|
+
@elseif $easing == easeInOutSine { @return cubic-bezier(0.445, 0.050, 0.550, 0.950); }
|
35
|
+
@elseif $easing == easeInOutExpo { @return cubic-bezier(1.000, 0.000, 0.000, 1.000); }
|
36
|
+
@elseif $easing == easeInOutCirc { @return cubic-bezier(0.785, 0.135, 0.150, 0.860); }
|
37
|
+
@elseif $easing == easeInOutBack { @return cubic-bezier(.680, -0.550, 0.265, 1.550); }
|
38
|
+
@else { @return null; }
|
39
|
+
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
44
|
+
@function rhythm_neg($i: 1) {
|
45
|
+
@return -(rhythm($i));
|
46
|
+
}
|
47
|
+
|
48
|
+
@function space_neg($w: 1, $c: 12) {
|
49
|
+
@return -(space($w, $c));
|
50
|
+
}
|