-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathDonate.module.css
More file actions
88 lines (81 loc) · 1.31 KB
/
Donate.module.css
File metadata and controls
88 lines (81 loc) · 1.31 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.root {
position: fixed;
top: 130px;
right: calc(var(--margin) - 1cm);
width: var(--col1);
float: right;
text-align: center;
z-index: 10;
padding: var(--vertical-margin-small) 4px;
transition: top 0.2s ease;
& .text {
overflow: hidden;
max-height: 100px;
transition: max-height 0.2s ease;
}
& h3 {
color: var(--processing-blue-mid);
line-height: 1;
}
& p {
line-height: 1.2;
padding-bottom: 0.5rem;
}
}
.root:hover {
background-color: white;
}
.root.compact {
top: 60px;
}
.compact .text {
max-height: 0;
padding-bottom: 0;
}
.compact:hover .text {
max-height: 100px;
}
.character {
max-width: 100%;
}
.donate {
padding: calc(var(--gutter) / 2) var(--gutter);
color: white;
background-color: var(--processing-blue-dark);
border-radius: 20px;
transition: opacity 0.2s ease;
}
.compact .donate {
opacity: 0;
}
.compact:hover .donate {
opacity: 1;
}
@media (--medium) {
.root p {
font-size: var(--text-small);
}
}
@media (--reduced) {
.root,
.root.compact {
top: initial;
bottom: 20px;
width: var(--col2);
&:hover {
background-color: transparent;
}
& .text {
display: none;
}
& .donate {
opacity: 1;
}
}
}
@media (--small) {
.root,
.root.compact {
width: var(--col2);
}
}