init
This commit is contained in:
184
public/css/blog/blog_default.less
Normal file
184
public/css/blog/blog_default.less
Normal file
@ -0,0 +1,184 @@
|
||||
|
||||
@bgColor: #fff;
|
||||
@headerBgColor: #fff;
|
||||
@fontFamily: 'Open Sans','Helvetica Neue',Arial,'Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;
|
||||
@aWhiteColor: #fff;
|
||||
@aBlackColor: #000;
|
||||
@borderColor: #EBEFF2;
|
||||
@border: 1px solid #EBEFF2;
|
||||
@borderMore: 1px solid #ccc; // 颜色更深
|
||||
@headerHeight: 60px;
|
||||
@hColor: #0fb264;
|
||||
@fontSize: 14px;
|
||||
@containerWidth: 845px;
|
||||
@titleColor: @hColor; // #5AD4A0;
|
||||
|
||||
// font
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Open Sans Light'), local('OpenSans-Light'), url('../../fonts/open-sans2/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans'), local('OpenSans'), url('../../fonts/open-sans2/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Open Sans Bold'), local('OpenSans-Bold'), url('../../fonts/open-sans2/k3k702ZOKiLJc3WVjuplzHhCUOGz7vYGh680lGh-uXM.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Open Sans';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: local('Open Sans Italic'), local('OpenSans-Italic'), url('../../fonts/open-sans2/xjAJXh38I15wypJXxuGMBobN6UDyHWBl620a-IRfuBk.woff') format('woff');
|
||||
}
|
||||
|
||||
/*"HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue", Helvetica, "Microsoft Yahei", Verdana, Simsun, "Segoe UI", "Segoe UI Web Regular", "Segoe UI Symbol", "BBAlpha Sans", "S60 Sans", Arial, sans-serif;*/
|
||||
@selectionBg: @aBlackColor;
|
||||
@selectionColor: #fff;
|
||||
::selection { background:@selectionBg; color:@selectionColor; }
|
||||
::-moz-selection { background:@selectionBg; color:@selectionColor; }
|
||||
::-webkit-selection { background:@selectionBg; color:@selectionColor; }
|
||||
html,body {
|
||||
}
|
||||
*, body {
|
||||
font-family: @fontFamily;
|
||||
font-weight: 300;
|
||||
font-size: @fontSize;
|
||||
}
|
||||
h1, h2, h3 {
|
||||
font-family: @fontFamily;
|
||||
font-weight: 300 !important;
|
||||
}
|
||||
|
||||
a {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
@headerHeight: 100px;
|
||||
#headerContainer {
|
||||
height: @headerHeight;
|
||||
background-color: #fff;
|
||||
//-webkit-box-shadow: 1px 1px 8px -1px rgba(0, 0, 0, 0.1);
|
||||
//box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
#posts {
|
||||
width: @containerWidth;
|
||||
margin: auto;
|
||||
}
|
||||
#postsContainer {
|
||||
background: #f5f5f5 url("../images/noise.png");
|
||||
// margin-top: @headerHeight;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
/* header */
|
||||
#header {
|
||||
color: #000000;
|
||||
//border-bottom: @borderMore;
|
||||
//padding-bottom: 5px;
|
||||
position: relative;
|
||||
padding: 0 0 20px 0;
|
||||
margin-top: 15px;
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: 32px;
|
||||
a {
|
||||
color: @aBlackColor;
|
||||
font-size: 32px;
|
||||
img {
|
||||
height: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
#blogDesc {
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
.navbar {
|
||||
margin-bottom: 0;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
}
|
||||
.navbar-collapse {
|
||||
padding-left: 0;
|
||||
padding-right:0;
|
||||
}
|
||||
.navbar-form {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* posts */
|
||||
#posts {
|
||||
padding-top: 10px;
|
||||
.each-post {
|
||||
border-bottom: @border;
|
||||
margin-bottom: 10px;
|
||||
padding: 30px;
|
||||
background-color: #fff;
|
||||
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
|
||||
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
|
||||
border-radius: 3px;
|
||||
.title {
|
||||
font-size: 32px;
|
||||
color: @hColor;
|
||||
padding: 0 0 15px 0;
|
||||
a {
|
||||
font-size: 32px;
|
||||
color: @hColor;
|
||||
padding: 0 0 15px 0;
|
||||
}
|
||||
}
|
||||
.created-time {
|
||||
border-bottom: 1px solid #eee;
|
||||
padding-bottom: 3px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.more {
|
||||
background: @titleColor;
|
||||
padding: 9px 10px;
|
||||
border-radius: 2px;
|
||||
line-height: 1;
|
||||
font-size: 13px;
|
||||
display: inline-block;
|
||||
text-transform: uppercase;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
#disqus_thread {
|
||||
border-top: 1px solid #eee;
|
||||
padding: 5px 0 0 0;
|
||||
}
|
||||
#search {
|
||||
width: 200px;
|
||||
}
|
||||
@footerColor: #666;
|
||||
@footerBgColor: #fff;
|
||||
#footerContainer {
|
||||
background-color: @footerBgColor;
|
||||
color: @footerColor;
|
||||
#footer {
|
||||
a {
|
||||
color: @footerColor;
|
||||
}
|
||||
ul {
|
||||
list-style: none;
|
||||
margin:0;
|
||||
padding-left:20px;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user