/* OLD BLOG STYLE.  We're now using oilshell/oil/web/blog.css instead.
 * HTML differences between old and new:
 * - old uses h2 h3 h4, new uses h1 h2 h3
 * - <pre><code> was removed from Markdown.  In the new style we worked around
 *   it.
 * */

#latch-status {
  text-align: center;
  color: grey;
}

@media screen and (max-width: 800px) {
  /* mobile: distance from left/right edge */
  body {
    padding: 0 1em;
  }
  /* mobile: horizontal scrollbar for code, so the long lines don't make the page small */
  pre {
    overflow: auto;
  }
}

/* wide screens: Center and limit width for readability */
@media screen and (min-width: 801px) {
  body {
    margin: 0 auto;

    font-size: large;
    line-height: 1.4;  /* http://bettermotherfuckingwebsite.com/ */
  }

  pre {
    font-size: medium;
  }

  .skinny { width: 30em; }
  .wider { width: 45em; }
}

body {
  color: #444;
}

pre {
  background-color: #EEE;
  padding: 0.5em;
}

/* Remove left indent of bullet.  0em puts the bullet to the LEFT of
 * surrounding text. */
ul { padding-left: 1.2em; }
ol { padding-left: 1.2em; }

/* END of what's in web/base.css */

h1 {
  text-align: center;
}

h2 {
  /* x-large is too big; causes most titles to wrap badly (on Chrome/Firefox desktop). */
  font-size: 1.3em;
}

h4 {
  margin: 0em;
  color: darkgreen;
}

/* Inline code */
code {
  color: green;
}

blockquote {
  background-color: papayawhip;
  padding: 0.5em;
}

.footnotes {
  font-size: small;
}

.date {
  font-size: medium;
  color: #555;
  padding-left: 1em;
  padding-right: 1em;
  white-space: nowrap;
}

#all-posts tbody {
  /* NOTE: This seems to make the table background solid like border-collapse:
   * collapse, but doesn't mess with spacing.
   */
  display: block;
}

.alt-month {
  background-color: #F0F0F0;
}

#post-footer {
  background-color: #DEE;
  padding: 0.5em;
}

.attention {
  text-align: center;
  background-color: #DEE;
  padding: 0.5em;
}

/* anchors in cross-ref.html */
a[name] {
  color: green;
}

/* Links to cross-ref.html.  I copied color values from code.css for visual
harmony. */
a[href^="/cross-ref.html"] {
  color: #4070a0 /* Literal.String */
}

a[href^="/cross-ref.html"]:visited {
  /* color: #bb60d5 /* Name.Variable */
  color: purple;
}

/* Internal links.  This is so that cross-ref.html is consistent.  Technically
we might want to exclude other internal links, but I don't have many of those
right now. */
a[href^="#"] {
  color: #4070a0 /* Literal.String (light blue) */
}

a[href^="#"]:visited {
  /* color: #bb60d5 /* Name.Variable (light purple) */
  color: purple;
}

.blog-tag {
  white-space: nowrap;
  font-family: sans-serif;
}

.blog-tag a {
  /* color: #c65d09; /* Generic.Prompt (orange-ish) */
}

.blog-tag a:visited {
  color: purple;
}

.book-text-link-td {
  padding: 1em;
  border-top: solid 1px #BBB;
}

.book-image-td {
  width: 30%
}

.book-desc-td {
  vertical-align: top;
}

/* For books and others */
hr {
  border: none;
  height: 1px;
  background-color: #BBB;
}

