/*------------------------------------*\ #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; } }