1
1
/**
2
- *
3
2
* Author: BeiYuu
4
3
* Contact: beiyuu.com
5
- *
6
4
*/
7
5
8
6
/* 重置浏览器CSS */
9
7
/* 防止用户自定义背景颜色对网页的影响 */
10
- html {color : # 000 ;background : # F8F8F0 ; }
8
+ html {color : # 000 ;}
11
9
/* 内外边距通常让各个浏览器样式的表现位置不同 */
12
10
body , div , dl , dt , dd , ul , ol , li , h1 , h2 , h3 , h4 , h5 , h6 , pre , code , form , fieldset , legend , input , textarea , p , blockquote , th , td , hr , button , article , aside , details , figcaption , figure , footer , header , hgroup , menu , nav , section {margin : 0 ;padding : 0 ;}
13
11
/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
@@ -50,79 +48,92 @@ body .hide{display:none;}
50
48
51
49
52
50
/***********default settings**********/
53
- body {font-family : "微软雅黑" , "Arial" , "Helvetica" , "sans-serif" ;font-size : 16px ;background : # F8F8F0 }
51
+ body {font-family : "微软雅黑" , "Arial" , "Helvetica" , "sans-serif" ;font-size : 16px ;}
54
52
a {color : # 4A75B5 ;text-decoration : none;outline : none;}
55
53
a : hover {text-decoration : underline}
56
54
a .external {padding-right : 13px ;background : url ('/images/icons.gif' ) no-repeat right 1px ;}
57
- a .external : hover {background-position : right -14 px ;}
55
+ a .external : hover {background-position : right -15 px ;}
58
56
.entry-title , .entry-title a {font-size : 30px ;font-weight : bold;margin-bottom : 6px ;color : # 000 ;text-align : center;}
59
57
.entry-title a : hover {text-decoration : none;}
60
58
.entry-date {text-align : center;color : # 999 ;margin-bottom : 60px ;font-size : 14px ;}
61
59
62
60
h2 {font-size : 22px ;font-weight : bold;margin-bottom : 25px ;}
63
61
h3 {font-size : 18px ;font-weight : bold;margin-bottom : 25px ;}
64
62
h4 , h5 , h6 {font-weight : bold;margin-bottom : 15px ;}
65
- p {margin-bottom : 25 px ;line-height : 1.5 em ;}
63
+ p {margin-bottom : 35 px ;line-height : 1.8 em ;}
66
64
code {background : # eee ;border : 1px solid # ccc ;padding : 0 5px ;font-family : "Courier" ;line-height : 14px ;font-size : 14px ;word-wrap : break-word;}
67
65
pre {background-color : # 000 ;padding : 15px ;overflow : auto;margin-bottom : 20px ;font-size : 14px ;border : 1px solid # eee ;-webkit-border-radius : 4px 4px 4px 4px ;-moz-border-radius : 4px 4px 4px 4px ;border-radius : 4px 4px 4px 4px ;color : # b9bdb6 }
68
66
pre code {background-color : transparent;border : none;padding : 0 ;word-wrap : normal;}
69
67
pre ol {margin-left : 25px ;list-style-type : decimal;}
70
68
71
69
/************layout style*****************/
72
- # head {width : 100% ;height : 60px ;margin-bottom : 20px ;}
73
- # content {width : 650px ;margin : 0 auto;min-height : 400px ;height : auto !important ;height : 400px ;}
70
+ # content {width : 680px ;margin : 90px auto 60px ;min-height : 400px ;height : auto !important ;height : 400px ;}
74
71
75
- /***************header style************/
76
- # head .logo {font-size : 30px ;font-weight : bold;margin-top : 18px ;padding-left : 20px ;}
77
- # head .logo a {color : # 999 ;}
78
- # head .logo a : hover {text-decoration : none;color : # 666 ;}
79
- # head .logo a : active {position : relative;top : 1px ;opacity : 0.9 ;-ms-filter : "progid:DXImageTransform.Microsoft.Alpha(opacity=90)" ;filter : alpha (opacity=90);}
80
72
81
73
/****************entry style**************/
82
74
# content .entry {margin-bottom : 50px ;}
83
- .entry ul {margin-bottom : 25px ;margin-left : 25px ;margin-top : -15 px ; }
84
- .entry ul li {margin-bottom : 5px ;list-style : disc;line-height : 1.5 em ;}
85
- .entry ol {margin-bottom : 25px ;margin-left : 25px ;margin-top : -15 px ; }
86
- .entry ol li {margin-bottom : 5px ;list-style : decimal;line-height : 1.5 em ;}
75
+ .entry ul {margin-bottom : 25px ;margin-left : 25px ;}
76
+ .entry ul li {margin-bottom : 5px ;list-style : disc;line-height : 1.8 em ;}
77
+ .entry ol {margin-bottom : 25px ;margin-left : 25px ;}
78
+ .entry ol li {margin-bottom : 5px ;list-style : decimal;line-height : 1.1 em ;}
87
79
.entry blockquote {margin-left : 25px ;font-size : 14px ;font-style : italic}
88
- .entry img {max-width : 650px ;display : block;margin : 10px auto;}
89
-
90
- /***************category style**************/
91
- .category h2 {font-size : 19px ;}
92
- .category h2 a {color : # 444 }
93
- .category h2 a : hover {color : # E50053 ;text-decoration : none;}
94
- .category li {display : -moz-inline-stack;display : inline-block;* display : inline;width : 230px ;margin-bottom : 30px ;zoom : 1 ;padding : 10px 45px ;vertical-align : middle;text-align : center;}
95
- .category span {color : # 999 ;font-style : italic;font-size : 14px ;display : block;text-align : left;margin-top : -20px ;}
96
-
97
- .index-artical ul {display : inline-block;width : 290px ;vertical-align : top;* float : left;zoom : 1 ;}
98
- .index-artical .index-left {padding-right : 28px }
99
- .index-artical .index-mid {margin-top : 15px ;border-right : 1px solid # ccc ;width : 1px ;}
100
- .index-artical .index-right {padding-left : 28px ;}
101
- .index-artical h2 {font-size : 20px ;}
102
- .index-artical h2 a {color : # 444 }
103
- .index-artical h2 a : hover {color : # E50053 ;text-decoration : none;}
104
- .index-artical li {margin-bottom : 45px ;}
105
- .title-desc {color : # aaa ;font-style : italic;font-size : 14px ;display : block;text-align : left;margin-top : -20px ;}
80
+ .entry img {max-width : 670px ;display : block;margin : 10px auto;}
81
+
82
+
83
+ .index-content aside {
84
+ position : fixed;
85
+ z-index : 100 ;
86
+ top : 0 ;
87
+ left : 0 ;
88
+ width : 30% ;
89
+ height : 100% ;
90
+ max-width : 500px ;
91
+ background : # 000 ;
92
+ background-image : url (//dnqgz544uhbo8.cloudfront.net/_/fp/img/home/01.R0QM9YAUAl4AZhs5ncYiiQ.jpg);
93
+ box-shadow : inset -1px 0 0 rgba (0 , 0 , 0 , 0.3 );
94
+ background-size : cover;
95
+ }
96
+ .index-content section {
97
+ outline : 0 ;
98
+ position : absolute;
99
+ left : 30% ;
100
+ right : 0 ;
101
+ top : 0 ;
102
+ bottom : 0 ;
103
+ background-color : # fff ;
104
+ padding-top : 50px ;
105
+ }
106
+ .index-content section ul {display : inline-block;vertical-align : top;* float : left;zoom : 1 ;padding : 50px 120px ;}
107
+ .index-content section h2 {font-size : 20px ;}
108
+ .index-content section h2 a {color : # 444 }
109
+ .index-content section h2 a : hover {color : # E50053 ;text-decoration : none;}
110
+ .index-content section li {margin-bottom : 45px ;}
111
+
112
+ .title-desc {color : # aaa ;font-style : italic;font-size : 14px ;display : block;text-align : left;margin-top : 20px ;}
106
113
107
114
/***************Wiki Style*****************/
108
115
.wiki h2 {cursor : pointer;}
109
116
.wiki ul {margin-left : 30px ;margin-bottom : 20px ;list-style : disc}
110
117
.wiki ul li {margin-bottom : 5px ;}
111
118
.wiki ul ul {list-style : circle;margin-top : 10px ;margin-bottom : 10px ;}
119
+
112
120
/***************contact style*************/
113
121
# disqus_container {font-size : 12px ;}
114
122
# disqus_container a .comment {font-size : 14px ;}
115
123
h3 .about {color : # 777 ;margin-top : 20px ;font-size : 22px ;margin-bottom : 10px }
116
124
.about-link a {margin-right : 10px ;font-weight : bold;font-style : italic;font-size : 13px ;color : # E50053 }
125
+
126
+
117
127
/**************目录导航**************/
118
128
# menuIndex {position : fixed;top : 60px ;right : 20px ;width : 200px ;overflow : auto}
119
- # menuIndex a {display : block}
129
+ # menuIndex a {display : block; padding : 2 px 0 ; }
120
130
# menuIndex a : hover {text-decoration : none;}
121
131
# menuIndex ul li {font-size : 12px ;margin-bottom : 5px ;word-wrap : break-word;padding-left : 10px ;}
122
- # menuIndex ul li .on {background-color : # eee }
132
+ # menuIndex ul li .on {background-color : # f5f5f5 ; }
123
133
# menuIndex li .h1 {font-size : 14px ;font-weight : normal;padding-left : 0 ;margin-bottom : 10px ;}
124
134
# menuIndex li .h3 {padding-left : 25px ;}
125
135
136
+ /*
126
137
#about{background:#262626;width:100%;margin:0 auto;border-top:6px solid #026b8c;overflow:hidden;margin-top:30px;font-size:14px;line-height:1.6em;}
127
138
#about .about-content {width:720px;margin:50px auto;}
128
139
#about h2{color:#bbb;font-size:24px;font-weight:bold;border-bottom:1px solid #444;line-height:45px;}
@@ -135,12 +146,38 @@ h3.about {color:#777;margin-top:20px;font-size:22px;margin-bottom:10px}
135
146
#about a:hover,
136
147
#about a:active {color:#5e8dba;outline:none;text-decoration:none;}
137
148
#about a:hover {text-decoration:underline;}
149
+ */
150
+
151
+ .home-menu { position : fixed; top : 15px ; left : 15px ; background : # 000 ; }
152
+ .home-menu-icon { line-height : 43px ; padding : 0 11px ; font-size : 18px ; cursor : pointer; display : inline-block; color : # fff ; }
153
+ .home-menu-icon : hover { color : # fff ; text-decoration : none; }
154
+
155
+ /*
156
+ .side-nav { position:fixed; height:500px; width:250px; background:#333332; top:15px; left:15px; box-shadow:inset -10px 0 6px -9px rgba(0,0,0,0.7); display:none; }
157
+
158
+ .side-nav-transition #content {
159
+ -webkit-transition: -webkit-transform .2s cubic-bezier(0.2,0.3,0.25,0.9);
160
+ -moz-transition: -webkit-transform .2s cubic-bezier(0.2,0.3,0.25,0.9);
161
+ -ms-transition: -webkit-transform .2s cubic-bezier(0.2,0.3,0.25,0.9);
162
+ -o-transition: -webkit-transform .2s cubic-bezier(0.2,0.3,0.25,0.9);
163
+ transition: -webkit-transform .2s cubic-bezier(0.2,0.3,0.25,0.9);
164
+ -webkit-transform: translate3d(0,0,0);
165
+ -moz-transform: translate3d(0,0,0);
166
+ -o-transform: translate3d(0,0,0);
167
+ transform: translate3d(0,0,0)
168
+ }
169
+ .side-nav-open #content {
170
+ -webkit-transform: translate3d(250px,0,0);
171
+ -moz-transform: translate3d(250px,0,0);
172
+ -o-transform: translate3d(250px,0,0);
173
+ transform: translate3d(250px,0,0);
174
+ }
175
+ */
176
+
138
177
139
- @media screen and (max-width : 480 px ){
178
+ @media screen and (max-width : 750 px ){
140
179
body {font-size : 14px }
141
- # head {height : 25px ;}
142
- # head .logo {font-size : 22px ;padding-left : 8px ;text-align : center;}
143
- # content {width : 95% ;margin : 0 auto;}
180
+ # content {width : 85% ;margin : 100px auto 50px ; }
144
181
145
182
h2 {font-size : 20px ;}
146
183
h3 {font-size : 16px ;}
@@ -164,6 +201,7 @@ h3.about {color:#777;margin-top:20px;font-size:22px;margin-bottom:10px}
164
201
# about .about-more {margin : 0 auto;;margin- to p: 20px}
165
202
# about .copyright {margin-top : 0 ;}
166
203
}
167
- @media (max-width : 850 px ){
204
+ @media (max-width : 1020 px ){
168
205
# menuIndex {display : none;}
206
+ .home-menu { position : absolute; }
169
207
}
0 commit comments