info343/lib/writeups/css/writeups.css

body {
   font-family: 'Droid Sans';
   font-size: 22px;
   line-height: 1.4em;
   margin: 0;
}

#writeup {
   max-width: 600px;
   position: relative;
   margin: 1.5em 0 10em 2em;
}

#trailer {
   background-color: #f6f6f6;
   margin: 0;
}

#reveal {
/*   position: absolute;*/
/*   left: 0;*/
/*   width: 100%;*/
/*   text-align: center;*/
   padding-left: 4.25em;
   font-size: 2em;
   height: 2em;
   line-height: 2em;
/*   margin-top: -.75em;*/
   border-top: dashed 4px #f0f0f0;
}

#reveal img {
   margin-bottom: -.2em;
}

#solution {
   margin: -3em 1em 0 2em;
}

#solution header {
   margin-bottom: 0;
}

#solution header .workinglink {
   font-size: 80%;
   float: right;
}

#solution header .workinglink:before {
   content: "→ ";
}

#solution pre {
   margin-top: 0;
}

#solution pre ins {
   background-color: #ffb;
   text-decoration: none;
/*   font-weight: bold;*/
}

footer {
   margin-top: 5em;
}

.homework #writeup:after, footer:after, #solution:after {
   content: '❦';
   display: block;
   margin-top: 2em;
   margin-left: 2em;
/*   width: 100%;*/
   text-align: center;
}

footer:after {
   margin-bottom: 10em;
}

#solution:after {
   padding-bottom: 10em;
}

p, li {
   margin-top: .5em;
   margin-bottom: .5em;
}

h1 {
   line-height: .5em;
   font-size: 1.75em;
}

h1 + h1 {
   font-size: 1.5em;
}

aside.due {
   margin: 3em 0;
   background-color: #efefef;
   padding: .25em;
}

section, #contents {
   margin-top: 5em;
}

figure.example {
   position: absolute;
   width: 400px;
   right: 0;
   margin-right: -475px;
}

figure.expectedoutput {
   position: static;
   width: 100%;
   margin-left: 0;
   margin-right: 0;
}

figure img {
   max-width: 100%;
   border: solid 1px black;
   margin: -1px;
}

figure > a {
   display: block;
   border: solid 1px;
}

figure > a img {
   border: none;
   margin: 0;
   vertical-align: bottom;
}

figure > a.cropped {
   display: block;
   overflow: hidden;
   height: 200px;
}

figure figcaption {
   margin-top: .5em;
   font-size: .8em;
   line-height: 1.2em;
}

figure.opening img {
   height: 200px;
   float: left;
   margin-right: 1em;
}

table {
/*   border: solid 1px black;*/
   border-collapse: collapse;
   margin: 1em 0;
}

table.wide {
   width: 1075px;
}

table.figure {
   caption-side: bottom;
}

table.figure caption {
   text-align: left;
   padding-top: .5em;
}

table tbody tr:first-child td {
   border-top-width: 2px;
}

th {
   padding: 0 .5em;
}

td {
   border: solid 1px black;
   padding: .5em;
}

li.extra,
header.extra {
   color: gray;
}

li.extra:before {
   content: "(if you have time) ";
}

header.extra:after {
   content: "(if you have time)";
   white-space: nowrap;
   margin-left: 1.25em;
}

section header * {
   display: inline-block;
   margin: 0 0 0 1em;
}

section header *:first-child {
   margin-left: 0;
}

section header {
   margin: 1em 0;
}

#content {
   counter-reset: section;
}

#content h3:before {
   counter-increment: section;
   content: counter(section) ". ";
}

.important {
/*   margin-left: 1em;*/
/*   margin-right: 1em;*/
   background-color: #F7CFCF;
}

li.important {
   list-style-type: none;
}

.important:before {
   content: '!';
   display: block;
   position: absolute;
   left: -.5em;
   top: .0892857em;
   color: #E63710;
/*   color: #E67110;*/
   font-weight: bold;
   font-size: 2.8em;
   line-height: 1em;
   height: .966666666em;
/*   background-color: fuchsia;*/
}

