Newer
Older
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
:host {
display: block;
height: 100.5%;
}
.hy-link-box {
$border-color: var(--brand-main);
@include border-without-corners($border-color, 1px);
display: flex;
flex-direction: column;
height: 100%;
justify-content: center;
position: relative;
text-decoration: none;
&__image-container {
border-left: 1px solid var(--brand-main);
border-right: 1px solid var(--brand-main);
border-top: 1px solid var(--brand-main);
display: flex;
justify-content: stretch;
margin-bottom: 0;
min-height: 10rem;
position: relative;
&:before {
content: "";
display: block;
padding-top: (10 / 16) * 100%;
width: 100%;
}
> img {
bottom: 0;
height: 100%;
left: 0;
object-fit: cover;
position: absolute;
right: 0;
top: 0;
width: 100%;
}
}
&--with-image {
justify-content: flex-start;
.hy-link-box__text-container {
margin: 0 1px 2rem -1px;
padding: 1.25rem .5rem 1.25rem 0;
@include breakpoint($medium) {
padding: 1.25rem .5rem 1.25rem 0;
}
}
}
&__text-container {
background: var(--grayscale-white);
margin: 3rem 1px 3rem -1px;
padding: 1.5rem .5rem 1.5rem 0;
@include breakpoint($medium) {
margin: 1px 1px 1px -1px;
padding: 2.5rem .5rem 2.5rem 0;
}
&__title {
color: var(--brand-main-nearly-black);
font-family: "Open Sans";
font-size: 20px;
font-weight: 600;
letter-spacing: -0.63px;
line-height: 26px;
margin-bottom: 11px;
}
&__description {
color: var(--grayscale-dark);
font-family: "Open Sans";
font-size: 14px;
letter-spacing: -0.2px;
line-height: 20px;
}
}
&__link-icon {
bottom: .75rem;
position: absolute;
right: .75rem;
svg {
fill: var(--brand-main);
}
&--external {
transform: rotate(-45deg);
}
}
}