图月志 2018-01-22
id选择器大于class选择器。
对于原主题中想要覆盖的id选择器,使用!import覆盖。
对于原主题中想要取消的css属性,使用inherit.
将position设置为fixed, 为了让组件可以浮动在其他组件之上,设置z-index.
fuck me on github
element.style {
    top: 0;
    right: 0;
    border: 0;
    z-index: 100;
    position: fixed;
}设置background为transparent可以将输入框透明;
将border设为0可以隐藏边框,然后追加bottom样式,注意顺序,后面声明的样式会覆盖前面。
input#nav_search {
    background: transparent;
    transition: all .6s ease-in-out;
    border: ;
    border-bottom: 1px solid #fff;
    color: #fff;
    width: 5pc;
}css3中同一个元素属性发生变化后可以声明一个变化过程,即transition. transition: all .6s ease-in-out;表示0.6s内完成动画。
引入http://fontawesome.io . 比如search的图标为fa fa-search
使用padding和margin来设置间距而不是声明width和hight后调整中心。
#post_detail .postTitle {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}#post_detail .postTitle {
    font-size: 30px;
    font-weight: ;
}#post_detail {
    box-shadow:  8px 17px  rgba(0,,,.2),  6px 20px  rgba(0,,,.19);
}.my-profile {
    border-bottom: 1px dashed #333;
    padding-bottom: 25px;
    margin-bottom: 25px;
}#cnblogs_post_body ul.post-copyright {
    border-left: 3px solid #ff1700;
    background-color: #f9f9f9;
}.catListPostCategory li {
    display: inline-block;
}