soderlind/read-offline

View on GitHub
templates/print/custom-print.css

Summary

Maintainability
Test Coverage
body {
  background: white;
  font-size: 12pt;
}

img {
  max-width: 500px;
}

@page {
  margin: 2cm;
}

h1 {
  font-size: 24pt;
}

h2 {
  font-size: 14pt;
  margin-top: 25px;
}

blockquote,
ul {
  margin: 0;
}

ul {
  list-style: none;
}

li::before {
  content: "ยป ";
}

a:link,
a:visited {
  text-decoration: underline;
}

a[href^="#"]::after {
  display: none;
}

a[href^="http://"]::after,
a[href^="https://"]::after {
  content: " (" attr(href) ")";
}

a {
  word-wrap: break-word;
}