add code
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
* {
|
||||
-webkit-user-select: none;
|
||||
-ms-touch-select: none;
|
||||
/*
|
||||
-ms-touch-action: none;
|
||||
*/
|
||||
}
|
||||
html {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
body {
|
||||
color:#333;
|
||||
font-family: Verdana, Arial, Helvetica , "Microsoft YaHei" , sans-serif;
|
||||
font-size:14px;
|
||||
word-break: break-all;
|
||||
-webkit-touch-callout:none;
|
||||
-webkit-tap-highlight-color:rgba(0,0,0,0);
|
||||
-webkit-text-size-adjust:none;
|
||||
}
|
||||
.content {
|
||||
padding: 0 0.5em;
|
||||
}
|
||||
h1 {
|
||||
border-bottom:2px solid;
|
||||
font-size:1.6em;
|
||||
font-weight:bold;
|
||||
margin:2em 0px 0.5em 0px;
|
||||
|
||||
}
|
||||
h2 {
|
||||
font-size:1.2em;
|
||||
font-weight:bold;
|
||||
margin:1em 0px 0.5em 0px;
|
||||
text-shadow:#FFFFFF 0px 1px 1px;
|
||||
}
|
||||
h3 {
|
||||
font-size:1.1em;
|
||||
font-weight:bold;
|
||||
margin:0.8em 0px 0.5em 0px;
|
||||
text-shadow:#FFFFFF 0px 1px 1px;
|
||||
}
|
||||
em {
|
||||
font-size: 0.8em;
|
||||
color: #999;
|
||||
}
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0 0 0 2em;
|
||||
}
|
||||
a {
|
||||
color:#D84C29;
|
||||
text-decoration:none;
|
||||
}
|
||||
.des {
|
||||
text-indent: 2em;
|
||||
margin: 0;
|
||||
}
|
||||
.type{
|
||||
color:#0A0;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
(function(w){
|
||||
// 空函数
|
||||
function shield(){
|
||||
return false;
|
||||
}
|
||||
//取消浏览器的所有事件,使得active的样式在手机上正常生效
|
||||
document.addEventListener('touchstart',shield,false);
|
||||
document.oncontextmenu=shield;
|
||||
// DOMContentLoaded事件处理
|
||||
document.addEventListener('DOMContentLoaded',function(){
|
||||
document.body.onselectstart=shield;
|
||||
prettyPrint();
|
||||
},false);
|
||||
})(window);
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Derived from einaros's Sons of Obsidian theme at
|
||||
* http://studiostyl.es/schemes/son-of-obsidian by
|
||||
* Alex Ford of CodeTunnel:
|
||||
* http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme
|
||||
*/
|
||||
|
||||
.str
|
||||
{
|
||||
color: #EC7600;
|
||||
}
|
||||
.kwd
|
||||
{
|
||||
color: #93C763;
|
||||
}
|
||||
.com
|
||||
{
|
||||
color: #66747B;
|
||||
}
|
||||
.typ
|
||||
{
|
||||
color: #678CB1;
|
||||
}
|
||||
.lit
|
||||
{
|
||||
color: #FACD22;
|
||||
}
|
||||
.pun
|
||||
{
|
||||
color: #F1F2F3;
|
||||
}
|
||||
.pln
|
||||
{
|
||||
color: #F1F2F3;
|
||||
}
|
||||
.tag
|
||||
{
|
||||
color: #8AC763;
|
||||
}
|
||||
.atn
|
||||
{
|
||||
color: #E0E2E4;
|
||||
}
|
||||
.atv
|
||||
{
|
||||
color: #EC7600;
|
||||
}
|
||||
.dec
|
||||
{
|
||||
color: purple;
|
||||
}
|
||||
pre.prettyprint
|
||||
{
|
||||
border: 0px solid #888;
|
||||
}
|
||||
ol.linenums
|
||||
{
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.prettyprint {
|
||||
background: #000;
|
||||
border-radius: 3px;
|
||||
padding: 1em 0;
|
||||
overflow-x: scroll;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
/*white-space: pre-wrap;*//*css-3*/
|
||||
/*word-wrap: break-word;*//*Internet Explorer 5.5+*/
|
||||
}
|
||||
li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9
|
||||
{
|
||||
color: #555;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
/*li.L1, li.L3, li.L5, li.L7, li.L9 {
|
||||
background: #222;
|
||||
}*/
|
||||
@media print
|
||||
{
|
||||
.str
|
||||
{
|
||||
color: #060;
|
||||
}
|
||||
.kwd
|
||||
{
|
||||
color: #006;
|
||||
font-weight: bold;
|
||||
}
|
||||
.com
|
||||
{
|
||||
color: #600;
|
||||
font-style: italic;
|
||||
}
|
||||
.typ
|
||||
{
|
||||
color: #404;
|
||||
font-weight: bold;
|
||||
}
|
||||
.lit
|
||||
{
|
||||
color: #044;
|
||||
}
|
||||
.pun
|
||||
{
|
||||
color: #440;
|
||||
}
|
||||
.pln
|
||||
{
|
||||
color: #000;
|
||||
}
|
||||
.tag
|
||||
{
|
||||
color: #006;
|
||||
font-weight: bold;
|
||||
}
|
||||
.atn
|
||||
{
|
||||
color: #404;
|
||||
}
|
||||
.atv
|
||||
{
|
||||
color: #060;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user