zoukankan      html  css  js  c++  java
  • 博客园CSS样式

    Ⅰ、from Penn000

    原文链接:

    Penn000
    https://www.cnblogs.com/Penn000/p/6947472.html#

    复制代码
      1 #home {
      2     margin: 0 auto;
      3      80%;/*原始65*/
      4     min- 980px;/*页面顶部的宽度*/
      5     background-color: rgba(245, 245, 245, 0.7);
      6     padding: 30px;
      7     margin-top: 50px;
      8     margin-bottom: 50px;
      9     box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
     10 }
     11 body {
     12     background: rgba(12, 100, 129, 1) url('http://images.cnblogs.com/cnblogs_com/Penn000/1013849/o_fr.jpg') fixed no-repeat;
     13     background-position: 50% 5%; 
     14     background-size: cover;
     15 }
     16 #blogTitle {
     17     height: 100px;  /*高度*/
     18     clear: both;
     19     background-color: rgba(245, 245, 245, 0);
     20 }
     21 #blogTitle h1 {
     22     font-size: 36px;
     23     font-weight: bold;
     24     line-height: 1.8em;/*原始 1.6em*/
     25     margin-top: 10px;/*原始 15px */
     26     color: #548B54;
     27 }
     28 #blogTitle h2 {
     29     font-weight: normal;
     30     font-size: 17px;/*原始 16px ;font-size: 1.0rem;*/      
     31     line-height: 1.8;
     32     color: #111;
     33     font-weight: bold;
     34     text-align: right;
     35     float: right; 
     36 }
     37 #navigator{
     38     background-color: rgba(33, 160, 139, 0.9);
     39 }
     40 #navList a:link, #navList a:visited, #navList a:active{
     41     color: #eee;
     42     font-size: 18px;
     43     font-weight: bold;
     44 }
     45 .blogStats{
     46     color: #eee;
     47 }
     48 .postTitle {
     49     border-left: 8px solid rgba(33, 160, 139, 0.68);
     50     margin-left: 10px;
     51     margin-bottom: 10px;
     52     font-size: 20px;
     53     float: right;
     54      100%;
     55     clear: both;
     56 }
     57 .postTitle a:link, .postTitle a:visited, .postTitle a:active {
     58     color: #21759b;
     59     transition: all 0.4s linear 0s;
     60 }
     61 .postTitle a:hover {
     62     margin-left: 30px;
     63     color: #0f3647;
     64     text-decoration: none;
     65 }
     66 .postCon {
     67     float: right;
     68     line-height: 1.5em;
     69      100%;
     70     clear: both;
     71     padding: 10px 0;
     72 }
     73 
     74 .day .postTitle a {
     75     padding-left: 10px;
     76 }
     77 .day {
     78     background: rgba(255, 255, 255, 0.5);
     79 }
     80 /*文章附加信息*/
     81 .postDesc {   
     82     background: url(images/posted_time.png) no-repeat 0 1px;
     83     color: #757575;
     84     float: left;
     85      100%;
     86     clear: both;
     87     text-align: left;     
     88     font-family: "微软雅黑" , "宋体" , "黑体" ,Arial;
     89     font-size: 13px;
     90     padding-right: 20px;/*5px  padding-left: 90px;posted 发表时间左边距离*/
     91     margin-top: 20px;
     92     line-height: 1.8;
     93     padding-bottom: 35px;
     94 }
     95 
     96 .newsItem, .catListEssay, .catListLink, .catListNoteBook, .catListTag, .catListPostCategory, 
     97 .catListPostArchive, .catListImageCategory, .catListArticleArchive, .catListView, 
     98 .catListFeedback, .mySearch, .catListComment, .catListBlogRank, .catList, .catListArticleCategory ,#blog-calendar
     99 {
    100     background: rgba(255, 255, 255, 0.5);
    101     margin-bottom: 35px;
    102     word-wrap: break-word;
    103 }
    104 
    105 .CalTitle{
    106     background: rgba(255, 255, 255, 0);
    107 }
    108 .catListTitle{
    109     background-color: rgba(33, 160, 139, 0.9);
    110 }
    111 
    112 #topics{
    113     background: rgba(255, 255, 255, 0.5);
    114 }
    115 
    116 .c_ad_block{
    117     display: none;
    118 }
    119 
    120 #tbCommentBody{
    121      100%;
    122     height: 200px;
    123     background: rgba(255, 255, 255, 0.5);
    124 }
    125 
    126 #q{background: rgba(255, 255, 255, 0);}
    127 
    128 .CalNextPrev{background: rgba(255, 255, 255, 0);}
    129 
    130 .cnblogs_code{
    131     background: rgba(255, 255, 255, 0);    
    132 }
    133 
    134 .cnblogs_code div{
    135     background: rgba(255, 255, 255, 0);    
    136 }
    137 
    138 .cnblogs_code_toolbar{
    139     background: rgba(255, 255, 255, 0);  
    140 }
    141 
    142 .entrylist{
    143     background: rgba(255, 255, 255, 0.5);  
    144 }
    145 
    146 #main{
    147    min- 640px;
    148 }
    复制代码

     

    Fork me on Github

    • 第一行修改为自己的GitHub URL
    • 将以下代码放在“页首Html代码”中
    复制代码
    1 <a href="https://github.com/Penn000">  
    2 <img style="position: absolute; top: 0; right: 0; border: 0;" 
    3     src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" 
    4     alt="Fork me on GitHub" 
    5     data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png">
    6 </a>
    复制代码

     头像

    将以下代码放在“博客侧边栏公告”

    复制代码
     1 <style>
     2 #back-top {
     3      position: fixed;
     4      bottom: 10px;
     5      right: 5px;
     6      z-index: 99;
     7 }
     8 #back-top span {
     9       50px;
    10      height: 64px;
    11      display: block;
    12      background:url(http://images.cnblogs.com/cnblogs_com/seanshao/855033/o_rocket.png) no-repeat center center;
    13 }
    14 #back-top a{outline:none}
    15 </style>
    16 <script type="text/javascript">
    17 $(function() {
    18     // hide #back-top first
    19     $("#back-top").hide();
    20     // fade in #back-top
    21     $(window).scroll(function() {
    22         if ($(this).scrollTop() > 500) {
    23             $('#back-top').fadeIn();
    24         } else {
    25             $('#back-top').fadeOut();
    26         }
    27     });
    28     // scroll body to 0px on click
    29     $('#back-top a').click(function() {
    30         $('body,html').animate({
    31             scrollTop: 0
    32         }, 800);
    33         return false;
    34     });
    35 });
    36 </script>
    37 <p id="back-top" style="display:none"><a href="#top"><span></span></a></p>
    38 <img src="https://www.cnblogs.com/images/cnblogs_com/Penn000/1013849/o_panda.jpg" alt="Penn000" class="img_avatar" width="210px" height="210px" style="border-radius:10%">
    复制代码

     小火箭

    下面代码放在“页脚 HTML 代码”

    1 <script>
    2 !function(e,t,a){function n(){c(".heart{ 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: ''; inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"),o(),r()}function r(){for(var e=0;e<d.length;e++)d[e].alpha<=0?(t.body.removeChild(d[e].el),d.splice(e,1)):(d[e].y--,d[e].scale+=.004,d[e].alpha-=.013,d[e].el.style.cssText="left:"+d[e].x+"px;top:"+d[e].y+"px;opacity:"+d[e].alpha+";transform:scale("+d[e].scale+","+d[e].scale+") rotate(45deg);background:"+d[e].color+";z-index:99999");requestAnimationFrame(r)}function o(){var t="function"==typeof e.onclick&&e.onclick;e.onclick=function(e){t&&t(),i(e)}}function i(e){var a=t.createElement("div");a.className="heart",d.push({el:a,x:e.clientX-5,y:e.clientY-5,scale:1,alpha:1,color:s()}),t.body.appendChild(a)}function c(e){var a=t.createElement("style");a.type="text/css";try{a.appendChild(t.createTextNode(e))}catch(t){a.styleSheet.cssText=e}t.getElementsByTagName("head")[0].appendChild(a)}function s(){return"rgb("+(255*Math.random())+","+(255Math.random())+","+~~(255Math.random())+")"}var d=[];e.requestAnimationFrame=function()}(),n()}(window,document);
    3 </script>

    Ⅱ、from Zoey

    Zoey
    https://www.cnblogs.com/smuzoey/p/11828632.html

    博客园的样式代码:

    皮肤是SimpleMemory

    页面定制CSS代码如下

    复制代码
    /*simplememory*/
    #google_ad_c1, #google_ad_c2 {display:none;}
    .syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, .syntaxhighlighter table tr, .syntaxhighlighter table tbody, .syntaxhighlighter table thead, .syntaxhighlighter table caption, .syntaxhighlighter textarea {
    font-size: 14px!important;
    }
    #home {
    opacity: 0.80;
    margin: 0 auto;
     85%;
    min- 950px;
    background-color: #fff;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
    }
    #blogTitle h1 {
    font-size: 30px;
    font-weight: bold;
    font-family: "Comic Sans MS";
    line-height: 1.5em;
    margin-top: 20px;
    color: #515151;
    }
    #navList a:hover {
    color: #4C9ED9;
    text-decoration: none;
    }
    #navList a {
    display: block;
     5em;
    height: 22px;
    float: left;
    text-align: center;
    padding-top: 18px;
    }
    #navigator {
    font-size: 15px;
    border-bottom: 1px solid #ededed;
    border-top: 1px solid #ededed;
    height: 50px;
    clear: both;
    margin-top: 25px;
    }
    .catListTitle {
    margin-top: 21px;
    margin-bottom: 10.5px;
    text-align: left;
    border-left: 10px solid rgba(82, 168, 236, 0.8);
    padding: 10px 0 14px 10px;
    background-color: #f5f5f5;
    }
    #ad_under_post_holder #google_ad_c1,#google_ad_c2{ 
    display: none !important;
    }
    body {
    color: #000;
    background: url(https://images.cnblogs.com/cnblogs_com/zoey686/1581380/o_191103075448%E5%A3%81%E7%BA%B81.jpeg) fixed;
    background-size: 100%;
    background-repeat: no-repeat;
    font-family: "Helvetica Neue",Helvetica,Verdana,Arial,sans-serif;
    font-size: 12px;
    min-height: 101%;
    }
    #topics .postTitle {
    border: 0px;
    font-size: 200%;
    font-weight: bold;
    float: left;
    line-height: 1.5;
     100%;
    padding-left: 5px;
    }
    
    
    div.commentform p{
    margin-bottom:10px;
    }
    .comment_btn {
    padding: 5px 10px;
    height: 35px;
     90px;
    border: 0 none;
    border-radius: 5px;
    background: #ddd;
    color: #999;
    cursor:pointer;
    font-family: "Lato", Helvetica Neue, Helvetica, Microsoft Yahei, 宋体, Arial, sans-serif;
    text-shadow: 0 0 1px #fff;
    display: inline !important;
    }
    .comment_btn:hover{
    padding: 5px 10px;
    height: 35px;
     90px;
    border: 0 none;
    border-radius: 5px;
    background: #258fb8;
    color: white;
    cursor:pointer;
    font-family: "Lato", Helvetica Neue, Helvetica, Microsoft Yahei, 宋体, Arial, sans-serif;
    text-shadow: 0 0 1px #fff;
    display: inline !important;
    }
    #commentform_title {
    background-image:none;
    background-repeat:no-repeat;
    margin-bottom:10px;
    padding:0;
    font-size:24px;
    }
    #commentbox_opt,#commentbox_opt + p {
    text-align:center;
    }
    .commentbox_title {
     100%;
    }
    #tbCommentBody {
    font-family:'Microsoft Yahei', Microsoft Yahei, 宋体, sans-serif;
    margin-top:10px;
    max-100%;
    min-100%;
    background:white;
    color:#333;
    border:2px solid #fff;
    box-shadow:inset 0 0 8px #aaa;
    // padding:10px;
    height:250px;
    font-size:14px;
    min-height:120px;
    }
    .feedbackItem {
    font-size:14px;
    line-height:24px;
    margin:10px 0;
    padding:20px;
    background:#F2F2F2;
    box-shadow:0 0 5px #aaa;
    }
    .feedbackListSubtitle {
    font-weight:normal;
    }
    
    #blog-comments-placeholder, #comment_form {
    padding: 20px;
    background: #fff;
    -webkit-box-shadow: 1px 2px 3px #ddd;
    box-shadow: 1px 2px 3px #ddd;
    margin-bottom: 50px;
    }
    .feedback_area_title {
    margin-bottom: 15px;
    font-size: 1.8em;
    }
    .feedbackItem {
    border-bottom: 1px solid #CCC;
    margin-bottom: 10px;
    padding: 5px;
    background: rgb(248, 248, 248);
    }
    .color_shine {background: rgb(226, 242, 255);}
    .feedbackItem:hover {-webkit-animation-name: color_shine;-webkit-animation-duration: 2s;-webkit-animation-iteration-count: infinite;}
    #comment_form .title {
    font-weight: normal;
    margin-bottom: 15px;
    }
    复制代码

    标红地方是图片的地址

     后来换了,就用博客园提供的,为了看着直观方便一点,然后还是简单做个记录,万一以后又想换回来了呢。

  • 相关阅读:
    华为面试
    多线程下的单例模式
    乐观锁的一种实现方式——CAS
    乐观锁和悲观锁
    数据库行锁,表锁
    常用的设计模式
    grunt-contrib-watch 实时监测文件状态
    grunt-contrib-compass 编译sass
    grunt的安装及使用
    dede 调取二级三级菜单栏目
  • 原文地址:https://www.cnblogs.com/ybinlog/p/13402749.html
Copyright © 2011-2022 走看看