Added snippet database to the website.
This commit is contained in:
parent
a81cf3a67c
commit
0ab7a9cb67
22 changed files with 825 additions and 118 deletions
|
|
@ -2,12 +2,15 @@ body { font-family: 'Georgia', serif; font-size: 17px; color: #000; }
|
|||
a { color: #004B6B; }
|
||||
a:hover { color: #6D4100; }
|
||||
.box { width: 540px; margin: 40px auto; }
|
||||
h1, h2, h3 { font-family: 'Garamond', 'Georgia', serif; font-weight: normal; }
|
||||
h2, h3 { font-family: 'Garamond', 'Georgia', serif; font-weight: normal; }
|
||||
h1 { margin: 0 0 30px 0; background: url(/static/flask.png) no-repeat center;
|
||||
height: 165px; }
|
||||
h1 span { display: none; }
|
||||
h2 { font-size: 28px; margin: 15px 0 5px 0; }
|
||||
h3 { font-size: 22px; margin: 15px 0 5px 0; }
|
||||
code,
|
||||
textarea, code,
|
||||
pre { font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono',
|
||||
monospace; font-size: 15px; background: #eee; }
|
||||
monospace!important; font-size: 15px; background: #eee; }
|
||||
pre { padding: 7px 30px; margin: 15px -30px; line-height: 1.3; }
|
||||
.ig { color: #888; }
|
||||
p { line-height: 1.4; }
|
||||
|
|
@ -19,6 +22,27 @@ blockquote { margin: 0; font-style: italic; color: #444; }
|
|||
.nav a { font-style: italic; }
|
||||
.backnav { float: right; color: #444; font-style: italic;
|
||||
margin: 5px 0 0 0; font-size: 0.9em; }
|
||||
.message { background: #DEEBF3; color: #004B6B; padding: 5px 30px;
|
||||
margin: 10px -30px; }
|
||||
|
||||
/* forms */
|
||||
input, textarea { border: 1px solid black; padding: 2px; background: white;
|
||||
font-family: 'Georgia', serif; font-size: 17px; color: #004B6B; }
|
||||
textarea { width: 99%; }
|
||||
input[type="submit"] { background: #DEEBF3; border-color: #004B6B; }
|
||||
input.openid { background: url(openid.png) no-repeat 4px center;
|
||||
padding-left: 26px; }
|
||||
|
||||
/* snippets */
|
||||
.snippet-author { margin: 0 0 20px 0; font-size: 0.9em; }
|
||||
#comment-box { background: #fafafa; margin: 45px -30px 15px -30px; padding: 10px 30px; }
|
||||
.comments { margin-top: 0; }
|
||||
.comments .title { border-bottom: 1px solid black; margin: 0; font-style: italic; }
|
||||
.comments .body { margin: 0 0 0 30px; }
|
||||
.comments .body pre { padding: 7px 30px 7px 60px; margin: 10px -30px 10px -60px; }
|
||||
.comments .body p { margin: 10px 0; }
|
||||
.comments li:before { display: none; }
|
||||
#preview { margin: 20px -30px; padding: 10px 30px; background: #fafafa; }
|
||||
|
||||
/* mailinglist */
|
||||
.pagination { text-align: center; font-size: 15px; margin: 20px 0 0 0; }
|
||||
|
|
@ -45,3 +69,74 @@ blockquote { margin: 0; font-style: italic; color: #444; }
|
|||
line-height: 1.15; }
|
||||
.mail .quote { color: #004B6B; }
|
||||
.mail .sig { color: #888; }
|
||||
|
||||
/* pygments style, same as flaskystyle */
|
||||
.hll { background-color: #ffffcc }
|
||||
.c { color: #8f5902; font-style: italic } /* Comment */
|
||||
.err { color: #a40000; border: 1px solid #ef2929 } /* Error */
|
||||
.g { color: #000000 } /* Generic */
|
||||
.k { color: #004461; font-weight: bold } /* Keyword */
|
||||
.l { color: #000000 } /* Literal */
|
||||
.n { color: #000000 } /* Name */
|
||||
.o { color: #582800 } /* Operator */
|
||||
.x { color: #000000 } /* Other */
|
||||
.p { color: #000000; font-weight: bold } /* Punctuation */
|
||||
.cm { color: #8f5902; font-style: italic } /* Comment.Multiline */
|
||||
.cp { color: #8f5902 } /* Comment.Preproc */
|
||||
.c1 { color: #8f5902; font-style: italic } /* Comment.Single */
|
||||
.cs { color: #8f5902; font-style: italic } /* Comment.Special */
|
||||
.gd { color: #a40000 } /* Generic.Deleted */
|
||||
.ge { color: #000000; font-style: italic } /* Generic.Emph */
|
||||
.gr { color: #ef2929 } /* Generic.Error */
|
||||
.gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.gi { color: #00A000 } /* Generic.Inserted */
|
||||
.go { color: #808080 } /* Generic.Output */
|
||||
.gp { color: #745334 } /* Generic.Prompt */
|
||||
.gs { color: #000000; font-weight: bold } /* Generic.Strong */
|
||||
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
|
||||
.kc { color: #004461; font-weight: bold } /* Keyword.Constant */
|
||||
.kd { color: #004461; font-weight: bold } /* Keyword.Declaration */
|
||||
.kn { color: #004461; font-weight: bold } /* Keyword.Namespace */
|
||||
.kp { color: #004461; font-weight: bold } /* Keyword.Pseudo */
|
||||
.kr { color: #004461; font-weight: bold } /* Keyword.Reserved */
|
||||
.kt { color: #004461; font-weight: bold } /* Keyword.Type */
|
||||
.ld { color: #000000 } /* Literal.Date */
|
||||
.m { color: #990000 } /* Literal.Number */
|
||||
.s { color: #4e9a06 } /* Literal.String */
|
||||
.na { color: #c4a000 } /* Name.Attribute */
|
||||
.nb { color: #004461 } /* Name.Builtin */
|
||||
.nc { color: #000000 } /* Name.Class */
|
||||
.no { color: #000000 } /* Name.Constant */
|
||||
.nd { color: #808080 } /* Name.Decorator */
|
||||
.ni { color: #ce5c00 } /* Name.Entity */
|
||||
.ne { color: #cc0000; font-weight: bold } /* Name.Exception */
|
||||
.nf { color: #000000 } /* Name.Function */
|
||||
.nl { color: #f57900 } /* Name.Label */
|
||||
.nn { color: #000000 } /* Name.Namespace */
|
||||
.nx { color: #000000 } /* Name.Other */
|
||||
.py { color: #000000 } /* Name.Property */
|
||||
.nt { color: #004461; font-weight: bold } /* Name.Tag */
|
||||
.nv { color: #000000 } /* Name.Variable */
|
||||
.ow { color: #004461; font-weight: bold } /* Operator.Word */
|
||||
.w { color: #f8f8f8; text-decoration: underline } /* Text.Whitespace */
|
||||
.mf { color: #990000 } /* Literal.Number.Float */
|
||||
.mh { color: #990000 } /* Literal.Number.Hex */
|
||||
.mi { color: #990000 } /* Literal.Number.Integer */
|
||||
.mo { color: #990000 } /* Literal.Number.Oct */
|
||||
.sb { color: #4e9a06 } /* Literal.String.Backtick */
|
||||
.sc { color: #4e9a06 } /* Literal.String.Char */
|
||||
.sd { color: #8f5902; font-style: italic } /* Literal.String.Doc */
|
||||
.s2 { color: #4e9a06 } /* Literal.String.Double */
|
||||
.se { color: #4e9a06 } /* Literal.String.Escape */
|
||||
.sh { color: #4e9a06 } /* Literal.String.Heredoc */
|
||||
.si { color: #4e9a06 } /* Literal.String.Interpol */
|
||||
.sx { color: #4e9a06 } /* Literal.String.Other */
|
||||
.sr { color: #4e9a06 } /* Literal.String.Regex */
|
||||
.s1 { color: #4e9a06 } /* Literal.String.Single */
|
||||
.ss { color: #4e9a06 } /* Literal.String.Symbol */
|
||||
.bp { color: #3465a4 } /* Name.Builtin.Pseudo */
|
||||
.vc { color: #000000 } /* Name.Variable.Class */
|
||||
.vg { color: #000000 } /* Name.Variable.Global */
|
||||
.vi { color: #000000 } /* Name.Variable.Instance */
|
||||
.il { color: #990000 } /* Literal.Number.Integer.Long */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue