Sha256: 165122ed729e4252e6374b22282214571b5b8445d325ad902910e6de8f79d554

Contents?: true

Size: 1.99 KB

Versions: 5

Compression:

Stored size: 1.99 KB

Contents

/**
 * Trumbowyg v2.21.0 - A lightweight WYSIWYG editor
 * Default stylesheet for Trumbowyg editor plugin
 * ------------------------
 * @link http://alex-d.github.io/Trumbowyg
 * @license MIT
 * @author Alexandre Demode (Alex-D)
 *         Twitter : @AlexandreDemode
 *         Website : alex-d.fr
 */

.trumbowyg-giphy-button svg {
    transform: scale(1.22);
}

.trumbowyg-giphy-search {
    display: block;
    width: 80%;
    margin: 5%;
    padding-left: 10px;
    padding-right: 150px;
}

.trumbowyg-giphy-close {
    position: absolute;
    top: calc(5% + 8px);
    right: calc(5% - 2px);
    width: 30px;
    height: 30px;
    background: none;
    border: 1px solid transparent;

    &:hover,
    &:focus {
        outline: none;
        background: #ecf0f1;
    }
    &:focus {
        border-color: rgba(0, 0, 0, 0.3);
    }
}

.trumbowyg-powered-by-giphy {
    position: absolute;
    top: calc(5% + 12px);
    right: calc(15% + 10px);
    pointer-events: none;
    user-select: none;

    span {
        text-transform: uppercase;
        font-weight: bold;
        font-size: 10px;
        opacity: 0.6;
    }

    svg {
        width: 66px;
        height: 15px;
        vertical-align: bottom;
        margin-left: 6px;
        opacity: 0.45;
    }
}

.trumbowyg-giphy-modal-scroll {
    overflow: auto;
    overflow-x: hidden;
    height: 240px;
}

.trumbowyg-giphy-modal {
    padding: 0 5%;
    columns: 3;
    column-gap: 10px;

  .trumbowyg-giphy-no-result {
    width: 250%;
    margin: 13% 0 0 29%;
  }

  .trumbowyg-giphy-offline {
    font-size: 18px;
    width: 305%;
    height: 600px;
    margin-top: 95px;
    text-align: center;
  }
}

.trumbowyg-giphy-modal .img-container {
    width: 100%;
    margin-bottom: 10px;
    background-color: #ecf0f1;

    img {
        width: 100%;
        cursor: pointer;
        opacity: 0;
        transition: opacity 150ms;

        &:hover,
        &:focus {
            border: #2ecc71 solid 3px;
        }
    }

    img.tbw-loaded {
        opacity: 1;
    }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activeadmin_trumbowyg-0.2.10 app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/sass/trumbowyg.giphy.scss
activeadmin_trumbowyg-0.2.8 app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/sass/trumbowyg.giphy.scss
activeadmin_trumbowyg-0.2.6 app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/sass/trumbowyg.giphy.scss
activeadmin_trumbowyg-0.2.4 app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/sass/trumbowyg.giphy.scss
activeadmin_trumbowyg-0.2.0 app/assets/javascripts/activeadmin/trumbowyg/plugins/giphy/ui/sass/trumbowyg.giphy.scss