leather 0.2.21 → 0.2.22
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: 8bb423299bf6486551b8c9c8dc228774fdd406f4
|
4
|
+
data.tar.gz: 602bfc871ff7f938d6a37b5c0601a7682d1f9621
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f277bcf121a1950ef31f87f71328e8c1ac0b29d8ae27045f8c447af153dd0c8c2691619155811c2c7c45a96eaf71d2f049c1ce6bea5bb48cfb3fdcc3e7e13564
|
7
|
+
data.tar.gz: 276c47a1af8273f6467a264b74c99a6f15f1d10ea7681b3a33563e0c450276ddd8e2d0a522c874ee23243e4fa9223f140a7cb114289261befaa688ffaedc9758
|
@@ -1,14 +1,30 @@
|
|
1
1
|
$ ->
|
2
|
-
$(
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
$('body').removeClass "off-canvas-show-right"
|
7
|
-
if side == "right"
|
8
|
-
$('body').removeClass "off-canvas-show-left"
|
9
|
-
$('body').toggleClass("off-canvas-show-#{side}")
|
2
|
+
if $(".off-canvas").length > 0
|
3
|
+
console.log "setting up off-canvas"
|
4
|
+
|
5
|
+
$('body').wrapInner("<div id='off-canvas-wrapper' />")
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
$(".off-canvas, .fixed").each ->
|
8
|
+
$("#off-canvas-wrapper").before(this)
|
9
|
+
|
10
|
+
$(document).on 'click', '[data-toggle="off-canvas"]', (e) ->
|
11
|
+
e.stopPropagation()
|
12
|
+
e.preventDefault()
|
13
|
+
if e.handled != true
|
14
|
+
side = $(this).data('side')
|
15
|
+
if side == "left"
|
16
|
+
$('body').removeClass "off-canvas-show-right"
|
17
|
+
if side == "right"
|
18
|
+
$('body').removeClass "off-canvas-show-left"
|
19
|
+
$('body').toggleClass("off-canvas-show-#{side}")
|
20
|
+
e.handled = true
|
21
|
+
else
|
22
|
+
false
|
23
|
+
|
24
|
+
$(document).on 'click touchstart', '.off-canvas-show-left, .off-canvas-show-right', (e) ->
|
25
|
+
if e.handled != true
|
26
|
+
e.preventDefault()
|
27
|
+
unless ($(e.target).hasClass("off-canvas") || $(e.target).data('toggle') == "off-canvas")
|
28
|
+
$(this).removeClass("off-canvas-show-right")
|
29
|
+
$(this).removeClass("off-canvas-show-left")
|
30
|
+
e.handled = true
|
@@ -1,7 +1,3 @@
|
|
1
|
-
html, body {
|
2
|
-
overflow-x: hidden;
|
3
|
-
}
|
4
|
-
|
5
1
|
.off-canvas {
|
6
2
|
position: fixed;
|
7
3
|
top: 0;
|
@@ -17,21 +13,31 @@ html, body {
|
|
17
13
|
left: -$off-canvas-width;
|
18
14
|
}
|
19
15
|
}
|
16
|
+
|
17
|
+
.off-canvas, .fixed, #off-canvas-wrapper {
|
18
|
+
transition: all .2s ease;
|
19
|
+
}
|
20
|
+
|
21
|
+
.fixed, #off-canvas-wrapper {
|
22
|
+
transform: translate3d(0,0,0);
|
23
|
+
}
|
20
24
|
|
21
25
|
.off-canvas-show-right {
|
22
|
-
position: relative;
|
23
|
-
right: $off-canvas-width;
|
24
26
|
overflow: hidden;
|
25
27
|
.off-canvas-right {
|
26
|
-
right:
|
28
|
+
right: 0px;
|
29
|
+
}
|
30
|
+
.fixed, #off-canvas-wrapper {
|
31
|
+
transform: translate3d(-$off-canvas-width, 0, 0);
|
27
32
|
}
|
28
33
|
}
|
29
34
|
|
30
35
|
.off-canvas-show-left {
|
31
|
-
position: relative;
|
32
|
-
left: $off-canvas-width;
|
33
36
|
overflow: hidden;
|
34
37
|
.off-canvas-left {
|
35
|
-
left:
|
38
|
+
left: 0px;
|
39
|
+
}
|
40
|
+
.fixed, #off-canvas-wrapper {
|
41
|
+
transform: translate3d($off-canvas-width, 0, 0);
|
36
42
|
}
|
37
43
|
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
$white: #
|
1
|
+
$white: #ffffff !default;
|
2
2
|
|
3
|
-
$devise-bg-gradient-start: #355069;
|
4
|
-
$devise-bg-gradient-end: #5E7A9B;
|
5
|
-
$devise-box-border-color: #6ED5E4;
|
3
|
+
$devise-bg-gradient-start: #355069 !default;
|
4
|
+
$devise-bg-gradient-end: #5E7A9B !default;
|
5
|
+
$devise-box-border-color: #6ED5E4 !default;
|
6
6
|
|
7
|
-
$off-canvas-width:
|
8
|
-
$off-canvas-bg-color:
|
9
|
-
$off-canvas-color:
|
7
|
+
$off-canvas-width: 300px !default;
|
8
|
+
$off-canvas-bg-color: #f1f1f1 !default;
|
9
|
+
$off-canvas-color: #333333 !default;
|
data/lib/leather/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Van Der Beek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|