JonSn0w/Hyde

View on GitHub
assets/css/preview/github.css

Summary

Maintainability
Test Coverage
#mdPreview {
  color: #232224;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  margin-top: 0;
  overflow: hidden;
}

#mdPreview h1, #mdPreview h2, #mdPreview h3, #mdPreview h4, #mdPreview h5, #mdPreview h6 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-top: 24px;
  margin-bottom: 16px;
}

#mdPreview h1 {
  font-size: 2.3em;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 0.15em;
}

#mdPreview h2 {
  font-size: 1.8em;
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 0.15em;
}

#mdPreview h3 {
  font-size: 1.45em;
}

#mdPreview h4 {
  font-size: 1.2em;
}

#mdPreview h5 {
  font-size: 1.15em;
}

#mdPreview h6 {
  font-size: 0.95em;
  color: #737373;
}

#mdPreview img {
  background: transparent;
  max-width: 95%;
  height: auto;
  vertical-align: middle;
  box-sizing: content-box;
  border-style: none;
}

#mdPreview ol, #mdPreview ul {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 2em;
}

#mdPreview ol ol, #mdPreview ol ul, #mdPreview ul ol, #mdPreview ul ul {
  padding-left: 27px;
}

#mdPreview ol ol ol, #mdPreview ol ol ul, #mdPreview ol ul ol, #mdPreview ol ul ul, #mdPreview ul ol ol, #mdPreview ul ol ul, #mdPreview ul ul ol, #mdPreview ul ul ul {
  padding-left: 35px;
}

#mdPreview li {
  letter-spacing: 0.0275em;
  margin-bottom: 5px;
}

#mdPreview li + li {
  margin-top: 0.25em;
}

#mdPreview a {
  color: #0366d6;
  text-decoration: none;
  transition: 300ms ease;
}

#mdPreview a:hover, #mdPreview a:focus, #mdPreview a:active {
  color: #0366d6;
  text-decoration: underline;
}

#mdPreview hr {
  background: #e4e4e4;
  height: 2px;
  border: 0;
  margin: 24px 0;
  padding: 0;
}

#mdPreview p {
  letter-spacing: 0.0275em;
  line-height: 1.5;
  margin: 0 0 16px !important;
}

#mdPreview .break {
  height: 0;
  margin-bottom: 15px;
}

#mdPreview pre {
  background: #ececec;
  color: #232224;
  font-family: "SFMono-Regular", Consolas, Inconsolata, "Liberation Mono", Menlo, monospace;
  font-size: 85%;
  line-height: 1.45;
  border: 0;
  border-radius: 5px;
  padding: 10px 20px;
  box-shadow: none;
  margin-bottom: 16px;
  word-wrap: normal;
  word-break: normal;
  overflow: hidden;
}

#mdPreview pre code {
  font-family: "SFMono-Regular", Consolas, Inconsolata, "Liberation Mono", Menlo, monospace !important;
  background: transparent;
  letter-spacing: 0.045em;
  white-space: pre-wrap;
}

#mdPreview pre code::before, #mdPreview pre code::after {
  letter-spacing: -0.2em;
  content: '';
}

#mdPreview code {
  background-color: rgba(20, 20, 20, 0.05);
  color: #24292e;
  font-size: 85%;
  border-radius: 5px;
  margin: 0;
  padding: 0.2em 0;
  white-space: nowrap;
}

#mdPreview code::before, #mdPreview code::after {
  letter-spacing: -0.2em;
  content: '\00a0';
}

#mdPreview blockquote {
  background: rgba(0, 0, 0, 0.05);
  color: #6a737d;
  font-size: 13.5px;
  border-left: 0.25em solid #dfe2e5;
  border-radius: 5px;
  margin-top: 0;
  margin-bottom: 16px;
  padding: 0 1em;
}

#mdPreview blockquote > p {
  margin-bottom: 0;
}

#mdPreview table {
  border-collapse: collapse;
  margin-left: 10px;
}

#mdPreview table tr {
  background-color: #f8f8f8;
  border: 1px solid #c6cbd1;
}

#mdPreview table tr:nth-child(2n) {
  background-color: #ecedee;
}

#mdPreview table th {
  font-size: 17px;
  font-weight: 600;
  padding: 8px 13px !important;
}

#mdPreview table th, #mdPreview table td {
  border: 1px solid #dfe2e5;
  padding: 6px 13px;
}

#mdPreview table thead tr {
  line-height: 1.5;
}

#mdPreview kbd {
  background-image: -webkit-linear-gradient(top, #f5f5f5, #e6e6e6);
  color: rgba(0, 0, 0, 0.7);
  font-size: 8pt;
  border: solid 1px #c6cbd1;
  border-bottom-color: #959da5;
  border-radius: 4px;
  box-shadow: inset 0 -0.5px 0 #959da5;
}

#mdPreview *:first-child {
  margin-top: 0 !important;
}

#mdPreview *:last-child {
  margin-bottom: 0 !important;
}

.hljs-built_in {
  color: #005cc5;
}

.hljs-comment {
  color: #6a737d !important;
}