Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dev to Main] >>> Revamped Cookie banner on tutorials page #91

Merged
merged 3 commits into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 145 additions & 21 deletions src/templates/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -679,32 +679,156 @@ table{
}

// Cookie banner
#hs-banner-parent{
.hs-cookie-notification-position-bottom{
width: calc(min(28em, 100%)) !important;
left: calc(min(15em, 100%)) !important;
#hs-banner-parent {
a {
color: #09c0a1 !important;
&:hover {
color: #007d85 !important;
text-decoration: underline !important;
}
}
.hs-cookie-notification-position-bottom {
width: calc(min(26.5em, 100%)) !important;
left: calc(min(18.7em, 100%)) !important;
@media only screen and (max-width: 767px) {
left: 3%;
bottom: 2%;
width: 95%;
}
@media only screen and (min-width:768px) and (max-width: 1023px) {
left: 20%;
bottom: 10%;
width: 35%;
}
#hs-eu-cookie-confirmation-inner{
@apply p-8;
#hs-eu-policy-wording{
@apply mr-0 mb-4;
left: 3% !important;
bottom: 2% !important;
max-width: 95% !important;
}
@media only screen and (min-width: 768px) and (max-width: 1023px) {
left: 20% !important;
bottom: 10% !important;
max-width: 35% !important;
}
#hs-eu-cookie-confirmation-inner {
padding: 2rem;
#hs-eu-policy-wording {
strong {
margin: 0 0 1rem 0;
font-size: 14px !important;
line-height: 24px !important;
color: #5f5f5f !important;
font-weight: 300 !important;
}
}
#hs-eu-cookie-confirmation-buttons-area {
justify-content: center;
margin-right: 0;
#hs-eu-confirmation-button-group {
flex-flow: row;
#hs-eu-cookie-settings-button {
padding: 10px 25px !important;
text-align: center !important;
font-size: 14px !important;
line-height: 20px !important;
border: 0.5px solid #d0d5dd !important;
color: #0a1a2a !important;
min-width: 12em !important;
text-decoration: none !important;
}
#hs-eu-confirmation-button,
#hs-eu-cookie-settings-button {
font-weight: 600 !important;
border-radius: 5px !important;
&:hover {
color: white !important;
background-color: #007d85 !important;
border-color: #007d85 !important;
}
}
}
}
#hs-eu-decline-button {
display: none;
}
#hs-eu-cookie-confirmation-buttons-area{
@apply justify-center mr-0;
#hs-eu-decline-button{
@apply hidden;
}
}
}
#hs-modal {
a {
color: #09c0a1 !important;
}
#hs-modal-introduction {
font-size: 16px !important;
}
#hs-modal-introduction-description {
p {
font-size: 14px !important;
line-height: 24px !important;
font-weight: 400 !important;
color: #5f5f5f !important;
}
}
#hs-modal-body-container{
gap: 0 !important;
}
#hs-categories-container {
padding-top: 20px !important;
.hs-category-row {
border-top: #d0d5ddbd !important;
border-style: solid !important;
border-width: 1px 0 0 0 !important;
padding: 15px 10px 0 !important;
.hs-toggle-switch {
width: calc(34px + 2px) !important;
height: calc(18px + 2px) !important;
.hs-toggle-switch-nob{
height: 14px !important;
width: 14px !important;
}
}
.hs-toggle-selected-flag{
.hs-toggle-switch-nob{
left: 56% !important;
}
}
.hs-category-label{
gap: 5px !important;
}
}
#hs-category-analytics,
#hs-category-necessary,
#hs-category-advertisement,
#hs-category-functionality {
span {
font-size: 18px !important;
line-height: 24px !important;
font-weight: 600 !important;
}
}
.hs-category-description {
font-size: 14px !important;
line-height: 20px !important;
font-weight: 400 !important;
color: #5f5f5f !important;
}
.visible {
padding-top: 15px;
padding-left: 20px !important;
}
}
.hs-always-active-label {
font-size: 14px !important;
line-height: 20px !important;
font-weight: 600 !important;
color: #09c0a1 !important;
}
#hs-modal-footer-container {
#hs-modal-accept-all {
order: 2 !important;
}
#hs-modal-accept-all,
#hs-modal-save-settings {
font-weight: 600 !important;
&:hover {
background-color: #007d85 !important;
border: #007d85 !important;
color: white !important;
}
}
}
#hs-modal-footer{
padding-top: 12px !important;
}
}

Expand Down
Loading