cookie_law 0.1.1 → 0.1.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: 31dc9e9439e80a44c752e67d9b61d63692608f17
4
- data.tar.gz: 7e34d68955cac55529b233f051139ee3b69134c4
3
+ metadata.gz: b85c6cd1cdab08cd6b94ce5b28dca5f83eb0e23e
4
+ data.tar.gz: 58656db9506be989e77dca4da153719035eff43f
5
5
  SHA512:
6
- metadata.gz: b7313ef002de06610e831f069ef9349a49038279fc9cdee983ae7edd80a880596f8a07317adcb26e49d03ec5511614e71f3e0e78e24226c9a96c45bddcbe95dc
7
- data.tar.gz: 083cafbbc5efd9613832be699b38dc795db35a36c8bb7f0cc9a0fc05a810b72bf6d5b6796ed4b2ec62281ef749d197b6712d684ec48f496b1b9ad952d83fc649
6
+ metadata.gz: 50968374dacb9e481e80fc8622cb378618cc3ada4f2029ce23e3e4a901ee5f7122b510a3da2ba49a14c35fb2bed86c9a21bfdfc1c7bcd1e7ccfe521671ba67c6
7
+ data.tar.gz: 9394a37a3c26d53301ecb83f6c6f5051aa11fbead88f81fa2bb3f1c7c47e8089cc6197b2760e5ea63efa4f9b86b05c6c99337b4ae167a296783a630eab1fec16
@@ -1,6 +1,10 @@
1
1
  <% unless policy_accepted? %>
2
2
  <div id="cl_banner">
3
- This site uses cookies, even from third part, to send you ads and services that suits your preferences. If you want to know more <%= link_to 'click here', CookieLaw.policy_link, target: '_blank', class: :no_cl_accept %>. Closing this banner, scrolling this page or clicking any link in this page, you agree with cookies usage.
4
- <%= link_to 'Close', '#', id: 'cl_close' %>
3
+ <div class="cl_text">
4
+ This site uses cookies, even from third part, to send you ads and services that suits your preferences. If you want to know more <%= link_to 'click here', CookieLaw.policy_link, target: '_blank', class: :no_cl_accept %>. Closing this banner, scrolling this page or clicking any link in this page, you agree with cookies usage.
5
+ </div>
6
+ <div class="cl_button">
7
+ <%= link_to 'Close', '#', id: 'cl_close' %>
8
+ </div>
5
9
  </div>
6
10
  <% end %>
@@ -1,4 +1,8 @@
1
1
  <div id="cl_banner">
2
- Questo sito utilizza cookie, anche di terze parti, per inviarti pubblicità e servizi in linea con le tue preferenze. Se vuoi saperne di più <%= link_to 'clicca qui', CookieLaw.policy_link, target: '_blank', class: :no_cl_accept %>. Chiudendo questo banner, scorrendo questa pagina o cliccando qualunque suo elemento acconsenti all'uso dei cookie.
3
- <%= link_to 'Chiudi', '#', id: 'cl_close' %>
2
+ <div class="cl_text">
3
+ Questo sito utilizza cookie, anche di terze parti, per inviarti pubblicità e servizi in linea con le tue preferenze. Se vuoi saperne di più <%= link_to 'clicca qui', CookieLaw.policy_link, target: '_blank', class: :no_cl_accept %>. Chiudendo questo banner, scorrendo questa pagina o cliccando qualunque suo elemento acconsenti all'uso dei cookie.
4
+ </div>
5
+ <div class="cl_button">
6
+ <%= link_to 'Chiudi', '#', id: 'cl_close' %>
7
+ </div>
4
8
  </div>
Binary file
@@ -1,3 +1,3 @@
1
1
  module CookieLaw
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,6 +1,10 @@
1
1
  <% unless policy_accepted? %>
2
2
  <div id="cl_banner">
