cookies_eu 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzBlOTI4MGVmZjZhZjdiMDNlNTI3ZGJjZDdhOTQwM2VlN2M2MTE1NA==
4
+ ZDE4NGU2MTI3MDk5MzRiYjFkOWI2NGQ1YTMyYWMzZWU2NjY1MGQzYQ==
5
5
  data.tar.gz: !binary |-
6
- ZjIzNTcyYmY1ODgzNWM0ZGEyZGI4NGRiNmJjMWQxM2I4NzNmODFlZQ==
6
+ NmVjMjk5M2UzZmY0ZDNhZTdkOTM3ZTg4ODM2MDk5NDQzMzgwODdkYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODFlOWQ3NzUwOTMzMWU4ZDgyZDc3OTY2MWRiMDQ4MzBiNzYzYmUzNDZiYjBl
10
- MDFiODIzZWUyZjIzYWFhNjUxNjM2M2YxYjU5MjVhYzk4N2YwNWUyZmE2ODhj
11
- MmM2YmFhNTUwZGZmY2E1OGFiMDk0ZmJhNTM1OTBhYjNiMzY1MmE=
9
+ OWMyOGQzMzBiZmNmYTM5NGFkNTgyOTZjMDc5YTczYzUwMjRkNDk3YTNjY2Vh
10
+ MjczYmY2NDMzNmZjYWFjNGFhMTIwNmQzZjVkNWFhMDY4NmU4MjI4MWMwOWE4
11
+ M2JhY2NiZjdhY2RlZWIzY2NmZmRhN2M0ZDE5YTQwYWM1YmM2NzE=
12
12
  data.tar.gz: !binary |-
13
- Y2VmMTM5YjQ0ODIxZWRiZmUyMzQ2ZTA5NDJhNDIxYzc0NDA1MjY1ZTFmMTdk
14
- YjY4Mjg3OWU5NmVjOGI2NDczNzMxY2M4NDJhODIxZGE2MWY2MDczYzNiNjQx
15
- YTFkOWIwNGUzMDRlYzE3MjNhZGI3M2Q5OTczYmFjNWYwNWI0ODQ=
13
+ OWQxNmU2NmZmZjhiYTZlZTg3NTU5MTkxMTdiZDI0ZGM5OTVhZDIxOWFhMjUw
14
+ ZTEyYzM4NTdiNGZiZTU3ZWYxNmJkMjQ0NDkzZDUxMmM1ODYzZWJiOGYzZGUw
15
+ ZDBiOTVmZjhjY2E4YTAzYmZjZmNkNmM1NDU5YjIxNWIwM2JhMmM=
@@ -2,9 +2,9 @@
2
2
  //= require jquery.cookie
3
3
 
4
4
  $(document).ready( function(){
5
- $('.cookies_eu_ok').click(function(e){
5
+ $('.cookies-eu-ok').click(function(e){
6
6
  e.preventDefault();
7
7
  $.cookie('cookie_eu_consented', 'true', { path: '/'});
8
- $(this).parent().remove();
8
+ $('.cookies-eu').remove();
9
9
  });
10
10
  });
@@ -1,32 +1,42 @@
1
- .cookies_eu {
1
+ .cookies-eu {
2
2
  position: fixed;
3
3
  bottom: 0;
4
4
  left: 0;
5
5
  line-height: 40px;
6
6
  background: #f2f2f2;
7
7
  border-top: 1px solid #e4e4e4;
8
- padding: 0 30px;
9
8
  width: 100%;
10
9
  z-index: 100;
10
+ text-align: center;
11
11
 
12
- .cookies_eu_ok{
13
- background-color: #4d90fe;
14
- background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed);
15
- border: 1px solid #3079ed;
16
- border-radius: 2px;
17
- color: #fff;
18
- cursor: default;
12
+ .cookies-eu-content-holder {
19
13
  display: inline-block;
20
- font-size: 11px;
21
- font-weight: bold;
22
- height: 24px;
23
- line-height: 20px;
24
- margin-right: 0px;
25
- min-width: 26px;
26
- outline: 0;
27
- padding: 0 11px;
28
- text-align: center;
29
- white-space: nowrap;
30
- margin: 0 5px;
14
+ padding: 0 20px;
15
+ line-height: 26px;
16
+ }
17
+ .cookies-eu-button-holder {
18
+ display: inline-block;
19
+ padding-right: 20px;
20
+
21
+ .cookies-eu-ok {
22
+ background-color: #4d90fe;
23
+ background-image: -webkit-linear-gradient(top,#4d90fe,#4787ed);
24
+ border: 1px solid #3079ed;
25
+ border-radius: 2px;
26
+ color: #fff;
27
+ cursor: default;
28
+ display: inline-block;
29
+ font-size: 11px;
30
+ font-weight: bold;
31
+ height: 24px;
32
+ line-height: 20px;
33
+ margin-right: 0px;
34
+ min-width: 26px;
35
+ outline: 0;
36
+ padding: 0 11px;
37
+ text-align: center;
38
+ white-space: nowrap;
39
+ margin: 0 5px;
40
+ }
31
41
  }
32
42
  }
@@ -1,9 +1,11 @@
1
1
  <% if cookies['cookie_eu_consented'] != 'true' %>
2
- <div class="cookies_eu">
3
- <span><%= t('cookies_eu.cookies_text') %></span>
4
- <button class="cookies_eu_ok"> <%= t('cookies_eu.ok') %> </button>
2
+ <div class="cookies-eu">
3
+ <span class="cookies-eu-content-holder"><%= t('cookies_eu.cookies_text') %></span>
4
+ <span class="cookies-eu-button-holder">
5
+ <button class="cookies-eu-ok"> <%= t('cookies_eu.ok') %> </button>
5
6
  <% if defined?(link).present? %>
6
- <a href="<%= link %>" class="cookies_eu_link"> <%= t('cookies_eu.learn_more') %> </a>
7
+ <a href="<%= link %>" class="cookies-eu-link"> <%= t('cookies_eu.learn_more') %> </a>
7
8
  <% end %>
9
+ </span>
8
10
  </div>
9
11
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module CookiesEu
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookies_eu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-20 00:00:00.000000000 Z
11
+ date: 2013-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails