-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
124 lines (118 loc) · 2.27 KB
/
styles.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
@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%;
}
ul{
list-style-type: none;
}
p{
font-weight: 300;
}
body {
font-family: 'Outfit', sans-serif;
font-size: 18px;
background-color: var(--main-BG);
color: hsla(0, 0%, 100%,0.4);
padding: 1.25rem;
}
.container{
padding: 1.25rem;
background-color: var(--card-BG);
border-radius: 1rem;
margin-bottom: 1rem;
}
.container .main-image{
position: relative;
}
.container .main-image div{
position: absolute;
top: 0;
background-color:hsl(178, 100%, 50%, 60%);
width: 100%;
height:calc(100% - 4px);
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;
font-weight: 600;
}
.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;
}
.container ul li:first-child{
color: var(--Cyan);
}
.container ul li img{
margin-right: 0.5rem;
}
.container .avatar{
display: flex;
align-items: center;
justify-content: start;
padding-top: 1rem;
}
.container .avatar img{
width: 3rem;
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;
}
.attribution {
font-size: 16px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
@media(min-width: 500px) {
.container{
width: 400px;
margin: 0 auto 1rem;
}
}