-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcard.css
More file actions
158 lines (139 loc) · 2.8 KB
/
card.css
File metadata and controls
158 lines (139 loc) · 2.8 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
:root {
--border: #000;
--g1: #907CFF;
--g2: #6001D2;
--g3: #39007D;
}
body {
background: #000000eb;
margin: 0px;
padding: 0px;
place-items: center;
color: #fff;
}
.card {
aspect-ratio: 1 / 1.6;
border: 0.5vmin solid var(--border);
cursor: pointer;
position: relative;
width: 25vmin;
/* margin: 5vmin auto; */
}
.card:before {
background: linear-gradient(
130deg,
transparent 0% 33%,
var(--g1) 66%,
var(--g2) 83.5%,
var(--g3) 100%
);
background-position: 0% 0%;
background-size: 300% 300%;
content: "";
height: 100%;
left: 0px;
position: absolute;
top: 0px;
transition: background-position 500ms ease;
width: 100%;
z-index: 1;
}
.card:hover:before {
background-position: 100% 100%;
transform: scale(1.08, 1.03);
}
.name-title {
position: absolute;
display: inline-block;
transition: top 300ms ease;
transition: left 300ms ease;
color: #fff;
z-index: 3;
top: 1vmin;
left: 1vmin;
}
.no-catch {
position: absolute;
display: none;
color: white;
transition: color 500ms ease;
z-index: 3;
}
.card-content {
background: radial-gradient(
rgba(255, 255, 255, 0.2) 8%,
transparent 8%
);
background-position: 0% 0%;
background-size: 5vmin 5vmin;
height: calc(100% - 10vmin);
padding: 5vmin;
position: relative;
transition: background-position 500ms ease;
width: calc(100% - 10vmin);
z-index: 2;
}
.card:hover > .card-content {
background-position: -10% 0%;
}
.card-title,
.card-subtitle {
color: white;
font-family: "Anek Latin", sans-serif;
font-weight: 400;
margin: 0px;
}
.card-title {
font-size: 2.5vmin;
}
.card-subtitle {
font-size: 1.8vmin;
margin-top: 1vmin;
}
.image-section {
margin-top: 50px;
height: 200px;
width: 100%;
}
.card-subtitle-word {
display: inline-block;
margin: 0vmin 0.3vmin;
position: relative;
opacity: 0;
transform: translateY(40%);
transition: none;
}
.card:hover > .card-content > .card-subtitle > .card-subtitle-word {
opacity: 1;
transform: translateY(0%);
transition: opacity 0ms, transform 350ms cubic-bezier(.90, .06, 0.15, .90);
}
.grid {
display: inline-grid;
justify-items: center;
grid-template-columns: 30vmin 30vmin 30vmin;
gap: 5vmin 4vmin;
}
.playlist-section {
margin: 5vmin 0;
display: flex;
flex-direction: row;
}
.shelf-container {
flex: 3;
margin: 1vmin 2vmin;
padding: 1vmin;
background-color: gray;
}
.player-container {
flex: 2;
margin: 1vmin 2vmin;
padding: 1vmin;
background-color: gray;
}
.current-container {
flex: 1;
margin: 1vmin 2vmin;
padding: 1vmin;
background-color: gray;
}