summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/mailers
Commit message (Collapse)AuthorAgeFilesLines
* use common devise layout and use heading styleAlexis Reigel2017-06-131-140/+0
|
* Stylize blockquote in notification emailsAlfredo Sumaran2017-02-101-0/+7
|
* Finish refactoring graysvariablesAnnabel Dunstone Gray2016-12-131-3/+3
|
* Enable ColorVariable in scss-lintSam Rose2016-12-012-56/+122
|
* Add diff hunks to notification emails on MRhhoopes2016-11-251-0/+0
| | | | | | Added diff hunks to notification emails of messages on merge requests. This provides code context to the note. Uses existing template for formatting a diff for email (from repository push notifications).
* Enable SpaceAfterVariableColon in scss-lintenable-scss-lint-space-after-variable-colonClement Ho2016-10-241-5/+5
|
* Enforce TrailingSemicolon and EmptyLineBetweenBlocks in scss-lint23319-enable-trailingsemicolon-on-scss-lintClement Ho2016-10-141-1/+1
|
* Fix email line-height in Outlookoutlook-email-spacingSean McGivern2016-08-171-1/+4
| | | | | Outlook seems to handle `white-space: pre` weirdly, so just use `pre` elements (but only for emails!).
* Changed tr to be direct descendantdiff-email-cssPhil Hughes2016-07-211-1/+1
|
* Fixed padding on line contentPhil Hughes2016-07-201-6/+4
|
* Changed CSS for emails to be mostly single class selectorsPhil Hughes2016-07-131-26/+15
|
* Reduced diff email CSSPhil Hughes2016-07-121-48/+19
|
* Center the header logo for all Devise emailsRobert Speicher2016-06-161-0/+4
|
* Optimise email CSS for speed with Premaileroptimise-email-cssSean McGivern2016-06-071-20/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove all descendant selectors from the push email styling, to drastically reduce CPU time when inlining the CSS for syntax-highlighted diffs. Background: Premailer is a Ruby gem that inlines CSS styles from an external stylesheet before emails are sent, so that they are compatible with Gmail. At a high level, it parses the CSS files it finds, and parses the email body with Nokogiri. It then loops through the selectors in the CSS, using Nokogiri to find matching elements, and adds inline styles. (It does more than this, like merging styles applied to the same element, but that's not relevant to this issue.) Nokogiri converts CSS selectors to XPath first, like so: Nokogiri::CSS.xpath_for('foo bar') # => ["//foo//bar"] On documents with high node counts (say, a syntax-highlighted copy of jQuery), having both descendant selectors is very expensive. Both `//foo/bar` and `//bar` will be much more efficient, although neither are directly equivalent. An example, on a document containing two syntax-highlighted copies of jQuery: Benchmark.realtime { p doc.search('.o').count } # 9476 # => 0.3462457580026239 Benchmark.realtime { p doc.search('.code.white .o').count } # 9476 # => 85.51952634402551 The performance is similar for selectors which _don't_ match any elements, and as Premailer loops through all the available selectors, we want to avoid all descendant selectors in push emails. Because of the theming support in the web UI, all syntax highlighting selectors are descendant selectors of classes like `.code.white` or `.code.monokai`. There are over 60 CSS classes for syntax highlighting styles alone, all of which are expressed in the inefficient form above. In emails we always use the white theme, and were reusing the same CSS file. But in emails, we don't need to descend from `.code.white` as that will always be the theme, and we can also remove some other selectors that are only applicable to the web UI. For the remaining descendant selectors, we can convert them to child selectors, type selectors, or class selectors as appropriate. As in the example above, having no descendant selectors at all in the push email CSS can provide a drastic (and surprising) performance improvement.
* New confirmation email :fire:Robert Speicher2016-05-251-0/+134
|
* Syntax-highlight diffs in push emails17464-backport-email-syntax-highlightingSean McGivern2016-05-171-0/+43
Based on: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/151