dobtco/dispatch

View on GitHub
app/assets/stylesheets/mailer.css

Summary

Maintainability
Test Coverage
/* -------------------------------------
  GLOBAL
------------------------------------- */
* {
  margin:0;
  padding:0;
  font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

body {
  -webkit-font-smoothing:antialiased;
  -webkit-text-size-adjust:none;
  width: 100%!important;
  height: 100%;
  background-color: #434a54;
  color: #434a54;
}


/* -------------------------------------
  ELEMENTS
------------------------------------- */
a {
  color: #348eda;
}

.btn-primary{
  text-decoration:none;
  color: #FFF;
  background-color: #348eda;
  border:solid #348eda;
  border-width:10px 20px;
  line-height:2;
  font-weight:bold;
  text-align:center;
  cursor:pointer;
  display: inline-block;
  border-radius: 3px;
}

.padding{
  padding:10px 0;
}

.mailer_response_preview {
  background-color: #f5f5f5;
  padding: 10px 20px;
  margin-top: 15px;
  font-size: 14px;
}

.mailer_response_preview dt {
  margin-top: 5px;
  font-weight: bold;
}

.mailer_response_preview dd {
  margin-bottom: 15px;
}

.mailer_response_preview_fields_hidden {
  text-align: center;
  font-size: 13px;
  color:#777;
}

/* -------------------------------------
  BODY
------------------------------------- */
table.body-wrap {
  width: 100%;
  padding: 20px;
}

table.body-wrap .container{
  border: 1px solid #f0f0f0;
  background-color: #fff;
}


/* -------------------------------------
  FOOTER
------------------------------------- */
table.footer-wrap {
  width: 100%;
  clear:both!important;
}

.footer-wrap .container p {
  font-size:12px;
  color:#999;

}

table.footer-wrap a{
  color: #bbb;
}


/* -------------------------------------
  TYPOGRAPHY
------------------------------------- */
h1,h2,h3{
  font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; line-height: 1.1; margin-bottom:15px; color:#000;
  margin: 40px 0 0;
  line-height: 1.2;
  font-weight:200;
}

h1 {
  font-size: 36px;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 20px;
}

p, ul, ol {
  margin-bottom: 10px;
  font-weight: normal;
  font-size:14px;
}

ul li, ol li {
  margin-left:5px;
  list-style-position: inside;
}

/* ---------------------------------------------------
  RESPONSIVENESS
  Nuke it from orbit. It's the only way to be sure.
------------------------------------------------------ */

/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
  display:block!important;
  max-width:600px!important;
  margin:0 auto!important; /* makes it centered */
  clear:both!important;
}

.header_container {
  display:block!important;
  max-width:640px!important;
  margin:0 auto!important; /* makes it centered */
  clear:both!important;
  padding:20px 0 !important;
}

.site_title {
  margin-top: 10px;
  color: #fff;
}

/* Set the padding on the td rather than the div for Outlook compatibility */
.body-wrap .container{
  padding:20px;
}

/* This should also be a block element, so that it will fill 100% of the .container */
.content {
  max-width:600px;
  margin:0 auto;
  display:block;
}

/* Let's make sure tables in the content area are 100% wide */
.content table {
  width: 100%;
}

.centered {
  text-align:center;
}

.mailer_additional_text {
  background-color: #f5f5f5;
  padding: 10px 20px;
  margin-top: 15px;
}