blob: 9036094d0cb40dcbdd6eb077d6f33e9e204cd89c [file] [log] [blame]
Tang Cheng60ba8032016-06-20 15:31:17 +08001/**
2 * Custom Bootstrap and Theme Overrides
3 *
4 * Bootstrap designers: Feel free to remove all of the styles in this
5 * file to start a fresh new design. Most of the critical/functional
6 * styles are found within the other CSS files, with this one included last.
7 *
8 * Bootstrap and Hexo markdown style overrides would typically happen here.
9 */
10
11/* Globals */
12
13body {
14 font-family: Georgia, "Times New Roman", Times, serif;
15 color: #555;
Tang Cheng1c1e6942016-06-21 16:43:59 +080016 font-size: 16px;
Tang Cheng60ba8032016-06-20 15:31:17 +080017}
18
19h1, .h1,
20h2, .h2,
21h3, .h3,
22h4, .h4,
23h5, .h5,
24h6, .h6 {
25 margin-top: 1em;
26 margin-bottom: 15px;
27 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
28 font-weight: normal;
29 color: #333;
30}
31
32p {
33 margin: 0 0 15px;
Tang Cheng1c1e6942016-06-21 16:43:59 +080034 font-size: 16px;
Tang Cheng60ba8032016-06-20 15:31:17 +080035}
36
37code {
38 background-color: #eeeeee;
39 font-size: 80%;
40}
41
42.fa { margin-right: 0.25em; }
43
44/* Buttons */
45.btn {
46 border-radius: 30px;
47}
48.btn-primary {
49 background-color: #428bca;
50 border-color: #337ab7;
51}
52.nav-pills>li>a {
53 border-radius: 30px;
54}
55
56/* Override Bootstrap's default container width */
57@media (min-width: 1200px) {
58 .container {
59 width: 970px;
60 }
61}
62
63/*
64 * Masthead for nav
65 */
66
67.navbar {
68 background-color: #428bca;
Tang Cheng1c1e6942016-06-21 16:43:59 +080069 position: fixed;
70 width: 100%;
71 top: 0;
72 z-index: 0;
73 overflow: hidden;
Tang Cheng60ba8032016-06-20 15:31:17 +080074 -webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
75 box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
76}
77
78.navbar-inverse { border: 0; }
79
80.navbar-inverse .navbar-toggle {
81 border-color: #cdddeb;
82}
83.navbar-inverse .navbar-toggle .icon-bar {
84 background-color: #cdddeb;
85}
86
87.navbar-inverse .navbar-toggle:focus,
88.navbar-inverse .navbar-toggle:hover {
89 background-color: #65A2D6;
90}
91
92.navbar-inverse .navbar-brand,
93.navbar-inverse .navbar-nav>li>a {
94 color: #cdddeb;
95 font-weight: 500;
96}
97
98.navbar-inverse .navbar-collapse,
99.navbar-inverse .navbar-form {
100 border-color: #cdddeb;
101}
102
103.navbar-inverse .navbar-nav>li>a.active {
104 color: #fff;
105}
106
107@media (min-width: 768px) {
108 .navbar {
109 border-radius: 0;
110 min-height: 40px;
111 }
112
113 /** The following may need modification depending on
114 the size of your `navbar-brand` (if enabled) */
115 #main-menu-navbar {
116 margin-left: -30px;
117 }
118 .navbar-nav>li>a {
119 padding-top: 10px;
120 padding-bottom: 10px;
121 }
122 /** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
123
124 .navbar-inverse .navbar-nav>li>a.active:after {
Tang Cheng1c1e6942016-06-21 16:43:59 +0800125 /*position: absolute;*/
Tang Cheng60ba8032016-06-20 15:31:17 +0800126 bottom: 0;
127 left: 50%;
128 width: 0;
129 height: 0;
130 margin-left: -5px;
131 vertical-align: middle;
132 content: " ";
133 border-right: 5px solid transparent;
134 border-bottom: 5px solid;
135 border-left: 5px solid transparent;
136 }
137}
138
139/*
140 * Blog header and description
141 */
142
143.blog-header {
144 padding-bottom: 20px;
145}
146.blog-title {
Tang Cheng1c1e6942016-06-21 16:43:59 +0800147 margin-top: 82px;
Tang Cheng60ba8032016-06-20 15:31:17 +0800148 margin-bottom: 0;
Tang Cheng1c1e6942016-06-21 16:43:59 +0800149 font-size: 48px;
Tang Cheng60ba8032016-06-20 15:31:17 +0800150 font-weight: normal;
151}
152.blog-description {
153 font-size: 20px;
154 color: #999;
155}
156
157/*
158 * Main column and sidebar layout
159 */
160
161.blog-main {
Tang Cheng1c1e6942016-06-21 16:43:59 +0800162 font-size: 16px;
Tang Cheng60ba8032016-06-20 15:31:17 +0800163 line-height: 1.5;
164}
165.blog-main > article:last-of-type {
166 margin-bottom: 30px;
167}
168
Tang Cheng1c1e6942016-06-21 16:43:59 +0800169
Tang Cheng60ba8032016-06-20 15:31:17 +0800170/* Sidebar modules for boxing content */
171.sidebar-module {
172 padding: 15px;
173 margin: 0 -15px 15px;
174}
175.sidebar-module h4 {
176 margin-top: 0;
177 margin-bottom: 10px;
178}
179.sidebar-module-inset {
180 padding: 15px;
181 background-color: #f5f5f5;
182 border-radius: 4px;
183}
184.sidebar-module-inset p:last-child,
185.sidebar-module-inset ul:last-child,
186.sidebar-module-inset ol:last-child {
187 margin-bottom: 0;
188}
189
190.sidebar-module-list {
191 padding-left: 0;
192 list-style: none;
193}
194.sidebar-module-list-child {
195 padding-left: 25px;
196}
197
198
199/*
200 * Blog posts
201 */
202
203.article {
Tang Cheng1c1e6942016-06-21 16:43:59 +0800204 margin-top: 50px;
Tang Cheng60ba8032016-06-20 15:31:17 +0800205 margin-bottom: 60px;
Tang Cheng1c1e6942016-06-21 16:43:59 +0800206 font-size: 16px;
Tang Cheng60ba8032016-06-20 15:31:17 +0800207}
208
209.article-header h1 {
210 margin-top: 0;
211 margin-bottom: 5px;
212}
213.article-header h1 a {
214 color: #333;
215}
216.article-header h1 a:hover {
217 color: #23527c;
218 text-decoration: none;
219}
220
221.article-meta {
222 margin-bottom: 20px;
223 color: #999;
224 font-size: 0.9em;
225}
226.article-meta > * {
227 display: inline-block;
228 margin-right: 15px;
229}
230.article-meta a {
231 color: inherit;
232}
233
234.article-entry .article-more-link {
235 margin: 15px 0;
236}
237.article-entry .thumbnail .caption {
238 padding: 0;
239}
240.article-entry>*:last-child {
241 margin-bottom: 15px;
242}
243
244/* article footer content */
245.article-footer {
246 font-size: 0.85em;
247 border-top: 1px solid #eee;
248 padding-top: 15px;
249}
250.article-footer:after { /* clearfix */
251 content: " ";
252 visibility: hidden;
253 display: block;
254 height: 0;
255 clear: both;
256}
257.article-footer a {
258 color: #999;
259 text-decoration: none;
260}
261.article-footer a:hover {
262 color: #666;
263 text-decoration: underline;
264}
265
266/*
267 * Archives
268 */
269
270.archives-wrap {
271 margin-bottom: 30px;
272}
273
274.archive-year-wrap a,
275.archive-article .article-datetime a {
276 color: #333;
277 text-decoration: none;
278}
279
280.archive-article .article-datetime a {
281 color: #999;
282 text-decoration: none;
283}
284
285/*
286 * Pagination
287 */
288#page-nav {
289 text-align: center;
290}
291#page-nav .pagination {
292 margin-top: 0;
293 margin-bottom: 30px;
294}
295#page-nav .pagination .active>* {
296 background-color: #428bca;
297 border-color: #428bca;
298}
299#page-nav .pagination>li:last-child>* {
300 border-top-right-radius: 30px;
301 border-bottom-right-radius: 30px;
302}
303#page-nav .pagination>li:first-child>* {
304 border-top-left-radius: 30px;
305 border-bottom-left-radius: 30px;
306}
307
308/*
309 * Footer
310 */
311
312.blog-footer {
313 padding: 40px 0;
314 color: #999;
315 text-align: center;
316 background-color: #f9f9f9;
317 border-top: 1px solid #e5e5e5;
318}
319.blog-footer p:last-child {
320 margin-bottom: 0;
321}
linqing.he30011652016-06-21 14:03:26 +0800322
323
324/*
325*Tables
326*/
327table {
328 border-collapse:collapse;
329 border-radius:3px;
Tang Cheng1c1e6942016-06-21 16:43:59 +0800330 font-size: 16px;
linqing.he30011652016-06-21 14:03:26 +0800331}
332
333table th {
334 font-weight: bold;
335 background-color: #e0e0e0;
336 text-align:left;
337}
338
339table th, table td {
340 border: 1px solid #ccc;
341 padding: 6px 13px;
342}
343
344table tr {
345 border-top: 1px solid #ccc;
346 background-color: #fff;
347}
348
349table tr:nth-child(2n) {
350 background-color: #f8f8f8;
351}
352