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

_post-actions.scss « components « scss « src - github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 55ccba6e2728ba7f226de8e0ac7555a33af95064 (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
.post-actions-wrap {
    height:      60px;
    padding:     0;
    line-height: 60px;
    clear:       both;

    ul.post-actions {
        float:        left;
        padding-left: 0;
        margin-top:   0;
        list-style:   none;

        li.post-action {
            width:      auto;
            text-align: center;
        }
    }
    // Post's navigation options
    ul.post-action-nav {
        // Best width for responsive post's navigation panel on small screen and up
        width:   45%;
        // On very small screen `.post-actions-nav` will be above `.post-actions-share`
        z-index: map-get($z-indexes, c-post-bottom-bar) + 2;

        li.post-action {
            float:     left;
            // Fix a bug on Firefox. the right part of button `previous` fall down without this `min-width`
            min-width: 42px;

            &:last-child {
                .post-action-btn {
                    margin-left: 15px;
                }
            }
        }
    }
    // Post's share options
    ul.post-action-share {
        // 100% minus width of `.post-action-nav`,
        // best width for responsive post's share panel on small screen and up
        width:   55%;
        // On very small screen `.post-actions-nav` will be above `.post-actions-share`
        z-index: map-get($z-indexes, c-post-bottom-bar) + 1;

        li.post-action {
            float: right;

            &:nth-child(n + 3) {
                .post-action-btn {
                    margin-right: 15px;
                }
            }
        }
    }
}

// Increase width of `.post-actions-share` on small screen
@media #{$small-and-down} {
    .post-actions-wrap {
        ul.post-action-nav {
            // Best width for responsive post's navigation panel on small screen
            width: 25%;
        }
        ul.post-action-share {
            // Best width for responsive post's share panel on small screen
            width: 75%;
        }
    }
}

// Increase width of `.post-actions-nav` on very small screen
@media #{$xsmall-and-down} {
    .post-actions-wrap {
        ul.post-action-nav {
            // Best width for responsive post's navigation panel on very small screen
            width: 35%;
        }
        ul.post-action-share {
            // Best width for responsive post's share panel on very small screen
            width: 65%;
        }
    }
}