_featherlight.scss 4.47 KB
/**
 * Featherlight - ultra slim jQuery lightbox
 * Version 1.5.0 - http://noelboss.github.io/featherlight/
 *
 * Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
 * MIT Licensed.
**/
@media all {
    .featherlight {
        display     : none;
        position    : fixed;
        top         : 0;
        right       : 0;
        bottom      : 0;
        left        : 0;
        z-index     : 2147483647;
        text-align  : center;
        white-space : nowrap;
        cursor      : pointer;
        background  : #333;
        background  : rgba(0, 0, 0, 0)
    }
    .featherlight:last-of-type {
        background : rgba(0, 0, 0, .8)
    }
    .featherlight:before {
        content        : '';
        display        : inline-block;
        height         : 100%;
        vertical-align : middle;
        margin-right   : -.25em
    }
    .featherlight .featherlight-content {
        position       : relative;
        text-align     : left;
        vertical-align : middle;
        display        : inline-block;
        overflow       : auto;
        padding        : 25px 25px 0;
        border-bottom  : 25px solid transparent;
        margin-left    : 5%;
        margin-right   : 5%;
        max-height     : 95%;
        background     : #fff;
        cursor         : auto;
        white-space    : normal
    }
    .featherlight .featherlight-inner {
        display : block
    }
    .featherlight .featherlight-close-icon {
        position    : absolute;
        z-index     : 9999;
        top         : 0;
        right       : 0;
        line-height : 25px;
        width       : 25px;
        cursor      : pointer;
        text-align  : center;
        font-family : Arial, sans-serif;
        background  : #fff;
        background  : rgba(255, 255, 255, .3);
        color       : #000
    }
    .featherlight .featherlight-image {
        width : 100%
    }
    .featherlight-iframe .featherlight-content {
        border-bottom : 0;
        padding       : 0
    }
    .featherlight iframe {
        border : 0
    }
    .featherlight * {
        -webkit-box-sizing : border-box;
        -moz-box-sizing    : border-box;
        box-sizing         : border-box
    }
}

@media only screen and (max-width : 1024px) {
    .featherlight .featherlight-content {
        margin-left   : 10px;
        margin-right  : 10px;
        max-height    : 98%;
        padding       : 10px 10px 0;
        border-bottom : 10px solid transparent
    }
}

.canada-post-strike-container {
    position          : absolute;
    right             : 9px;
    top               : 140px;
    -webkit-transform : translate(0, 0);
    -moz-transform    : translate(0, 0);
    -ms-transform     : translate(0, 0);
    -o-transform      : translate(0, 0);
    transition        : all 0.2s ease;
    z-index           : 40;

    @media only screen and (min-width : $bp-middle) {
        top   : 155px;
        right : 0;
    }

    .canada-post-icon-button {
        position         : relative;
        background-color : #d92c27;
        display          : inline-block;

        width            : 80px;

        text-align       : center;
        padding          : 15px;

        &:hover {
            filter         : url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
            filter         : gray; /* IE6-9 */
            -webkit-filter : grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
        }

        img, .canada-post-logo {
            background-image  : url(../images/cp_logo_reverse.svg);
            background-repeat : no-repeat;
            background-size   : 50px 50px;
            display           : block;
            width             : 50px;
            height            : 50px;

            margin            : 0 auto;
        }

        .strike-notice {
            color       : #ffffff;
            display     : block;
            margin-top  : 10px;
            line-height : 1;
            text-align  : center;
            font-weight : bold;
            font-size: 13px;
        }
    }
}

.canada-post-strike-content, .featherlight-custom-content {
    display : none;
}

.featherlight {
    .featherlight-content {
        max-width: 690px;
        .featherlight-close-icon {
            &:hover {
                opacity : 0.5;
            }
        }
    }
}