wordpress登录美化css,WordPress-让你的代码高亮更好看-知更鸟主题css美化

今天,小笨又拿鸟哥的主题开刀(美化)了,更新了代码高亮的样式,二话不说,先上图:

52290fa84ee313acfb59d040f2bf45d3.png

主要是左侧的数字增加了渐变样式,比之前黑乎乎的代码高亮好看多了,至于文字的颜色,有前端基础的童鞋可以重新调整一下。

样式代码

样式代码只要丢进wordpress->自定义->额外css就阔以了。

.prettyprint,pre.prettyprint {

background:#fff;

background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);

border:1px dashed #ccc;

}

.prettyprint:hover,pre.prettyprint:hover {

background:#fafafa;

background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);

border:1px dashed #0088cc;

}

.prettyprint.linenums,pre.prettyprint.linenums {

-webkit-box-shadow:none;

box-shadow:none;

border-radius:0;

}

.prettyprint.linenums,pre.prettyprint.linenums .linenums{

background-color:#fafafa;

}

.prettyprint.linenums ol,pre.prettyprint.linenums ol {

counter-reset: my-counter;

}

.prettyprint .pun,.prettyprint .opn,.prettyprint .clo {

color:#ccc;

}

.prettyprint .typ,.prettyprint .atn,.prettyprint .dec,.prettyprint .var {

color:#090;

}

.prettyprint .lit {

color:#f15a22;

}

.prettyprint .com {

color:#694d9f;

}

.prettyprint .pln {

color:#09a;

}

.prettyprint .pun {

color:#ef5b9c;

}

.prettyprint.linenums ol li,pre.prettyprint.linenums ol li{

list-style: none;

margin:6px 0px;

padding-left:19px;

}

.prettyprint.linenums ol li:before,pre.prettyprint.linenums ol li:before{

content: counter(my-counter);

counter-increment: my-counter;

background-image: linear-gradient(-20deg, #b721ff 0%, #21d4fd 100%);

color: white;

display: block;

float: left;

line-height: 22px;

margin-left: -30px;

text-align: center;

height: 22px;

width: 22px;

border-radius: 50%;

font-size:12px;

}

更多请关注小笨分享站!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值