-
Notifications
You must be signed in to change notification settings - Fork 2
/
styles.css
132 lines (114 loc) · 1.87 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
125
126
127
128
129
130
131
132
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
* {
box-sizing: border-box;
}
/* Custom Scrollbar */
/* width */
::-webkit-scrollbar {
width: 10px;
}
/* Track */
::-webkit-scrollbar-track {
background: #f1f1f1;
}
/* Handle */
::-webkit-scrollbar-thumb {
background: #888;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
body {
font-family: "Roboto", sans-serif;
background-color: #282828;
color: #fff;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
/* overflow: hidden; */
}
img {
max-width: 100%;
}
.card {
box-shadow: 0 5px 10px 10px rgba(44, 44, 44, 1);
border-radius: 10px;
overflow: hidden;
width: 18.5rem;
margin: 1rem;
}
.card-header {
height: 13rem;
}
.card-header img {
object-fit: cover;
height: 100%;
width: 100%;
}
.card-content {
background-color: #4f525c;
padding: 1.5rem;
}
.card-title {
height: 1.1rem;
margin: 0;
}
.card-excerpt {
font-size: 0.9rem;
color: rgb(161, 161, 161);
margin: 0.8rem 0 1.2rem;
}
.author {
display: flex;
margin-top: 1.5rem;
}
.profile-img {
border-radius: 50%;
overflow: hidden;
height: 2.8rem;
width: 2.8rem;
}
.author-info {
display: flex;
flex-direction: column;
justify-content: space-around;
margin-left: 0.6rem;
}
.author-info small {
color: #aaa;
}
.animated-bg {
background-image: linear-gradient(
to right,
#5e5e5e 0%,
#6b6b6b 10%,
#7a7a7a 20%,
#858585 100%
);
background-size: 200% 100%;
animation: bgPos 1s linear infinite;
opacity: 0.8;
}
.animated-bg-text {
border-radius: 50px;
display: inline-block;
margin: 0;
height: 12px;
width: 100%;
opacity: 0.8;
}
.name,
.date {
min-width: 7rem;
}
@keyframes bgPos {
0% {
background-position: 50% 0;
}
100% {
background-position: -150% 0;
}
}