λ在Chito的第一個CSS配置[原主題:Earthy]
該CSS是利用Firebug在WYSIWYG模式下編寫的。
該主題的缺點(或者直奔代碼)
- 太多細節上的修改了,其中導航欄是在Header那設置的,不過在對齊其下的元素時時也主要是修改Header處的參數。
- 由於網頁標題圖片的緣故,整體做成了定寬的模式。
- 完全沒考慮到Windows用戶的中文字體問題,咱是Linux黨,用的是沒有中文字體的Chito,有系統字體平滑化顯示功能,自己把瀏覽器的字體設為了明蘭字體……至於Ubuntu和文泉驛也是不錯的。
該主題的優點
- 造型較可愛……呃
- 對於喜歡行首縮進的人來講,這個剛剛好……
- 編寫簡單日誌時不必考慮設置字體大小,要設標題時用預設樣式就好(僅標題一和二有下劃線)。
- 評論和留言的排版較緊湊,儘量最大化利用空間。
- 配合Markdown Extra簡直是絕配。
制定該樣式的目的
- 簡潔就是美,技術人員寫的日誌也要簡潔大方。
- 個人的美術愛好,體會排版的藝術。
- 配合Markdown語法來撰寫日誌,大大減少平時的調調整整和瀏覽器不時的抽風導致的樣式錯亂。
- 以後可能還會設計一個更簡潔更實用的樣式。
- 瞭解一下CSS/HTML5。
以下是自定義CSS代碼
上次更新 時間:2012年1月9日20:50分
- 已經讓前後文章導航欄顯示出來了
- 修正了文章內容的列表文字縮進問題
- 修正了Mathjax圖片混排邊框問題
- 修正了<p></p>縮進導致的居中或向右對齊不正確的問題
- 去除了一些多余的代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 | /*-----------------------------------------------------------------*\ | 2007 LinuxGem | Design by www.mitchinson.net | | Theme: Earthy | | Modified by lambda | | Last update: Jan.9, 2012 | \*-----------------------------------------------------------------*/ /*=================================================================*\ | Body | \*=================================================================*/ body { width : 100% ; height : 100% ; margin : 0 auto ; padding : 0 ; line-height : 140% ; background-color : #FDFDFD ; background-image : url (/user_files/jakwings/Image/slwenyang 284 .gif); } /*=================================================================*\ | Container | \*=================================================================*/ /* Header */ #container { width : 990px ; margin-left : 70px ; height : 149px ; line-height : 140% ; background : transparent ; color : black ; } # top { margin : 0 ; padding : 0 ; height : 139px ; background : url (/user_files/jakwings/Image/Header.gif) no-repeat ; width : 980px ; border : 5px double olive ; } # top h 1 { padding : 60px 0px 5px 25px ; margin : 0 ; font : 220% Helvetica , "Trebuchet MS" , Arial , Tahoma , sans-serif ; letter-spacing : 5px ; text-align : left ; background : transparent ; border : 0 ; } # top a:link, # top a:visited { color : #404000 ; font-weight : bold ; } # top a { text-shadow : white 0px 0px 10px ; FILTER: Shadow(Color= #E9E9E7 , Direction= 135 , Strength= 1 ); border-radius: 20px ; padding : 20px ; box-shadow: 0px 0px 30px 10px rgba( 255 , 255 , 255 , 0.8 ) inset , 0px 0px 30px 10px rgba( 255 , 255 , 255 , 0.8 ); } # top a:hover { color : transparent ; font-weight : bold ; text-shadow : none ; FILTER: none ; border-radius: 20px ; padding : 20px ; box-shadow: none ; } # top #gem_slogan { color : #866C1C ; } # top #gem_slogan:hover { color : black ; } #gem_slogan { padding-left : 35px ; display : block ; font-size : 85% ; font-weight : bold ; } /* Menu Links */ #menuh-container { position : relative ; margin-top : 0 ; width : auto ; height : 2em ; } #menuh { font-size : 100% ; font-family : helvetica , "Trebuchet MS" , arial , sans-serif ; width : auto ; float : right ; margin : 0 ; border-bottom : 0px solid olive ; background : transparent ; } #menuh a, #menuh a:visited { color : white ; background : #809306 ; } #menuh a:hover { color : white ; background : steelblue; text-decoration : none ; } #menuh a, #menuh a:visited, #menuh a:hover { box-shadow: 0px 0px 50px rgba( 0 , 0 , 0 , 0.3 ); } #menuh ul { font-size : 90% ; list-style : none ; float : right ; width : auto ; margin-top : 0 ; padding-left : 0 ; border-left : 1px solid olive ; border-right : 1px solid olive ; border-bottom : 1px solid olive ; margin-left : 1px ; font-variant : small-caps ; } /* Left Navibar */ #leftnav { float : left ; width : 17% ; margin : 0 ; padding : 0 ; color : black ; background : #FDFDFD ; border-left : 1px solid olive ; border-right : 3px double olive ; border-top : 1px solid #EBEBEB ; border-bottom : 1px dotted #EBEBEB ; opacity: 0.8 ; -webkit-opacity: 0.8 ; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)" ; filter:alpha(opacity= 80 ); } #leftnav h 3 { padding-left : 10px ; padding-bottom : 0px ; padding-top : 0px ; font-size : 120% ; text-align : left ; margin-bottom : 5px ; } #leftnav h 3 { text-shadow : lightgray 0px 0px 20px ; FILTER: Shadow(Color= #E9E9E7 , Direction= 135 , Strength= 1 ); } img[alt= "RSS Link" ]:hover { background-color : ghostwhite; border-radius: 90px ; padding : 0px 5px 0px 5px ; box-shadow: 0px 0px 30px 230px rgba( 220 , 238 , 18 , 0.3 ) inset , 0px 0px 30px 30px rgba( 220 , 238 , 18 , 0.3 ); } .calendar { margin : auto ; color : black ; text-align : center ; font-size : 80% ; line-height : 80% ; } .navlist { padding : 0 ; margin-left : 20px ; margin-top : 2px ; margin-bottom : 0 ; font-size : 100% ; line-height : 125% ; } div#chito_search { padding : 0 ; margin-left : 20px ; margin-right : 10px ; } #search_form #s { width : 90% ; margin : 5px 0 5px 0 ; } #count { font-size : 130% ; color : paleGoldenrod; margin-bottom : 5px ; text-align : center ; font-weight : bold ; font-style : italic ; font-family : Tahoma , Georgia, Serif ; } /* Content */ #content { float : right ; padding : 15px ; margin : 0 ; width : 78% ; border-top : 1px solid #EBEBEB ; border-left : 3px double olive ; border-bottom : 3px double olive ; border-right : 3px double olive ; font-size : 100% ; background-color : #FDFDFD ; opacity: 0.96 ; -webkit-opacity: 0.96 ; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=96)" ; filter:alpha(opacity= 96 ); } /* Entry Title */ h 2 .link_to_post { font-size : 150% ; text-align : left ; font-variant : small-caps ; line-height : 140% ; font-weiight: bold ; border-top : 1px solid olive ; padding-top : 5px ; } h 2 .link_to_post, h 2 .link_to_post:hover { text-shadow : lightgray 0px 0px 20px ; FILTER: Shadow(Color= #E9E9E7 , Direction= 135 , Strength= 1 ); } .post_brief { padding-left : 5px ; font-size : 95% ; } .read-more { text-align : right ; margin : 0 ; padding-right : 5px ; font-size : 105% ; } .post-footer { background : none ; padding : 0 ; margin : 0 ; border-top : 1px solid ghostWhite; border-bottom : 1px solid ghostWhite; } /* Footer */ #footer { float : right ; padding-top : 1em ; padding-bottom : 1em ; padding-left : 0 ; padding-right : 0 ; color : black ; font-size : 90% ; text-align : center ; line-height : 100% ; margin-left : 0 ; margin-top : 2em ; margin-bottom : 2em ; clear : both ; background-color : #EAEAEA ; border : 2px dashed olive ; width : 986px ; opacity: 0.8 ; -webkit-opacity: 0.8 ; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)" ; filter:alpha(opacity= 80 ); } #footer:hover { opacity: 1 ; -webkit-opacity: 0.96 ; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=96)" ; filter:alpha(opacity= 96 ); } #footer p { text-align : center ; } #footer a:hover { color : olive ; } #footer a:link, #footer a:visited { font-size : 90% ; color : steelblue; text-decoration : none ; } /* Article */ #article_wrap { margin-top : 1em !important ; } #article_header { color : black ; margin : 0 ; padding-left : 2em ; line-height : 140% ; font-size : 90% ; margin-top : 1em ; margin-bottom : 1em ; letter-spacing : 1px ; } #article_body { font-size : 100% ; letter-spacing : 1px ; line-height : 140% ; margin : 0 ; padding-left : 1.7em ; padding-right : 0 ; padding-top : 0 ; padding-bottom : 0 ; } #article_content p { text-align : left ; text-indent : 2em ; /* I loven't it... */ } #article_content p[style*= "center" ], #article_content p[style*= "right" ]{ text-indent : 0 ; /* OK */ } #article_content ul p,#article_content li p,#article_content menu p,#article_content dir p { text-indent : 0 ; } #article_content img { border : 1px solid gray ; border-radius: 5px ; padding : 5px ; margin : 0.5em ; background-color : transparent ; box-shadow: 1px 1px 5px rgba( 132 , 133 , 8 , 0.5 ); } #article_content img:hover { box-shadow: 1px 1px 10px rgba( 132 , 133 , 8 , 0.5 ); } nobr img, nobr img:hover { border : 0 !important ; border-radius: 0 !important ; box-shadow: 0 0 !important ; padding : 0 !important ; margin : 0 !important ; } .articlefooter { background : none ; border-top : 1px solid #ACACAC ; padding : 3px 4px 4px 4px ; margin-top : 3em ; margin-bottom : 5px ; border-bottom : 1px solid olive ; } blockquote{ color : #202020 ; margin-left : 2em ; padding : 0px 5px 0px 5px ; background : #EFF2DF ; border-top : 1px darkGray; border-left : 1px darkGray; border-right : 1px darkGray; border-bottom : 1px darkGray; border-style : dotted dashed ; } blockquote:hover { background : #BECB69 ; color : black ; border : 1px solid darkGray; } div.pre_next_post { margin : 5px 0 2em 0px ; width : 100% ; border-bottom : 1px dashed olive ; height : 1.5em ; float : right ; } div.pre_next_post a { display : block ; font-size : 100% ; line-height : 100% ; } a.down { background : url (/images/down- blue .gif) no-repeat left center !important ; padding-left : 14px ; float : right ; } a.up { background : url (/images/up- blue .gif) no-repeat left center !important ; padding-left : 14px ; float : left ; } /* Comment */ textarea#comment_content { width : 90% ; display : inline ; } .comment_header { border : 1px inset ghostwhite; } .comment_content { padding-left : 48px ; padding-bottom : 1em ; padding-top : 0 ; padding-right : 0 ; border-bottom : 0px dotted olive ; border-left : 2px ridge olive ; } .comments_count { display : none ; } .twitter_comment_button { display : none ; } .comment_box { padding : 0 ; width : 95% ; margin-left : 10px ; margin-bottom : 0 ; background : #FAFAFA ; margin-top : 0 ; border-top : 1px solid ghostWhite; border-bottom : 0 ; border-left : 0 ; border-right : 1px dashed ghostWhite; box-shadow: -5px -5px 10px -5px rgba( 0 , 0 , 0 , 0.2 ); } .reply_comment_box { float : right ; margin-top : -1.5em ; padding-left : 0 ; padding-bottom : 2.5em ; padding-top : 0 ; background : transparent !important ; border : 0 ; width : 95% ; } .reply_comment_box:last-child { padding-left : 0 ; padding-bottom : 0.5em ; padding-top : 0 ; background : transparent !important ; border : 0 ; width : 99.4% ; } .comment_avatar { float : left ; padding : 5px ; } .comment_avatar img { width : 36px ; } input:focus, textarea:focus { background : #BECB69 ; color : black ; } #post_comment a, #post_comment a:visited { color : steelblue; } #post_comment a:hover { color : olive } /*=================================================================*\ | Hn & p & hr & menu & dir & ul & li & small | \*=================================================================*/ h 1 , h 2 , h 3 , h 4 , h 5 , h 6 , h 7 { font-family : Tahoma , Verdana , Arial , Helvetica , sans-serif ; padding : 0 ; margin-top : 1.2em ; margin-bottom : 0 ; margin-left : 0 ; margin-right : 0 ; font-weight : bold ; line-height : 150% ; letter-spacing : 1px ; color : black ; text-align : left ; } h 1 { font-size : 200% ; border-top : 1px solid #777 ; border-bottom : 1px solid #AAA } h 2 { font-size : 170% ; border-bottom : 1px dotted black } h 3 { font-size : 150% ; } h 4 { font-size : 130% ; } h 5 { font-size : 120% ; } h 6 { font-size : 105% ; } p { display : block ; -webkit-margin-before: 0.5em ; -webkit-margin-after: 0.5em ; -webkit-margin-start: 0px ; -webkit-margin-end: 0px ; text-align : inherit; } small { font-size : 85% ; } hr { display : block ; -webkit-margin-before: 0.5em ; -webkit-margin-after: 0.5em ; -webkit-margin-start: auto ; -webkit-margin-end: auto ; border-style : inset ; border-width : 1px ; } ul, li, menu, dir { text-align : left ; } /*=================================================================*\ | Other | \*=================================================================*/ /* Global Articles Navigator */ .ui-tabs .ui-tabs-nav { margin : 0 ; padding : . 2em . 2em 0 ; font-size : 90% ; } .ui-tabs .ui-tabs-panel { display : block ; border-width : 0 ; padding : 0 ; background : none ; } .ui-widget-header { border : 1px solid #AAA ; background : #CCC url (images/ui-bg_highlight-soft_ 75 _cccccc_ 1 x 100 .png) 50% 50% repeat-x ; color : #CCA ; font-weight : bold ; line-height : 90% ; } .ui-widget { font-family : Verdana , Arial , sans-serif ; font-size : 100% ; line-height : 120% ; } /* Web Link */ a, p a, p:hover a, a:link, a:visited { color : steelBlue; background : inherit; text-decoration : none ; } a:hover { color : olive ; background : inherit; } a:-webkit-any-link { color : steelBlue; text-decoration : none ; } a:-webkit-any-link:hover { color : olive ; text-decoration : none ; } /* Tag Cloud */ #tag_cloud { padding : 5px 20px 0px 20px ; } .tag_css 1 { font-size : 8px ; } .tag_css 2 { font-size : 12px ; } .tag_css 3 { font-size : 16px ; } .tag_css 4 { font-size : 24px ; } |
本網站無註明「轉載」的著作均由Jak Wings製作 CC BY-NC-SA 2.5
Creative Commons 保持署名-相同方式分享 2.5
13 年前
由于無法覆蓋SyntaxHighlighter的CSS設置,故代碼字體還是有點過大了……Orz,正在求助galeki中。
13 年前
Ubuntu下看起来很好啊,很有日系网站的味道哦~~
13 年前
哈,大标题图片是从http://xel.skr.jp/tokiame/找的,也借鉴了一下~
13 年前
果然NB
13 年前
Orz..你的主页也很牛逼……那个SytaxHighlighter更是花了不少功夫。开个新博客,原来is-programmer.com的就随着RIP了...-_-
13 年前
啊哈,
完全不会CSS,对着抄一抄 XD
13 年前
我現在的樣式不是這個了,最新參照是這個:http://jakwings.is-programmer.com/posts/31646 (剛剛修正了一下)
5 年前
要設標題時用預設樣式就好(僅標題一和二有下劃線)。
評論和留言的排版較緊湊,儘量最大化利用空間。要設標題時用預設樣式就好(僅標題一和二有下劃線)。
評論和留言的排版較緊湊,儘量最大化利用空間。
大约 1 年前
Afortunadamente, existen varias soluciones para este problema, que incluyen insertar correctamente su tarjeta SIM, restablecer su teléfono, verificar la configuración de su red o llamar a su proveedor para obtener ayuda. Para solucionar el problema, puede ser necesaria una nueva tarjeta SIM o una actualización de software en ciertas situaciones.Es importante abordar este problema de inmediato,no registrado en la red ya que puede afectar su capacidad para realizar llamadas de emergencia o recibir notificaciones importantes. Si continúa experimentando este problema, se recomienda buscar ayuda de su proveedor de red móvil o un servicio profesional de reparación de teléfonos.