-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_main.scss
123 lines (122 loc) · 2.61 KB
/
_main.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
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
.mosaic{
position: relative;
padding: var(--modular-padding) 0;
background-color: var(--color-neutral-300);
>div{
@extend %container;
}
>div >a{
display: flex;
position: relative;
}
> div > a > div {
flex: 1;
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: start;
padding: var(--gutter);
background-color: var(--color-neutral-100);
#description {
@include body-large;
padding-bottom: var(--spacing);
}
h3 {
@include h3;
padding-bottom: var(--spacing);
}
p {
@include body-large;
}
[data-role='cta'] {
margin-top: var(--spacing);
}
}
figure#mosaic-1 {
@extend %object-fit-cover;
}
}
@include screen-mlxl{
.mosaic{
&._slides-3 {
>div {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-gap: var(--gutter);
a:first-child {
flex-flow: column nowrap;
grid-row: 1/3;
[data-role='cta'] {
@include button-secondary();
}
figure {
aspect-ratio: 4/3;
}
}
a:nth-child(2), a:nth-child(3){
flex-flow: row nowrap;
[data-role='cta'] {
@include link;
}
figure {
aspect-ratio: 3/4;
flex: 0 0 40%;
}
}
}
}
&._slides-2 {
>div {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: var(--gutter);
/*
a {
flex-flow: column nowrap;
[data-role='cta'] {
@include button-secondary();
}
figure {
aspect-ratio: 4/3;
}
}
*/
}
}
&._slides-1 {
>div {
a {
flex-flow: column nowrap;
[data-role='cta'] {
@include button-secondary();
color: gray !important;
}
figure {
aspect-ratio: 16/9;
}
}
}
}
}
}
@include screen-s{
.mosaic{
>div{
grid-template-columns: 1fr;
}
a + a {
margin-top: var(--gutter);
margin-left: 30px !important;
}
>div >a{
flex-flow: column nowrap;
[data-role='cta'] {
@include link;
}
figure {
aspect-ratio: 16/9;
}
}
}
}