cookie_alert 0.0.1 → 0.0.2

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: 26b7e0e151fa04f5c9f12a93f55b6db5e5d70d55
4
- data.tar.gz: 67d5ba720210c7fb2acc5e0b776d4476078c3258
3
+ metadata.gz: 19de38d42409355262c7cce9edeb8fbf8055305f
4
+ data.tar.gz: 46caaddec5094cb63b4151e6d27160b0f9230afa
5
5
  SHA512:
6
- metadata.gz: 16ab513f44550d71195b7c11e125919f54859a9ac39adefd2bd737455836c1c4deb58aec0ef04aedb5351bb967e18ed3e92b7dff43476341d6fe66a60633206b
7
- data.tar.gz: ef3cefdd51c9e5709736e949c0d5fceace4f1303ce809518dc5feeb77efc139f7b2fef9ae31baa76a819faf57e3b15774c283e6975de484fedc0ea0524c07dad
6
+ metadata.gz: 8c2b4cf415218b6aae539eb85699a3012f2297bf352a05fd791ea2a4c17451b5b623e5c5813556b5503384022b8031f90d6a89688cb07583e9a010ca67ca4493
7
+ data.tar.gz: 3987c961635d735992fb43e9a9a637206b9d58223b5de4f92542a00a8bfc9423f3654c39f1d1c369041be34f0225e9118939d12cc00c810978ba292461ac2472
@@ -1,12 +1,12 @@
1
1
  $(function(){
2
2
 
3
3
  $("#cookie_alert.secondary-alert").on( 'mouseenter', function(e){
4
- $("#cookie_alert_text").show();
4
+ $("#cookie_alert_text").show(500);
5
5
 
6
6
  });
7
7
 
8
8
  $("#cookie_alert.secondary-alert").on( 'mouseleave', function(e){
9
- $("#cookie_alert_text").hide();
9
+ $("#cookie_alert_text").hide(500);
10
10
 
11
11
  });
12
12
  });
@@ -2,48 +2,55 @@
2
2
  position: fixed;
3
3
  bottom: 0;
4
4
  left: 0;
5
- color: navy;
6
- background-color: #f4efb4;
5
+ color: #dedede;
6
+ background-color: #0088cc;
7
7
  border: 2px solid #444444;
8
+ z-index: 100;
8
9
  }
9
10
 
10
11
  #cookie_alert_message {
11
12
  margin: 0;
12
13
  padding: 5px;
14
+ clear: both;
13
15
  }
14
16
 
15
17
  #cookie_alert_title {
16
18
  float: left;
19
+ color: white;
17
20
  width: 75px;
18
21
  font-weight: bold;
19
22
  font-size: 18px;
20
23
  line-height: 18px;
21
24
  vertical-align: top;
22
- padding-bottom: 3px;
23
- text-shadow: 1px 1px 0 white;
25
+ padding-bottom: 5px;
26
+ text-shadow: 1px 1px 0 #444444;
24
27
 
25
28
 
26
29
  }
27
30
 
28
31
  #cookie_alert_text {
29
32
  margin-left: 80px;
30
- line-height: 1.25em;
33
+ line-height: 1.5em;
31
34
  }
32
35
 
33
- #cookie_alert a {
34
- background-color: gold;
35
- color: navy;
36
- font-weight: normal;
36
+
37
+
38
+ #cookie_alert_close {
39
+ float: right;
40
+ line-height: 1em;
41
+ padding: 1px 4px 2px 4px;
42
+ font-size: 12px;
43
+ background-color: red;
44
+ color: white;
45
+ font-weight: bold;
37
46
  text-decoration: none;
38
- border: 1px solid navy;
39
- padding: 0 1em;
40
- margin: 0 5px;
47
+ text-shadow: 1px 1px 0 #444444;
48
+ margin-left: 2px;
41
49
 
42
50
  }
43
51
 
44
- #cookie_alert a:hover {
52
+ #cookie_alert_close:hover {
45
53
  text-decoration: none;
46
- background-color: navy;
47
- color: gold;
48
- border: 1px solid black;
54
+ background-color: red;
55
+ color: white;
49
56
  }
@@ -1,12 +1,13 @@
1
1
  <div id='cookie_alert'>
2
2
  <div id='cookie_alert_message'>
3
- <div id='cookie_alert_title'>
3
+ <div id='cookie_alert_title'>
4
4
  Cookies:
5
5
  </div>
6
6
  <div id='cookie_alert_text'>
7
+ <%= link_to "X", cookie_alert_path, id: 'cookie_alert_close', remote: true %>
7
8
  We use cookies to help personalise and improve your web experience.
8
9
  By using our website you consent to our use of cookies, some of which may have already been set on your device.
9
- View our Cookie Policy to learn more or <%= link_to "Hide This Banner", cookie_alert_path, remote: true %>
10
+ View our Cookie Policy to learn more.
10
11
  </div>
11
12
  </div>
12
13
  </div>
@@ -1,14 +1,14 @@
1
- <div id='cookie_alert'class='secondary-alert'>
2
- <div id='cookie_alert_message'>
3
- <div id='cookie_alert_title'>
4
- Cookies:
5
- </div>
6
- <div id='cookie_alert_text' style="display: none;">
7
- We use cookies to give you the best possible experience on our website.
8
- By using our website you consent to our use of cookies, some of which may have already been set on your device.
9
- View our Cookie Policy to learn more or <%= link_to "Hide This Banner", cookie_alert_path, remote: true %>
1
+ <div id='cookie_alert' class='secondary-alert'>
2
+ <div id='cookie_alert_message'>
3
+ <div id='cookie_alert_title'>
4
+ Cookies:
5
+ </div>
6
+ <div id='cookie_alert_text' style='display:none;'>
7
+ <%= link_to "X", cookie_alert_path, id: 'cookie_alert_close', remote: true %>
8
+ We use cookies to help personalise and improve your web experience.
9
+ By using our website you consent to our use of cookies, some of which may have already been set on your device.
10
+ View our Cookie Policy to learn more.
11
+ </div>
10
12
  </div>
