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 | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | h1, .h1, |
| 20 | h2, .h2, |
| 21 | h3, .h3, |
| 22 | h4, .h4, |
| 23 | h5, .h5, |
| 24 | h6, .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 | |
| 32 | p { |
| 33 | margin: 0 0 15px; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 34 | font-size: 16px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | code { |
| 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 Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 69 | position: fixed; |
| 70 | width: 100%; |
| 71 | top: 0; |
| 72 | z-index: 0; |
| 73 | overflow: hidden; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 74 | -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 Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 125 | /*position: absolute;*/ |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 126 | 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 Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 147 | margin-top: 82px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 148 | margin-bottom: 0; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 149 | font-size: 48px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 150 | 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 Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 162 | font-size: 16px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 163 | line-height: 1.5; |
| 164 | } |
| 165 | .blog-main > article:last-of-type { |
| 166 | margin-bottom: 30px; |
| 167 | } |
| 168 | |
Tang Cheng | 0fcb364 | 2016-06-21 16:46:13 +0800 | [diff] [blame^] | 169 | .blog-sidebar { |
| 170 | font-size: 14px; |
| 171 | } |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 172 | |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 173 | /* Sidebar modules for boxing content */ |
| 174 | .sidebar-module { |
| 175 | padding: 15px; |
| 176 | margin: 0 -15px 15px; |
| 177 | } |
| 178 | .sidebar-module h4 { |
| 179 | margin-top: 0; |
| 180 | margin-bottom: 10px; |
| 181 | } |
| 182 | .sidebar-module-inset { |
| 183 | padding: 15px; |
| 184 | background-color: #f5f5f5; |
| 185 | border-radius: 4px; |
| 186 | } |
| 187 | .sidebar-module-inset p:last-child, |
| 188 | .sidebar-module-inset ul:last-child, |
| 189 | .sidebar-module-inset ol:last-child { |
| 190 | margin-bottom: 0; |
| 191 | } |
| 192 | |
| 193 | .sidebar-module-list { |
| 194 | padding-left: 0; |
| 195 | list-style: none; |
| 196 | } |
| 197 | .sidebar-module-list-child { |
| 198 | padding-left: 25px; |
| 199 | } |
| 200 | |
| 201 | |
| 202 | /* |
| 203 | * Blog posts |
| 204 | */ |
| 205 | |
| 206 | .article { |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 207 | margin-top: 50px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 208 | margin-bottom: 60px; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 209 | font-size: 16px; |
Tang Cheng | 60ba803 | 2016-06-20 15:31:17 +0800 | [diff] [blame] | 210 | } |
| 211 | |
| 212 | .article-header h1 { |
| 213 | margin-top: 0; |
| 214 | margin-bottom: 5px; |
| 215 | } |
| 216 | .article-header h1 a { |
| 217 | color: #333; |
| 218 | } |
| 219 | .article-header h1 a:hover { |
| 220 | color: #23527c; |
| 221 | text-decoration: none; |
| 222 | } |
| 223 | |
| 224 | .article-meta { |
| 225 | margin-bottom: 20px; |
| 226 | color: #999; |
| 227 | font-size: 0.9em; |
| 228 | } |
| 229 | .article-meta > * { |
| 230 | display: inline-block; |
| 231 | margin-right: 15px; |
| 232 | } |
| 233 | .article-meta a { |
| 234 | color: inherit; |
| 235 | } |
| 236 | |
| 237 | .article-entry .article-more-link { |
| 238 | margin: 15px 0; |
| 239 | } |
| 240 | .article-entry .thumbnail .caption { |
| 241 | padding: 0; |
| 242 | } |
| 243 | .article-entry>*:last-child { |
| 244 | margin-bottom: 15px; |
| 245 | } |
| 246 | |
| 247 | /* article footer content */ |
| 248 | .article-footer { |
| 249 | font-size: 0.85em; |
| 250 | border-top: 1px solid #eee; |
| 251 | padding-top: 15px; |
| 252 | } |
| 253 | .article-footer:after { /* clearfix */ |
| 254 | content: " "; |
| 255 | visibility: hidden; |
| 256 | display: block; |
| 257 | height: 0; |
| 258 | clear: both; |
| 259 | } |
| 260 | .article-footer a { |
| 261 | color: #999; |
| 262 | text-decoration: none; |
| 263 | } |
| 264 | .article-footer a:hover { |
| 265 | color: #666; |
| 266 | text-decoration: underline; |
| 267 | } |
| 268 | |
| 269 | /* |
| 270 | * Archives |
| 271 | */ |
| 272 | |
| 273 | .archives-wrap { |
| 274 | margin-bottom: 30px; |
| 275 | } |
| 276 | |
| 277 | .archive-year-wrap a, |
| 278 | .archive-article .article-datetime a { |
| 279 | color: #333; |
| 280 | text-decoration: none; |
| 281 | } |
| 282 | |
| 283 | .archive-article .article-datetime a { |
| 284 | color: #999; |
| 285 | text-decoration: none; |
| 286 | } |
| 287 | |
| 288 | /* |
| 289 | * Pagination |
| 290 | */ |
| 291 | #page-nav { |
| 292 | text-align: center; |
| 293 | } |
| 294 | #page-nav .pagination { |
| 295 | margin-top: 0; |
| 296 | margin-bottom: 30px; |
| 297 | } |
| 298 | #page-nav .pagination .active>* { |
| 299 | background-color: #428bca; |
| 300 | border-color: #428bca; |
| 301 | } |
| 302 | #page-nav .pagination>li:last-child>* { |
| 303 | border-top-right-radius: 30px; |
| 304 | border-bottom-right-radius: 30px; |
| 305 | } |
| 306 | #page-nav .pagination>li:first-child>* { |
| 307 | border-top-left-radius: 30px; |
| 308 | border-bottom-left-radius: 30px; |
| 309 | } |
| 310 | |
| 311 | /* |
| 312 | * Footer |
| 313 | */ |
| 314 | |
| 315 | .blog-footer { |
| 316 | padding: 40px 0; |
| 317 | color: #999; |
| 318 | text-align: center; |
| 319 | background-color: #f9f9f9; |
| 320 | border-top: 1px solid #e5e5e5; |
| 321 | } |
| 322 | .blog-footer p:last-child { |
| 323 | margin-bottom: 0; |
| 324 | } |
linqing.he | 3001165 | 2016-06-21 14:03:26 +0800 | [diff] [blame] | 325 | |
| 326 | |
| 327 | /* |
| 328 | *Tables |
| 329 | */ |
| 330 | table { |
| 331 | border-collapse:collapse; |
| 332 | border-radius:3px; |
Tang Cheng | 1c1e694 | 2016-06-21 16:43:59 +0800 | [diff] [blame] | 333 | font-size: 16px; |
linqing.he | 3001165 | 2016-06-21 14:03:26 +0800 | [diff] [blame] | 334 | } |
| 335 | |
| 336 | table th { |
| 337 | font-weight: bold; |
| 338 | background-color: #e0e0e0; |
| 339 | text-align:left; |
| 340 | } |
| 341 | |
| 342 | table th, table td { |
| 343 | border: 1px solid #ccc; |
| 344 | padding: 6px 13px; |
| 345 | } |
| 346 | |
| 347 | table tr { |
| 348 | border-top: 1px solid #ccc; |
| 349 | background-color: #fff; |
| 350 | } |
| 351 | |
| 352 | table tr:nth-child(2n) { |
| 353 | background-color: #f8f8f8; |
| 354 | } |
| 355 | |