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

_main.scss « layouts « scss « src - github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3fb44861aafebe22d8f8e6aa9f6ca0e9f8199985 (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
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
124
125
126
127
128
129
130
131
132
#main {
    display:            block;
    min-height:         100%;
    background:         map-get($main, 'background-color');
    transition:         transform .25s ease-in-out;
    -webkit-transition: -webkit-transform .25s ease-in-out;

    min-width: $main-width;
    @media only screen and (max-width: $main-width) {
        min-width: 100%;
    }

    &.hasCover {
        // Set `padding-top` to `50px` when there is a cover image on page and
        // if there is a cover caption or
        // if its meta information are out of cover image
        &.hasCoverCaption,
        &.hasCoverMetaOut {
            padding-top: 50px !important;
        }

        // Set `padding-top` to 0 when there is a cover image on page and
        // if its meta information are on image or
        // if its meta information are out of cover image and
        // if there is a cover caption
        //
        // The cover caption have a `margin-top` to `50px` to replace the padding
        &.hasCoverMetaIn,
        &.hasCoverMetaOut.hasCoverCaption {
            padding-top: 0 !important;
        }
    }
}

@media #{$small-and-down} {
    #main {
        // Display `main` div in large size
        @include main-lg;

        // Push `main` div from the size of the large sidebar
        &[data-behavior="1"],
        &[data-behavior="2"],
        &[data-behavior="4"],
        &[data-behavior="5"] {
            @include main-pushed-lg;
        }
        // Push `main` div from the size of the medium sidebar
        &[data-behavior="3"],
        &[data-behavior="6"] {
            @include main-pushed-md;
        }
    }
}

@media #{$medium-only} {
    #main {
        // Display `main` div in medium size
        &[data-behavior="1"],
        &[data-behavior="2"],
        &[data-behavior="3"] {
            @include main-md;
        }
        // Display `main` div in large size and push it from the size of the large sidebar
        &[data-behavior="4"],
        &[data-behavior="5"] {
            @include main-lg;
            @include main-pushed-lg;
        }
        // Display `main` div in large size and push it from the size of the medium sidebar
        &[data-behavior="6"] {
            @include main-lg;
            @include main-pushed-md;
        }
    }
}

@media #{$large-only} {
    #main {
        // Display `main` div in small size
        &[data-behavior="1"],
        &[data-behavior="2"] {
            @include main-sm;
        }
        // Display `main` div in medium size
        &[data-behavior="3"] {
            @include main-md;
        }
        // Display `main` div in large size and push it from the size of the large sidebar
        &[data-behavior="4"],
        &[data-behavior="5"]{
            @include main-lg;
            @include main-pushed-lg;
        }
        // Display `main` div in large size and push it from the size of the medium sidebar
        &[data-behavior="6"] {
            @include main-lg;
            @include main-pushed-md;
        }
    }
}

@media #{$xlarge-and-up} {
    #main {
        // Display `main` div in extra small size
        &[data-behavior="1"] {
            @include main-xs;
        }
        // Display `main` div in small size
        &[data-behavior="2"] {
            @include main-sm;
        }
        // Display `main` div in medium size
        &[data-behavior="3"] {
            @include main-md;
        }
        // Display `main` div in large size and push it from the size of the extra large sidebar
        &[data-behavior="4"] {
            @include main-lg;
            @include main-pushed-xlg;
        }
        // Display `main` div in large size and push it from the size of the extra large sidebar
        &[data-behavior="5"] {
            @include main-lg;
            @include main-pushed-lg;
        }
        // Display `main` div in large size and push it from the size of the medium sidebar
        &[data-behavior="6"] {
            @include main-lg;
            @include main-pushed-md;
        }
    }
}