-
-
Notifications
You must be signed in to change notification settings - Fork 12
docs: add cookiebot to storybook #63
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
Open
lyjeileen
wants to merge
2
commits into
rustic-ai:main
Choose a base branch
from
lyjeileen:google-analytics
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,34 @@ | ||
| <script async src="https://www.googletagmanager.com/gtag/js?id=G-FK58C1XN5P"></script> | ||
| <script | ||
| id="cookiebot" | ||
| src="https://consent.cookiebot.com/uc.js" | ||
| data-cbid='7cfd3819-2ae8-4de9-bf89-6ed28fb8bce4' | ||
| data-blockingmode="auto" | ||
| type="text/javascript" | ||
| defer></script> | ||
| window.dataLayer = window.dataLayer || []; | ||
| function gtag() { | ||
| dataLayer.push(arguments); | ||
| } | ||
| gtag("consent", "default", { | ||
| ad_storage: "denied", | ||
| analytics_storage: "denied", | ||
| functionality_storage: "denied", | ||
| personalization_storage: "denied", | ||
| security_storage: "granted", | ||
| wait_for_update: 500, | ||
| }); | ||
| gtag("set", "ads_data_redaction", true); | ||
| gtag("set", "url_passthrough", true); | ||
|
|
||
| gtag('js', new Date()); | ||
| gtag('config', 'G-FK58C1XN5P'); | ||
| </script> | ||
| <script | ||
| id="cookiebot" | ||
| src="https://consent.cookiebot.com/uc.js" | ||
| data-cbid='7cfd3819-2ae8-4de9-bf89-6ed28fb8bce4' | ||
| data-blockingmode="auto" | ||
| type="text/javascript" | ||
| defer></script> | ||
| <link rel="shortcut icon" href="images/favicon.jpg" /> | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,321 @@ | ||
| /* This styling replaces the Cookiebot logo in the widget with text */ | ||
| #CookiebotWidget > button.CookiebotWidget-logo { | ||
| background: black; | ||
| width: 160px; | ||
| padding: 13px; | ||
| border-radius: 24px; | ||
| } | ||
|
|
||
| button.CookiebotWidget-logo:before { | ||
| font-weight: bold; | ||
| content: 'Manage Cookies'; | ||
| left: 20px; | ||
| color: white; | ||
| visibility: visible; | ||
| } | ||
|
|
||
| .CookiebotWidget-open > button.CookiebotWidget-logo { | ||
| display: none !important; | ||
| } | ||
|
|
||
| .CookiebotWidget-logo > svg { | ||
| display: none !important; | ||
| } | ||
|
|
||
| /* End of Cookiebot widget styling */ | ||
|
|
||
| /* | ||
| This styling is to customize the cookiebot template | ||
| */ | ||
|
|
||
| body > #CybotCookiebotDialog { | ||
| padding-top: 24px; | ||
| padding-bottom: 36px; | ||
| width: 100% !important; | ||
| box-shadow: 4px 4px 14px 4px #0000001c; | ||
| border-radius: 0px; | ||
| font-family: Roboto, sans-serif; | ||
| color: #505050; | ||
| transform: none !important; | ||
| max-height: calc(100% - 24px) !important; | ||
| overflow: scroll; | ||
| } | ||
|
|
||
| body > #CybotCookiebotDialog > #CybotCookiebotDialogBody { | ||
| max-width: 96%; | ||
| padding-right: 0px !important; | ||
| } | ||
|
|
||
| /* Text content */ | ||
|
|
||
| #CybotCookiebotDialogBody > #CybotCookiebotDialogBodyContent { | ||
| padding: 12px 0 12px 0; | ||
| padding-left: 0px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyContent > #CybotCookiebotDialogBodyContentTitle { | ||
| font-size: 18pt; | ||
| margin: 2px 0 12px; | ||
| color: #161616; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyContent > #CybotCookiebotDialogBodyContentText { | ||
| color: #303030; | ||
| } | ||
|
|
||
| /* Logo image */ | ||
|
|
||
| #CybotCookiebotDialogPoweredbyLink > #CybotCookiebotDialogPoweredbyImage { | ||
| width: 0px; | ||
| } | ||
|
|
||
| /* Buttons */ | ||
|
|
||
| #CybotCookiebotDialogBody | ||
| > #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper { | ||
| display: inline; | ||
| float: right; | ||
| width: 60%; | ||
| margin-bottom: 12px; | ||
| text-transform: capitalize; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinDeclineAll { | ||
| width: auto !important; | ||
| max-width: 200px; | ||
| padding: 8px 52px; | ||
| border-radius: 16px; | ||
| color: #1e0c04; | ||
| background-color: transparent; | ||
| border: 1.5px #d0c4be solid; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection { | ||
| width: auto !important; | ||
| max-width: 200px; | ||
| padding: 8px 52px; | ||
| border-radius: 16px; | ||
| color: #1e0c04; | ||
| background-color: transparent; | ||
| border: 1.5px #d0c4be solid; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll { | ||
| width: auto !important; | ||
| max-width: 200px; | ||
| padding: 8px 52px; | ||
| border-radius: 16px; | ||
| color: #1e0c04; | ||
| background-color: #ff6928; | ||
| border: 1.5px #d0c4be solid; | ||
| } | ||
|
|
||
| /* Selection */ | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtons | ||
| > #CybotCookiebotDialogBodyLevelButtonsTable { | ||
| width: auto !important; | ||
| display: block !important; | ||
| margin: 0 !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelButtonsRow { | ||
| height: 41px; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelButtonsSelectPane, | ||
| #CybotCookiebotDialogBodyLevelDetailsWrapper { | ||
| line-height: 28px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelButtonsSelectPane { | ||
| border-radius: 8px 0 0 8px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBody | ||
| > #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtons { | ||
| margin-left: 1px !important; | ||
| display: inline; | ||
| float: left; | ||
| width: 38%; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelButtonsTable | ||
| > #CybotCookiebotDialogBodyLevelButtonsRow | ||
| > #CybotCookiebotDialogBodyLevelDetailsWrapper { | ||
| border-radius: 0px 8px 8px 0; | ||
| background-color: #f7f7f7; | ||
| padding: 6px 0 3px 4px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelButtonsRow | ||
| > #CybotCookiebotDialogBodyLevelDetailsWrapper | ||
| > #CybotCookiebotDialogBodyLevelDetailsButton { | ||
| color: #505050; | ||
| font-weight: 600; | ||
| } | ||
|
|
||
| #CybotCookiebotDialog | ||
| > #CybotCookiebotDialogDetail | ||
| > #CybotCookiebotDialogDetailBody { | ||
| max-width: 96% !important; | ||
| margin-top: 5px; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogDetailBody | ||
| > #CybotCookiebotDialogDetailBodyContent | ||
| > #CybotCookiebotDialogDetailBodyContentTextOverview { | ||
| width: 100%; | ||
| display: block; | ||
| } | ||
|
|
||
| .CybotCookiebotDialogBodyLevelButtonWrapper > label { | ||
| text-transform: none !important; | ||
| font-weight: 600 !important; | ||
| letter-spacing: unset; | ||
| } | ||
|
|
||
| /* | ||
| Responsiveness | ||
| */ | ||
|
|
||
| /* Adjustments to Laptop */ | ||
|
|
||
| @media screen and (max-width: 1115px) { | ||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinDeclineAll { | ||
| padding: 8px 24px; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection { | ||
| padding: 8px 24px; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll { | ||
| padding: 8px 24px; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelButtonsTable | ||
| > #CybotCookiebotDialogBodyLevelButtonsRow | ||
| > #CybotCookiebotDialogBodyLevelDetailsWrapper { | ||
| padding: 12px 0 3px 4px !important; | ||
| } | ||
| } | ||
|
|
||
| /* Tablet */ | ||
|
|
||
| @media screen and (max-width: 834px) { | ||
| #CybotCookiebotDialogBody | ||
| > #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper { | ||
| width: 100%; | ||
| display: flex !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinDeclineAll { | ||
| padding: 8px 24px; | ||
| margin-left: 0px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBody | ||
| > #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtons { | ||
| width: 100%; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelButtonsTable | ||
| > #CybotCookiebotDialogBodyLevelButtonsRow | ||
| > #CybotCookiebotDialogBodyLevelDetailsWrapper { | ||
| padding: 6px 0 3px 4px !important; | ||
| } | ||
| } | ||
|
|
||
| /* Mobile */ | ||
|
|
||
| @media screen and (max-width: 605px) { | ||
| body > #CybotCookiebotDialog { | ||
| padding-top: 12px; | ||
| } | ||
|
|
||
| body > #CybotCookiebotDialog > #CybotCookiebotDialogBody { | ||
| max-width: 96%; | ||
| min-width: 250px; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBody | ||
| > #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper { | ||
| width: 100%; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinDeclineAll { | ||
| max-width: 100%; | ||
| margin-left: 0px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelection { | ||
| max-width: 100%; | ||
| margin-left: 0px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowallSelectionWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll { | ||
| max-width: 100%; | ||
| margin-left: 0px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBody | ||
| > #CybotCookiebotDialogBodyLevelWrapper | ||
| > #CybotCookiebotDialogBodyLevelButtons { | ||
| width: auto; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyContent > #CybotCookiebotDialogBodyContentTitle { | ||
| font-size: 16px; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBody > #CybotCookiebotDialogBodyContent { | ||
| padding: 6px 0 6px 0; | ||
| padding-left: 0px !important; | ||
| } | ||
|
|
||
| #CybotCookiebotDialogBodyLevelButtonsTable | ||
| > #CybotCookiebotDialogBodyLevelButtonsRow | ||
| > #CybotCookiebotDialogBodyLevelDetailsWrapper { | ||
| padding: 6px 0 3px 4px !important; | ||
| } | ||
| } | ||
|
|
||
| @media screen and (max-width: 496px) { | ||
| #CybotCookiebotDialogBodyLevelButtonsTable | ||
| > #CybotCookiebotDialogBodyLevelButtonsRow | ||
| > #CybotCookiebotDialogBodyLevelDetailsWrapper { | ||
| padding: 10px 0 3px 4px !important; | ||
| } | ||
| } | ||
|
|
||
| /* | ||
| End of Cookies banner styling | ||
| */ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.