cutlass_js_rails 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaeed95c0a330598f701baf1e586378efec3ceb1
|
4
|
+
data.tar.gz: ebb3b0bd84ef45e93a6156fc747a9cdf977a9642
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdfc4876da8006914a7c2f9b538b5756339ab80a070226653e75a50e2657bd15f7ba0f291b3dd629a6db50a18ffc5e74adb168fe4c5ed10b8879a671cfd6cda8
|
7
|
+
data.tar.gz: 007d5c3c0f50a2dc1531fccc19293b0e1301c52f9c1264618ac502f7abfdcd21cea0407b024de2bce42dfe5d333f3330a14aba9819e2298eded3eb47e11b10e5
|
@@ -24,3 +24,14 @@ Cutlass.makeActive = function($input){
|
|
24
24
|
Cutlass.removeActive = function($input){
|
25
25
|
$input.parent().removeClass('s-active');
|
26
26
|
}
|
27
|
+
|
28
|
+
Cutlass.animateFields = function(){
|
29
|
+
$('.Cutlass-input-text, .Cutlass-input-select, .Cutlass-input-radio, .Cutlass-input-toggler, .Cutlass-input-link').addClass('s-shown');
|
30
|
+
$('.Cutlass-item').each(function(i){
|
31
|
+
var $el = $(this)
|
32
|
+
console.log(i);
|
33
|
+
setTimeout(function(){
|
34
|
+
$el.addClass('s-shown')
|
35
|
+
}, i*50)
|
36
|
+
})
|
37
|
+
}
|
@@ -15,6 +15,12 @@ $cutlass-link-color: #ff7c14 !default;
|
|
15
15
|
position: relative;
|
16
16
|
min-height: 60px;
|
17
17
|
border-bottom: 1px solid $cutlass-border-color;
|
18
|
+
opacity: 0;
|
19
|
+
transition: all 1s;
|
20
|
+
|
21
|
+
&.s-shown{
|
22
|
+
opacity: 1;
|
23
|
+
}
|
18
24
|
&.m-last{
|
19
25
|
border-bottom: 0;
|
20
26
|
}
|
@@ -30,6 +36,17 @@ $cutlass-link-color: #ff7c14 !default;
|
|
30
36
|
font-size: 15px;
|
31
37
|
}
|
32
38
|
|
39
|
+
// ========================================================
|
40
|
+
// HIDING PRE-HTML-GENERATION
|
41
|
+
// ========================================================
|
42
|
+
.Cutlass-input-text, .Cutlass-input-select, .Cutlass-input-radio, .Cutlass-input-toggler, .Cutlass-input-link{
|
43
|
+
opacity: 0;
|
44
|
+
&.s-shown{
|
45
|
+
opacity: 1;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
|
33
50
|
// ========================================================
|
34
51
|
// TEXT INPUT
|
35
52
|
// ========================================================
|