3
- This site uses cookies, even from third part, to send you ads and services that suits your preferences. If you want to know more <%= link_to 'click here', CookieLaw.policy_link, target: '_blank', class: :no_cl_accept %>. Closing this banner, scrolling this page or clicking any link in this page, you agree with cookies usage.
4
- <%= link_to 'Close', '#', id: 'cl_close' %>
3
+ <div class="cl_text">
4
+ This site uses cookies, even from third part, to send you ads and services that suits your preferences. If you want to know more <%= link_to 'click here', CookieLaw.policy_link, target: '_blank', class: :no_cl_accept %>. Closing this banner, scrolling this page or clicking any link in this page, you agree with cookies usage.
5
+ </div>
6
+ <div class="cl_button">
7
+ <%= link_to 'Close', '#', id: 'cl_close' %>
8
+ </div>
5
9
  </div>
6
10
  <% end %>
@@ -5,30 +5,71 @@ $banner_close_button_text: #000;
5
5
  $banner_close_button_border: #f00;
6
6
 
7
7
  #cl_banner {
8
- position: absolute;
9
- top: 0;
10
- background-color: $banner_bg;
11
- color: $banner_text;
12
- width: 100%;
13
- padding: 20px;
8
+ position:fixed;
9
+ width: 100%;
10
+ left: 0;
11
+ top: 0;
12
+ padding: 0.5em 5%;
13
+ background: $banner_bg;
14
+ font-size: 13px;
15
+ font-weight: 400;
16
+ text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
17
+ z-index: 99999;
18
+ /*text-align: center; */
19
+ color: $banner_text;
20
+ line-height: 26px;
21
+ // padding-right: 10%;
22
+
23
+
14
24
 
15
25
  a {
16
26
  color: $banner_text;
17
27
  }
18
-
19
-
28
+ .no_cl_accept{
29
+ text-decoration: underline;
30
+ }
31
+ .cl_text{
32
+ padding-right: 5%;
33
+ }
34
+ .cl_button{
35
+ position: absolute;
36
+ top: 10%;
37
+ right: 2%;
38
+ }
20
39
  #cl_close {
21
- float: right;
22
- width: 100px;
23
- margin-right: 40px;
40
+ display: inline-block;
41
+ color: white;
42
+ text-decoration: none;
43
+ background: black;
44
+ padding: 0.5em 1.3em;
45
+ font-weight: 700;
46
+ border-radius: 3px;
47
+ border: 1px solid white;
48
+ box-shadow: 0 0 2px rgba(0,0,0,0.25);
49
+ text-shadow: 0 -1px 0 rgba(0,0,0,0.35);
50
+ -o-transition: background 0.5s ease-in;
51
+ -webkit-transition: background 0.25s ease-in;
52
+ -moz-transition: background 0.25s ease-in;
53
+ }
54
+ }
24
55
 
25
- padding: 2px 60px;
26
- background-color: $banner_close_button_bg;
27
- color: $banner_close_button_text;
28
- border: 4px solid $banner_close_button_border;
29
- text-decoration: none;
30
56
 
31
- font-size: 28px;
32
- line-height: 1.33333;
57
+ @media screen and (max-width: 480px) {
58
+ #cl_banner {
59
+ text-align: center;
60
+ #cl_close{
61
+ top:6%;
62
+ }
63
+ .cl_text{
64
+ padding-right: 0;
65
+ }
66
+ .cl_button{
67
+ text-align: center;
68
+ position: relative;
69
+ top: 0;
70
+ right: 0;
71
+ margin-top: 10px;
72
+ margin-bottom: 10px;
73
+ }
33
74
  }
34
75
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookie_law
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrico Carlesso
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-07-12 00:00:00.000000000 Z
11
+ date: 2015-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,6 +58,7 @@ files:
58
58
  - bin/console
59
59
  - bin/setup
60
60
  - build/cookie_law-0.1.0.gem
61
+ - build/cookie_law-0.1.1.gem
61
62
  - cookie_law.gemspec
62
63
  - lib/cookie_law.rb
63
64
  - lib/cookie_law/configuration.rb