Sha256: e8ca512ebce7c508d57a1468094b6e1479f84fd4fa4cc59b93439cec09be7d4e

Contents?: true

Size: 1.3 KB

Versions: 2

Compression:

Stored size: 1.3 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: $margin;
    padding: 0;
    border: 0;
    z-index: 500;
    max-width: 300px;
    visibility: hidden;
    background: $gray;

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

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

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

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

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

    &.bottom-center .popover-arrow {
        border-bottom-color: $gray;
        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 scss/toolkit/components/popover.scss
titon-toolkit-1.0.0.rc.3 scss/toolkit/components/popover.scss