-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
128 lines (128 loc) · 2.35 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
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
color: hsl(215, 51%, 70%);
background: hsl(217, 54%, 11%);
font-size: 1rem;
font-family: "Outfit", sans-serif;
font-weight: 300;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card {
max-width: 320px;
background: hsl(216, 50%, 16%);
padding: 1.5rem;
padding-bottom: 0.5rem;
margin: 1.5rem;
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 1.5rem 1.5rem 0 rgba(0, 0, 0, 0.2);
}
.card__images {
display: block;
position: relative;
}
.card__images #equilibrium {
width: 100%;
height: 100%;
border-radius: 0.5rem;
vertical-align: top;
cursor: pointer;
}
.card__images-layer {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: transparent;
border-radius: 0.5rem;
cursor: pointer;
transition: all 0.3s ease-in-out;
}
.card__images-layer #view {
opacity: 0;
transition: all 0.3s linear;
}
.card__images:hover .card__images-layer {
background: hsla(178, 100%, 50%, 0.4);
}
.card__images:hover #view {
opacity: 1;
}
.card__title {
text-decoration: none;
}
.card__title h1 {
width: max-content;
color: hsl(0, 0%, 100%);
font-size: 1.5rem;
margin: 1rem 0;
cursor: pointer;
}
.card h1:hover {
color: hsl(178, 100%, 50%);
}
.card__time {
display: flex;
align-items: center;
justify-content: space-between;
margin: 1rem 0;
}
.card__time-left,
.card__time-right {
display: flex;
align-items: center;
gap: 0.5rem;
}
.card__time-left span {
color: hsl(178, 100%, 50%);
font-weight: 700;
}
.card hr {
display: block;
border: none;
height: 1px;
background: hsl(215, 32%, 27%);
}
.card__creator {
display: flex;
align-items: center;
gap: 0.75rem;
margin: 1rem 0;
}
.card__creator img {
max-width: 2rem;
border: 1px solid hsl(0, 0%, 100%);
border-radius: 50%;
}
.card__creator p a {
color: hsl(0, 0%, 100%);
text-decoration: none;
font-weight: 400;
}
.card__creator p a:hover {
color: hsl(178, 100%, 50%);
}
footer {
font-size: 12px;
text-align: center;
}
footer a {
color: hsl(178, 100%, 50%);
}
footer a:hover {
text-decoration: none;
color: white;
}