Created
March 3, 2019 01:46
-
-
Save lartpang/f59fd3c3c04fe6ac487df221aad3801d to your computer and use it in GitHub Desktop.
博客园css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************** | |
说明: | |
1:我们建议你通过只改变css的方式来制作新的皮肤模板。当然,页面的部分代 | |
码你也是可以更改的,例如一些图片的地址。但是,请你在递交作品的时候,请同时 | |
提交对页面部分代码的修改备注和说明。以便我们了解。 | |
2:为了保证页面的兼容性,请你分别在IE和Firefox中分别查看你的页面,以便保证页面 | |
对浏览器的兼容性。 | |
3:请你随时关注官方网站。以便获得最新的通知和说明 | |
时间:2008-1-30 | |
作者:杨正祎 | |
**************************************************/ | |
/************************************************** | |
说明2: | |
上面那个说明,是在 http://skintemplate.cnblogs.com 下载的皮肤模板中附带的 | |
在八年后的今天,这份“模板”,其实真正保留的,也只有注释了。 | |
博客园肯定经过了许许多多的变迁,好多元素的类名,ID都或多或少的有所变化。 | |
我也没有准备兼容低级浏览器,用了一些奇怪的选择器。没办法,谁让没有JS权限呢。 | |
博客园官方貌似一直没有更新这个主题模板,我也没有找到投递新主题的入口。 | |
嗯,就放在这里吧,算是我对MaterialDesign的一个执念。 | |
时间:2016-8-26 00:12 | |
作者:Rocket1184@博客园 | |
**************************************************/ | |
/************************************************** | |
坑: | |
由于博客园任性的代码高亮CSS,全部是 !important 优先级而且无法覆盖, | |
此次的修改没有对代码块的字体大小做调整,但这恰恰是我最急于改变的地方之一。 | |
我会尽快申请JS权限,以便找到更好的解决方案。 | |
时间:2016-8-26 00:16 | |
更新: | |
已经使用优先级更高的 id 选择器和 !important 优先级覆盖了默认代码字体。 | |
这坑算是填上了。 | |
时间:2012-11-8 00:14 | |
作者:Rocket1184@博客园 | |
**************************************************/ | |
/************************************************** | |
第一部分:所有的模板都使用的公共样式。公告样式是为了更好的向前和向后兼容。 | |
如果不符合你皮肤的要求,你可以在后面通过更高的优先级覆盖着这些样式,但是 | |
你不能删除这些样式。 | |
**************************************************/ | |
#EntryTag { | |
margin-top: 20px; | |
font-size: 9pt; | |
color: gray; | |
} | |
.topicListFooter { | |
text-align: right; | |
margin-right: 10px; | |
margin-top: 10px; | |
} | |
#divRefreshComments { | |
text-align: right; | |
margin-right: 10px; | |
margin-bottom: 5px; | |
font-size: 9pt; | |
} | |
/*****第一部分结束*******************************/ | |
/************************************************** | |
第二部:公共样式(全局样式)。公共会对所有页面的标签都起作用。这个部分你 | |
可以随意的更改,并不会牵扯到其他的皮肤模板。但是每次更改都要注意你的皮肤 | |
模板所有页面的变化。因为它们是全局的。 | |
**************************************************/ | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html { | |
height: 100%; | |
} | |
body { | |
color: #000000; | |
background: #CFD8DD; | |
font-family: '文泉驿微米黑', 'Noto Sans CJK SC', 'Segoe UI', sans-serif; | |
font-size: 16px; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
fieldset, | |
img { | |
border: 0; | |
} | |
ul { | |
word-break: break-all; | |
} | |
li { | |
list-style: none; | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-size: 100%; | |
font-weight: normal; | |
} | |
a { | |
outline: none; | |
} | |
a:link { | |
color: black; | |
text-decoration: none; | |
} | |
a:visited { | |
color: black; | |
text-decoration: none; | |
} | |
a:hover { | |
color: #F60; | |
text-decoration: none; | |
} | |
a:active { | |
color: black; | |
text-decoration: none; | |
} | |
.clear { | |
clear: both; | |
} | |
/*****第二部分结束*******************************/ | |
/************************************************** | |
第三部分:各个页面元素的样式。你可以根据需要随意的更改,并不会牵扯到其他 | |
的皮肤模板。这个部分是最能展现你想象力的部分。其中头部和侧边栏部分是此皮 | |
肤公共的部分。而每个页面特有的部分会有相应的注释和说明。 | |
**************************************************/ | |
/*****home和头部开始**************************/ | |
#header { | |
margin-bottom: 1.2rem; | |
} | |
#blogTitle { | |
height: 240px; | |
margin-top: 3em; | |
background-color: teal; | |
} | |
#blogTitle h1, | |
#blogTitle h2 { | |
width: 1200px; | |
display: block; | |
margin: 0 auto; | |
} | |
#blogTitle h1 { | |
margin-top: 4em; | |
} | |
a.headermaintitle, | |
#blogTitle h2 { | |
text-decoration: none; | |
font-size: 2.4rem; | |
color: white; | |
font-weight: 900; | |
text-shadow: 0 4px 4px rgba(0, 0, 0, 0.2); | |
} | |
#blogTitle h2 { | |
font-weight: 500; | |
font-size: 1.2rem; | |
} | |
#navigator { | |
background-color: #009688; | |
position: fixed; | |
width: 100%; | |
height: 3em; | |
top: 0; | |
left: 0; | |
right: 0; | |
overflow: hidden; | |
box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); | |
opacity: 0.8; | |
z-index: 10086; | |
} | |
#navList { | |
display: block; | |
width: 1200px; | |
margin: auto; | |
} | |
#navList li { | |
display: inline-block; | |
line-height: 3em; | |
transition: background-color 0.4s; | |
} | |
#navList li:hover { | |
background-color: rgba(255, 255, 255, 0.2); | |
} | |
#navList li a { | |
text-decoration: none; | |
color: white; | |
padding: 1em; | |
} | |
.blogStats { | |
display: none; | |
} | |
/*****home和头部结束**************************/ | |
/*****主页文章列表开始**************************/ | |
#main { | |
width: 1200px; | |
margin: auto; | |
font-size: 0; | |
} | |
#mainContent, | |
#sideBar { | |
font-size: 1rem; | |
width: 920px; | |
display: inline-block; | |
} | |
.day { | |
width: 900px; | |
margin-bottom: 2rem; | |
background-color: white; | |
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15); | |
padding: 0.6rem 1rem; | |
box-sizing: border-box; | |
border-radius: 2px; | |
} | |
.dayTitle { | |
color: #009688; | |
float: right; | |
} | |
.postTitle::before, | |
.entrylistPosttitle::before { | |
content: '|'; | |
color: #009688; | |
font-size: 1.3rem; | |
font-weight: 900; | |
display: inline-block; | |
} | |
.postTitle a, | |
.entrylistPosttitle a { | |
text-decoration: none; | |
font-size: 1.3rem; | |
color: #009688; | |
transition: margin-left 0.4s; | |
} | |
.postTitle a:hover { | |
margin-left: 1.2rem; | |
} | |
.postCon, | |
.entrylistPostSummary { | |
margin: 1em; | |
} | |
.postTitle:not(:nth-child(2)) { | |
padding-top: 0.6rem; | |
} | |
.postDesc:not(:nth-last-child(2))::after { | |
user-select: none; | |
color: white; | |
font-size: 8px; | |
display: block; | |
width: calc(100% + 2rem); | |
content: '-'; | |
position: relative; | |
right: 1rem; | |
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15); | |
border-radius: 2px; | |
z-index: 2; | |
} | |
.postSeparator { | |
width: calc(100% + 3rem); | |
position: relative; | |
right: 1.5rem; | |
height: 2rem; | |
display: block; | |
background-color: #CFD8DD; | |
} | |
.topicListFooter { | |
width: 900px; | |
} | |
.topicListFooter a { | |
padding: 0.6rem 1rem; | |
color: white; | |
background-color: #009688; | |
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15); | |
} | |
/*****主页文章列表结束**************************/ | |
/*****侧边栏开始********************************/ | |
#sideBar { | |
width: 280px; | |
vertical-align: top; | |
} | |
.newsItem, | |
#blog-calendar, | |
#leftcontentcontainer > div > div { | |
margin-bottom: 2rem; | |
background-color: white; | |
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15); | |
box-sizing: border-box; | |
border-radius: 2px; | |
padding: 0.4rem 0.6rem; | |
overflow: hidden; | |
} | |
.newsItem h3, | |
#blog-calendar::before { | |
display: block; | |
color: white; | |
background-color: #009688; | |
width: 100%; | |
padding: 0.4rem 0.6rem; | |
position: relative; | |
right: 0.6rem; | |
bottom: 0.4rem; | |
box-sizing: content-box; | |
} | |
#blog-calendar::before { | |
content: '日历'; | |
} | |
#blogCalendar td, | |
#calender th { | |
position: relative; | |
color: black; | |
padding: 0.1rem 0.6rem; | |
} | |
.CalTitle td:nth-child(2) { | |
padding: 0 3.1rem !important; | |
} | |
#blogCalendar th.CalDayHeader { | |
color: dimgrey; | |
} | |
#blogCalendar td.CalOtherMonthDay { | |
color: grey; | |
} | |
#blogCalendar td a u { | |
text-decoration: none; | |
color: teal; | |
} | |
#blogCalendar td.CalTodayDay { | |
z-index: 1; | |
} | |
#blogCalendar td.CalTodayDay, | |
#blogCalendar td.CalTodayDay a u { | |
color: white !important; | |
} | |
#blogCalendar td.CalTodayDay::before { | |
top: -0.05rem; | |
right: 0.2rem; | |
position: absolute; | |
display: block; | |
content: 'O'; | |
color: #009688; | |
background-color: #009688; | |
border-radius: 1rem; | |
width: 1.8rem; | |
height: 1.8rem; | |
z-index: -1; | |
} | |
#leftcontentcontainer > div > div { | |
padding: 0; | |
} | |
.catListTitle { | |
color: white; | |
background-color: #009688; | |
padding: 0.4rem 0.6rem; | |
} | |
#leftcontentcontainer li { | |
padding: 0.2rem 0.4rem; | |
transition: background-color 0.4s; | |
} | |
#leftcontentcontainer li:not(:last-child) { | |
border-bottom: 1px solid rgba(0, 0, 0, 0.15); | |
} | |
#leftcontentcontainer li:hover { | |
background-color: rgba(0, 0, 0, 0.1); | |
} | |
#leftcontentcontainer ul li a { | |
color: black; | |
display: inline-block; | |
width: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} | |
#leftcontentcontainer ul li a { | |
color: black; | |
display: inline-block; | |
width: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} | |
.recent_comment_title, | |
.recent_comment_body { | |
border: none !important; | |
margin: 0 !important; | |
} | |
#sidebar_search_box { | |
padding: 0.4rem 0.6rem; | |
} | |
input.input_my_zzk { | |
border: none; | |
border-bottom: 2px solid teal; | |
width: 11rem; | |
} | |
input.btn_my_zzk { | |
color: white; | |
border: none; | |
outline: none; | |
display: inline-block; | |
background-color: teal; | |
padding: 0.4rem 0.6rem; | |
cursor: pointer; | |
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); | |
vertical-align: bottom; | |
height: unset !important; | |
border-radius: 2px; | |
} | |
#sidebar_toptags ul li { | |
padding: 0.3rem 0.4rem; | |
} | |
#sidebar_toptags ul li a { | |
display: inline-block; | |
vertical-align: bottom; | |
width: unset | |
} | |
/*****侧边栏结束********************************/ | |
/* 文章查看部分 */ | |
#post_detail, | |
.feedbackItem, | |
#comment_form_container, | |
#divCommentShow > div, | |
#under_post_news, | |
#under_post_kb, | |
.entrylistItem, | |
#myposts, | |
#ad_t2 { | |
width: 900px; | |
margin-bottom: 2rem; | |
background-color: white; | |
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15); | |
padding: 0.6rem 1rem; | |
box-sizing: border-box; | |
border-radius: 2px; | |
} | |
#post_detail .postDesc::after { | |
display: none; | |
} | |
/* 文章后的作者信息,支持/反对 */ | |
#author_profile { | |
width: 150px; | |
float: left; | |
margin-top: 10px; | |
} | |
#green_channel { | |
float: right; | |
position: relative; | |
border: none; | |
right: 150px; | |
} | |
#div_digg { | |
float: right; | |
position: relative; | |
left: 360px; | |
} | |
#digg_tips { | |
display: none; | |
} | |
/* 评论区 */ | |
.feedback_area_title, | |
#commentform_title, | |
.entrylistTitle, | |
.myposts_title { | |
font-size: 1.2rem; | |
color: white; | |
background-color: #009688; | |
width: 900px; | |
padding: 0.4rem 0.6rem; | |
box-sizing: border-box; | |
margin-bottom: 1rem; | |
} | |
.feedbackItem { | |
margin-bottom: 1rem; | |
position: relative; | |
} | |
.feedbackListSubtitle { | |
color: white; | |
font-size: 0; | |
} | |
.feedbackManage { | |
z-index: 5; | |
font-size: 1rem; | |
position: absolute; | |
bottom: 0.6rem; | |
right: 1rem; | |
} | |
a.layer { | |
font-style: italic; | |
position: absolute; | |
font-size: 3.5rem; | |
color: black; | |
opacity: 0.1; | |
bottom: 0; | |
right: 1rem; | |
z-index: 1; | |
} | |
.comment_date { | |
font-size: 1rem; | |
position: relative; | |
left: 0.5em; | |
color: gray; | |
} | |
.blog_comment_body { | |
margin: 8px; | |
} | |
.comment_vote { | |
text-align: left; | |
position: relative; | |
right: 0.6rem; | |
} | |
a[id^='a_comment_author'] { | |
font-size: 1rem; | |
float: left; | |
} | |
.louzhu::before, | |
.comment_my_posted b::before, | |
.new-comment-title a:nth-child(2)::before { | |
color: white; | |
font-size: 1rem; | |
content: '博主'; | |
display: inline-block !important; | |
background-color: darkblue; | |
padding: 0 0.2rem; | |
border-radius: 4px; | |
vertical-align: bottom; | |
} | |
.louzhu::before { | |
margin-left: 0.5rem; | |
} | |
.sendMsg2This { | |
display: none; | |
} | |
legend > a::before { | |
content: '查看'; | |
} | |
.comment_quote, | |
.postBody blockquote { | |
position: relative; | |
border: none; | |
border-left: 10px solid lightgray; | |
background-color: rgba(0, 0, 0, 0.05); | |
} | |
#comment_form { | |
position: relative; | |
} | |
#comment_nav { | |
width: 900px; | |
margin: 2rem 0; | |
} | |
/* 发布评论 */ | |
#comment_nav > a, | |
#span_refresh_tips, | |
#btn_comment_submit, | |
#commentbox_opt a { | |
padding: 0.6rem 0.8rem; | |
background-color: #009688; | |
color: white !important; | |
margin: 0.3rem; | |
box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15); | |
border-radius: 2px; | |
} | |
#span_refresh_tips { | |
display: none; | |
} | |
#commentform_title { | |
background-image: none; | |
position: relative; | |
right: 1rem; | |
bottom: 0.6rem; | |
margin-bottom: 0; | |
} | |
#tip_comment { | |
position: absolute; | |
top: 0.1rem; | |
} | |
#tbCommentAuthor { | |
background: none; | |
border: none; | |
padding: 0; | |
font-size: 1rem; | |
width: calc(100% - 3rem); | |
} | |
.comment_my_posted > img { | |
display: none; | |
} | |
.comment_my_posted b::before { | |
margin-right: 0.5rem; | |
font-weight: 500; | |
content: '发布中'; | |
background-color: skyblue; | |
} | |
.new-comment-title .comment_date { | |
display: none; | |
} | |
.new-comment-title a:nth-child(2) { | |
float: left; | |
} | |
.new-comment-title a:nth-child(2)::before { | |
margin-right: 0.5rem; | |
content: '已发布'; | |
background-color: lightgreen; | |
} | |
.new-comment-title a { | |
float: right; | |
} | |
#tbCommentBody { | |
height: 10rem; | |
width: 860px; | |
font-size: 1rem; | |
font-family: 'Monaco', '文泉驿微米黑', '微软雅黑'; | |
resize: none; | |
} | |
#btn_comment_submit { | |
border: none; | |
width: unset; | |
height: unset; | |
font-size: 1rem; | |
} | |
#commentbox_opt a:last-child { | |
background-color: gray; | |
} | |
#comment_form_container > p:nth-last-child(2) { | |
color: gray; | |
bottom: 2rem; | |
position: relative; | |
float: right; | |
} | |
/* 随笔档案(按时间分类) */ | |
.entrylistPosttitle a { | |
margin-left: 0.3rem; | |
} | |
.entrylistPosttitle a:hover { | |
margin-left: 1.5rem; | |
} | |
/* 随笔标签 */ | |
#myposts { | |
margin: 0; | |
padding: 0; | |
} | |
.myposts_title { | |
font-size: 1.2rem !important; | |
} | |
.PostList { | |
font-size: 1rem !important; | |
padding: 1rem; | |
margin: 0 !important; | |
border-bottom: 1px solid gray; | |
} | |
.PostList:nth-last-child(2) { | |
border: none; | |
} | |
.postDesc2 { | |
float: right; | |
} | |
/* 页尾footer */ | |
#footer { | |
text-align: center; | |
margin-bottom: 3rem; | |
} | |
/* 比较影响页面一致性的广告 */ | |
#ad_c1, | |
#ad_c2 { | |
display: none | |
} | |
/*****第三部分结束*******************************/ | |
/************************************************** | |
第四部分:文章内容常用标签格式。这个部分是设置作者写作内容的部分。例如: | |
如果作者的文章用有p标签,则可通过这个对这些文章中的p标签进行设置。前面 | |
的“.postBody”明确的指出了这里样式的作用范围。仅仅适用于文章主体部分。 | |
建议这个不要设置过于详细的细节。因为,一些样式,一篇文章比较适合的话, | |
并不能保证所有的文章都适合。 | |
**************************************************/ | |
/*文章内部常用标签格式*/ | |
#EntryTag, | |
#post_next_prev { | |
font-size: 1rem; | |
} | |
#cnblogs_post_body code { | |
font-family: 'Monaco', 'Consolas', monospace, '文泉驿微米黑', '微软雅黑' !important; | |
white-space: pre; | |
} | |
.postBody img { | |
max-width: 100% !important; | |
} | |
.postBody blockquote { | |
position: relative; | |
border: none; | |
border-left: 10px solid lightgray; | |
background-color: rgba(0, 0, 0, 0.05); | |
} | |
/*****第四部分结束*******************************/ | |
/************************************************** | |
第五部分:响应式视图布局。 | |
**************************************************/ | |
@media screen and (max-width:1200px) { | |
#navigator { | |
width: 100%; | |
overflow: scroll; | |
} | |
#navList { | |
margin: 0; | |
width: max-content; | |
} | |
#blogTitle h1, | |
#blogTitle h2 { | |
margin-left: 2rem; | |
width: max-content; | |
} | |
#main { | |
width: 100%; | |
padding: 0 1rem; | |
box-sizing: border-box; | |
} | |
.dayTitle, | |
#comment_form_container > p:nth-last-child(2), | |
.postText2 { | |
display: none; | |
} | |
#mainContent, | |
#sideBar, | |
.day, | |
.feedback_area_title, | |
.entrylistTitle, | |
.myposts_title, | |
.feedbackItem, | |
#post_detail, | |
#comment_form_container, | |
#divCommentShow > div, | |
#under_post_news, | |
#under_post_kb, | |
.entrylistItem, | |
#myposts, | |
#comment_nav, | |
#ad_t2 { | |
width: 100% !important; | |
} | |
#green_channel { | |
width: max-content; | |
float: none; | |
right: 0; | |
} | |
#div_digg { | |
position: inherit; | |
} | |
#blogCalendar td.CalTodayDay { | |
background-color: teal; | |
} | |
#blogCalendar td.CalTodayDay::before { | |
display: none; | |
} | |
#commentform_title { | |
width: calc(100% + 2rem); | |
} | |
#tbCommentBody { | |
width: calc(100% - 0.5rem); | |
} | |
.commentbox_title { | |
width: 300px; | |
} | |
.commentbox_title_right { | |
float: none; | |
} | |
.PostList { | |
padding: 0.5rem 0.5rem 0; | |
} | |
.postDesc2 { | |
display: block; | |
margin-top: 1rem; | |
} | |
} | |
@media screen and (max-width:1200px) and (min-width:900px) { | |
#main, | |
#mainContent, | |
#sideBar, | |
#blogTitle h1, | |
#blogTitle h2 { | |
width: 900px; | |
} | |
} | |
/*****第五部分结束*******************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "UTF-8"; | |
/* | |
* ============English============ | |
* | |
* License(ONLY this file):WTFPL(//www.wtfpl.net/) | |
* | |
* Update Date:2014-10-12 | |
* | |
* Author:Frantic1048 | |
* | |
* Announcement:I DO NOT OWN the pictures used in the Credits! | |
* | |
* Credits: | |
* Commontbox background:Mao Amatsuka by Scriptedillusion(//scriptedillusion.deviantart.com) | |
* post_body background:Senri Akane by Zaydo(//zaydo.deviantart.com) | |
* | |
* How To Use: | |
* This style effect on "Gertrude Blue" cnblog skin's template.So you should set your skin to "Gertrude Blue" first. | |
* Copy this CSS file into "Blog Custom CSS" area. | |
* You can surely disable the template's default CSS. | |
* You have to set the URL in Line#238 to your own avatar's URL,it affects the avatar in the sidebar. | |
* Add the line below into "Blog Sidebar" area. | |
* <div id="sidebar-cus">< div id="cus-avatar"></div></div> | |
* Add the line below at the end of your blog page for a better experience.Not directly use in this CSS file. | |
* <style type="text/css">@import url(//fonts.googleapis.com/css?family=Kelly+Slab|Raleway);</style> | |
* If you want to use page head,follow the strucure below,the second span tag is optional: | |
* <div id="top-qoute-container"> | |
* <span id="top-qoute-context">It is the path you have chosen. Take pride in it.</span> | |
* <span id="top-qoute-from">Kotomine Kirei</span> | |
* </div> | |
* | |
* | |
* ============简体中文============ | |
* | |
* 协议(仅此文件):WTFPL(//www.wtfpl.net/) | |
* | |
* 更新日期:2014-10-12 | |
* | |
* 作者:Frantic1048 | |
* | |
* 声明:特别感谢中提及的作品归原作者所有,我只是个打码的。 | |
* | |
* 特别感谢: | |
* 评论框背景:天使真央 by Scriptedillusion(//scriptedillusion.deviantart.com) | |
* 正文背景:千里朱音 by Zaydo(//zaydo.deviantart.com) | |
* | |
* 如何使用: | |
* 这个CSS作用于博客园的"Gertrude Blue"皮肤,你应该先把你的皮肤切换到"Gertrude Blue"。 | |
* 把本文件的内容复制到博客设置的自定义CSS区域。 | |
* 直接禁用主题自带的CSS。 | |
* 把本文件第238行的URL修改成你的头像的URL。此行作用于侧栏头像。 | |
* 把下面这行代码添加到博客侧边栏公告区域。 | |
* <div id="sidebar-cus">< div id="cus-avatar"></div></div> | |
* 为了更好的体验,把下面这行添加到博客页脚,不要直接在本文件中应用这行代码。 | |
* <style type="text/css">@import url(//fonts.googleapis.com/css?family=Kelly+Slab|Raleway);</style> | |
* 如果想要使用页首,遵循下面的结构,其中第二个 span 标签是可选的: | |
* <div id="top-qoute-container"> | |
* <span id="top-qoute-context">It is the path you have chosen. Take pride in it.</span> | |
* <span id="top-qoute-from">Kotomine Kirei</span> | |
* </div> | |
*/ | |
/*common*/ | |
{-webkit-box-sizing:border-box;box-sizing:border-box;} | |
body{ | |
font-family:"Raleway","文泉驿微米黑","微软雅黒","Helvetica","sans-serif"; | |
background:#ddd; | |
font-size:14px; | |
margin:0; | |
word-wrap:break-word; | |
} | |
input,textarea{ | |
background:#444; | |
color:#eee; | |
transition:all ease 0.3s; | |
} | |
input:hover,textarea:hover{ | |
background:#333; | |
box-shadow:inset 0 0 1px transparent,0 0 2px rgb(72,209,204); | |
} | |
input:focus,textarea:focus{ | |
background:black; | |
box-shadow:inset 0 0 3px rgb(72,209,204),0 0 1px rgb(72,209,204); | |
} | |
::-moz-selection{ | |
background:rgba(0,206,209,0.2); | |
color:black; | |
} | |
::seletcion{ | |
background:rgba(0,206,209,0.2); | |
color:black; | |
} | |
a:link{ | |
transition:all ease 0.3s; | |
position:relative; | |
text-decoration:none !important; | |
} | |
a:hover{ | |
padding:0 1em; | |
color:#ccc !important; | |
background:rgba(0,0,0,0.7); | |
font-weight:bold; | |
} | |
blockquote{ | |
font-size:0.8em; | |
} | |
code{ | |
padding:0 0.5em; | |
background:rgba(180,180,180,0.4); | |
text-shadow: 1px 1px 1px rgba(255,255,255,0.5); | |
box-shadow: 0 0 5px rgba(180,180,180,0.7); | |
} | |
pre{ | |
background:rgba(180,180,180,0.4); | |
padding: 1em; | |
box-shadow: 0 0 5px rgba(180,180,180,0.7); | |
} | |
pre code{ | |
padding:0; | |
background:transparent; | |
box-shadow:none; | |
} | |
/*top area*/ | |
#top-qoute-container{ | |
position:relative; | |
z-index:9000; | |
margin-top:-2em; | |
padding:4em 0 1.4em 0; | |
text-align:center; | |
background:#555; | |
font-family:"Kelly Slab"; | |
font-size:24px; | |
color:#eee; | |
text-shadow:-1px -2px 1px black; | |
transform:skewY(-3deg); | |
-webkit-transform:skewY(-3deg); | |
box-shadow:0 2px 10px black; | |
} | |
#top-qoute-context,#top-qoute-from{ | |
z-index:9100; | |
display:inline-block; | |
margin:0em 1em; | |
transform:skewY(3deg); | |
-webkit-transform:skewY(3deg); | |
} | |
#top-qoute-from:before{ | |
content:" -- "; | |
} | |
body>h1:first-of-type{ | |
position:relative; | |
z-index:8000; | |
margin-top:-3.5em; | |
padding:5em 0 2em 5em; | |
text-align:center; | |
text-transform:capitalize; | |
background:#333; | |
border:none; | |
box-shadow:0 1px 10px black; | |
transform:skewY(3deg); | |
-webkit-transform:skewY(3deg); | |
} | |
body>h1:first-of-type>a{ | |
z-index:8001; | |
font-size:40px; | |
font-family:"Kelly Slab"; | |
display:block; | |
color:white; | |
background:none; | |
box-shadow:none; | |
padding:0; | |
transform:skewY(-4deg); | |
-webkit-transform:skewY(-4deg); | |
} | |
/*side area*/ | |
#rightmenu{ | |
position:absolute; | |
width:250px; | |
top:0; | |
right:5px; | |
z-index:7000; | |
margin-top:0; | |
padding:26em 0 4em 0; | |
color:#ccc; | |
background:#222; | |
box-shadow:0 2px 2px black; | |
transform:skewY(5deg); | |
-webkit-transform:skewY(5deg); | |
} | |
#rightmenu li{list-style:none;} | |
#rightmenu ul{padding:6px;} | |
#rightmenu>*{transform:skewY(-5deg);-webkit-transform:skewY(-5deg);} | |
#rightmenu *{border:none !important;} | |
#rightmenu a{color:rgb(135,206,250);} | |
#rightmenu a:hover{ | |
color:white !important; | |
background:rgb(135,206,250); | |
border-radius:0 0.5em 0.5em 0; | |
} | |
#rightmenu>h3,.catListTitle,#blog-sidecolumn>h3{ | |
z-index:7777; | |
display:block; | |
color:white !important; | |
margin:1em -3px 1em -1em !important; | |
padding:2px 0 2px 4px; | |
background:#111 !important; | |
box-shadow:0 0 2px black; | |
} | |
.CalTitle{ | |
color:white !important; | |
background:#111 !important; | |
} | |
#blog-calendar a:hover{ | |
padding:0; | |
font-weight:normal; | |
background:none; | |
text-shadow:1px 1px 5px rgb(255,182,193); | |
} | |
#blog-calendar td{color:#bababa;} | |
.CalNextPrev{padding:0 0.7em;} | |
td.CalOtherMonthDay{ | |
color:#555 !important; | |
} | |
th.CalDayHeader{ | |
padding:0.5em 0; | |
color:rgb(135, 206, 250); | |
} | |
#profile_block{ | |
padding-left:0.5em; | |
} | |
#sidebar-cus{ | |
padding-left:0.5em; | |
text-align:center; | |
} | |
#cus-avatar{ | |
display:inline-block; | |
background-image:url("//pic.cnblogs.com/avatar/1094855/20170112224706.png"); | |
height:140px; | |
width:140px; | |
background-size:140px 140px; | |
border-radius:70px; | |
box-shadow:inset 0 0 10px black,0 0 3px #A3A2BB; | |
} | |
/*main area*/ | |
#main{ | |
background:transparent !important; | |
min-height:140em; | |
margin-right:280px; | |
padding-left:1em; | |
} | |
#cnblogs_post_body{ | |
margin-bottom:0; | |
background-image: url('//images.cnblogs.com/cnblogs_com/frantic1048/619148/o_senri.png'); | |
min-height: 850px; | |
background-repeat: no-repeat; | |
background-position: right bottom; | |
box-shadow: 10px 0px 15px rgb(221, 221, 221) inset; | |
} | |
.post{ | |
padding-left:10px; | |
} | |
.post:nth-of-type(4n+1){ | |
border-left:10px solid rgb(72,209,204); | |
} | |
.post:nth-of-type(4n+2){ | |
border-left:10px solid rgb(255,182,193); | |
} | |
.post:nth-of-type(4n+3){ | |
border-left:10px solid rgb(144,238,144); | |
} | |
.post:nth-of-type(4n){ | |
border-left:10px solid rgb(238,232,170); | |
} | |
.c_b_p_desc_readmore{ | |
display:none; | |
text-align:center; | |
} | |
.post>h2:first-child{ | |
display:block; | |
} | |
.post>h2:first-child>a{ | |
position: relative; | |
display:inline-block; | |
color:black; | |
font-weight:bold; | |
font-size:1.4em; | |
padding-top:5px; | |
padding-bottom:5px; | |
} | |
.post>h2:first-child>a:hover{ | |
background:black; | |
border-radius:0; | |
box-shadow:2px 0 1px black; | |
border-color:transparent !important; | |
} | |
.post>h2:first-child>a::after{ | |
display:inline-block; | |
position: absolute; | |
/*right:-1.4em; | |
* top:-0.1em;*/ | |
left:100%; | |
top:-2px; | |
width:0.5em; | |
height: 100%; | |
padding: 0 5px; | |
content:"\200B"; | |
opacity:0; | |
transition:all ease 0.3s; | |
/*border-width:0.7em; | |
* border-style:solid; | |
* border-color: transparent transparent transparent black;*/ | |
background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCiAgICBiYXNlUHJvZmlsZT0iZnVsbCIKICAgIHdpZHRoPSI0NSIgaGVpZ2h0PSIxMDAiCiAgICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIGlkPSJzdmctbGluay1iYWNrZ3JvdW5kIiBkPSJNMCAwIEw0MCAwIEw1IDUwIEw0MCAxMDAgTDAgMTAwIFoiIHN0cm9rZT0iYmxhY2siIGZpbGw9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjAiIGZpbGwtb3BhY2l0eT0iMSIvPgo8L3N2Zz4K); | |
background-size: 100% 100%; | |
background-repeat: no-repeat; | |
background-origin: border-box; | |
background-clip: border-box; | |
border-top:2px solid transparent; | |
border-bottom:2px solid transparent; | |
} | |
.post>h2:first-child>a:hover::after{opacity:1;} | |
#main a,.topicListFooter a,#footer a{ | |
color:black; | |
border-bottom:2px solid #777; | |
border-top:2px solid transparent; | |
} | |
.c_b_p_desc{font-size:1.4em;} | |
.desc_img{ | |
float: left; | |
height: 120px; | |
margin:0 15px 10px; | |
box-shadow: 2px 4px 5px rgba(0,0,0,0.9); | |
opacity: 0.8; | |
transition:opacity ease 0.3s; | |
} | |
.post:hover .desc_img{ | |
opacity: 1; | |
} | |
#cnblogs_post_body>h1{ | |
margin-top: 1.5em; | |
} | |
.cnblogs_code{ | |
background:transparent; | |
margin:0; | |
padding:1em 0; | |
border:none; | |
} | |
.cnblogs_code div{ | |
background-color:transparent; | |
} | |
.cnblogs_code_toolbar a:hover, | |
.cnblogs_code_toolbar a:link, | |
.cnblogs_code_toolbar a:visited, | |
.cnblogs_code_toolbar a:active, | |
.cnblogs_code_toolbar a:link img, | |
.cnblogs_code_toolbar a:visited img{ | |
background-color:transparent !important; | |
padding:0; | |
} | |
/*post info area*/ | |
#blog_post_info_block{ | |
margin-top:0; | |
padding:1em; | |
} | |
#green_channel{border:none;width:auto;color:transparent;text-align:center;padding:3em 0;} | |
#green_channel>a{ | |
display:inline-block; | |
line-height:31px; | |
width:7em; | |
padding:0 1em; | |
border-radius:0 !important; | |
box-shadow:inset 1px 1px 1px #fff; | |
transform:skewX(-15deg); | |
-webkit-transform:skewX(-15deg); | |
} | |
#green_channel>a:hover{box-shadow:inset -1px -1px 1px #fff;} | |
#green_channel_digg{background:rgb(135,206,250) !important;} | |
#green_channel_follow{background:rgb(255,182,193) !important;} | |
#green_channel_favorite{background:rgb(144,238,144) !important;} | |
#green_channel_contact{background:rgb(238,232,170) !important;} | |
#green_channel_weibo{background:rgb(234, 179, 143) !important;} | |
#digg_block{ | |
display:block; | |
overflow:hidden; | |
padding:1em 0; | |
margin-top:-7em; | |
} | |
#author_profile{ | |
position:relative; | |
display:inline-block; | |
height:80px; | |
width:15em; | |
margin: -7em 0 0 0; | |
text-align:right; | |
} | |
#div_digg{ | |
display:inline-block; | |
margin: -7em 0 0 0; | |
} | |
#div_digg>.diggit,#div_digg>.buryit{ | |
box-shadow:inset 1px 1px 2px white,1px 1px 1px #aaa; | |
transition:box-shadow ease 0.3s; | |
} | |
#div_digg>.diggit:hover,#div_digg>.buryit:hover{ | |
box-shadow:inset 1px 1px 2px #aaa,1px 1px 2px white; | |
} | |
#div_digg>.diggit{background:rgb(135,206,250);} | |
#div_digg>.diggit:after{display:block;content:"GJ";} | |
#div_digg>.buryit{background:#aaa;} | |
#div_digg>.buryit:after{display:block;content:"WTF";} | |
#author_profile_info>a:hover{padding:0;height:0;} | |
.author_avatar{ | |
position:absolute; | |
padding:0; | |
left:20px; | |
top:40px; | |
margin-top:-24px; | |
border-radius:10%; | |
box-shadow:1px 1px 1px black; | |
} | |
#author_profile_detail{ | |
position:absolute; | |
right:0; | |
text-align:right; | |
} | |
#author_profile_follow{ | |
position:absolute; | |
top:56px; | |
right:0; | |
} | |
.p_n_p_prefix{display: none;} | |
/*comment area*/ | |
#tbCommentBody{ | |
max-width:100%; | |
min-width:100%; | |
min-height:20em; | |
padding:5px; | |
border:none; | |
background:url("//images.cnblogs.com/cnblogs_com/frantic1048/619148/o_kawai_mao.png") right bottom no-repeat; | |
background-color:#4a4a4a; | |
} | |
#tbCommentBody:hover{ | |
box-shadow:inset 0 0 5px rgb(238,232,170),0 0 5px rgb(238,232,170); | |
background-color:#666; | |
} | |
#tbCommentBody:focus{ | |
box-shadow:inset 0 0 5px rgb(238,232,170),0 0 5px rgb(238,232,170); | |
background-color:#333; | |
} | |
#commentbox_opt>a{float:right;} | |
#comments>h4>a{border-color:transparent;} | |
/*foot area*/ | |
#footer{ | |
padding-top:1em; | |
text-align:center; | |
line-height:1.5em; | |
border-top:5px solid rgb(135,206,250); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#AllanboltSignature | |
{ | |
border: dotted; | |
padding-top: 10px; | |
padding-right: 10px; | |
padding-bottom: 10px; | |
padding-left: 120px; | |
font-family: 微软雅黑; | |
font-size:11px; | |
background: url(https://images.cnblogs.com/cnblogs_com/lart/972510/o_%E5%8A%A0%E9%87%8C.jpg) #e5f1f4 no-repeat 1% 50%; | |
} | |
#AllanboltSignature div { | |
line-height: 25px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment