-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
128 lines (123 loc) · 2.54 KB
/
Copy pathindex.css
File metadata and controls
128 lines (123 loc) · 2.54 KB
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--Softblue: hsl(215, 51%, 70%);
--Cyan: hsl(178, 100%, 50%);
--VerydarkbluemainBG: hsl(217, 54%, 11%);
--VerydarkbluecardBG: hsl(216, 50%, 16%);
--Verydarkblueline: hsl(215, 32%, 27%);
--White: hsl(0, 0%, 100%);
}
@import url('https://fonts.googleapis.com/css2?family=Oufit:weight@300;400;600&display=sap');
body{
font-family: "outfit", sans-serif;
font-size: 18px;
background-color: var(--VerydarkbluemainBG);
color: hsl(0, 0%, 100%, 60%);
padding: 1.25rem ;
}
p{
font-weight: 300;
}
.container{
padding: 1.25rem;
background-color: var(--VerydarkbluecardBG);
border-radius: 0.5rem;
margin-bottom: 1rem;
}
.container h2{
color: var(--White);
margin: 1rem 0.5rem 0.5rem 0;
}
.container h2:hover{
color: var(--Cyan);
cursor: pointer;
}
.container .main-image {
position: relative;
border: 5px;
}
.container .main-image img{
border-radius: 5px;
}
.container .main-image div {
position: absolute;
background-color: hsl(178, 100%, 50%, 60%);
width: 100%;
height: calc(100% - 5px);
z-index:999 ;
top: 0;
opacity: 0;
transition: opacity 0.3s ease-in-out;
border-radius:5px ;
}
.container .main-image div:hover{
opacity: 1;
cursor:pointer;
}
.container .main-image div img{
position: absolute;
left: 50%;
top: 50%;
translate: -50% -50%;
border-radius: 5px;
}
.container ul{
display: flex;
align-items: center;
justify-content: space-between;
padding: 2rem 0;
border-bottom: 1px dotted var(--Verydarkblueline);
}
.container ul li {
display: flex;
align-items: center;
}
.container ul li img{
margin-right: 0.5rem;
}
.container .avatar {
display: flex;
align-items: center;
justify-content: start;
padding-top: 2rem;
}
.container .avatar img{
width: 3.5rem;
border: 1px 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;
}
.container ul li:first-child {
color: var(--Cyan);
}
img{
max-width: 100%;
}
ul{
list-style-type: none;
}
.attribution{
font-size: 16px;
text-align: center;
}
.attribution a{
color: hsl(228, 45%, 44%);
}
@media (min-width: 500px) {
.container{
width: 450px;
margin: 0 auto 1rem;
}
}