/
resources.scss
67 lines (59 loc) · 1.26 KB
/
resources.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
.resource {
display: flex;
border-radius: var(--border-radius);
border: 1px solid var(--divider-color);
background-color: var(--lightest-background-color);
align-items: stretch;
overflow: hidden;
margin-bottom: .5rem;
margin-block-end: .5rem;
position: relative;
transition: all .2s linear;
&:hover {
background-color: var(--lighter-background-color);
}
}
.resource__image {
flex: 1 0 5.5rem;
max-width: 5.5rem;
overflow: hidden;
padding: .25rem;
img {
display: block;
height: 100%;
width: 100%;
object-fit: contain;
}
}
.resource__content {
flex: 4;
padding: .75rem;
align-self: center;
}
.resource__title { // a
text-decoration: none;
color: var(--headings-color);
font-weight: 500;
margin-bottom: .125rem;
&::after {
content: "";
position: absolute;
left: 0;
offset-inline-start: 0;
top: 0;
block-inline-start: 0;
width: 100%;
height: 100%;
}
}
.resource__domain,
.resource__domain a {
text-decoration: none;
color: var(--body-text-color);
font-size: .875rem;
}
.resource__icon {
color: var(--headings-color);
margin: 1rem;
align-self: center;
}