Skip to content

Commit 267cad5

Browse files
committed
Style the banner
Signed-off-by: Chris Abraham <cjyabraham@gmail.com>
1 parent dfdc110 commit 267cad5

File tree

1 file changed

+189
-0
lines changed

1 file changed

+189
-0
lines changed

_sass/cookie-banner.scss

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,190 @@
1+
.osano-cm-window__dialog {
2+
border-radius: 8px;
3+
filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.05));
4+
font-weight: 700;
5+
line-height: 1.5;
6+
letter-spacing: 0.02em;
7+
font-size: 16px;
8+
padding-top: 35px;
9+
padding-left: 25px;
10+
padding-right: 25px;
11+
padding-bottom: 25px;
12+
}
113

14+
.osano-cm-dialog--type_box {
15+
max-width: 27.5em;
16+
@media (min-width: 1400px) {
17+
max-width: 480px;
18+
}
19+
}
20+
21+
.osano-cm-buttons {
22+
gap: 8px;
23+
}
24+
25+
.osano-cm-button {
26+
border: none;
27+
border-radius: 5px;
28+
text-transform: uppercase;
29+
font-size: 14px;
30+
line-height: 1;
31+
padding: 9px 17px;
32+
min-height: 38px;
33+
&:focus-visible {
34+
outline: -webkit-focus-ring-color auto 1px;
35+
}
36+
}
37+
38+
.osano-cm-header {
39+
font-weight: 700;
40+
font-size: 20px;
41+
letter-spacing: 0.02em;
42+
padding-top: 1.5em;
43+
}
44+
45+
.osano-cm-description {
46+
font-weight: 400;
47+
font-size: 11px;
48+
line-height: 170%;
49+
letter-spacing: 0.02em;
50+
@media (min-width: 600px) {
51+
font-size: 10px;
52+
}
53+
}
54+
55+
.osano-cm-dialog__list {
56+
margin: 0.87em 0px 1.7em;
57+
}
58+
59+
.osano-cm-label {
60+
font-weight: 700;
61+
font-size: 13px;
62+
line-height: 150%;
63+
letter-spacing: 0.02em;
64+
@media (min-width: 600px) {
65+
font-size: 16px;
66+
}
67+
}
68+
69+
div.osano-cm-disclosure__toggle {
70+
font-weight: 700;
71+
font-size: 10px;
72+
line-height: 150%;
73+
letter-spacing: 0.02em;
74+
text-decoration: underline;
75+
margin-top: 0;
76+
&:hover {
77+
text-decoration: none;
78+
}
79+
}
80+
81+
.osano-cm-list-item__disclosure {
82+
padding-bottom: 2em;
83+
}
84+
85+
.osano-cm-toggle {
86+
margin-top: 1em;
87+
}
88+
89+
.osano-cm-link {
90+
text-decoration: none;
91+
font-size: 19px;
92+
font-weight: 800;
93+
color: $orange;
94+
&:focus-visible {
95+
font-weight: 800;
96+
outline-offset: 1px;
97+
outline: -webkit-focus-ring-color auto 1px;
98+
color: $orange;
99+
}
100+
&:hover {
101+
color: $orange;
102+
text-decoration: underline;
103+
}
104+
}
105+
106+
.osano-cm-powered-by__link {
107+
display: none;
108+
}
109+
110+
.osano-cm-content__message {
111+
margin-bottom: 0.7em;
112+
padding-bottom: .7em;
113+
margin-top: 10px;
114+
@media (min-width: 1400px) {
115+
max-width: 90%;
116+
}
117+
}
118+
119+
.osano-cm-view__button {
120+
font-size: 1em;
121+
}
122+
123+
.osano-cm-dialog__close,
124+
.osano-cm-info-dialog-header__close {
125+
background-color: #000000;
126+
border-color: #000000;
127+
stroke: #fff;
128+
&:hover,
129+
&:focus,
130+
&:focus:hover {
131+
background-color: #000000;
132+
border-color: #000000;
133+
stroke: #fff;
134+
transform: rotate(90deg);
135+
}
136+
}
137+
138+
.osano-cm-close,
139+
.osano-cm-close:focus,
140+
.osano-cm-close:hover {
141+
stroke-width: 3px;
142+
border-width: 4px;
143+
}
144+
145+
// FYI 14px is the smallest it can go for the maths of the circle to work.
146+
.osano-cm-close {
147+
min-height: 14px;
148+
min-width: 14px;
149+
height: 14px;
150+
width: 14px;
151+
margin: 15px 18px;
152+
@media (min-width: 600px) {
153+
margin: 15px 25px;
154+
margin: 25px;
155+
}
156+
svg {
157+
height: 14px;
158+
width: 14px;
159+
}
160+
}
161+
162+
.osano-cm-widget {
163+
&__outline {
164+
fill: #fff;
165+
stroke: #000;
166+
}
167+
&__dot {
168+
fill: $orange;
169+
}
170+
}
171+
172+
.osano-cm-accept-all {
173+
&:before {
174+
content: '';
175+
display: inline-block;
176+
vertical-align: middle;
177+
height: 20px;
178+
width: 20px;
179+
margin-right: 8px;
180+
background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23fff'/%3E%3Cpath d='m5.709 10.443 2.565 2.565 6.016-6.016' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
181+
}
182+
}
183+
184+
[dir='ltr'] .osano-cm-dialog__list .osano-cm-label {
185+
margin-left: 0.8em;
186+
}
187+
188+
.osano-cm-toggle__switch {
189+
border-width: 3px;
190+
}

0 commit comments

Comments
 (0)