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

_main.scss « mixins « utils « scss « src - github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 226da6f39ae1340c51d70c3e5d07ccbaa9aef94b (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
/// Mixin helper to stylized `main` div in extra small size
@mixin main-xs {
    padding-top: map-get($main, padding-top);
    float:       right;
    width:       calc(100% - #{map-get($sidebar, xlg-screen-width)});
}

/// Mixin helper to stylized `main` div in small size
@mixin main-sm {
    padding-top: map-get($main, padding-top);
    float:       right;
    width:       calc(100% - #{map-get($sidebar, lg-screen-width)});
}

/// Mixin helper to stylized `main` div in medium size
@mixin main-md {
    padding-top: map-get($main, padding-top);
    float:       right;
    width:       calc(100% - #{map-get($sidebar, md-screen-width)});
}

/// Mixin helper to stylized `main` div in large size
@mixin main-lg {
    padding-top: map-get($header, height) + map-get($main, padding-top);
    display:     block;
    width:       100%;
}

/// Mixin helper to push `main` div from medium sidebar size
@mixin main-pushed-md {
    @include prefix(transition, 'width 0.5s, margin-left 0.5s', 'webkit' 'moz');
    &.pushed {
        margin-left: #{map-get($sidebar, md-screen-width)};
        width: calc(100% - #{map-get($sidebar, md-screen-width)});
    }
}

/// Mixin helper to push `main` div from large sidebar size
@mixin main-pushed-lg {
    @include prefix(transition, 'width 0.5s, margin-left 0.5s', 'webkit' 'moz');
    &.pushed {
        margin-left: #{map-get($sidebar, lg-screen-width)};
        width: calc(100% - #{map-get($sidebar, lg-screen-width)});
    }
}

/// Mixin helper to push `main` div from extra large sidebar size
@mixin main-pushed-xlg {
    @include prefix(transition, 'width 0.5s, margin-left 0.5s', 'webkit' 'moz');
    &.pushed {
        margin-left: #{map-get($sidebar, xlg-screen-width)};
        width: calc(100% - #{map-get($sidebar, xlg-screen-width)});
    }
}