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

_share-options-bar.scss « components « scss « src - github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6b2f3acfe9b3a3741f4cf24581948925d371fbcd (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
.share-options-bar {
    position:           fixed;
    // height + border-top
    // used to hide the div at the bottom of the window
    bottom:             -100%;
    background:         white;
    height:             100%;
    clear:              both;
    box-sizing:         border-box;
    border-top:         1px solid #eef2f8;
    transition:         transform .25s ease-in-out;
    z-index:            map-get($z-indexes, 'c-share-options-bar');
    -webkit-transition: -webkit-transform .25s ease-in-out;
    display:            -webkit-flex;
    display:            -webkit-box;
    display:            -moz-box;
    display:            -ms-flexbox;
    display:            flex;
    flex-direction:     column;
    justify-content:    center;
    align-items:        center;

    // use to animate the share option bar
    &.opened {
        @include prefix(transform, translate3d(0, -100%, 0), 'webkit' 'moz');
    }

    .share-options {
        padding:    0;
        margin:     0;
        list-style: none;

        .share-option {
            &:first-child {
                .share-option-btn {
                    padding: 20px 0 10px 0;
                }
            }
            &:last-child {
                .share-option-btn {
                    padding: 10px 0 20px 0;
                }
            }
            .share-option-btn {
                color:   #6e7681;
                display: block;
                width:   100%;
                padding: 10px 0 10px 0;

                .fa,
                .fab {
                    margin-right: 15px;
                }
            }
        }
    }
}

#btn-close-shareoptions {
    position:  absolute;
    top:       15px;
    right:     15px;
    font-size: 20px;
    color:     map-get($colors, 'base');
    cursor:    pointer;
}

// Behavior of the share options bar on small screens
@media #{$small-and-down} {
    .share-options-bar {
        // Display bottom bar in large size
        @include share-options-bar-lg;
    }
}

// Behavior of the share options bar on medium screens
@media #{$medium-only} {
    .share-options-bar {
        // Display share options bar in small size
        &[data-behavior="1"],
        &[data-behavior="2"],
        &[data-behavior="3"] {
            @include share-options-bar-md;
        }
        // Display share options bar in large size
        &[data-behavior="4"],
        &[data-behavior="5"],
        &[data-behavior="6"] {
            @include share-options-bar-lg;
        }
    }
}

// Behavior of the share options bar on large screens
@media #{$large-and-up} {
    .share-options-bar {
        // Display share options bar in small size
        &[data-behavior="1"],
        &[data-behavior="2"] {
            @include share-options-bar-sm;
        }
        // Display share options bar in medium size
        &[data-behavior="3"] {
            @include share-options-bar-md;
        }
        // Display share options bar in large size
        &[data-behavior="4"],
        &[data-behavior="5"],
        &[data-behavior="6"] {
            @include share-options-bar-lg;
        }
    }
}

// Hide share options in print layout
@media print {
    .share-options-bar {
        display: none;
    }
}