summaryrefslogtreecommitdiff
path: root/sysret.org/themes/tabi-lean/sass/parts/_home-banner.scss
blob: ce6b9c137c09b91a4032b6eb47ba13123c62c471 (plain)
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
#banner-container-home {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0.2rem auto;
    width: 100%;

    @media only screen and (max-width: 600px) {
        display: block;
        margin-block-end: 2rem;
    }

    #home-banner-text {
        flex: 1;
        margin-block-end: 1.5rem;
        color: var(--primary-color);
        font-size: 1.875rem;
        line-height: 3rem;

        li {
            font-size: 1rem;
        }

        #home-banner-header {
            margin: 0;
            margin-block-end: 1rem;
            font-weight: 550;
            font-size: 2.8rem;

            @media only screen and (max-width: 600px) {
                margin-block-end: 0;
                font-size: 2.2rem;
            }
        }

        #banner-home-subtitle {
            color: var(--text-color);
            font-weight: 250;
            line-height: 1.75rem;

            p {
                font-size: 1rem;
            }

            a {
                font-weight: 400;
            }
        }

        @media only screen and (max-width: 600px) {
            width: 100%;
        }
    }

    #image-container-home {
        position: relative;
        margin: auto 0;
        padding-inline-start: 2rem;
        max-width: 11rem;
        overflow: hidden;
        text-align: center;

        #banner-home-img {
            border: none;
            aspect-ratio: 1 / 1;
            width: 100%;
            height: 100%;
            object-fit: cover;

            @media only screen and (max-width: 600px) {
                max-width: 12rem;
                max-height: 12rem;
            }
        }

        @media only screen and (max-width: 600px) {
            padding-inline-start: 0;
            width: 100%;
            max-width: none;
        }
    }
}