1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-29 00:57:50 +02:00
market/src/components/Privacy/PrivacyPreferenceCenter.module.css

123 lines
1.9 KiB
CSS
Raw Normal View History

GDPR Compliance (#796) * add cookie utils * add gdpr metadata for ppc * add graphql typeDefs for GDPR metadata * add ppc variable to app config * add ppc user preference * add switch component * add ppc components * add cookie consent provider * add consent provider to wrapRootElement * add ppc to app component * add cookie button to footer component * add ppc to site metadata query * add styles for buttons in footer * add switch component unit tests * renewed siteMetadata json for testing * add gdpr metadata for testing * add cookie module unit test * add cookie module tests * add customizable format to time component * add english privacy policy * add privacy policy slugs to user preferences and appConfig * add privacy policy components * add autolink for policy md navigation * only show language select for multiple policies * add gatsby policy page creation * use new privacy slug user preference * add to top button styling for markdown pages * add policies for de, es & fr * add pointer events to toTop buttons css * add privacy policy basic unit test * outsource scroll button component * import cleanup * add customizable delay for debounce * add scroll button unit tests * add disclaimer component * add disclaimer fields as optional fields in PublishJsonData * add acces type disclaimer * adjusted help for desc and author fields * add disclaimer unit tests * minor adjustment to test * add print button to history page * naming changes for better readability * add cookies hash to policies * ppc disabled per default * fix react unknown prop for disclaimer * minor adjustments to cookie utils * add gdpr example file * change exposed gdpr metadata scope by useConsent * update README * readme fixes * emoji fix * added imprint * adjustments to gdpr.json structure and related graphql type * add default values for ppc * Update app.config.js Fixed typo. * change variable name for consistency, remove console logs * readability * adjust css selector order to be consistent * Update fr.md updated policy * Update es.md updated policy * Update en.md updated policy * Update de.md * fix type issue * replace language select input with links * remove scroll button from codebase * change privacy policy route to /privacy * remove Do Not Track detection * add size to checkbox / radio inputs * replace switch component with checkbox inputs * fix plain text links * remove console log * refactor privacy policy pages to use PageMarkdown template * setup useUserPreferences mock for unit tests * unit tests forprivacy policy components * setup discalimer to use alert component * Apply .env suggestions from code review Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com> * move gdpr example to gdpr.json * adjustments to address .env approach for appConfig.privacyPreferenceCenter * update readme * add small styling option to ppc * update README * add ppc unit tests * update comments * Update README.md Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com> * Merge print into profile history * add inifiniteApproval to UserPreference fixture * changed default styling of PPC to small Co-authored-by: Frederic Schwill <41265505+fr-3deric@users.noreply.github.com> Co-authored-by: MeikeMolitor <88214332+MeikeMolitor@users.noreply.github.com> Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
2021-10-12 10:00:57 +02:00
.banner {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
background: var(--background-body-transparent);
backdrop-filter: blur(4px);
padding: calc(var(--spacer) / 2);
min-height: 100vh;
}
.banner p {
margin: 0;
}
.buttons {
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
padding: var(--spacer) 0;
border-bottom: 1px solid var(--brand-grey-lighter);
}
.configureButton {
display: none;
}
.closeButton {
margin-top: var(--spacer);
}
.header {
font-size: var(--font-size-large);
font-weight: bold;
margin-bottom: calc(var(--spacer) / 2);
}
.wrapper {
max-width: 90vw;
position: fixed;
left: 0;
top: 0;
bottom: 0;
height: 100vh;
z-index: 10;
overflow-y: auto;
box-shadow: 6px 0 17px var(--box-shadow-color);
opacity: 1;
transition: all 0.3s ease-out;
}
/* Small Cookie Banner Styles */
.wrapper.small {
bottom: var(--spacer);
left: var(--spacer);
top: auto;
width: calc(100vw - (var(--spacer) * 2));
max-width: 42rem;
overflow: hidden;
height: auto;
}
.small .banner {
display: block;
min-height: 0;
}
.small .header {
font-size: var(--font-size-normal);
margin-bottom: calc(var(--spacer) / 4);
}
.small p {
font-size: var(--font-size-small);
}
.small .buttons {
flex-direction: column;
border: none;
padding: calc(var(--spacer) / 6);
}
.small .buttons button {
margin: calc(var(--spacer) / 6);
width: 100%;
}
.small .configureButton {
display: block;
}
.small .optionals {
display: none;
}
.small .closeButton {
margin: calc(var(--spacer) / 4) auto 0;
}
/* Hide and show the Cookie Banner */
.wrapper.hidden {
left: -25rem;
opacity: 0;
box-shadow: none;
}
/* Adjust for larger screen sizes */
@media screen and (min-width: 26rem) {
.wrapper {
max-width: 25rem;
}
}
@media screen and (min-width: 38rem) {
.small .container {
display: flex;
}
}