Add formatting css and reorganize
This commit is contained in:
parent
6bfe583522
commit
5747e5fa90
21 changed files with 308 additions and 199 deletions
141
content/stylesheets/main.css
Normal file
141
content/stylesheets/main.css
Normal file
|
|
@ -0,0 +1,141 @@
|
|||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
font-family: Georgia, Palatino, serif;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #E6E6E6;
|
||||
color: #2B2B2B;
|
||||
text-rendering: optimizelegibility;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:link,
|
||||
a:visited {
|
||||
color: #DE1B1B;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #FE3B3B;
|
||||
}
|
||||
|
||||
#main {
|
||||
position: absolute;
|
||||
|
||||
top: 40px;
|
||||
left: 255px;
|
||||
|
||||
max-width: 600px;
|
||||
}
|
||||
|
||||
#main h1 {
|
||||
font-size: 40px;
|
||||
font-weight: normal;
|
||||
|
||||
line-height: 40px;
|
||||
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
|
||||
#main p {
|
||||
margin: 20px 0;
|
||||
|
||||
font-size: 15px;
|
||||
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
#main ul, #main ol {
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
#main li {
|
||||
font-size: 15px;
|
||||
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
#main ul li {
|
||||
list-style-type: square;
|
||||
}
|
||||
|
||||
#main table, th, td {
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #CCC;
|
||||
background-color: #EEEEEE;
|
||||
padding: 3px;
|
||||
|
||||
font-size: 15px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
#main code, code * {
|
||||
font-family: Monaco,Menlo,Consolas,"Courier New",monospace;
|
||||
}
|
||||
|
||||
#main code {
|
||||
border-radius: 3px;
|
||||
border: 1px solid #CCC;
|
||||
background-color: #EEEEEE;
|
||||
padding: 0px 3px;
|
||||
}
|
||||
|
||||
#main pre code { /* Block Code */
|
||||
display: block;
|
||||
word-wrap: break-word;
|
||||
overflow: auto;
|
||||
|
||||
white-space: pre-wrap; /* css-3 */
|
||||
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap; /* Opera 4-6 */
|
||||
white-space: -o-pre-wrap; /* Opera 7 */
|
||||
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||
|
||||
border-radius: 3px;
|
||||
border: 1px solid #CCC;
|
||||
background-color: #EEEEEE;
|
||||
padding: 20px 10px;
|
||||
font-size: 15px;
|
||||
margin: 30px 5px
|
||||
}
|
||||
|
||||
#main span.line-numbers {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
position: absolute;
|
||||
|
||||
top: 40px;
|
||||
left: 20px;
|
||||
width: 175px;
|
||||
|
||||
padding: 20px 20px 0 0;
|
||||
|
||||
border-right: 1px solid #ccc;
|
||||
}
|
||||
|
||||
#sidebar h2 {
|
||||
text-transform: uppercase;
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
letter-spacing: 1px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
#sidebar ul {
|
||||
position: relative;
|
||||
left: 30px;
|
||||
list-style: decimal-leading-zero;
|
||||
}
|
||||
|
||||
#sidebar li {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
72
content/stylesheets/syntax.css
Normal file
72
content/stylesheets/syntax.css
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
/* pygments-css colorful */
|
||||
.codehilite .hll { background-color: #ffffcc }
|
||||
.codehilite .c { color: #808080 } /* Comment */
|
||||
.codehilite .err { color: #F00000; background-color: #F0A0A0 } /* Error */
|
||||
.codehilite .k { color: #008000; font-weight: bold } /* Keyword */
|
||||
.codehilite .o { color: #303030 } /* Operator */
|
||||
.codehilite .cm { color: #808080 } /* Comment.Multiline */
|
||||
.codehilite .cp { color: #507090 } /* Comment.Preproc */
|
||||
.codehilite .c1 { color: #808080 } /* Comment.Single */
|
||||
.codehilite .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
|
||||
.codehilite .gd { color: #A00000 } /* Generic.Deleted */
|
||||
.codehilite .ge { font-style: italic } /* Generic.Emph */
|
||||
.codehilite .gr { color: #FF0000 } /* Generic.Error */
|
||||
.codehilite .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.codehilite .gi { color: #00A000 } /* Generic.Inserted */
|
||||
.codehilite .go { color: #808080 } /* Generic.Output */
|
||||
.codehilite .gp {
|
||||
color: #c65d09;
|
||||
font-weight: bold;
|
||||
/* NOTE: Hacks to allow copy-paste */
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
} /* Generic.Prompt */
|
||||
.codehilite .gs { font-weight: bold } /* Generic.Strong */
|
||||
.codehilite .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.codehilite .gt { color: #0040D0 } /* Generic.Traceback */
|
||||
.codehilite .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
|
||||
.codehilite .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
|
||||
.codehilite .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
|
||||
.codehilite .kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */
|
||||
.codehilite .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
|
||||
.codehilite .kt { color: #303090; font-weight: bold } /* Keyword.Type */
|
||||
.codehilite .m { color: #6000E0; font-weight: bold } /* Literal.Number */
|
||||
.codehilite .s { background-color: #fff0f0 } /* Literal.String */
|
||||
.codehilite .na { color: #0000C0 } /* Name.Attribute */
|
||||
.codehilite .nb { color: #007020 } /* Name.Builtin */
|
||||
.codehilite .nc { color: #B00060; font-weight: bold } /* Name.Class */
|
||||
.codehilite .no { color: #003060; font-weight: bold } /* Name.Constant */
|
||||
.codehilite .nd { color: #505050; font-weight: bold } /* Name.Decorator */
|
||||
.codehilite .ni { color: #800000; font-weight: bold } /* Name.Entity */
|
||||
.codehilite .ne { color: #F00000; font-weight: bold } /* Name.Exception */
|
||||
.codehilite .nf { color: #0060B0; font-weight: bold } /* Name.Function */
|
||||
.codehilite .nl { color: #907000; font-weight: bold } /* Name.Label */
|
||||
.codehilite .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
|
||||
.codehilite .nt { color: #007000 } /* Name.Tag */
|
||||
.codehilite .nv { color: #906030 } /* Name.Variable */
|
||||
.codehilite .ow { color: #000000; font-weight: bold } /* Operator.Word */
|
||||
.codehilite .w { color: #bbbbbb } /* Text.Whitespace */
|
||||
.codehilite .mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */
|
||||
.codehilite .mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */
|
||||
.codehilite .mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */
|
||||
.codehilite .mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */
|
||||
.codehilite .sb { background-color: #fff0f0 } /* Literal.String.Backtick */
|
||||
.codehilite .sc { color: #0040D0 } /* Literal.String.Char */
|
||||
.codehilite .sd { color: #D04020 } /* Literal.String.Doc */
|
||||
.codehilite .s2 { background-color: #fff0f0 } /* Literal.String.Double */
|
||||
.codehilite .se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
|
||||
.codehilite .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
|
||||
.codehilite .si { background-color: #e0e0e0 } /* Literal.String.Interpol */
|
||||
.codehilite .sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */
|
||||
.codehilite .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
|
||||
.codehilite .s1 { background-color: #fff0f0 } /* Literal.String.Single */
|
||||
.codehilite .ss { color: #A06000 } /* Literal.String.Symbol */
|
||||
.codehilite .bp { color: #007020 } /* Name.Builtin.Pseudo */
|
||||
.codehilite .vc { color: #306090 } /* Name.Variable.Class */
|
||||
.codehilite .vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */
|
||||
.codehilite .vi { color: #3030B0 } /* Name.Variable.Instance */
|
||||
.codehilite .il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */
|
||||
Loading…
Add table
Add a link
Reference in a new issue