-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubtle-bottom-right.css
64 lines (55 loc) · 1.63 KB
/
subtle-bottom-right.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
:root {
--cookie-consent-spacing-large: calc(
var(--cookie-consent-spacing-medium) * 1.75
);
--cookie-consent-spacing-medium: 0.5rem;
--cookie-consent-spacing-small: calc(
var(--cookie-consent-spacing-medium) / 2
);
--cookie-consent-color-primary: black;
--cookie-consent-color-secondary: #a9a9b3;
}
.cookie-consent {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
margin: var(--cookie-consent-spacing-small);
padding: var(--cookie-consent-spacing-small)
var(--cookie-consent-spacing-medium);
gap: var(--cookie-consent-spacing-small) var(--cookie-consent-spacing-large);
background-color: inherit;
border-radius: 10px;
/* Ensure nothing overflows on page or flex + fixed position does not work. */
position: fixed;
bottom: 0;
right: 0;
}
.cookie-consent__text {
padding-inline-end: var(--cookie-consent-spacing-large);
border-inline-end: 1px solid var(--cookie-consent-color-secondary);
}
.cookie-consent__buttons {
display: flex;
flex-flow: row wrap;
justify-content: center;
text-align: center;
align-items: center;
gap: var(--cookie-consent-spacing-small) var(--cookie-consent-spacing-large);
}
.cookie-consent__button {
cursor: pointer;
border-radius: 3px;
}
.cookie-consent__button--ok {
background: var(--cookie-consent-color-secondary);
color: var(--cookie-consent-color-primary);
/* Vertical (top/bottom) */
padding-block: var(--cookie-consent-spacing-small);
/* Horizontal (left/right) */
padding-inline: var(--cookie-consent-spacing-medium);
}
.cookie-consent__button--more > a {
color: inherit;
text-decoration: underline;
}