Changeset 1829fbf in OpenWorkouts-current for ow/static/css/main.css


Ignore:
Timestamp:
Feb 20, 2019, 9:31:22 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
38171c6
Parents:
42d775c
Message:

(#61) Several fixes for the multipart/alternative (text+html) version of the verify
your account email:

  • Use premailer [1] to embed all styles into the body of the html part of the email (ensuring the styles are rendered correctly in most email clients)
  • Fixed some styles (RGB colors, transparencies, etc don't work in mail clients)
  • Ensure the different bodies (text and html) have the proper content type and charset set.

[1] https://pypi.org/project/premailer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/static/css/main.css

    r42d775c r1829fbf  
    14921492  justify-content: center;
    14931493  align-items: center;
    1494   min-height: calc(100vh - 98px);
     1494  /* dynamic min-height based on window height does not work well
     1495     with premailer and generating the proper html with styles for mails */
     1496  min-height: 400px;
    14951497  padding: 1em 0;
    1496   color: #e1e1e1;
     1498  /* RGB calculated color does not work well with premailer and
     1499       generating the proper html with styles for mails */
     1500  color: #151515;
    14971501}
    14981502.verify-account-content .info {
    14991503  max-width: 580px;
    1500   background-color: rgba(21, 21, 21, 0.6);
     1504  /* RGB calculated color does not work well with premailer and
     1505         generating the proper html with styles for mails */
     1506  background-color: #e1e1e1;
    15011507  border-radius: 6px;
    15021508  padding: 2em 1.5em;
     
    15061512}
    15071513.verify-account-content a {
    1508   color: #e1e1e1;
     1514  /* RGB calculated color does not work well with premailer and
     1515           generating the proper html with styles for mails */
     1516  color: #151515;
    15091517  font-size: 13px;
    15101518  text-decoration: none;
     
    15121520}
    15131521.verify-account-content a:hover {
    1514   color: white;
     1522  color: #151515;
    15151523}
    15161524.verify-account-content .button {
    1517   transition: all 500ms ease-in-out;
    15181525  background-color: #EE4056;
     1526  background: #EE4056;
    15191527  color: white;
    15201528  text-transform: uppercase;
    15211529}
    15221530.verify-account-content .button:hover {
    1523   background-color: #e6152f;
    1524 }
     1531  background-color: #F60002;
     1532}
Note: See TracChangeset for help on using the changeset viewer.