-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
67 lines (56 loc) · 1.21 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
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;400;900&display=swap');
body {
padding: 0;
margin: 0;
background-color: rgb(1 1 11);
color: goldenrod;
font-family: Inter, sans-serif;
}
.card-track {
display: flex;
margin: auto;
padding: 3rem;
overflow-x: scroll;
max-width: 50%;
}
/** The pseudoelement below is an attempt at shadiwing out the edges of the track */
.card-track::after {
position: relative;
content: none;
background-color: transparent;
box-shadow: -3rem 0 3rem white;
z-index: 1;
}
.card-track::-webkit-scrollbar {
width: 0.5rem;
height: 0.5rem;
}
.card-track::-webkit-scrollbar-thumb {
background-color: rgb(14 15 17);
border-radius: 10px;
}
.card {
display: flex;
position: relative;
flex-direction: column;
background-color: rgb(14 15 17);
height: 16rem;
min-width: 11rem;
overflow: hidden;
padding: 1.5rem;
border-radius: 1rem;
box-shadow: -1rem 0 3rem black;
transition: 0.2s;
}
.card:hover {
transform: translateY(-0.5rem);
}
.card:not(:first-child) {
margin-left: -3rem;
}
.card:hover~.card {
transform: translateX(3rem);
}
.image {
flex: 1;
}