Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 1 | /** |
| 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 | |
| 13 | body { |
| 14 | font-family: Georgia, "Times New Roman", Times, serif; |
| 15 | color: #555; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 16 | font-size: 16px; |
Tang Cheng | d4275ee | 2016-06-29 10:47:48 +0800 | [diff] [blame] | 17 | -webkit-print-color-adjust: exact; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | h1, .h1, |
| 21 | h2, .h2, |
| 22 | h3, .h3, |
| 23 | h4, .h4, |
| 24 | h5, .h5, |
| 25 | h6, .h6 { |
| 26 | margin-top: 1em; |
| 27 | margin-bottom: 15px; |
| 28 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 29 | font-weight: normal; |
| 30 | color: #333; |
| 31 | } |
| 32 | |
| 33 | p { |
| 34 | margin: 0 0 15px; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 35 | font-size: 16px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | code { |
| 39 | background-color: #eeeeee; |
| 40 | font-size: 80%; |
| 41 | } |
| 42 | |
| 43 | .fa { margin-right: 0.25em; } |
| 44 | |
| 45 | /* Buttons */ |
| 46 | .btn { |
| 47 | border-radius: 30px; |
| 48 | } |
| 49 | .btn-primary { |
| 50 | background-color: #428bca; |
| 51 | border-color: #337ab7; |
| 52 | } |
| 53 | .nav-pills>li>a { |
| 54 | border-radius: 30px; |
| 55 | } |
| 56 | |
| 57 | /* Override Bootstrap's default container width */ |
| 58 | @media (min-width: 1200px) { |
| 59 | .container { |
| 60 | width: 970px; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /* |
| 65 | * Masthead for nav |
| 66 | */ |
| 67 | |
| 68 | .navbar { |
| 69 | background-color: #428bca; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 70 | position: fixed; |
| 71 | width: 100%; |
| 72 | top: 0; |
| 73 | z-index: 0; |
| 74 | overflow: hidden; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 75 | -webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1); |
| 76 | box-shadow: inset 0 -2px 5px rgba(0,0,0,.1); |
| 77 | } |
| 78 | |
| 79 | .navbar-inverse { border: 0; } |
| 80 | |
| 81 | .navbar-inverse .navbar-toggle { |
| 82 | border-color: #cdddeb; |
| 83 | } |
| 84 | .navbar-inverse .navbar-toggle .icon-bar { |
| 85 | background-color: #cdddeb; |
| 86 | } |
| 87 | |
| 88 | .navbar-inverse .navbar-toggle:focus, |
| 89 | .navbar-inverse .navbar-toggle:hover { |
| 90 | background-color: #65A2D6; |
| 91 | } |
| 92 | |
| 93 | .navbar-inverse .navbar-brand, |
| 94 | .navbar-inverse .navbar-nav>li>a { |
| 95 | color: #cdddeb; |
| 96 | font-weight: 500; |
| 97 | } |
| 98 | |
| 99 | .navbar-inverse .navbar-collapse, |
| 100 | .navbar-inverse .navbar-form { |
| 101 | border-color: #cdddeb; |
| 102 | } |
| 103 | |
| 104 | .navbar-inverse .navbar-nav>li>a.active { |
| 105 | color: #fff; |
| 106 | } |
| 107 | |
| 108 | @media (min-width: 768px) { |
| 109 | .navbar { |
| 110 | border-radius: 0; |
| 111 | min-height: 40px; |
| 112 | } |
| 113 | |
| 114 | /** The following may need modification depending on |
| 115 | the size of your `navbar-brand` (if enabled) */ |
| 116 | #main-menu-navbar { |
| 117 | margin-left: -30px; |
| 118 | } |
| 119 | .navbar-nav>li>a { |
| 120 | padding-top: 10px; |
| 121 | padding-bottom: 10px; |
| 122 | } |
| 123 | /** ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */ |
| 124 | |
| 125 | .navbar-inverse .navbar-nav>li>a.active:after { |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 126 | /*position: absolute;*/ |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 127 | bottom: 0; |
| 128 | left: 50%; |
| 129 | width: 0; |
| 130 | height: 0; |
| 131 | margin-left: -5px; |
| 132 | vertical-align: middle; |
| 133 | content: " "; |
| 134 | border-right: 5px solid transparent; |
| 135 | border-bottom: 5px solid; |
| 136 | border-left: 5px solid transparent; |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /* |
| 141 | * Blog header and description |
| 142 | */ |
| 143 | |
| 144 | .blog-header { |
| 145 | padding-bottom: 20px; |
| 146 | } |
| 147 | .blog-title { |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 148 | margin-top: 82px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 149 | margin-bottom: 0; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 150 | font-size: 48px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 151 | font-weight: normal; |
| 152 | } |
| 153 | .blog-description { |
| 154 | font-size: 20px; |
| 155 | color: #999; |
| 156 | } |
| 157 | |
| 158 | /* |
| 159 | * Main column and sidebar layout |
| 160 | */ |
| 161 | |
| 162 | .blog-main { |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 163 | font-size: 16px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 164 | line-height: 1.5; |
| 165 | } |
| 166 | .blog-main > article:last-of-type { |
| 167 | margin-bottom: 30px; |
| 168 | } |
| 169 | |
Tang Cheng | 0fcb364 | 2016-06-21 16:46:13 +0800 | [diff] [blame] | 170 | .blog-sidebar { |
| 171 | font-size: 14px; |
| 172 | } |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 173 | |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 174 | /* Sidebar modules for boxing content */ |
| 175 | .sidebar-module { |
| 176 | padding: 15px; |
| 177 | margin: 0 -15px 15px; |
| 178 | } |
| 179 | .sidebar-module h4 { |
| 180 | margin-top: 0; |
| 181 | margin-bottom: 10px; |
| 182 | } |
| 183 | .sidebar-module-inset { |
| 184 | padding: 15px; |
| 185 | background-color: #f5f5f5; |
| 186 | border-radius: 4px; |
| 187 | } |
| 188 | .sidebar-module-inset p:last-child, |
| 189 | .sidebar-module-inset ul:last-child, |
| 190 | .sidebar-module-inset ol:last-child { |
| 191 | margin-bottom: 0; |
| 192 | } |
| 193 | |
| 194 | .sidebar-module-list { |
| 195 | padding-left: 0; |
| 196 | list-style: none; |
| 197 | } |
| 198 | .sidebar-module-list-child { |
| 199 | padding-left: 25px; |
| 200 | } |
| 201 | |
| 202 | |
| 203 | /* |
| 204 | * Blog posts |
| 205 | */ |
| 206 | |
| 207 | .article { |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 208 | margin-top: 50px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 209 | margin-bottom: 60px; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 210 | font-size: 16px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 211 | } |
| 212 | |
| 213 | .article-header h1 { |
| 214 | margin-top: 0; |
| 215 | margin-bottom: 5px; |
| 216 | } |
| 217 | .article-header h1 a { |
| 218 | color: #333; |
| 219 | } |
| 220 | .article-header h1 a:hover { |
| 221 | color: #23527c; |
| 222 | text-decoration: none; |
| 223 | } |
| 224 | |
| 225 | .article-meta { |
| 226 | margin-bottom: 20px; |
| 227 | color: #999; |
| 228 | font-size: 0.9em; |
| 229 | } |
| 230 | .article-meta > * { |
| 231 | display: inline-block; |
| 232 | margin-right: 15px; |
| 233 | } |
| 234 | .article-meta a { |
| 235 | color: inherit; |
| 236 | } |
| 237 | |
| 238 | .article-entry .article-more-link { |
| 239 | margin: 15px 0; |
| 240 | } |
| 241 | .article-entry .thumbnail .caption { |
| 242 | padding: 0; |
| 243 | } |
| 244 | .article-entry>*:last-child { |
| 245 | margin-bottom: 15px; |
| 246 | } |
| 247 | |
| 248 | /* article footer content */ |
| 249 | .article-footer { |
| 250 | font-size: 0.85em; |
| 251 | border-top: 1px solid #eee; |
| 252 | padding-top: 15px; |
| 253 | } |
| 254 | .article-footer:after { /* clearfix */ |
| 255 | content: " "; |
| 256 | visibility: hidden; |
| 257 | display: block; |
| 258 | height: 0; |
| 259 | clear: both; |
| 260 | } |
| 261 | .article-footer a { |
| 262 | color: #999; |
| 263 | text-decoration: none; |
| 264 | } |
| 265 | .article-footer a:hover { |
| 266 | color: #666; |
| 267 | text-decoration: underline; |
| 268 | } |
| 269 | |
| 270 | /* |
| 271 | * Archives |
| 272 | */ |
| 273 | |
| 274 | .archives-wrap { |
| 275 | margin-bottom: 30px; |
| 276 | } |
| 277 | |
| 278 | .archive-year-wrap a, |
| 279 | .archive-article .article-datetime a { |
| 280 | color: #333; |
| 281 | text-decoration: none; |
| 282 | } |
| 283 | |
| 284 | .archive-article .article-datetime a { |
| 285 | color: #999; |
| 286 | text-decoration: none; |
| 287 | } |
| 288 | |
| 289 | /* |
| 290 | * Pagination |
| 291 | */ |
| 292 | #page-nav { |
| 293 | text-align: center; |
| 294 | } |
| 295 | #page-nav .pagination { |
| 296 | margin-top: 0; |
| 297 | margin-bottom: 30px; |
| 298 | } |
| 299 | #page-nav .pagination .active>* { |
| 300 | background-color: #428bca; |
| 301 | border-color: #428bca; |
| 302 | } |
| 303 | #page-nav .pagination>li:last-child>* { |
| 304 | border-top-right-radius: 30px; |
| 305 | border-bottom-right-radius: 30px; |
| 306 | } |
| 307 | #page-nav .pagination>li:first-child>* { |
| 308 | border-top-left-radius: 30px; |
| 309 | border-bottom-left-radius: 30px; |
| 310 | } |
| 311 | |
| 312 | /* |
| 313 | * Footer |
| 314 | */ |
| 315 | |
| 316 | .blog-footer { |
| 317 | padding: 40px 0; |
| 318 | color: #999; |
| 319 | text-align: center; |
| 320 | background-color: #f9f9f9; |
| 321 | border-top: 1px solid #e5e5e5; |
| 322 | } |
| 323 | .blog-footer p:last-child { |
| 324 | margin-bottom: 0; |
| 325 | } |
linqing.he | 3001165 | 2016-06-21 14:03:26 +0800 | [diff] [blame] | 326 | |
| 327 | |
| 328 | /* |
| 329 | *Tables |
| 330 | */ |
| 331 | table { |
| 332 | border-collapse:collapse; |
| 333 | border-radius:3px; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 334 | font-size: 16px; |
linqing.he | 3001165 | 2016-06-21 14:03:26 +0800 | [diff] [blame] | 335 | } |
| 336 | |
| 337 | table th { |
| 338 | font-weight: bold; |
| 339 | background-color: #e0e0e0; |
| 340 | text-align:left; |
| 341 | } |
| 342 | |
| 343 | table th, table td { |
| 344 | border: 1px solid #ccc; |
| 345 | padding: 6px 13px; |
| 346 | } |
| 347 | |
| 348 | table tr { |
| 349 | border-top: 1px solid #ccc; |
| 350 | background-color: #fff; |
| 351 | } |
| 352 | |
| 353 | table tr:nth-child(2n) { |
| 354 | background-color: #f8f8f8; |
| 355 | } |
| 356 | |
Tang Cheng | d4275ee | 2016-06-29 10:47:48 +0800 | [diff] [blame] | 357 | @media print { |
| 358 | body { |
| 359 | -webkit-print-color-adjust: exact; |
| 360 | } |
| 361 | |
| 362 | .blog-sidebar { |
| 363 | display: none; |
| 364 | } |
| 365 | .blog-footer { |
| 366 | display: none; |
| 367 | } |
| 368 | #article-footer { |
| 369 | display: none; |
| 370 | } |
| 371 | #article-nav { |
| 372 | display: none; |
| 373 | } |
| 374 | |
| 375 | .blog-main { |
| 376 | padding-top: 0px; |
| 377 | background-color: #00FF00; |
| 378 | } |
| 379 | |
| 380 | table th { |
| 381 | background-color: #f8f8f8 !important; |
| 382 | } |
| 383 | |
| 384 | .code td>pre { |
| 385 | background-color: #FF0000 !important; /*#CCCCCC;*/ |
| 386 | } |
| 387 | } |