-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
148 lines (121 loc) · 2.52 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
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
:root {
/* Colors */
--primary-Soft-blue: hsl(215, 51%, 70%);
--primary-Cyan: hsl(178, 100%, 50%);
--neutral-Very-dark-blue: hsl(217, 54%, 11%);
--neutral-dark-blue: hsl(216, 50%, 16%);
--neutral-blue-ish: hsl(215, 32%, 27%);
--neutral-White: hsl(0, 0%, 100%);
/* Fonts */
--ff-primary: 'Outfit', sans-serif;
--fw-light: 300;
--fw-regular: 400;
--fw-semibold: 600;
--radius: 10px;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
padding-inline: 1.3rem;
min-height: 100vh;
font-family: var(--ff-primary);
font-weight: var(--fw-light);
color: var(--primary-Soft-blue);
background-color: var(--neutral-Very-dark-blue);
display: flex;
justify-content: center;
align-items: center;
}
body > * {
flex-grow: 1;
}
img,
svg {
display: block;
max-width: 100%;
}
/* Font styling */
.card__nft {
width: max-content;
font-weight: var(--fw-semibold);
color: var(--neutral-White);
}
.card__price {
font-weight: var(--fw-semibold);
color: var(--primary-Cyan);
}
.card__name span {
font-weight: var(--fw-regular);
color: var(--neutral-White);
}
.card__nft,
.card__name span {
transition: color 150ms;
}
.card__nft:hover,
.card__name span:hover {
color: var(--primary-Cyan);
cursor: pointer;
}
/* Layout */
.card {
padding: 1rem 1rem 1.5em;
max-width: 300px;
background-color: var(--neutral-dark-blue);
border-radius: var(--radius);
}
.card > * + * {
margin-top: 1rem;
}
.card img {
border-radius: calc(var(--radius) / 2);
}
.card__image {
position: relative;
}
.card__image::after {
content: '';
position: absolute;
inset: 0;
background-color: hsla(178, 100%, 50%, .4);
background-image: url(./images/icon-view.svg);
background-repeat: no-repeat;
background-position: center;
border-radius: calc(var(--radius) / 2);
opacity: 0;
cursor: pointer;
transition: opacity 150ms;
}
.card__image:hover::after {
opacity: 1;
}
.card__info {
padding-bottom: 1.5rem;
display: flex;
justify-content: space-between;
border-bottom: 1px solid var(--neutral-blue-ish);
}
.card__info > * {
display: flex;
align-items: center;
gap: .2rem;
flex-grow: 1;
}
.card__day-left {
justify-content: flex-end;
}
.card__creator {
display: flex;
align-items: center;
gap: .7rem;
}
.card__creator img {
max-width: 30px;
border: 1px solid var(--neutral-White);
border-radius: 50%;
}