-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
118 lines (103 loc) · 2.09 KB
/
style.css
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
:root {
--border: rgb(150, 132, 161);
--g1: rgb(244, 123, 62);
--g2: rgb(161, 61, 99);
--g3: rgb(53, 30, 41);
}
body {
background-color: rgb(10, 10, 10);
display: grid;
height: 100vh;
margin: 0px;
padding: 0px;
place-items: center;
}
.card {
aspect-ratio: 1 / 1.6;
border: 0.5vmin solid var(--border);
cursor: pointer;
position: relative;
width: 56vmin;
}
.card:hover:before {
background-position: 100% 100%;
transform: scale(1.08, 1.03);
}
.card:hover > .card-content {
background-position: -10% 0%;
}
.card:hover > .card-icon {
color: white;
}
.card:hover > .card-content > .card-subtitle > .card-subtitle-word {
opacity: 1;
transform: translateY(0%);
transition: opacity 0ms, transform 200ms cubic-bezier(.90, .06, .15, .90);
}
.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;
pointer-events: none;
position: absolute;
top: 0px;
transition: background-position 350ms ease, transform 350ms ease;
width: 100%;
z-index: 1;
}
.card-content {
background-image: 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 350ms ease;
width: calc(100% - 10vmin);
z-index: 2;
}
.card-title,
.card-subtitle {
color: white;
font-family: "Anek Latin", sans-serif;
font-weight: 400;
margin: 0px;
}
.card-title {
font-size: 6vmin;
}
.card-subtitle {
font-size: 3vmin;
margin-top: 2vmin;
}
.card-subtitle-word {
display: inline-block;
margin: 0vmin 0.3vmin;
opacity: 0;
position: relative;
transform: translateY(40%);
transition: none;
}
.card-icon {
bottom: 0px;
color: rgba(255, 255, 255, 0.5);
font-size: 7vmin;
left: 0px;
margin: 5vmin;
position: absolute;
transition: color 250ms ease;
z-index: 2;
}
/* -- YouTube Link Styles -- */