提交 3e911045 编写于 作者: P Pratik Naik

Update with the new CSS from Jason and change the header logo

上级 1248c632
/* Guides.rubyonrails.org */
/* Main.css */
/* Created January 30, 2009 */
/* Modified January 31, 2009
/* Modified February 8, 2009
--------------------------------------- */
/* General
--------------------------------------- */
.left {
float: left;
margin-right: 1em;
}
.right {
float: right;
margin-left: 1em;
}
.small {
font-size: smaller;
}
.large {
font-size: larger;
}
.hide {
display: none;
}
.left {float: left; margin-right: 1em;}
.right {float: right; margin-left: 1em;}
.small {font-size: smaller;}
.large {font-size: larger;}
.hide {display: none;}
li ul, li ol {
margin: 0 1.5em;
}
ul, ol {
margin: 0 1.5em 1.5em 1.5em;
}
li ul, li ol { margin:0 1.5em; }
ul, ol { margin: 0 1.5em 1.5em 1.5em; }
ul {
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
ul { list-style-type: disc; }
ol { list-style-type: decimal; }
dl {
margin: 0 0 1.5em 0;
}
dl dt {
font-weight: bold;
}
dd {
margin-left: 1.5em;
}
dl { margin: 0 0 1.5em 0; }
dl dt { font-weight: bold; }
dd { margin-left: 1.5em;}
pre,code {
margin: 1.5em 0;
white-space: pre;
}
pre,code {
font: 1em 'andale mono', 'lucida console', monospace;
line-height: 1.5;
}
pre,code { margin: 1.5em 0; white-space: pre; }
pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
abbr, acronym {
border-bottom: 1px dotted #666;
}
address {
margin: 0 0 1.5em;
font-style: italic;
}
del {
color: #666;
}
abbr, acronym { border-bottom: 1px dotted #666; }
address { margin: 0 0 1.5em; font-style: italic; }
del { color:#666; }
blockquote {
margin: 1.5em;
color: #666;
font-style: italic;
}
strong {
font-weight: bold;
}
em, dfn {
font-style: italic;
}
dfn {
font-weight: bold;
}
sup, sub {
line-height: 0;
}
p {
margin: 0 0 1.5em;
}
blockquote { margin: 1.5em; color: #666; font-style: italic; }
strong { font-weight: bold; }
em, dfn { font-style: italic; }
dfn { font-weight: bold; }
sup, sub { line-height: 0; }
p {margin: 0 0 1.5em;}
label {
font-weight: bold;
}
fieldset {
padding: 1.4em;
margin: 0 0 1.5em 0;
border: 1px solid #ccc;
}
legend {
font-weight: bold;
font-size: 1.2em;
}
label { font-weight: bold; }
fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
legend { font-weight: bold; font-size:1.2em; }
input.text, input.title, textarea, select {
margin: 0.5em 0em;
border: 1px solid #bbb;
input.text, input.title,
textarea, select {
margin:0.5em 0;
border:1px solid #bbb;
}
table {
margin: 1em 0;
border: 1px solid #ddd;
background: #f4f4f4;
border-spacing: 0;
margin: 0 0 1.5em;
border: 2px solid #CCC;
background: #FFF;
border-collapse: collapse;
}
table th, table td {
padding: 0.25em;
border-right: 1px dotted #e0e0e0;
border-bottom: 1px dotted #e0e0e0;
}
table th:last-child, table td:last-child {
border-right: none;
padding: 0.25em 1em;
border: 1px solid #CCC;
border-collapse: collapse;
}
table th {
border-bottom: 1px solid #ddd;
background: #f0f0f0;
border-bottom: 2px solid #CCC;
background: #EEE;
font-weight: bold;
}
table tt {
padding: 0.1em;
padding: 0.5em 1em;
}
......@@ -146,13 +78,13 @@ body {
line-height: 1.5em;
background: #222;
color: #999;
}
}
.wrapper {
text-align: left;
margin: 0 auto;
width: 69em;
}
}
#topNav {
padding: 1em 0;
......@@ -165,7 +97,7 @@ body {
padding: 1.5em 0;
position: relative;
z-index: 99;
}
}
#feature {
background: #d5e9f6 url(../../images/feature_tile.gif) repeat-x;
......@@ -177,12 +109,12 @@ body {
background: #FFF;
color: #333;
padding: 0.5em 0 1.5em 0;
}
}
#mainCol {
width: 45em;
margin-left: 2em;
}
}
#subCol {
position: absolute;
......@@ -194,31 +126,21 @@ body {
width: 17em;
font-size: 0.9285em;
line-height: 1.3846em;
}
}
#extraCol {
display: none;
}
#extraCol {display: none;}
#footer {
padding: 2em 0;
background: url(../../images/footer_tile.gif) repeat-x;
}
}
#footer .wrapper {
padding-left: 2em;
width: 67em;
}
#header .wrapper, #topNav .wrapper, #feature .wrapper {
padding-left: 1em;
width: 68em;
}
#feature .wrapper {
width: 45em;
padding-right: 23em;
position: relative;
z-index: 0;
}
#header .wrapper, #topNav .wrapper, #feature .wrapper {padding-left: 1em; width: 68em;}
#feature .wrapper {width: 45em; padding-right: 23em; position: relative; z-index: 0;}
/* Links
--------------------------------------- */
......@@ -226,24 +148,16 @@ body {
a, a:link, a:visited {
color: #ee3f3f;
text-decoration: underline;
}
}
#mainCol a, #subCol a {
color: #980905;
}
#mainCol a, #subCol a, #feature a {color: #980905;}
/* Navigation
--------------------------------------- */
.nav {
margin: 0;
padding: 0;
}
.nav li {
display: inline;
list-style: none;
}
.nav {margin: 0; padding: 0;}
.nav li {display: inline; list-style: none;}
#header .nav {
float: right;
......@@ -251,16 +165,9 @@ a, a:link, a:visited {
font-size: 1.2857em;
}
#header .nav li {
margin: 0 0 0 0.5em;
}
#header .nav a {
color: #FFF;
text-decoration: none;
}
#header .nav a:hover {
text-decoration: underline;
}
#header .nav li {margin: 0 0 0 0.5em;}
#header .nav a {color: #FFF; text-decoration: none;}
#header .nav a:hover {text-decoration: underline;}
#header .nav .index {
padding: 0.5em 1.5em;
......@@ -278,9 +185,7 @@ a, a:link, a:visited {
z-index: 15;
padding-bottom: 0.125em;
}
#header .nav .index:hover a, #header .nav .index a:hover {
background-position: right -81px;
}
#header .nav .index:hover a, #header .nav .index a:hover {background-position: right -81px;}
#guides {
width: 27em;
......@@ -306,23 +211,10 @@ a, a:link, a:visited {
margin: 0;
padding: 0;
}
#guides dt {
padding: 0;
margin: 0.5em 0 0;
}
#guides a {
color: #FFF;
background: none !important;
}
#guides .L, #guides .R {
float: left;
width: 50%;
margin: 0;
padding: 0;
}
#guides .R {
float: right;
}
#guides dt {padding:0; margin: 0.5em 0 0;}
#guides a {color: #FFF; background: none !important;}
#guides .L, #guides .R {float: left; width: 50%; margin: 0; padding: 0;}
#guides .R {float: right;}
#guides hr {
display: block;
border: none;
......@@ -339,28 +231,28 @@ h1 {
line-height: 1em;
margin: 0.6em 0 .2em;
font-weight: bold;
}
}
h2 {
font-size: 2.1428em;
line-height: 1em;
margin: 0.7em 0 .2333em;
font-weight: bold;
}
}
h3 {
font-size: 1.7142em;
line-height: 1.286em;
margin: 0.875em 0 0.2916em;
font-weight: bold;
}
}
h4 {
font-size: 1.2857em;
line-height: 1.2em;
margin: 1.6667em 0 .3887em;
font-weight: bold;
}
}
h5 {
font-size: 1em;
......@@ -374,6 +266,11 @@ h6 {
line-height: 1.5em;
margin: 1em 0 .5em;
font-weight: normal;
}
.section {
padding-bottom: 0.25em;
border-bottom: 1px solid #999;
}
/* Content
......@@ -383,18 +280,13 @@ h6 {
margin: 0 2em 2em 0;
}
#topNav strong {
color: #999;
margin-right: 0.5em;
}
#topNav strong a {
color: #FFF;
}
#topNav strong {color: #999; margin-right: 0.5em;}
#topNav strong a {color: #FFF;}
#header h1 {
float: left;
background: url(../../images/ruby_guides_logo.gif) no-repeat;
width: 492px;
background: url(../../images/rails_guides_logo.gif) no-repeat;
width: 297px;
text-indent: -9999em;
margin: 0;
padding: 0;
......@@ -411,9 +303,7 @@ h6 {
margin-bottom: 0.75em;
}
#feature ul {
margin-left: 0;
}
#feature ul {margin-left: 0;}
#feature ul li {
list-style: none;
background: url(../../images/check_bullet.gif) no-repeat left 0.5em;
......@@ -427,14 +317,16 @@ h6 {
border-bottom: 1px solid #CCC;
margin-bottom: 1em;
margin-left: 0;
padding-left: 28px;
/*padding-left: 28px;*/
padding-left: 0;
}
#mainCol dt, #subCol dt {
font-size: 1.2857em;
padding: 0.125em 0 0.25em 28px;
padding: 0.125em 0 0.25em 0;
margin-bottom: 0;
background: url(../../images/book_icon.gif) no-repeat left top;
/*background: url(../../images/book_icon.gif) no-repeat left top;
padding: 0.125em 0 0.25em 28px;*/
}
#mainCol dd.ticket, #subCol dd.ticket {
......@@ -453,28 +345,13 @@ h6 {
margin-top: 0.25em;
}
#subCol .chapters {
color: #980905;
}
#subCol .chapters a {
font-weight: bold;
}
#subCol .chapters ul a {
font-weight: normal;
}
#subCol .chapters li {
margin-bottom: 0.75em;
}
#subCol h3.chapter {
margin-top: 0.25em;
}
#subCol h3.chapter img {
vertical-align: text-bottom;
}
#subCol .chapters ul {
margin-left: 0;
margin-top: 0.5em;
}
#subCol .chapters {color: #980905;}
#subCol .chapters a {font-weight: bold;}
#subCol .chapters ul a {font-weight: normal;}
#subCol .chapters li {margin-bottom: 0.75em;}
#subCol h3.chapter {margin-top: 0.25em;}
#subCol h3.chapter img {vertical-align: text-bottom;}
#subCol .chapters ul {margin-left: 0; margin-top: 0.5em;}
#subCol .chapters ul li {
list-style: none;
padding: 0 0 0 1em;
......@@ -483,75 +360,59 @@ h6 {
font-size: 1em;
font-weight: normal;
}
#subCol .chapters p {
font-size: 1em;
}
tt {
background: #EEE;
border: 1px solid #CCC;
padding: 0 0.25em;
font-family: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace;
font-size: 0.9em;
}
code, pre {
code {
font-family: monaco, "Bitstream Vera Sans Mono", "Courier New", courier, monospace;
background: #EEE url(../../images/tab_grey.gif) no-repeat left top;
border: none;
padding: 0.25em 1em 0.5em 48px;
margin-left: 0;
margin-top: 0.25em;
margin: 0.25em 0 1.5em 0;
display: block;
min-height: 45px;
overflow: auto;
}
.info code, .info pre {
background-image: none;
background-color: #C5D9E6;
padding: 0.25em 1em;
min-height: 1px;
}
.note {
background: #fff9d8 url(../../images/tab_note.gif) no-repeat left top;
border: none;
padding: 1em 1em 0.25em 48px;
margin-left: 0;
margin-top: 0.25em;
margin: 0.25em 0 1.5em 0;
}
.info {
background: #d5e9f6 url(../../images/tab_info.gif) no-repeat left top;
border: none;
padding: 1em 1em 0.25em 48px;
margin-left: 0;
margin-top: 0.25em;
}
.warning {
background: #f9d9d8 url(../../images/tab_red.gif) no-repeat left top;
border: none;
padding: 1em 1em 0.25em 48px;
margin-left: 0;
margin-top: 0.25em;
margin: 0.25em 0 1.5em 0;
}
.warning tt, .note tt, .info tt {
border: none;
background: none;
padding: 0;
}
em.highlight {
background: #fffcdb;
padding: 0 0.25em;
}
.note tt, .info tt {border:none; background: none; padding: 0;}
#mainCol ul li {
list-style: none;
list-style:none;
background: url(../../images/grey_bullet.gif) no-repeat left 0.5em;
padding-left: 1em;
margin-left: 0;
}
#subCol .content {
font-size: 0.7857em;
line-height: 1.5em;
}
#subCol .content li {
font-weight: normal;
background: none;
padding: 0 0 1em;
font-size: 1.1667em;
}
/* Clearing
--------------------------------------- */
......@@ -563,15 +424,7 @@ em.highlight {
visibility: hidden;
}
.clearfix {
display: inline-block;
}
* html .clearfix {
height: 1%;
}
.clearfix {
display: block;
}
.clear {
clear: both;
}
.clearfix {display: inline-block;}
* html .clearfix {height: 1%;}
.clearfix {display: block;}
.clear { clear:both; }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册