Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

1.2 KB
Raw Blame
/* Cookie Consent Modal Styling - Ensure proper z-index */

/* Ensure cookie consent appears above everything */
#cc-main,
/* Additional styling if needed */
.cm-wrapper,
.pm-wrapper {
  z-index: 999999 !important;
}

/* Dark mode styling — use the app's dark-theme design tokens so the banner
 * matches the rest of the UI (navy-indigo surfaces) instead of a flat grey. */
.cc--darkmode .cm,
.cc--darkmode .pm {
  background: var(--c-surface) !important;
  color: var(--c-text) !important;
  border: 1px solid var(--c-border-subtle) !important;
}

.cc--darkmode .pm-overlay {
  background: var(--c-overlay) !important;
}

/* Buttons — match the shared neutral surface treatment. */
.cc--darkmode .cm__btn,
.cc--darkmode .pm__btn {
  background: var(--c-surface-sunken) !important;
  color: var(--c-text) !important;
  border: 1px solid var(--c-border) !important;
}

.cc--darkmode .cm__btn:hover,
.cc--darkmode .pm__btn:hover {
  background: var(--c-hover) !important;
}

/* Ensure ScrollArea doesn't interfere */
.mantine-ScrollArea-root {
  position: relative !important;
}

/* Override any potential conflicts */
[data-mantine-color-scheme="dark"] #cc-main {
  color: var(--c-text) !important;
}