Skip to content

Instantly share code, notes, and snippets.

@tbekaert
Created January 7, 2021 09:31
Show Gist options
  • Save tbekaert/67ecb5144c52327191ebf98bb8fc3382 to your computer and use it in GitHub Desktop.
Save tbekaert/67ecb5144c52327191ebf98bb8fc3382 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@400;700&display=swap');
#onetrust-consent-sdk{
#onetrust-banner-sdk.otCenterRounded{
top: 0;
position: fixed;
right: 0;
background-color: transparent;
width: 100%;
max-width: 100vw;
border-radius: 0;
left: 0;
margin: 0;
font-size: 14px;
max-height: 100vh;
bottom: 0;
box-shadow: none;
transform: none;
&:before{
content: '';
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
position: fixed;
background: #262424;
opacity: 0.7;
}
.ot-sdk-container{
top: 50%;
transform: translateY(-50%);
width: calc(100% - 24px);
max-width: 560px;
background: #FFFFFF;
box-shadow: 0px 1px 6px rgba(38, 36, 36, 0.2);
border-radius: 4px;
padding: 16px 12px 32px;
font-family: 'Roboto', sans-serif;
}
#onetrust-policy {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
margin: 0;
.banner-header {
#onetrust-close-btn-container{
margin: 0;
position: absolute;
top: 8px;
right: 8px;
}
.onetrust-close-btn-handler{
margin: 0;
display: block;
width: 24px;
height: 24px;
background-image: url(https://img.saveur-biere.com/asset/2021_01_06_17_51_07_24CircleCrossDark.svg);
background-size: 24px;
background-position: 50% 50%;
background-repeat: no-repeat;
&:hover,
&:focus{
outline: none;
opacity: 1;
}
}
}
&:before {
content: '';
width: 120px;
height: 120px;
background-image: url(https://img.saveur-biere.com/asset/2021_01_06_17_47_04_100Cookies.svg);
background-size: 100%;
background-repeat: no-repeat;
}
}
#onetrust-policy-title {
margin: 0;
padding: 0;
width: 100%;
text-align: center;
font-family: 'Roboto Condensed', sans-serif;
font-style: normal;
font-weight: bold;
font-size: 28px;
line-height: 34px;
color: #262424;
}
#onetrust-policy-text {
margin: 16px 0 0;
font-size: 16px;
line-height: 24px;
text-align: center;
color: #4D4B49;
width: 100%;
a {
font-weight: 400;
}
}
#onetrust-group-container{
padding: 0 4px;
}
#onetrust-button-group-parent{
padding: 24px 0 0;
#onetrust-button-group{
display: flex;
justify-content: center;
align-items: center;
flex-direction: row-reverse;
@media only screen and (max-width: 600px) {
justify-content: space-between;
}
.banner-actions-container{
float: none;
width: auto;
}
#onetrust-accept-btn-handler,
#onetrust-pc-btn-handler{
box-sizing: border-box;
width: 160px;
margin: 0 4px;
font-family: 'Roboto Condensed', sans-serif;
font-weight: bold;
font-size: 18px;
line-height: 18px;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
padding: 13px 0;
border-radius: 24px;
outline: none;
border-width: 2px;
transition: all 300ms;
&:hover,
&:focus{
background: white;
color: #262424;
opacity: 1;
border-color: #262424;
}
@media only screen and (max-width: 600px) {
margin: 0;
}
}
}
}
}
#onetrust-pc-sdk{
font-family: 'Roboto', sans-serif;
> .ot-pc-header{
box-sizing: border-box;
position: relative;
border-bottom: none;
}
#close-pc-btn-handler{
margin: 0;
position: absolute;
top: 50%;
right: 8px;
transform: translateY(-50%);
margin: 0;
display: block;
width: 24px;
height: 24px;
background-image: url(https://img.saveur-biere.com/asset/2021_01_06_17_51_07_24CircleCrossDark.svg);
background-size: 24px;
background-position: 50% 50%;
background-repeat: no-repeat;
&:hover,
&:focus{
outline: none;
opacity: 1;
}
}
.ot-btn-container{
display: flex;
justify-content: space-around;
}
#accept-recommended-btn-handler,
.ot-pc-refuse-all-handler,
.save-preference-btn-handler{
margin-right: 0;
box-sizing: border-box;
min-width: 160px;
font-family: 'Roboto Condensed', sans-serif;
font-weight: bold;
font-size: 18px;
line-height: 18px;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
padding: 13px;
border-radius: 24px;
outline: none;
border-width: 2px;
transition: all 300ms;
&:hover,
&:focus{
background: white;
color: #262424;
opacity: 1;
border-color: #262424;
}
}
button:not(#clear-filters-handler):not(.ot-close-icon):not(#filter-btn-handler):not(.ot-remove-objection-handler):not(.ot-obj-leg-btn-handler):not([aria-expanded]):not(.ot-link-btn).ot-pc-refuse-all-handler{
border-color: #262424;
background-color: #262424;
color: white;
}
.ot-pc-footer {
max-height: auto;
border: none;
}
}
}
@import url("https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed:wght@400;700&display=swap");
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded {
top: 0;
position: fixed;
right: 0;
background-color: transparent;
width: 100%;
max-width: 100vw;
border-radius: 0;
left: 0;
margin: 0;
font-size: 14px;
max-height: 100vh;
bottom: 0;
box-shadow: none;
transform: none;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded:before {
content: "";
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
position: fixed;
background: #262424;
opacity: 0.7;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded .ot-sdk-container {
top: 50%;
transform: translateY(-50%);
width: calc(100% - 24px);
max-width: 560px;
background: #FFFFFF;
box-shadow: 0px 1px 6px rgba(38, 36, 36, 0.2);
border-radius: 4px;
padding: 16px 12px 32px;
font-family: "Roboto", sans-serif;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
margin: 0;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy .banner-header #onetrust-close-btn-container {
margin: 0;
position: absolute;
top: 8px;
right: 8px;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy .banner-header .onetrust-close-btn-handler {
margin: 0;
display: block;
width: 24px;
height: 24px;
background-image: url(https://img.saveur-biere.com/asset/2021_01_06_17_51_07_24CircleCrossDark.svg);
background-size: 24px;
background-position: 50% 50%;
background-repeat: no-repeat;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy .banner-header .onetrust-close-btn-handler:hover, #onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy .banner-header .onetrust-close-btn-handler:focus {
outline: none;
opacity: 1;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy:before {
content: "";
width: 120px;
height: 120px;
background-image: url(https://img.saveur-biere.com/asset/2021_01_06_17_47_04_100Cookies.svg);
background-size: 100%;
background-repeat: no-repeat;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy-title {
margin: 0;
padding: 0;
width: 100%;
text-align: center;
font-family: "Roboto Condensed", sans-serif;
font-style: normal;
font-weight: bold;
font-size: 28px;
line-height: 34px;
color: #262424;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy-text {
margin: 16px 0 0;
font-size: 16px;
line-height: 24px;
text-align: center;
color: #4D4B49;
width: 100%;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-policy-text a {
font-weight: 400;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-group-container {
padding: 0 4px;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent {
padding: 24px 0 0;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group {
display: flex;
justify-content: center;
align-items: center;
flex-direction: row-reverse;
}
@media only screen and (max-width: 600px) {
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group {
justify-content: space-between;
}
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group .banner-actions-container {
float: none;
width: auto;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group #onetrust-accept-btn-handler,
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group #onetrust-pc-btn-handler {
box-sizing: border-box;
width: 160px;
margin: 0 4px;
font-family: "Roboto Condensed", sans-serif;
font-weight: bold;
font-size: 18px;
line-height: 18px;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
padding: 13px 0;
border-radius: 24px;
outline: none;
border-width: 2px;
transition: all 300ms;
}
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group #onetrust-accept-btn-handler:hover, #onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group #onetrust-accept-btn-handler:focus,
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group #onetrust-pc-btn-handler:hover,
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group #onetrust-pc-btn-handler:focus {
background: white;
color: #262424;
opacity: 1;
border-color: #262424;
}
@media only screen and (max-width: 600px) {
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group #onetrust-accept-btn-handler,
#onetrust-consent-sdk #onetrust-banner-sdk.otCenterRounded #onetrust-button-group-parent #onetrust-button-group #onetrust-pc-btn-handler {
margin: 0;
}
}
#onetrust-consent-sdk #onetrust-pc-sdk {
font-family: "Roboto", sans-serif;
}
#onetrust-consent-sdk #onetrust-pc-sdk > .ot-pc-header {
box-sizing: border-box;
position: relative;
border-bottom: none;
}
#onetrust-consent-sdk #onetrust-pc-sdk #close-pc-btn-handler {
margin: 0;
position: absolute;
top: 50%;
right: 8px;
transform: translateY(-50%);
margin: 0;
display: block;
width: 24px;
height: 24px;
background-image: url(https://img.saveur-biere.com/asset/2021_01_06_17_51_07_24CircleCrossDark.svg);
background-size: 24px;
background-position: 50% 50%;
background-repeat: no-repeat;
}
#onetrust-consent-sdk #onetrust-pc-sdk #close-pc-btn-handler:hover, #onetrust-consent-sdk #onetrust-pc-sdk #close-pc-btn-handler:focus {
outline: none;
opacity: 1;
}
#onetrust-consent-sdk #onetrust-pc-sdk .ot-btn-container {
display: flex;
justify-content: space-around;
}
#onetrust-consent-sdk #onetrust-pc-sdk #accept-recommended-btn-handler,
#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-refuse-all-handler,
#onetrust-consent-sdk #onetrust-pc-sdk .save-preference-btn-handler {
margin-right: 0;
box-sizing: border-box;
min-width: 160px;
font-family: "Roboto Condensed", sans-serif;
font-weight: bold;
font-size: 18px;
line-height: 18px;
letter-spacing: 0;
text-align: center;
text-transform: uppercase;
padding: 13px;
border-radius: 24px;
outline: none;
border-width: 2px;
transition: all 300ms;
}
#onetrust-consent-sdk #onetrust-pc-sdk #accept-recommended-btn-handler:hover, #onetrust-consent-sdk #onetrust-pc-sdk #accept-recommended-btn-handler:focus,
#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-refuse-all-handler:hover,
#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-refuse-all-handler:focus,
#onetrust-consent-sdk #onetrust-pc-sdk .save-preference-btn-handler:hover,
#onetrust-consent-sdk #onetrust-pc-sdk .save-preference-btn-handler:focus {
background: white;
color: #262424;
opacity: 1;
border-color: #262424;
}
#onetrust-consent-sdk #onetrust-pc-sdk button:not(#clear-filters-handler):not(.ot-close-icon):not(#filter-btn-handler):not(.ot-remove-objection-handler):not(.ot-obj-leg-btn-handler):not([aria-expanded]):not(.ot-link-btn).ot-pc-refuse-all-handler {
border-color: #262424;
background-color: #262424;
color: white;
}
#onetrust-consent-sdk #onetrust-pc-sdk .ot-pc-footer {
max-height: auto;
border: none;
}
{
"sass": {
"compiler": "dart-sass/1.26.11",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment