fairmondo/fairmondo

View on GitHub
app/assets/stylesheets/email/email.scss

Summary

Maintainability
Test Coverage
/*
These styles are used for emails only
*/

@import "mixins/all";
@import "modules/button"; // Buttons

html,body {
  height: 100%;
  margin:0;
  padding:0;
  font-family: $base-font-body;
  font-size: $base-font-size;
  color: $black;
  @include color-links($blue,$blue);
  @include clear-links-with-hover;
}

h1,
h2,
h3,
h4 {
  font-weight: normal;
  line-height: 1.2;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.3rem;
}
h4 {
  font-weight: 700;
}

hr {
  border: 0;
  background: $lighter-gray;
  height: 1px;
}

.l-container {
  width: 650px;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
}

.l-header {
  height: 100px;
  margin-bottom: 1em;
}

.l-header > .l-header-image {
  position: relative;
  background: $even-lighter-gray;
  width: 100%;
  height: 100%;
  z-index: 1;

  img {
    z-index: 1;
  }
}

.l-header > .l-header-image >.l-header-left {
  @include span(1 of 4);
  position: absolute;
  float: left;
  top: 1em;
  left: 1em;
  z-index: 9;
}

.l-header > .l-header-image > .l-header-right {
  @include span(2 of 4);
  @include omega;
  position: absolute;
  float: right;
  top: 1em;
  right: 1em;
  z-index: 9;

  .Button {
    float: right;
  }
}

.l-main {
  overflow: hidden;
  clear:both;
}

.l-main > .l-content-wrapper {
  @include span(11 of 16);
  float: left;
}

.l-main > .l-content-wrapper > .l-content {
  @include shadowless_whitebox;
}

.l-main > .l-sidebar {
  @include span(5 of 16);
  @include omega;
  float: right;
  margin-bottom: 1em;
}

.l-sidebar > .cfk-graphic, img {
  width: 100%;
}

.l-footer {
  background: $even-lighter-gray;
  margin-top: 1em;
  padding: 1em;
  clear: both;
  overflow: hidden;
}

.l-footer > .l-footer-left {
  @include span(1 of 3);
}

.l-footer > .l-footer-middle {
  @include span(1 of 3);
}

.l-footer > .l-footer-right {
  @include span(1 of 3);
  @include omega;
}

.l-footer > .l-footer-middle > ul, .l-footer > .l-footer-right > ul {
  margin-top: 0;
  list-style: none;

  li {
    padding-bottom: 0.5em;
  }
}

.l-footer > .l-footer-copyright {
  text-align: center;
  color: $light-gray;
  font-size: 0.8em;
}

.Address {
  @include shadowless_whitebox;
  margin-bottom: 0.5em;
}

.l-sidebar-social-buttons {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  text-align: center;
  .Button {
    width: 80%;
  }
}

.l-sidebar-contact {
  @include shadowless_whitebox;
  margin-bottom: 0.5em;
}

.l-sidebar-help {
  @include shadowless_whitebox;
  margin-bottom: 0.5em;
  ul {
    list-style: none;
  }
}

.line-item-group {
  overflow: hidden;
  margin-bottom: 1.3em;

  .Button--with-margin {
    margin-bottom: 0.5em;
  }
}

.seller-imprint-container {
  @include shadowless_whitebox;
  margin-bottom: 0.5em;
  margin-top: 0.5em;
  overflow: hidden;
  padding-top: 0;
}

.seller-imprint-container > .seller-imprint-header {
  text-align: center;
}

.seller-imprint-container > .seller-imprint {
  @include span( 1 of 3 );
}

.seller-imprint-container > .pdf {
  @include span( 2 of 3 );
  @include omega;
}

.article {
  @include shadowless_whitebox;
  background: $lighter-gray;
  overflow: hidden;
  margin-bottom: 0.5em;
  clear: both;
}

.article > .article-image {
  @include span(1 of 4);
  img {
    width: 100%;
  }
}

.article > .article-info-container {
  @include span(3 of 4);
  @include omega;
}

.article > .article-info-container > .article-quantity {
  @include span(1 of 3);
  h4 {
    margin-bottom: 0.2em;
  }
}

.article > .article-info-container > .article-price {
  @include span(1 of 3);
  h4 {
    margin-bottom: 0.2em;
  }
}

.article > .article-info-container > .article-total-price {
  @include span(1 of 3);
  @include omega;
  h4 {
    margin-bottom: 0.2em;
  }
}

.article > .article-shipping_time {
  @include span(3 of 3);
  @include omega;

  text-align: center;
  padding-top: 0.7em;
}


.message {
  @include shadowless_whitebox;
  margin-bottom: 0.5em;
  h4 {
    margin-top: 0em;
    margin-bottom: 0.2em;
  }
}

.total {
  @include shadowless_whitebox;
  margin-bottom: 0.5em;
}

.total > table {
  border: 0;
  width: 100%;
}

.total > table > tr > td {
  text-align: right;
}

.l-signature {
  @include shadowless_whitebox;
  overflow: hidden;
  clear: both;
  margin-top: 0.5em;
  font-size: 0.8em;
}

.l-signature > .l-signature-header {
  text-align: center;
}

.l-signature > .l-signature-body > .l-signature-left {
  @include span(1 of 3);
}

.l-signature > .l-signature-body > .l-signature-middle {
  @include span(1 of 3);
}

.l-signature > .l-signature-body > .l-signature-right {
  @include span(1 of 3);
  @include omega;
}