1
1
<template >
2
- <div
3
- class =" tracking-consent nq-shadow"
4
- :class =" [ theme, safariFix ]"
5
- v-if =" uiRequired && uiAllowed"
6
- >
7
- {{ text.main }}
8
- <div class =" button-group" >
9
- <button
10
- class =" nq-button-pill light-blue"
11
- @click =" allowUsageData"
12
- >{{ text.yes }}</button >
13
- <button
14
- class =" nq-button-s"
15
- @click =" denyConsent"
16
- :class =" { inverse: theme === constructor.Themes.DARK }"
17
- >{{ text.no }}</button >
18
- <button
19
- class =" nq-button-s"
20
- @click =" allowBrowserData"
21
- :class =" { inverse: theme === constructor.Themes.DARK }"
22
- >{{ text.browserOnly }}</button >
2
+ <div class =" tracking-consent" >
3
+ <div
4
+ class =" content nq-shadow"
5
+ :class =" [ theme, safariFix ]"
6
+ v-if =" uiRequired && uiAllowed"
7
+ >
8
+ {{ text.main }}
9
+ <div class =" button-group" >
10
+ <button
11
+ class =" nq-button-pill light-blue"
12
+ @click =" allowUsageData"
13
+ >{{ text.yes }}</button >
14
+ <button
15
+ class =" nq-button-s"
16
+ @click =" denyConsent"
17
+ :class =" { inverse: theme === constructor.Themes.DARK }"
18
+ >{{ text.no }}</button >
19
+ <button
20
+ class =" nq-button-s"
21
+ @click =" allowBrowserData"
22
+ :class =" { inverse: theme === constructor.Themes.DARK }"
23
+ >{{ text.browserOnly }}</button >
24
+ </div >
23
25
</div >
24
26
</div >
25
27
</template >
@@ -402,23 +404,28 @@ export default TrackingConsent;
402
404
position : fixed ;
403
405
bottom : 2rem ;
404
406
z-index : 900 ;
407
+ display : flex ;
408
+ justify-content : center ;
409
+ width : 100% ;
410
+ }
405
411
406
- padding : 1.5rem ;
407
-
412
+ .content {
408
413
display : flex ;
409
414
align-items : center ;
410
415
justify-content : space-between ;
411
416
417
+ padding : 1.5rem ;
418
+
412
419
border-radius : 1rem ;
413
420
font-size : 2rem ;
414
421
}
415
422
416
- .tracking-consent .light {
423
+ .content .light {
417
424
background : white ;
418
425
color : var (--nimiq-blue );
419
426
}
420
427
421
- .tracking-consent .dark {
428
+ .content .dark {
422
429
background : var (--nimiq-blue );
423
430
color : white ;
424
431
}
@@ -433,7 +440,7 @@ export default TrackingConsent;
433
440
}
434
441
435
442
@media (max-width : 860px ) {
436
- .tracking-consent {
443
+ .content {
437
444
flex-direction : column ;
438
445
align-items : flex-start ;
439
446
width : 100% ;
@@ -443,11 +450,11 @@ export default TrackingConsent;
443
450
padding : 2.5rem ;
444
451
}
445
452
446
- .tracking-consent .ios-safari-13-fix {
453
+ .content .ios-safari-13-fix {
447
454
bottom : 74px ;
448
455
}
449
456
450
- .tracking-consent .ios-safari-12-fix {
457
+ .content .ios-safari-12-fix {
451
458
bottom : 34px ;
452
459
}
453
460
0 commit comments