Sha256: d7fb63693057172f43a12a6b17d599e599563e1e28fa94341ea102877dd4c555

Contents?: true

Size: 1.92 KB

Versions: 28

Compression:

Stored size: 1.92 KB

Contents

/*------------------------------------*\
    #HELPERS
\*------------------------------------*/

/**
 * Text alignment
 */
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }


/**
 * Display helpers
 */
.hidden {
    display: none;
    font-size: 1px;
    line-height: 1px;
    max-height: 0px;
    max-width: 0px;
    opacity: 0;
    overflow: hidden;
    mso-hide: all;
    font-family: sans-serif;
}


/**
 * Responsive helpers
 *
 * Due to the way Premailer parses external CSS into inline CSS, we must be very
 * forceful with our helpers. Because of this we must take a "mobile-last"
 * approach, or else we'll get into an !important war.
 *
 * These class names are taken directly from the Cerberus template.
 */
@media screen and (max-width: $email-max-width) {
    .email-container {
        width: 100% !important;
        margin: auto !important;
    }

    /* Forces elements to resize to the full width of their container. Useful
    for resizing images beyond their max-width. */
    .fluid {
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Forces table cells into full-width rows. */
    .stack-column,
    .stack-column-center {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        direction: ltr !important;
    }

    /* And center justify these ones. */
    .stack-column-center {
        text-align: center !important;
    }

    /* Generic utility class for centering. Useful for images, buttons, and
    nested tables. */
    .center-on-narrow {
        text-align: center !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }

    table.center-on-narrow {
        display: inline-block !important;
    }
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.6 app/assets/stylesheets/workarea/admin/email/_helpers.scss
workarea-admin-3.5.5 app/assets/stylesheets/workarea/admin/email/_helpers.scss
workarea-admin-3.5.4 app/assets/stylesheets/workarea/admin/email/_helpers.scss
workarea-admin-3.5.3 app/assets/stylesheets/workarea/admin/email/_helpers.scss
workarea-admin-3.5.2 app/assets/stylesheets/workarea/admin/email/_helpers.scss
workarea-admin-3.5.1 app/assets/stylesheets/workarea/admin/email/_helpers.scss
workarea-admin-3.5.0 app/assets/stylesheets/workarea/admin/email/_helpers.scss
workarea-admin-3.5.0.beta.1 app/assets/stylesheets/workarea/admin/email/_helpers.scss