-
Notifications
You must be signed in to change notification settings - Fork 348
/
base.scss
119 lines (99 loc) · 2.61 KB
/
base.scss
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
@import "./global";
/**
* Global styles/variables
*/
:root{
--cc-font-family: #{$font-family-base};
--cc-modal-border-radius: #{$border-radius-base};
--cc-btn-border-radius: #{$btn-border-radius-base};
--cc-modal-transition-duration: .25s;
--cc-link-color: #{$link-color};
--cc-modal-margin: 1rem;
--cc-z-index: #{$zindex-cookie-consent};
}
#cc-main {
color: var(--cc-primary-color);
font-family: var(--cc-font-family);
font-size: 16px;
font-weight: 400;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
position: relative;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
z-index: var(--cc-z-index);
position: fixed;
&.cc--rtl{
direction: rtl;
}
b,
em,
strong,
a,
.cm__title{
font-weight: $cc-font-weight-bold;
}
button > span {
pointer-events: none;
}
a,
.cc__link{
font-weight: 600;
position: relative;
background-image: linear-gradient(currentColor, currentColor);
background-position: 0% 100%;
background-repeat: no-repeat;
background-size: 0% 1px;
transition: background-size .25s, color .25s ease;
&:hover{
color: var(--cc-primary-color);
background-size: 100% 1px;
}
}
.cc__link {
color: var(--cc-link-color);
}
/* Use Firefox's thin style scrollbar */
.cm__desc,
.pm__body{
scrollbar-width: thin;
overscroll-behavior: auto contain;
}
/* Show webkit's "cool" scrollbar only on non mobile screens */
@media screen and (min-width: 640px){
::-webkit-scrollbar,
::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb{
all: revert;
}
::-webkit-scrollbar-thumb{
border: .25rem solid var(--cc-bg);
-webkit-background-clip: padding-box;
background-clip: padding-box;
border-radius: 1rem;
background: var(--cc-toggle-readonly-bg);
&:hover {
background: var(--cc-toggle-off-bg);
}
}
::-webkit-scrollbar {
background: transparent;
width: 12px;
}
}
}
/** Disable page scroll **/
html.disable--interaction{
&.show--consent,
&.show--consent body{
height: auto!important;
overflow: hidden!important;
}
}
// disable transition if prefers-reduced-motion detected
@media (prefers-reduced-motion) {
#cc-main {
--cc-modal-transition-duration: 0s;
}
}