Skip to content

Commit bf4e45e

Browse files
authored
Merge pull request #419 from rasummer/rasummer/ccpa-cookie-banner-upgrade
2 parents f95c594 + 4156196 commit bf4e45e

3 files changed

Lines changed: 48 additions & 4 deletions

File tree

app/assets/css/modules/_oneTrust.styl

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,47 @@ body .optanon-alert-box-wrapper .optanon-alert-box-bottom-padding
6161
&:hover
6262
background: green-dark
6363
color: white
64+
65+
//ontrust ccpa upgrades
66+
body
67+
#onetrust-pc-sdk .ot-switch
68+
width: 45px !important
69+
padding: 0 !important
70+
#onetrust-pc-sdk .ot-switch-nob:before
71+
transform: translateX(2px)
72+
.onetrust-pc-dark-filter
73+
background: rgba(0,0,0,.75)
74+
#onetrust-button-group
75+
display: flex !important
76+
flex-direction: row-reverse !important
77+
justify-content: flex-end !important
78+
text-align: left !important
79+
#onetrust-accept-btn-handler
80+
opacity: 1 !important
81+
transition: anime
82+
outline: none !important
83+
&:hover
84+
background-color: green !important
85+
border-color: green !important
86+
transition: anime
87+
#onetrust-pc-sdk #close-pc-btn-handler.ot-close-icon
88+
outline: none !important
89+
.ot-pc-footer-logo
90+
display: none
91+
#ot-sdk-cookie-policy,
92+
#cookie-policy-description,
93+
.ot-sdk-cookie-policy-group-desc
94+
font-size: 1rem !important
95+
line-height: 1.5 !important
96+
margin-bottom: 1.0625rem !important
97+
& p
98+
font-size: 1rem !important
99+
line-height: 1.5 !important
100+
margin-bottom: 1.0625rem !important
101+
#onetrust-pc-sdk .ot-cat-grp .ot-always-active
102+
color: #6cc04a
103+
#onetrust-pc-sdk .ot-tgl input:checked+.ot-switch .ot-switch-nob
104+
border-color: #6cc04a
105+
background-color: #d4e8cb
106+
&:before
107+
background-color: #6cc04a

app/views/cookie.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ <h1>
1313
<article>
1414
<h1>Your Privacy</h1>
1515
<p>When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalised web experience.</p>
16-
<p>Because we respect your right to privacy, you <a class="optanon-toggle-display">can choose</a> not to allow some types of cookies. Below is a list of the cookies that get set on the playframework.com domain. Blocking some types of cookies may impact your experience of the site and the services we are able to offer.</p>
16+
<p>Because we respect your right to privacy, you <a onclick="OneTrust.ToggleInfoDisplay();">can choose</a> not to allow some types of cookies. Below is a list of the cookies that get set on the playframework.com domain. Blocking some types of cookies may impact your experience of the site and the services we are able to offer.</p>
1717
<p><a class="optanon-toggle-display button">COOKIE SETTINGS</a></p>
1818
<br><hr><br>
1919
<h1>Cookie Listing</h1>
2020
<!-- OneTrust Cookies Policy start -->
21-
<div id="optanon-cookie-policy"></div>
21+
<div id="ot-sdk-cookie-policy"></div>
2222
<!-- OneTrust Cookies Policy end -->
2323

2424
</article>

app/views/main.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<meta name="google-site-verification" content="9oxXjOc4jWfnf21Iep-0dc2sDawa14s-Gpwho_yb5AU" />
2222

2323
<!-- OneTrust Cookies Consent Notice (Production Standard, playframework.com, en-GB) start -->
24-
<script src="https://optanon.blob.core.windows.net/consent/cf9a6823-fec0-455d-b6c6-5f386804e808.js" type="text/javascript" charset="UTF-8"></script>
24+
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="f6af8492-c939-49d1-98d9-0b5cde6ce6d2" ></script>
2525
@views.html.helper.script(Symbol("type") -> "text/javascript") {
2626
function OptanonWrapper() {
2727
//one trust inserts here
@@ -177,7 +177,7 @@ <h3>Social networks</h3>
177177
</div>
178178
<div class="lb-legal">
179179
<p>
180-
&copy; Lightbend 2018 |
180+
&copy; Lightbend 2021 |
181181
<a href="https://www.lightbend.com/legal/licenses" target="_blank">Licenses</a> |
182182
<a href="https://www.lightbend.com/legal/terms" target="_blank">Terms</a> |
183183
<a href="https://www.lightbend.com/legal/privacy" target="_blank">Privacy Policy</a> |

0 commit comments

Comments
 (0)