-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcookier.css
More file actions
73 lines (66 loc) · 1.32 KB
/
cookier.css
File metadata and controls
73 lines (66 loc) · 1.32 KB
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
65
66
67
68
69
70
71
72
73
/*
* Cookie alert by Decaded
* https://github.com/Decaded/Cookier
* Released under MIT license
*/
/* Styling for the cookie consent alert */
.cookierAlert {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
margin: 0 !important;
z-index: 999;
opacity: 0;
visibility: hidden;
border-radius: 0;
transform: translateY(100%);
transition: all 500ms ease-out;
color: #ecf0f1;
background: #212327;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap; /* Allow dynamic wrapping if space is tight */
}
.cookierAlert.show {
opacity: 1;
visibility: visible;
transform: translateY(0%);
transition-delay: 1000ms;
}
.cookierAlert a {
text-decoration: underline;
color: #4caf50;
margin-left: 10px;
}
.cookierAlert .closeCookierButton {
margin-left: 10px;
vertical-align: baseline;
padding: 5px 10px;
background-color: #4caf50;
color: white;
border: none;
cursor: pointer;
font-size: 1rem;
}
.cookierAlert .closeCookierButton:hover {
background-color: #45a049;
}
.cookierAlert p {
margin: 0;
padding: 15px;
font-weight: bold;
}
@media screen and (max-width: 768px) {
.cookierAlert {
flex-direction: column; /* Stacks the items vertically on smaller screens */
}
.cookierAlert p,
.cookierAlert a,
.cookierAlert .closeCookierButton {
margin-top: 10px;
}
}