dlegr250_material_design 0.2.12 → 0.2.13

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: 185a779f9bfe9c652e30a868efa64f408ddfc428
4
- data.tar.gz: 4b51a5eb2b6e1d863ea9422b9e15b174b822001c
3
+ metadata.gz: a0c87c561126b2e2a68b84b10f711750fae950c2
4
+ data.tar.gz: 31265acb78ed00e0c6972e5ee1386a23fb439f88
5
5
  SHA512:
6
- metadata.gz: 0c082c3c89161ffc75f630cedd3aeae3e1c55701156a57f11a50c9b4bbb8bcc9a1d3986b4bc56def9f28a3d0c0b206d0286da9ebfb2e9dc80b3fb2fb20308f6b
7
- data.tar.gz: e3d448081085e03d63613b900146c38a8016d201353891e6ed686b92a45ec77c0a08eec174448eea6802978e3393928a6bfab235aed392b619f864de003d96de
6
+ metadata.gz: 7a3e367edeb817d4a43859ddd2f5234f5180bd89fd6ff82630589be7c72f6db818aca88c85cd80088184da87749c0f0604d7c87d4885bcf0253e5fab9c24908d
7
+ data.tar.gz: fb542c2e86c82037c62de9d06ed43465bfe7a9add9f00a16bdf8f92136397a87ace56caf556f86aabbde5167aee0ba85aa40874b8026e63383feb34f45c7363f
@@ -1,3 +1,3 @@
1
1
  module Dlegr250MaterialDesign
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.13"
3
3
  end
@@ -15,6 +15,18 @@ jQuery.extend jQuery.fn,
15
15
  element.css("top", ($(document).height() - element.height()) / 2)
16
16
  element
17
17
 
18
+ horizontalCenter: ->
19
+ @each ->
20
+ element = $(this)
21
+ element.css("left", ($(document).width() - element.width()) / 2)
22
+ element
23
+
24
+ verticalCenter: ->
25
+ @each ->
26
+ element = $(this)
27
+ element.css("top", ($(document).height() - element.height()) / 2)
28
+ element
29
+
18
30
  # Change content of element to be centered spinner
19
31
  #----------------------------------------------------------------------
20
32
 
@@ -10,14 +10,13 @@
10
10
  bottom: 0;
11
11
  color: color("white");
12
12
  cursor: pointer;
13
- left: 0;
14
13
  overflow: hidden;
15
14
  padding: $spacing-normal;
16
15
  position: absolute;
17
16
  pointer-events: none;
18
- right: 0;
19
17
  will-change: transform;
20
18
  z-index: $layout-depth + 1;
19
+ @include full-width();
21
20
  @include transform(translateY(200%));
22
21
  @include transition(transform 0.15s cubic-bezier(0, 0, 0.3, 1));
23
22
 
@@ -40,12 +39,10 @@
40
39
 
41
40
  @media (min-width: $medium-width) {
42
41
  #snackbar {
43
- left: 20px !important;
44
- margin-bottom: 20px;
42
+ margin: auto;
45
43
  max-width: 568px;
46
44
  min-width: 288px;
47
45
  right: auto;
48
- width: auto;
49
46
  @include rounded-corners();
50
47
  }
51
48
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlegr250_material_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel LeGrand