1. 程式人生 > >博客園筆記

博客園筆記

deb lec 其中 沒有 footer markdown 評論 list 頁面

/**************************************************

說明:?

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

作者: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: ‘Segoe UI‘, Tahoma, Geneva, Verdana, 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: 1px;

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);

}

a.headermaintitle{

display:none;

}

#blogTitle h2 {

font-weight: 500;

font-size: 1.2rem;

}


#navigator {

background-color: #009688;

position: fixed;

width: 100%;

height: 3em;

top: 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;

padding: 0.8em 0;

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: 1500px;

margin: auto;

font-size: 0;

}


#mainContent,

#sideBar {

font-size: 1rem;

width: 1220px;

display: inline-block;

}


.day {

width: 1200px;

margin-bottom: 2rem;

background-color: white;

box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);

padding: 0rem 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;

}

h1.postTitle {

text-align:center;

}

#topics .post .postTitle::before{

content: "";

}

.postTitle{

padding:8px 0px;

}

.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 {

display:none;

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;

}

.postDesc,.entrylistItemPostDesc{

display:none;

}

.postSeparator {

width: 1220px;

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 {

width: 1200px;

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;

}

#under_post_kb,#under_post_news,#ad_t2{

display:none;

}

#post_detail .postDesc::after {

display: none;

}

.syntaxhighlighter table{

border:1px solid #c0c0c0!important;

}

#cnblogs_post_body h4{

font-size:22px!important;

}

#cnblogs_post_body h5{

font-size:17px!important;

}

#MySignature {

display:block!important;

}

#MySignature:before{

content:"版權歸原作者([email protected])所有";

}

/* 文章後的作者信息,支持/反對 */


#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 {

float: right !important;

z-index: 5;

font-size: 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 {

position: absolute;

bottom: 0.3rem;

right: 0.3rem;

}


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;

}


.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;

}



/*****第三部分結束*******************************/



/**************************************************

第四部分:文章內容常用標簽格式。這個部分是設置作者寫作內容的部分。例如:

如果作者的文章用有p標簽,則可通過這個對這些文章中的p標簽進行設置。前面

的“.postBody”明確的指出了這裏樣式的作用範圍。僅僅適用於文章主體部分。

建議這個不要設置過於詳細的細節。因為,一些樣式,一篇文章比較適合的話,

並不能保證所有的文章都適合。

**************************************************/



/*文章內部常用標簽格式*/


#EntryTag,

#post_next_prev {

font-size: 1rem;

}


.postBody code,

.hljs,

.cnblogs-markdown,

.sourceCode code pre,

.sourceCode code span {

font-family: "Monaco", "微軟雅黑" !important;

}


.sourceCode code {

display: inline-block;

white-space: pre;

}


.postBody p img {

max-width: 100% !important;

margin: 1rem 0;

}


.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) {

body {

width: 100%;

overflow-x: hidden;

}

#blogTitle h1,

#blogTitle h2 {

margin-left: 2rem;

}

#main {

width: 100%;

padding: 0 1rem;

}

#mainContent,

#sideBar {

width: calc(100% - 2rem);

}

.day {

width: 100%;

}

.dayTitle,

#comment_form_container> p:nth-last-child(2),

.postText2 {

display: none;

}

.feedback_area_title,

.entrylistTitle,

.myposts_title,

.feedbackItem,

#post_detail,

#comment_form_container,

#divCommentShow> div,

#under_post_news,

#under_post_kb,

.entrylistItem,

#myposts {

width: 100%;

}

#green_channel {

float: none;

right: 0;

}

#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_right {

float: none;

}

.postBody img {

max-width: 100% !important;

}

.PostList {

padding: 0.5rem 0.5rem 0;

}

.postDesc2 {

display: block;

margin-top: 1rem;

}

}

div.line{

height:22px!important

}


@media screen and (max-width:1200px) and (min-width:900px) {

#main,

#mainContent,

#sideBar,

#blogTitle h1,

#blogTitle h2 {

width: 900px;

}

}



/*****第五部分結束*******************************/




來自為知筆記(Wiz)

附件列表

    博客園筆記