newsletter.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /* CLIENT-SPECIFIC STYLES */
  2. #outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */
  3. .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */
  4. .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */
  5. body, table, td, a{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */
  6. table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up */
  7. img{-ms-interpolation-mode:bicubic;} /* Allow smoother rendering of resized image in Internet Explorer */
  8. /* RESET STYLES */
  9. body{margin:0; padding:0; height:100% !important; margin:0; padding:0; width:100% !important;}
  10. img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none; max-width: 100%!important}
  11. table{border-collapse:collapse !important;}
  12. /* MOBILE STYLES */
  13. @media screen and (max-width: 525px) {
  14. /* ALLOWS FOR FLUID TABLES */
  15. table[class="wrapper"]{
  16. width:100% !important;
  17. }
  18. /* ADJUSTS LAYOUT OF LOGO IMAGE */
  19. td[class="logo"]{
  20. text-align: left;
  21. padding: 20px 0 20px 0 !important;
  22. }
  23. td[class="logo"] img{
  24. margin:0 auto!important;
  25. }
  26. /* USE THESE CLASSES TO HIDE CONTENT ON MOBILE */
  27. td[class="mobile-hide"]{
  28. display:none;}
  29. img[class="mobile-hide"]{
  30. display: none !important;
  31. }
  32. img[class="img-max"]{
  33. max-width: 100% !important;
  34. /*width: 100% !important;*/
  35. height:auto !important;
  36. }
  37. /* FULL-WIDTH TABLES */
  38. table[class="responsive-table"]{
  39. width:100%!important;
  40. }
  41. /* UTILITY CLASSES FOR ADJUSTING PADDING ON MOBILE */
  42. td[class="padding"]{
  43. padding: 10px 5% 15px 5% !important;
  44. }
  45. td[class="padding-copy"]{
  46. padding: 10px 5% 10px 5% !important;
  47. text-align: center;
  48. }
  49. td[class="padding-meta"]{
  50. padding: 30px 5% 0px 5% !important;
  51. text-align: center;
  52. }
  53. td[class="no-pad"]{
  54. padding: 0 0 20px 0 !important;
  55. }
  56. td[class="no-padding"]{
  57. padding: 0 !important;
  58. }
  59. td[class="section-padding"]{
  60. padding: 50px 15px 50px 15px !important;
  61. }
  62. td[class="section-padding-bottom-image"]{
  63. padding: 50px 15px 0 15px !important;
  64. }
  65. /* ADJUST BUTTONS ON MOBILE */
  66. td[class="mobile-wrapper"]{
  67. padding: 10px 5% 15px 5% !important;
  68. }
  69. table[class="mobile-button-container"]{
  70. margin:0 auto;
  71. width:100% !important;
  72. }
  73. a[class="mobile-button"]{
  74. width:80% !important;
  75. padding: 15px !important;
  76. border: 0 !important;
  77. font-size: 16px !important;
  78. }
  79. }