forked from samlobeng/BuildWeek-Spotify
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpage-changer.css
More file actions
115 lines (101 loc) · 2.31 KB
/
page-changer.css
File metadata and controls
115 lines (101 loc) · 2.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
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
.glass {
background: rgba(255, 255, 255, 0.75);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
border-radius: 10px;
border: 1px solid rgba(255, 255, 255, 0.18);
}
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
.glass {
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
}
/* slightly transparent fallback for Firefox (not supporting backdrop-filter) */
@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
.glass {
background-color: rgba(255, 255, 255, .9);
}
}
#pageChanger {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: column;
list-style-type: none;
align-items: center;
}
#pageChanger ul {
list-style-type: none;
}
.show-page-list{
padding: 0;
border: 2px solid lightgrey;
border-radius: 10px;
margin-top: 20px;
min-height: 35px;
min-width: 70px;
display: flex;
justify-content: center;
align-items: center;
}
.show-page-list[active] {
transform: rotate(-180deg);
}
input[type=radio] {
position: absolute;
left: -9999px;
opacity: 0;
}
.card-wrapper {
display: flex;
gap: 2rem;
align-items: center;
justify-content: center;
padding: 5rem;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
transition: display linear 1s
}
@media (max-width: 1340px) {
.card-wrapper{
flex-direction: column;
}
}
.card-wrapper.collapsed{
display: none;
}
.card {
border: 2px solid #d6dde3;
border-radius: 4px;
height: 100%;
width: 100%;
padding: 2rem 5rem;
cursor: pointer;
position: relative;
}
.card:hover {
border-color: rgba(48, 150, 213, 0.5);
}
input[type=radio]:checked + .card {
border: 2px solid #3096d5;
background-color: rgba(0, 0, 0, 0.025);
}
input[type=radio]:checked + .card::before {
--size: 1.8rem;
--half-size: calc(-1 * var(--size) / 2);
position: absolute;
content: "\1F5F8";
top: var(--half-size);
right: var(--half-size);
width: var(--size);
height: var(--size);
padding: 0.2rem 0;
background: #3096d5;
color: #fff;
border-radius: 50%;
text-align: center;
}