Skip to content

Commit 2de6290

Browse files
author
Richard Summerhayes
committed
update to ccpa cookie banner
1 parent f95c594 commit 2de6290

3 files changed

Lines changed: 46 additions & 2 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>Your Privacy</h1>
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: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)