Branchwell

Inkspring / website / public / analytics.css

1/* Inkspring analytics consent banner, added by analytics.js. */
2.analytics-choice {
3 --ga-accent: color-mix(in srgb, var(--accent) 65%, var(--accent-2));
4 position: fixed;
5 z-index: 1000;
6 bottom: 20px;
7 left: 50%;
8 transform: translateX(-50%);
9 width: min(980px, calc(100% - 40px));
10 display: flex;
11 align-items: center;
12 gap: 18px;
13 padding: 24px;
14 color: var(--ink);
15 background: var(--paper);
16 border: 1px solid var(--ink-line);
17 border-radius: 20px;
18 box-shadow: 0 12px 36px rgb(64 37 22 / 18%);
19 font: inherit;
20 text-align: left;
21}
22.analytics-choice[hidden] { display: none; }
23.analytics-choice-mark {
24 align-self: start;
25 flex: none;
26 border-radius: 24%;
27 box-shadow: 0 1px 2px rgb(64 37 22 / 12%), 0 3px 7px rgb(64 37 22 / 15%);
28}
29.analytics-choice h2 { margin: 0 0 5px; font: 500 26px/1.1 var(--serif); }
30.analytics-choice p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
31.analytics-choice p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
32.analytics-choice-actions { display: flex; gap: 8px; flex-shrink: 0; }
33.analytics-choice-actions button {
34 padding: 12px 18px;
35 min-height: 44px;
36 border: 1px solid var(--ink-line);
37 border-radius: 999px;
38 background: transparent;
39 color: var(--accent-2);
40 font: inherit;
41 font-size: 13px;
42 font-weight: 600;
43 cursor: pointer;
44}
45.analytics-choice-actions button:hover { border-color: var(--ga-accent); background: var(--paper-2); }
46.analytics-choice-actions .analytics-allow { background: var(--ga-accent); color: white; border-color: var(--ga-accent); }
47.analytics-choice-actions .analytics-allow:hover { background: var(--accent-2); border-color: var(--accent-2); }
48.analytics-choice :focus-visible, .analytics-settings-link:focus-visible { outline: 3px solid var(--ga-accent, currentColor); outline-offset: 4px; }
49.analytics-settings-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
50.analytics-settings-link:hover { text-decoration: underline; text-underline-offset: 3px; }
51@media (max-width: 768px) {
52 .analytics-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px; max-height: calc(100dvh - 40px); overflow: auto; }
53 .analytics-choice-actions { grid-column: 1 / -1; flex-wrap: wrap; }
54 .analytics-choice-actions button { flex: 1; }
55}