twgl.js/resources/css/base.css
Gregg Tavares ec2fe3c6a7 update css
2015-04-13 18:45:38 +09:00

154 lines
4.2 KiB
CSS

* {
box-sizing: border-box;
}
#canvas, canvas {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#canvas {
z-index: -1;
}
html, body {
width: 100%;
height: 100%;
margin: 0px;
font-family: Helvetica, Arial, sanf-serif;
line-height: 1.2em;
}
html {
background-color: rgb(51, 102, 204);
}
h1 {
line-height: 1.5em;
position: relative;
}
h2,h3 {
margin-top: 1.5em;
}
#pronouce {
position: absolute;
font-size: xx-small;
bottom: 0em;
left: 0px;
line-height: 1em;
height: 1em;
display: block;
}
#content {
margin: 10px;
padding: 20px;
max-width: 800px;
margin: auto;
background-color: rgba(255, 255, 255, 0.9);
}
code {
background-color: #DDD;
color: black;
font-family: monospace;
font-size: larger;
padding: 0.2em;
}
pre {
background-color: #CCC;
overflow-x: auto;
font-size: small;
}
.lang-javascript {
font-size: small;
background-color: #CCC;
display: block;
padding: 1em;
line-height: 1.2em;
border: 1px solid #000;
box-shadow: 3px 3px 10px #ccc;
font-family: "Lucida Console", Monaco, monospace;
}
/* --- Prettify --- */
pre.prettyprint .nocode { background-color: none; color: #000 }
pre.prettyprint .str { color: #080 } /* string */
pre.prettyprint .kwd { color: #008 } /* keyword */
pre.prettyprint .com { color: #800 } /* comment */
pre.prettyprint .typ { color: #606 } /* type */
pre.prettyprint .lit { color: #066 } /* literal */
pre.prettyprint .pun { color: #660 } /* punctuation */
pre.prettyprint .pln { color: #000 } /* plaintext */
pre.prettyprint .tag { color: #008 } /* html/xml tag */
pre.prettyprint .atn { color: #606 } /* attribute name */
pre.prettyprint .atv { color: #080 } /* attribute value */
pre.prettyprint .dec { color: #606 } /* decimal */
pre.prettyprint .var { color: #606 } /* variable name */
pre.prettyprint .fun { color: #F00 } /* function name */
pre.prettyprint ul.modifiedlines {
list-style-type: none;
padding-left: 0;
}
pre.prettyprint ul.modifiedlines li.linemodified {
list-style-type: none;
background-color: #A1EAF6;
}
pre.prettyprint ul.modifiedlines li.linedeleted {
list-style-type: none;
background-color: #F0B9B9;
text-decoration: line-through;
}
pre.prettyprint ul.modifiedlines li.lineadded {
list-style-type: none;
background-color: #A2EDC9;
}
pre.prettyprint, code.prettyprint {
color: #000;
background: #ddd;
border: 1px solid #000;
box-shadow: 3px 3px 10px #ccc;
font-family: "Lucida Console", Monaco, monospace;
width: 95%;
margin: auto;
padding: 1em;
text-align: left; /* override justify on body */
goverflow: auto; /* allow scroll bar in case of long lines - goes together with white-space: nowrap! */
white-space: pre; /* was nowrap, prevent line wrapping */
line-height: 1.2em;
}
@media print{
pre.prettyprint .str, code.prettyprint .str{color:#060}
pre.prettyprint .kwd, code.prettyprint .kwd{color:#006;font-weight:bold}
pre.prettyprint .com, code.prettyprint .com{color:#600;font-style:italic}
pre.prettyprint .typ, code.prettyprint .typ{color:#404;font-weight:bold}
pre.prettyprint .lit, code.prettyprint .lit{color:#044}
pre.prettyprint .pun, code.prettyprint .pun{color:#440}
pre.prettyprint .pln, code.prettyprint .pln{color:#000}
pre.prettyprint .tag, code.prettyprint .tag{color:#006;font-weight:bold}
pre.prettyprint .atn, code.prettyprint .atn{color:#404}
pre.prettyprint .atv, code.prettyprint .atv{color:#060}
pre.prettyprint, code.prettyprint {
color: #000;
background: #EEE;
font-size: 8pt;
font-family: "Lucida Console", Monaco, monospace;
width: 95%;
margin: auto;
padding: 6px 3px 13px 3px; /* padding-bottom solves hor. scrollbar hiding single line of code in IE6 but causes vert. scrollbar... */
text-align: left; /* override justify on body */
goverflow: auto; /* allow scroll bar in case of long lines - goes together with white-space: nowrap! */
white-space: pre; /* was nowrap, prevent line wrapping */
line-height: 10pt;
}
}