11
13
  </div>
12
- </div>
13
-
14
-
14
+
@@ -1,3 +1,3 @@
1
1
  module CookieAlert
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,12 +1,13 @@
1
1
  <div id='cookie_alert'>
2
2
  <div id='cookie_alert_message'>
3
- <div id='cookie_alert_title'>
3
+ <div id='cookie_alert_title'>
4
4
  Cookies:
5
5
  </div>
6
6
  <div id='cookie_alert_text'>
7
+ <%= link_to "X", cookie_alert_path, id: 'cookie_alert_close', remote: true %>
7
8
  We use cookies to help personalise and improve your web experience.
8
9
  By using our website you consent to our use of cookies, some of which may have already been set on your device.
9
- View our Cookie Policy to learn more or <%= link_to "Hide This Banner", cookie_alert_path, remote: true %>
10
+ View our Cookie Policy to learn more.
10
11
  </div>
11
12
  </div>
12
13
  </div>
@@ -1,12 +1,14 @@
1
- <div id='cookie_alert'class='secondary-alert'>
2
- <div id='cookie_alert_message'>
3
- <div id='cookie_alert_title'>
4
- Cookies:
5
- </div>
6
- <div id='cookie_alert_text' style="display: none;">
7
- We use cookies to give you the best possible experience on our website.
8
- By using our website you consent to our use of cookies, some of which may have already been set on your device.
9
- View our Cookie Policy to learn more or <%= link_to "hide this banner", cookie_alert_path, remote: true %>
1
+ <div id='cookie_alert' class='secondary-alert'>
2
+ <div id='cookie_alert_message'>
3
+ <div id='cookie_alert_title'>
4
+ Cookies:
5
+ </div>
6
+ <div id='cookie_alert_text' style='display:none;'>
7
+ <%= link_to "X", cookie_alert_path, id: 'cookie_alert_close', remote: true %>
8
+ We use cookies to help personalise and improve your web experience.
9
+ By using our website you consent to our use of cookies, some of which may have already been set on your device.
10
+ View our Cookie Policy to learn more.
11
+ </div>
10
12
  </div>
11
13
  </div>
12
- </div>
14
+
@@ -2,48 +2,55 @@
2
2
  position: fixed;
3
3
  bottom: 0;
4
4
  left: 0;
5
- color: navy;
6
- background-color: #f4efb4;
5
+ color: #dedede;
6
+ background-color: #0088cc;
7
7
  border: 2px solid #444444;
8
+ z-index: 100;
8
9
  }
9
10
 
10
11
  #cookie_alert_message {
11
12
  margin: 0;
12
13
  padding: 5px;
14
+ clear: both;
13
15
  }
14
16
 
15
17
  #cookie_alert_title {
16
18
  float: left;
19
+ color: white;
17
20
  width: 75px;
18
21
  font-weight: bold;
19
22
  font-size: 18px;
20
23
  line-height: 18px;
21
24
  vertical-align: top;
22
- padding-bottom: 3px;
23
- text-shadow: 1px 1px 0 white;
25
+ padding-bottom: 5px;
26
+ text-shadow: 1px 1px 0 #444444;
24
27
 
25
28
 
26
29
  }
27
30
 
28
31
  #cookie_alert_text {
29
32
  margin-left: 80px;
30
- line-height: 1.25em;
33
+ line-height: 1.5em;
31
34
  }
32
35
 
33
- #cookie_alert a {
34
- background-color: gold;
35
- color: navy;
36
- font-weight: normal;
36
+
37
+
38
+ #cookie_alert_close {
39
+ float: right;
40
+ line-height: 1em;
41
+ padding: 1px 4px 2px 4px;
42
+ font-size: 12px;
43
+ background-color: red;
44
+ color: white;
45
+ font-weight: bold;
37
46
  text-decoration: none;
38
- border: 1px solid navy;
39
- padding: 0 1em;
40
- margin: 0 5px;
47
+ text-shadow: 1px 1px 0 #444444;
48
+ margin-left: 2px;
41
49
 
42
50
  }
43
51
 
44
- #cookie_alert a:hover {
52
+ #cookie_alert_close:hover {
45
53
  text-decoration: none;
46
- background-color: navy;
47
- color: gold;
48
- border: 1px solid black;
54
+ background-color: red;
55
+ color: white;
49
56
  }
@@ -1,12 +1,12 @@
1
1
  $(function(){
2
2
 
3
3
  $("#cookie_alert.secondary-alert").on( 'mouseenter', function(e){
4
- $("#cookie_alert_text").show();
4
+ $("#cookie_alert_text").show(500);
5
5
 
6
6
  });
7
7
 
8
8
  $("#cookie_alert.secondary-alert").on( 'mouseleave', function(e){
9
- $("#cookie_alert_text").hide();
9
+ $("#cookie_alert_text").hide(500);
10
10
 
11
11
  });
12
12
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookie_alert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - CodeMeister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-02 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -31,7 +31,7 @@ dependencies:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements: