-
-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathExplorerIndexPage.scss
85 lines (83 loc) · 2.07 KB
/
ExplorerIndexPage.scss
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
.explorer-index-page {
.explorer-index-page__header {
background-color: #f0f4fa;
margin-bottom: 16px;
padding-bottom: 24px;
.h1-semibold {
margin-top: 24px;
margin-bottom: 8px;
@include sm-up {
font-size: 2rem;
}
}
p {
margin: 0;
color: #46688f;
}
}
.explorer-index-page-list {
background-color: #fff;
list-style: none;
row-gap: var(--grid-gap);
li {
overflow: auto; // prevents grid items from blowing up in width if some img's fail to load
}
.explorer-index-page__card {
display: block;
height: 100%;
padding: 8px;
display: flex;
flex-direction: column;
&:hover {
h2 {
text-decoration: none;
}
img {
box-shadow: 0px 0px 20px 0px rgba(49, 37, 2, 0.07);
}
}
img {
background: $gray-5;
transition: 150ms;
box-shadow: 0px 0px 12px 0px rgba(49, 37, 2, 0.05);
}
h2 {
@include owid-link-90;
@include h3-bold;
font-weight: bold;
margin-top: 8px;
margin-bottom: 8px;
}
p {
color: $blue-90;
margin-top: 0;
}
}
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.explorer-index-page__card-error {
width: 100%;
aspect-ratio: 850/600;
background-color: $gray-5;
color: $grey-text-color;
font-size: 1rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
svg {
margin-bottom: 16px;
}
svg,
p {
animation: fadein ease 0.3s;
}
}
}