Sha256: e5d34eac8ec8cbe3c1ef1928cdd8e3fa8714f3dc0a06bdd9ca32e3c9da7f8c6a

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

/**
 * @copyright   2010-2013, The Titon Project
 * @license     http://opensource.org/licenses/bsd-license.php
 * @link        http://titon.io
 */

@import "../common";

.popover {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: 500;
    max-width: 300px;
    visibility: hidden;
    background: $gray;
    border: 1px solid $gray-dark;

    &.center-left .popover-arrow,
    &.center-right .popover-arrow {
        top: 50%;
        margin-top: -8px;
    }

    &.center-left .popover-arrow {
        border-left-color: $gray-dark;
        right: -16px;
    }

    &.center-right .popover-arrow {
        border-right-color: $gray-dark;
        left: -16px;
    }

    &.top-center .popover-arrow,
    &.bottom-center .popover-arrow {
        left: 50%;
        margin-left: -8px;
    }

    &.top-center .popover-arrow {
        border-top-color: $gray-dark;
        bottom: -16px;
    }

    &.bottom-center .popover-arrow {
        border-bottom-color: $gray-dark;
        top: -16px;
    }
}

.popover-head,
.popover-body {
    padding: $small-padding;
}

.popover-arrow {
    width: 0;
    height: 0;
    border: 8px solid transparent;
    position: absolute;

    &:after {
        content: "";
        border: 6px solid transparent;
        position: absolute;
        top: -6px;
        left: -6px;
    }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
titon-toolkit-1.0.0.rc.2 scss/toolkit/components/popover.scss
titon-toolkit-1.0.0.rc1 scss/toolkit/components/popover.scss