anyone-oslo/pages

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

Summary

Maintainability
Test Coverage
body,
input,
textarea,
a.button,
a.button:visited,
button {
  font-family: -apple-system, BlinkMacSystemFont, Calibri, sans-serif;
  color: #111;
}

body {
  font-size: 1rem;
  padding: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
p {
  max-width: 80ch;
  margin: 0 0 1rem 0;
  &:last-child {
    margin-bottom: 0rem;
  }
}

h1 {
  font-size: 2rem;
  margin-top: 2rem;
  &:first-child {
    margin-top: 0rem;
  }
}

a,
a:visited {
  color: #1d7195;
}
a:hover,
a:focus {
  color: #15516a;
}

button,
a.button {
  appearance: none;
  cursor: inherit;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 0.5em 0.75em;
  background: #e8e8e8;
  box-shadow: inset 0px 0.75em 0.75em rgba(255, 255, 255, 0.25);
  text-decoration: none;

  &.primary {
    background: #111;
    border-color: #111;
    color: #fff;
    box-shadow: inset 0px 0.75em 0.75em rgba(255, 255, 255, 0.2);
    &:hover {
      box-shadow: inset 0px 0.75em 0.75em rgba(255, 255, 255, 0.1);
    }
  }
}

.buttons,
table {
  margin: 1.5rem 0;
  &:last-child {
    margin-bottom: 0px;
  }
}

table {
  border-collapse: collapse;
  border-top: 1px solid #ddd;
  th,
  td {
    text-align: left;
    padding: 0.5rem 1rem 0.5rem 0;
    border-bottom: 1px solid #ddd;
  }
}