-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.css
164 lines (140 loc) · 3 KB
/
card.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
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
159
160
161
162
163
164
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&display=swap');
a {
text-decoration: none;
}
.card-list {
display: flex;
padding: 3rem;
overflow-x: scroll;
}
.card-list::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.card-list::-webkit-scrollbar-thumb {
background: #201c29;
border-radius: 10px;
box-shadow: inset 2px 2px 2px hsla(0,0%,100%,.25), inset -2px -2px 2px rgba(0,0,0,.25);
}
.card-list::-webkit-scrollbar-track {
background: linear-gradient(90deg,#201c29,#201c29 1px,#17141d 0,#17141d);
}
.card {
height: 350px;
width: 400px;
min-width: 250px;
padding: 1.5rem;
border-radius: 16px;
background: #17141d;
box-shadow: -1rem 0 3rem #000;
display: flex;
flex-direction: column;
transition: .2s;
margin: 0;
scroll-snap-align: start;
clear: both;
position: relative;
}
.card:focus-within~.card, .card:hover~.card {
transform: translateX(130px);
}
.card:hover {
transform: translateY(-1rem);
}
.card:not(:first-child) {
margin-left: -130px;
}
.card-header {
margin-bottom: auto;
}
.card-header p {
font-size: 14px;
margin: 0 0 1rem;
color: #7a7a8c;
}
.card-header h2 {
font-size: 20px;
margin: .25rem 0 auto;
text-decoration: none;
color: inherit;
border: 0;
display: inline-block;
cursor: pointer;
}
.card-header h2:hover {
background: linear-gradient(90deg,#ff8a00,#e52e71);
text-shadow: none;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
background-clip: text;
}
.card-author {
margin: 3rem 0 0;
display: grid;
grid-template-columns: 75px 1fr;
align-items: center;
position: relative;
}
.author-avatar {
grid-area: auto;
align-self: start;
position: relative;
box-sizing: border-box;
}
.author-avatar img {
width: 40px;
height: 40px;
border-radius: 50%;
filter: grayscale(100%);
display: block;
overflow: hidden;
margin: 16px 10px;
}
.author-name {
grid-area: auto;
box-sizing: border-box;
}
.author-name-prefix {
font-style: normal;
font-weight: 700;
color: #7a7a8c;
}
.half-circle {
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 48px;
fill: none;
stroke: #ff8a00;
stroke-width: 8;
stroke-linecap: round;
pointer-events: none;
}
.tags {
margin: 1rem 0 2rem;
padding: .5rem 0 1rem;
line-height: 2;
margin-bottom: 0;
}
.tags a {
font-style: normal;
font-weight: 700;
font-size: .5rem;
color: #7a7a8c;
text-transform: uppercase;
font-size: .66rem;
border: 3px solid #28242f;
border-radius: 2rem;
padding: .2rem .85rem .25rem;
position: relative;
}
.tags a:hover {
background: linear-gradient(90deg,#ff8a00,#e52e71);
text-shadow: none;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-box-decoration-break: clone;
background-clip: text;
border-color: white;
}