.bp { color: #007020 } /* Name.Builtin.Pseudo */
.c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
.c { color: #60a0b0; font-style: italic } /* Comment */
.ch { color: #60a0b0; font-style: italic } /* Comment.Hashbang */
.cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
.cp { color: #007020 } /* Comment.Preproc */
.cpf { color: #60a0b0; font-style: italic } /* Comment.PreprocFile */
.cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
.dl { color: #4070a0 } /* Literal.String.Delimiter */
.err { border: 1px solid #FF0000 } /* Error */
.fm { color: #06287e } /* Name.Function.Magic */
.gd { color: #A00000 } /* Generic.Deleted */
.ge { font-style: italic } /* Generic.Emph */
.gh { color: #000080; font-weight: bold } /* Generic.Heading */
.gi { color: #00A000 } /* Generic.Inserted */
.go { color: #888888 } /* Generic.Output */
.gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
.gr { color: #FF0000 } /* Generic.Error */
.gs { font-weight: bold } /* Generic.Strong */
.gt { color: #0044DD } /* Generic.Traceback */
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.hll { background-color: #ffffcc }
.il { color: #40a070 } /* Literal.Number.Integer.Long */
.kc { color: #007020; font-weight: bold } /* Keyword.Constant */
.k { color: #007020; font-weight: bold } /* Keyword */
.kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
.kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
.kp { color: #007020 } /* Keyword.Pseudo */
.kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
.kt { color: #902000 } /* Keyword.Type */
.mb { color: #40a070 } /* Literal.Number.Bin */
.m { color: #40a070 } /* Literal.Number */
.mf { color: #40a070 } /* Literal.Number.Float */
.mh { color: #40a070 } /* Literal.Number.Hex */
.mi { color: #40a070 } /* Literal.Number.Integer */
.mo { color: #40a070 } /* Literal.Number.Oct */
.na { color: #4070a0 } /* Name.Attribute */
.nb { color: #007020 } /* Name.Builtin */
.nc { color: #0e84b5; font-weight: bold } /* Name.Class */
.nd { color: #555555; font-weight: bold } /* Name.Decorator */
.ne { color: #007020 } /* Name.Exception */
.nf { color: #06287e } /* Name.Function */
.ni { color: #d55537; font-weight: bold } /* Name.Entity */
.nl { color: #002070; font-weight: bold } /* Name.Label */
.nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
.no { color: #60add5 } /* Name.Constant */
.nt { color: #062873; font-weight: bold } /* Name.Tag */
.nv { color: #bb60d5 } /* Name.Variable */
.o { color: #666666 } /* Operator */
.ow { color: #007020; font-weight: bold } /* Operator.Word */
.s1 { color: #4070a0 } /* Literal.String.Single */
.s2 { color: #4070a0 } /* Literal.String.Double */
.sa { color: #4070a0 } /* Literal.String.Affix */
.sb { color: #4070a0 } /* Literal.String.Backtick */
.sc { color: #4070a0 } /* Literal.String.Char */
.s { color: #4070a0 } /* Literal.String */
.sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
.se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
.sh { color: #4070a0 } /* Literal.String.Heredoc */
.si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
.sr { color: #235388 } /* Literal.String.Regex */
.ss { color: #517918 } /* Literal.String.Symbol */
.sx { color: #c65d09 } /* Literal.String.Other */
.vc { color: #bb60d5 } /* Name.Variable.Class */
.vg { color: #bb60d5 } /* Name.Variable.Global */
.vi { color: #bb60d5 } /* Name.Variable.Instance */
.vm { color: #bb60d5 } /* Name.Variable.Magic */
.w { color: #bbbbbb } /* Text.Whitespace */
/*
 * For toc.js -- also taken from asciidoc.
 */

div#toc {
  margin-top: 2em;
  background-color: oldlace;
  padding: 1em;
}

div#toc a {
  text-decoration: none;
}

#toctitle {
  text-align: center;
  color: #666;
  font-weight: bold;
  margin-bottom: 0.2em;
/*
*/
}

div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
  margin-top: 0;
  margin-bottom: 0;
}
div.toclevel2 {
  margin-left: 2em;
  font-size: 0.9em;
}
div.toclevel3 {
  margin-left: 4em;
  font-size: 0.9em;
}
div.toclevel4 {
  margin-left: 6em;
  font-size: 0.9em;
}

