Instantly share code, notes, and snippets.
Created
March 10, 2021 15:02
-
Star
1
(1)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save tobystokes/7b8edf5a9116322448958468a5e73edd to your computer and use it in GitHub Desktop.
CSS overrides for SMG CookiePro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* add link: | |
document.head.insertAdjacentHTML('beforeend','<link rel="stylesheet" id="onetrust-custom" href="https://group.smg.localhost/wp-content/themes/smgwptheme/css/cookies.css" type="text/css">'); | |
*/ | |
#onetrust-pc-sdk .ot-pc-footer-logo { | |
display: none; | |
} | |
#onetrust-banner-sdk #onetrust-policy-text, | |
#onetrust-banner-sdk .ot-b-addl-desc, | |
#onetrust-banner-sdk .ot-gv-list-handler { | |
font-size: 1.25rem; | |
font-weight: 300; | |
color: #000; | |
} | |
#onetrust-banner-sdk #onetrust-policy-text { | |
/* avoid close arrow */ | |
box-sizing: border-box; | |
padding-right: 1rem; | |
} | |
#onetrust-banner-sdk #onetrust-button-group { | |
display: flex; | |
flex-direction: column-reverse; | |
} | |
@media (min-width: 480px) { | |
#onetrust-banner-sdk #onetrust-button-group { | |
display: flex; | |
flex-direction: row-reverse; | |
justify-content: space-between; | |
} | |
#onetrust-banner-sdk #onetrust-accept-btn-handler, | |
#onetrust-banner-sdk #onetrust-reject-all-handler, | |
#onetrust-banner-sdk #onetrust-pc-btn-handler { | |
width: 100%; | |
} | |
} | |
#onetrust-banner-sdk .banner-actions-container { | |
float: none; | |
width: auto; | |
} | |
/* popup buttons */ | |
#onetrust-banner-sdk #onetrust-accept-btn-handler, | |
#onetrust-banner-sdk #onetrust-reject-all-handler, | |
#onetrust-banner-sdk #onetrust-pc-btn-handler { | |
font-size: 1.25rem; | |
text-transform: uppercase; | |
border-radius: 0; | |
width: auto; | |
display: block; | |
} | |
#onetrust-banner-sdk #onetrust-pc-btn-handler { | |
border-color: #000; | |
color: #000; | |
} | |
@media (max-width: 480px) { | |
#onetrust-banner-sdk #onetrust-accept-btn-handler, | |
#onetrust-banner-sdk #onetrust-reject-all-handler, | |
#onetrust-banner-sdk #onetrust-pc-btn-handler { | |
width: 100%; | |
} | |
} | |
#onetrust-banner-sdk .has-reject-all-button .banner-actions-container { | |
max-width: none; | |
} | |
/* paragraphs */ | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-description, | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group-desc { | |
font-size: 1.5rem; | |
line-height: 1.25; | |
font-weight: inherit; | |
color: inherit; | |
} | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy span, | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a { | |
color: inherit; | |
} | |
/* h3 & h4 but styled as h2 */ | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-title, | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group { | |
color: inherit; | |
font-size: 1.875rem; | |
font-weight: 700; | |
text-transform: uppercase; | |
margin-top: 2em; | |
margin-bottom: 1em; | |
letter-spacing: 0.015em; | |
} | |
/* h4 */ | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group { | |
margin-top: 2em; | |
margin-bottom: 1em; | |
} | |
/* tables, match elsewhere in Wordpress sites? */ | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table, | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table td, | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table th { | |
border-collapse: collapse; | |
border-color: #333; | |
border-radius: 0; | |
font-size: 1em; | |
} | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table th[scope="col"] { | |
color: #fff; | |
background-color: #666; | |
} | |
#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table td { | |
color: inherit; | |
} | |
/* Privacy Preference Center */ | |
#onetrust-pc-sdk button, | |
#onetrust-pc-sdk .ot-btn-container button { | |
/* font-size: 1.25rem; */ | |
text-transform: uppercase; | |
border-radius: 0; | |
} | |
#onetrust-consent-sdk #onetrust-pc-sdk #ot-pc-desc { | |
font-size: 1rem; | |
font-weight: 300; | |
color: #000; | |
} | |
#onetrust-consent-sdk #onetrust-pc-sdk #ot-pc-title, | |
#onetrust-consent-sdk #onetrust-pc-sdk h3 { | |
color: inherit; | |
font-weight: 700; | |
text-transform: uppercase; | |
letter-spacing: 0.015em; | |
} | |
#onetrust-pc-sdk .ot-pc-footer { | |
background-color: #fff; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment