Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_grid.scss « layout « sass « assets - github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b3154d29fd3690377830e33ac8c02f17606e434 (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
#container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: $grid-nav-height auto 1fr auto;
    grid-column-gap: 20px;
    grid-row-gap: 0px;

    @if $enable-navbar == true {
        grid-template-rows: $grid-nav-height auto 1fr auto;
    } @else {
        grid-template-rows: 0 auto 1fr auto;
    }

    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    
    @include justify-content(center);
    @include themify($themes) {
      color: themed('body-color');
    }
}

.nav { grid-area: 1 / 1 / 2 / 2; }
.top { grid-area: 2 / 1 / 3 / 2; }
.mid { grid-area: 3 / 1 / 4 / 2; }
.bot { grid-area: 4 / 1 / 5 / 2; }



.divider {
    display: grid;
    height: 100%;
    grid-template-columns: minmax(200px, 240px) minmax(350px, 769px) minmax(200px, 240px);
    grid-template-rows: auto;
    grid-column-gap: 0px;
    grid-row-gap: 0px;

    @include justify-content(center);
    @media only screen and (max-width: 769px) {
        grid-template-columns: minmax(0, $grid-side-width) minmax(0, $grid-body-width) minmax(0, $grid-side-width);
    }
}

.l { grid-area: 1 / 1 / 2 / 2; } // left
.m { grid-area: 1 / 2 / 2 / 3; } // middle
.r { grid-area: 1 / 3 / 2 / 4; } // right
.lm { grid-area: 1 / 1 / 2 / 3; } // left middle
.mr { grid-area: 1 / 2 / 2 / 4; } // middle right
.lmr { grid-area: 1 / 1 / 2 / 4; } // left middle right



.sv { // single view
    display: grid;
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;

    &[data-view="full"] {
        grid-template-columns: 769px;
    }

    &[data-view="mobile"] {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

.blog {
    grid-area: 1 / 1 / 2 / 2;
}