-
Notifications
You must be signed in to change notification settings - Fork 0
/
Card.css
147 lines (123 loc) · 2.4 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
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--soft-blue: hsl(215, 51%, 70%);
--cyan: hsl(178, 100%, 50%);
--main-bg: hsl(217, 54%, 11%);
--card-bg: hsl(216, 50%, 16%);
--line: hsl(215, 32%, 27%);
--white: hsl(0, 0%, 100%);
}
img {
max-width: 100%;
}
body {
font-family: "Outfit", sans-serif;
font-size: 18px;
background-color: var(--main-bg);
color: hsl(0, 0%, 100%, 60%);
padding: 1.25rem;
}
.container {
padding: 1.25rem;
background-color: var(--card-bg);
border-radius: 0.5rem;
margin-bottom: 1rem;
}
.container .main-image {
overflow: hidden;
position: relative;
}
.container .main-image div {
position: absolute;
top: 0;
background-color: hsl(178, 100%, 50%, 60%);
width: 100%;
height: 100%;
z-index: 999;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.container .main-image div:hover {
opacity: 1;
cursor: pointer;
}
.container .main-image div img {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.container h2 {
color: var(--white);
margin: 1rem 0.5rem 0.5rem 0;
}
.container h2:hover {
color: var(--cyan);
cursor: pointer;
}
.container ul {
display: flex;
align-items: center;
justify-content: space-between;
padding: 2rem 0;
border-bottom: 1px solid var(--line);
}
.container ul li {
display: flex;
align-items: center;
}
.main-image:hover .lolo {
transition: all 0.5s;
transform: scale(1.2);
}
.container ul li img {
margin-right: 0.5rem;
}
.container ul li:first-child {
color: var(--cyan);
}
.container .avatar {
display: flex;
align-items: center;
justify-content: start;
padding-top: 2rem;
}
.container .avatar img {
width: 4rem;
border: 2px solid var(--white);
border-radius: 50%;
margin-right: 1rem;
}
.container .avatar p span {
color: var(--white);
font-weight: 400;
}
.container .avatar p span:hover {
color: var(--cyan);
cursor: pointer;
}
ul {
list-style-type: none;
}
p {
font-weight: 300;
}
.attribution {
font-size: 16%;
text-align: center;
}
.attribution {
color: hsl(215, 45%, 44%);
;
}
@media(min-width:500px) {
.container {
width: 450px;
margin: 0 auto 1rem;
}
}