📦 EqualifyEverything / equalify

📄 flex.scss · 55 lines
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@use "../global-styles/variables.module.scss";
@use "../global-styles/fonts.scss";

.cards-50 {
    display:flex;
    margin-bottom: calc(variables.$spacing*2);
    gap: calc(variables.$spacing*2);
    align-items: flex-start;
    justify-content: space-between;
    .card {
        width:50%;
    }
}

.cards-38-62 {
    margin-bottom: calc(variables.$spacing*2);
    display:flex;
    gap: calc(variables.$spacing*2);
    align-items: flex-start;
    justify-content: space-between;
    .card:nth-of-type(1) {
        width:38%;
    }
    .card:nth-of-type(2) {
        width:62%;
    }
}
.cards-62-38 {
    margin-bottom: calc(variables.$spacing*2);
    display:flex;
    gap: calc(variables.$spacing*2);
    align-items: flex-start;
    justify-content: space-between;
    .card:nth-of-type(1) {
        width:62%;
    }
    .card:nth-of-type(2) {
        width:38%;
    }
    .card {
        .card {
            width:auto;
        }
    }
}

.cards-33 {
    margin-bottom: calc(variables.$spacing*2);
    display:flex;
    flex-wrap: wrap;
    gap: calc(variables.$spacing*2);
    .card {
        width:calc(33.33333% - (12px));
    }
}