pre, code, samp {
   font-family: Menlo, Consolas, "Andale Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, monospace;
   background-color: #efefef;
   font-size: 90%;
}

pre {
   line-height: 1.2em;
}

pre.prettyprint, pre.prettyprint code {
   background-color: #fff;
}

pre.prettyprint {
   font-size: 70%;
/*   width: 50em;*/
/*   overflow: scroll;*/
}

#contents ol ol {
   padding: 0;
}

#contents ol ol li {
   list-style-type: none;
}

#contents ol ol li:before {
   content: '– ';
}

#contents li.essential:after,
header.essential:after {
   content: ' (important!)';
   color: #E63710;
}

/*#contents li.optional,*/
header.optional {
   color: gray;
}

#contents li.optional:after,
header.optional:after {
   content: ' (optional)';
   color: gray;
}
header.optional:after {
   margin-left: 1em;
}

#contents .time {
   font-weight: normal;
   font-size: 80%;
}

li.or {
   list-style-type: none;
   font-weight: bold;
}

.validgreenbar {
   background-color: #55B05A;
   color: white;
}

.yellowwarning {
   color: #CFAC08;
}

.errorredbar {
   background-color: #D23D24;
   color: white;
}

.credit {
   font-size: 80%;
   line-height: 1.4em;
   font-style: italic;
   font-family: 'Open Sans';
}

.note {
/*   margin-left: 1em;*/
/*   margin-right: 1em;*/
   background-color: #F7E1CF;
   padding: .25em .5em;
   position: relative;
   margin-top: .75em;
   margin-bottom: .75em;
}

div.note {
   margin: .5em 0;
}

div.note p:first-child {
   margin-top: 0;
}

div.note p:last-child {
   margin-bottom: 0;
}

em, i, cite, var, h5 {
   font-family: 'Open Sans';
}

code var {
   font-weight: bold;
}

ul.resources {
   padding: 0;
   list-style-type: none;
}

.resource, ul.resources li, .question {
   margin-left: 1.5em;
   font-size: 90%;
/*   font-family: 'Droid Sans Mono';*/
   position: relative;
}

.resource:before, ul.resources li:before {
   display: block;
   position: absolute;
   content: '→ ';
   left: -1.5em;
}

.swatch {
   display: inline-block;
   width: .7em;
   height: .7em;
   border: solid 1px black;
   margin-bottom: -1px;
   margin-right: .2em;
}

.nonbreaking {
   white-space: nowrap;
}

.term {
   font-style: italic;
   font-family: 'Open Sans', sans-serif;
}

sup {
   vertical-align: baseline;
   font-size: .75em;
   position: relative;
   top: -.325em;
}

section > h4 {
/*   font-size: ;*/
   margin: 1.5em 0 .5em 0;
}

section > h5 {
   font-size: 100%;
   font-weight: normal;
   font-style: italic;
   margin: 1.5em 0 .5em 0;
}

ins {
   text-decoration: none;
   background-color: yellow;
}

del {
   color: red;
   background-color: yellow;
}

del p,
del ul
del ol {
   color: red;
   background-color: yellow;
}

ins p,
ins ul,
ins ol {
   background-color: yellow;
}

.ins {
   background-color: yellow;
}

ins:before,
.ins:before {
   display: block;
   position: absolute;
   width: 175px;
   right: -250px;
/*   right: 50px;*/
   content: attr(datetime);
   background-color: yellow;
   padding: 0;
   font-size: 80%;
}
ins:before {
   margin-top: .1em;
}

.ins:before {
   margin-top: -1.666666667em;
}

aside.updated {
   margin-top: 1em;
}

aside.updated span {
   font-size: .8em;
   padding: .3125em .625em;
   background-color: yellow;
}

aside.due + aside.updated {
   margin-top: -2em;
}