cookie_law 0.1.1 → 0.1.2
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 +4 -4
- data/app/views/cookie_law/_banner.en.html.erb +6 -2
- data/app/views/cookie_law/_banner.it.html.erb +6 -2
- data/build/cookie_law-0.1.1.gem +0 -0
- data/lib/cookie_law/version.rb +1 -1
- data/lib/generators/cookie_law/templates/_banner.html.erb +6 -2
- data/vendor/assets/stylesheets/cookie_law.scss +59 -18
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b85c6cd1cdab08cd6b94ce5b28dca5f83eb0e23e
|
|
4
|
+
data.tar.gz: 58656db9506be989e77dca4da153719035eff43f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
data/lib/cookie_law/version.rb
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<% unless policy_accepted? %>
|
|
2
2
|
<div id="cl_banner">
|
|
3
|
-
|
|
4
|
-
|
|
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:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
32
|
-
|
|
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.
|
|
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-
|
|
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
|