1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00
es6tutorial/css/app.css
2014-04-22 09:27:49 +08:00

394 lines
5.8 KiB
CSS

/* General Setting */
/* Small screens (default) */
html { font-size: 100%; }
/* Medium screens (640px) */
@media (min-width: 40rem) {
html { font-size: 112%; }
}
/* Large screens (1024px) */
@media (min-width: 64rem) {
html { font-size: 120%; }
}
/* Grid */
/* Ditto */
body {
color: #333;
margin: 0;
padding: 0;
font-family: Verdana, Arial;
font-size: 0.8rem;
}
#sidebar {
margin-top: 0;
padding-left: 25px;
padding-bottom:25px;
padding-top: 25px;
box-shadow: 0 0 40px #CCC;
-webkit-box-shadow: 0 0 40px #CCC;
-moz-box-shadow: 0 0 40px #CCC;
border-right: 1px solid #BBB;
}
@media (min-width: 40rem) {
#sidebar {
width: 280px;
position: fixed;
height: 100%;
margin-right: 20px;
padding-bottom:0px;
padding-top: 0px;
overflow-y: scroll;
overflow: -moz-scrollbars-vertical;
}
}
#sidebar h1 {
font-size: 25px;
margin-bottom: 0px;
padding-bottom: 0px;
}
#sidebar h1 a:link, #sidebar h1 a:visited {
color: #333;
}
#sidebar h2 {
font-size: 15px;
}
#sidebar h5 {
margin-top: 20px;
margin-bottom: 0;
}
#sidebar a:visited, #sidebar a:link {
color: #4682BE;
text-decoration: none;
}
#sidebar ul {
list-style-type: none;
margin: 0;
padding-left: 10px;
padding-top: 0;
}
#sidebar ul li:before { /* a hack to have dashes as a list style */
content: "-";
position: relative;
left: -5px;
}
#sidebar ul li {
margin-top: 0;
margin-bottom: 2px;
margin-left: 10px;
padding: 0;
text-indent: -5px; /* to compensate for the padding for the dash */
font-size: 0.8rem;
}
#content {
padding-top: 10px;
padding-bottom: 150px;
margin-left: 20px;
margin-right: 20px;
font-size: 0.8rem;
line-height:1.6rem;
/* border: 1px solid black; */
}
@media (min-width: 40rem) {
#content {
width: 580px;
padding-left:330px;
margin-left: 0px;
margin-right: 0px;
}
}
#content pre{
margin-left: auto;
margin-right: auto;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 0.8rem;
line-height: 1.2;
color: #FFF;
background: #111;
border-radius: 5px;
}
#content code {
padding-right: 5px;
color: #a6e22e;
font-size: 0.8rem;
font-weight: normal;
font-family: Consolas,"Courier New",Courier,FreeMono,monospace;
background: #111;
border-radius: 2px;
}
#content h2 {
margin-top: 50px;
margin-bottom: 0px;
padding-top: 20px;
padding-bottom: 0px;
font-size: 18px;
text-align: left;
border-top: 2px solid #666;
}
#content h3 {
margin-top: 50px;
margin-bottom: 0px;
padding-top: 20px;
padding-bottom: 0px;
text-align: left;
border-top: 1px dotted #777;
}
#content img {
max-width: 90%;
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 40px;
margin-bottom: 40px;
border-radius: 5px;
}
#content ul {
display: block;
list-style-type: none;
}
#content ul li:before { /* a hack to have dashes as a list style */
content: "-";
position: relative;
left: -5px;
}
#content ul li {
text-indent: -5px; /* to compensate for the padding for the dash */
font-size: 0.8rem;
}
#content ul li.link {
color: #4682BE;
text-decoration: none;
font-size: 13px;
font-weight: bold;
cursor: pointer;
}
#content a:link, #content a:visited {
color: #4682BE;
text-decoration: none;
}
#content .content-toc{
background: #bdc3c7;
border-radius: 5px;
}
#back_to_top {
display: none;
position: fixed;
height: 20px;
width: 70px;
top: 20px;
margin-left: 970px;
margin-top: 0px;
color: #FFF;
line-height: 20px;
text-align: center;
font-size: 10px;
border-radius: 5px;
background-color: #AAA;
}
#back_to_top:hover {
background-color: #444;
cursor: pointer;
}
#edit {
display: none;
position: fixed;
height: 17px;
width: 70px;
top: 45px;
margin-left: 970px;
margin-top: 0px;
color: #FFF;
line-height: 17px;
text-align: center;
font-size: 10px;
border-radius: 5px;
background-color: #AAA;
}
#edit:hover {
background-color: #444;
cursor: pointer;
}
#loading, #error {
display: none;
position: fixed;
height: 17px;
top: 45%;
margin-left: 560px;
font-size: 14px;
}
/**
* okaidia theme for JavaScript, CSS and HTML
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
* @author ocodia
*/
code[class*="language-"],
pre[class*="language-"] {
color: #a6e22e;
text-shadow: 0 1px rgba(0,0,0,0.3);
font-family: Consolas, Monaco, 'Andale Mono', monospace;
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
border-radius: 0.3em;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #272822;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #75715e;
}
.token.punctuation {
color: #f8f8f2;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.constant,
.token.symbol {
color: #f92672;
}
.token.boolean,
.token.number{
color: #ae81ff;
}
.token.selector,
.token.attr-name,
.token.string,
.token.builtin {
color: #a6e22e;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
color: #f92672;
}
.token.atrule,
.token.attr-value
{
color: #e6db74;
}
.token.keyword{
color: #66d9ef;
}
.token.regex,
.token.important {
color: #fd971f;
}
.token.important {
font-weight: bold;
}
.token.entity {
cursor: help;
}