LISP爱好者改编的歌曲……Eternal Flame
[CLisp]井字過三關代碼

λ在Chito的第一個CSS配置[原主題:Earthy]

λ posted @ 2011年10月23日 00:50 in Mixture with tags chito css markdown , 9734 阅读

該CSS是利用FirebugWYSIWYG模式下編寫的。

該主題的缺點(或者直奔代碼

  • 太多細節上的修改了,其中導航欄是在Header那設置的,不過在對齊其下的元素時時也主要是修改Header處的參數。
  • 由於網頁標題圖片的緣故,整體做成了定寬的模式。
  • 完全沒考慮到Windows用戶的中文字體問題,咱是Linux黨,用的是沒有中文字體的Chito,有系統字體平滑化顯示功能,自己把瀏覽器的字體設為了明蘭字體……至於Ubuntu和文泉驛也是不錯的。

該主題的優點

  • 造型較可愛……呃
  • 對於喜歡行首縮進的人來講,這個剛剛好……
  • 編寫簡單日誌時不必考慮設置字體大小,要設標題時用預設樣式就好(僅標題一和二有下劃線)。
  • 評論和留言的排版較緊湊,儘量最大化利用空間。
  • 配合Markdown Extra簡直是絕配。

制定該樣式的目的

  • 簡潔就是美,技術人員寫的日誌也要簡潔大方。
  • 個人的美術愛好,體會排版的藝術。
  • 配合Markdown語法來撰寫日誌,大大減少平時的調調整整和瀏覽器不時的抽風導致的樣式錯亂。
  • 以後可能還會設計一個更簡潔更實用的樣式。
  • 瞭解一下CSS/HTML5。

以下是自定義CSS代碼

上次更新 時間:2012年1月9日20:50分

  1. 已經讓前後文章導航欄顯示出來了
  2. 修正了文章內容的列表文字縮進問題
  3. 修正了Mathjax圖片混排邊框問題
  4. 修正了<p></p>縮進導致的居中或向右對齊不正確的問題
  5. 去除了一些多余的代码
/*-----------------------------------------------------------------*\
 |     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/slwenyang284.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 h1 {
    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 h3 {
    padding-left: 10px;
    padding-bottom: 0px;
    padding-top: 0px;
    font-size: 120%;
    text-align: left;
    margin-bottom: 5px;
}

#leftnav h3 {
    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 */
h2.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;
}

h2.link_to_post, h2.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                        |
\*=================================================================*/
h1, h2, h3, h4, h5, h6, h7 {
    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;
}

h1 {
    font-size: 200%;
    border-top: 1px solid #777;
    border-bottom: 1px solid #AAA
}
h2 {
    font-size: 170%;
    border-bottom: 1px dotted black
}
h3 { font-size: 150%; }
h4 { font-size: 130%; }
h5 { font-size: 120%; }
h6 { 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_1x100.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_css1 {
    font-size: 8px;
}

.tag_css2 {
    font-size: 12px;
}

.tag_css3 {
    font-size: 16px;
}

.tag_css4 {
    font-size: 24px;
}

本網站無註明「轉載」的著作均由Jak Wings製作 CC BY-NC-SA 2.5
Creative Commons 保持署名-相同方式分享 2.5

Avatar_small
λ 说:
Oct 23, 2011 02:25:56 AM

由于無法覆蓋SyntaxHighlighter的CSS設置,故代碼字體還是有點過大了……Orz,正在求助galeki中。

Avatar_small
DeathKing 说:
Oct 23, 2011 09:17:38 AM

Ubuntu下看起来很好啊,很有日系网站的味道哦~~

Avatar_small
λ 说:
Oct 23, 2011 01:17:18 PM

哈,大标题图片是从http://xel.skr.jp/tokiame/找的,也借鉴了一下~

Avatar_small
λ 说:
Oct 23, 2011 01:29:03 PM

Orz..你的主页也很牛逼……那个SytaxHighlighter更是花了不少功夫。开个新博客,原来is-programmer.com的就随着RIP了...-_-

Avatar_small
cuihao 说:
Jan 08, 2012 02:13:33 PM

啊哈,
完全不会CSS,对着抄一抄 XD

Avatar_small
λ 说:
Jan 08, 2012 03:31:29 PM

我現在的樣式不是這個了,最新參照是這個:http://jakwings.is-programmer.com/posts/31646 (剛剛修正了一下)

basketball legends 说:
May 12, 2020 05:38:20 PM

要設標題時用預設樣式就好(僅標題一和二有下劃線)。
評論和留言的排版較緊湊,儘量最大化利用空間。要設標題時用預設樣式就好(僅標題一和二有下劃線)。
評論和留言的排版較緊湊,儘量最大化利用空間。

no registrado en la 说:
Aug 13, 2023 09:30:50 AM

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.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter