-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
113 lines (108 loc) · 2.12 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
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Outfit', sans-serif;
font-size: 0.875rem;
font-weight: 300;
line-height: 1.5;
color: hsl(215, 51%, 70%);
background: hsl(217, 54%, 11%);
}
article {
width: 90vw;
max-width: 20rem;
margin: 4rem auto;
background: hsl(216, 50%, 16%);
border-radius: 0.85rem;
box-shadow: 0 15px 15px rgba(0, 0, 0, 0.2);
}
.card-box {
padding: 1.5rem;
}
.card-header {
position: relative;
}
.card-img {
width: 100%;
display: block;
border-radius: 0.5rem;
margin-bottom: 1.25rem;
}
.overlay-icon {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
opacity: 0;
transition: all 0.3s ease;
background: hsla(178, 100%, 50%, 0.5);
border-radius: 0.5rem;
}
.view-icon {
overflow: hidden;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: hsl(0, 0%, 100%);
}
.card-header:hover .overlay-icon {
cursor: pointer;
opacity: 1;
}
.card-heading {
color: hsl(0, 0%, 100%);
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.75rem;
}
.card-description {
line-height: 1.6;
margin-bottom: 0.65rem;
}
.details {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid hsl(215, 32%, 27%);
padding: 0.75rem 0;
}
.eth, .days {
display: flex;
align-items: center;
gap: 0.5rem;
}
.eth {
font-size: 0.9rem;
font-weight: 600;
text-transform: uppercase;
color: hsl(178, 100%, 50%);
}
.created-user {
padding-top: 1rem;
display: flex;
align-items: center;
gap: 0.75rem;
}
.user-profile {
width: 1.75rem;
height: 1.75rem;
border-radius: 50%;
border: 1px solid hsl(0, 0%, 100%);
}
.created-username {
color: hsl(0, 0%, 100%);
}
.card-heading:hover,
.created-username:hover {
color: hsl(178, 100%, 50%);
cursor: pointer;
}