2009-02-05 20:57:02 -05:00
|
|
|
/* Guides.rubyonrails.org */
|
|
|
|
/* Main.css */
|
|
|
|
/* Created January 30, 2009 */
|
2009-02-24 08:27:21 -05:00
|
|
|
/* Modified February 8, 2009
|
2009-02-05 20:57:02 -05:00
|
|
|
--------------------------------------- */
|
|
|
|
|
|
|
|
/* General
|
|
|
|
--------------------------------------- */
|
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
.left {float: left; margin-right: 1em;}
|
|
|
|
.right {float: right; margin-left: 1em;}
|
2012-05-26 00:28:24 -04:00
|
|
|
@media screen and (max-width: 480px) {
|
|
|
|
.left, .right { float: none; }
|
|
|
|
}
|
2009-02-24 08:27:21 -05:00
|
|
|
.small {font-size: smaller;}
|
|
|
|
.large {font-size: larger;}
|
|
|
|
.hide {display: none;}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
ul, ol { margin: 0 1.5em 1.5em 1.5em; }
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
ul { list-style-type: disc; }
|
|
|
|
ol { list-style-type: decimal; }
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
dl { margin: 0 0 1.5em 0; }
|
|
|
|
dl dt { font-weight: bold; }
|
|
|
|
dd { margin-left: 1.5em;}
|
2010-08-14 01:13:00 -04:00
|
|
|
|
2012-11-04 20:17:20 -05:00
|
|
|
pre, code {
|
|
|
|
font-size: 1em;
|
|
|
|
font-family: "Anonymous Pro", "Inconsolata", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
|
|
|
|
line-height: 1.5;
|
2020-07-04 04:59:08 -04:00
|
|
|
margin: 1em 0;
|
2012-11-04 20:17:20 -05:00
|
|
|
overflow: auto;
|
|
|
|
color: #222;
|
2010-10-24 09:34:47 -04:00
|
|
|
}
|
2018-07-16 08:13:59 -04:00
|
|
|
|
2019-08-31 14:04:12 -04:00
|
|
|
p code, ul code {
|
2018-07-16 08:13:59 -04:00
|
|
|
background: #eee;
|
|
|
|
border-radius: 2px;
|
|
|
|
padding: 1px 3px;
|
|
|
|
}
|
|
|
|
|
2015-01-03 06:58:19 -05:00
|
|
|
pre, tt, code {
|
2012-04-05 00:53:10 -04:00
|
|
|
white-space: pre-wrap; /* css-3 */
|
|
|
|
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
|
|
|
|
white-space: -pre-wrap; /* Opera 4-6 */
|
|
|
|
white-space: -o-pre-wrap; /* Opera 7 */
|
|
|
|
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
abbr, acronym { border-bottom: 1px dotted #666; }
|
|
|
|
address { margin: 0 0 1.5em; font-style: italic; }
|
|
|
|
del { color:#666; }
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
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;}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
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; }
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
input.text, input.title,
|
|
|
|
textarea, select {
|
|
|
|
margin:0.5em 0;
|
|
|
|
border:1px solid #bbb;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
2012-05-26 00:28:24 -04:00
|
|
|
margin: 0 0 1.5em;
|
|
|
|
background: #FFF;
|
|
|
|
border-collapse: collapse;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
2010-08-14 01:13:00 -04:00
|
|
|
|
2020-07-02 22:46:28 -04:00
|
|
|
tbody, thead {
|
|
|
|
border: 2px solid #CCC;
|
|
|
|
}
|
|
|
|
|
2009-02-15 14:35:36 -05:00
|
|
|
table th, table td {
|
2018-03-31 18:29:49 -04:00
|
|
|
padding: 9px 10px;
|
2012-05-26 00:28:24 -04:00
|
|
|
border: 1px solid #CCC;
|
|
|
|
border-collapse: collapse;
|
2009-02-15 14:35:36 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-15 14:35:36 -05:00
|
|
|
table th {
|
2012-05-26 00:28:24 -04:00
|
|
|
border-bottom: 2px solid #CCC;
|
|
|
|
background: #EEE;
|
|
|
|
font-weight: bold;
|
2009-02-15 14:35:36 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2020-07-02 22:46:28 -04:00
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
table {
|
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
td {
|
|
|
|
min-width: 7em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-05 12:16:31 -05:00
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
/* Structure and Layout
|
|
|
|
--------------------------------------- */
|
|
|
|
|
|
|
|
body {
|
2012-05-26 00:28:24 -04:00
|
|
|
text-align: center;
|
|
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
|
|
font-size: 87.5%;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1.5;
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #fff;
|
|
|
|
color: #999;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
.wrapper {
|
2012-05-26 00:28:24 -04:00
|
|
|
text-align: left;
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 960px;
|
2012-04-05 00:53:10 -04:00
|
|
|
padding: 0 1em;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2012-05-26 00:28:24 -04:00
|
|
|
|
|
|
|
.red-button {
|
|
|
|
display: inline-block;
|
|
|
|
border-top: 1px solid rgba(255,255,255,.5);
|
|
|
|
background: #751913;
|
|
|
|
background: -webkit-gradient(linear, left top, left bottom, from(#c52f24), to(#751913));
|
|
|
|
background: -webkit-linear-gradient(top, #c52f24, #751913);
|
|
|
|
background: -moz-linear-gradient(top, #c52f24, #751913);
|
|
|
|
background: -ms-linear-gradient(top, #c52f24, #751913);
|
|
|
|
background: -o-linear-gradient(top, #c52f24, #751913);
|
|
|
|
padding: 9px 18px;
|
|
|
|
-webkit-border-radius: 11px;
|
|
|
|
-moz-border-radius: 11px;
|
|
|
|
border-radius: 11px;
|
|
|
|
-webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
|
|
|
|
-moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
|
|
|
|
box-shadow: rgba(0,0,0,1) 0 1px 0;
|
|
|
|
text-shadow: rgba(0,0,0,.4) 0 1px 0;
|
|
|
|
color: white;
|
|
|
|
font-size: 15px;
|
|
|
|
font-family: Helvetica, Arial, Sans-Serif;
|
|
|
|
text-decoration: none;
|
|
|
|
vertical-align: middle;
|
2013-07-08 04:51:08 -04:00
|
|
|
cursor: pointer;
|
2012-05-26 00:28:24 -04:00
|
|
|
}
|
|
|
|
.red-button:active {
|
|
|
|
border-top: none;
|
|
|
|
padding-top: 10px;
|
|
|
|
background: -webkit-gradient(linear, left top, left bottom, from(#751913), to(#c52f24));
|
|
|
|
background: -webkit-linear-gradient(top, #751913, #c52f24);
|
|
|
|
background: -moz-linear-gradient(top, #751913, #c52f24);
|
|
|
|
background: -ms-linear-gradient(top, #751913, #c52f24);
|
|
|
|
background: -o-linear-gradient(top, #751913, #c52f24);
|
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
#topNav {
|
2012-05-26 00:28:24 -04:00
|
|
|
padding: 1em 0;
|
|
|
|
color: #565656;
|
|
|
|
background: #222;
|
|
|
|
}
|
|
|
|
|
|
|
|
.s-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 1025px) {
|
|
|
|
.more-info-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.more-info-links {
|
|
|
|
list-style: none;
|
|
|
|
display: inline;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.more-info {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.more-info:after {
|
|
|
|
content: " |";
|
|
|
|
}
|
|
|
|
|
|
|
|
.more-info:last-child:after {
|
|
|
|
content: "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
|
|
#topNav .wrapper { text-align: center; }
|
|
|
|
.more-info-button {
|
|
|
|
position: relative;
|
|
|
|
z-index: 25;
|
|
|
|
}
|
|
|
|
|
|
|
|
.more-info-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.more-info-container {
|
|
|
|
position: absolute;
|
|
|
|
top: .5em;
|
|
|
|
z-index: 20;
|
|
|
|
margin: 0 auto;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 20em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.more-info-links {
|
|
|
|
display: block;
|
|
|
|
list-style: none;
|
|
|
|
background-color: #c52f24;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding-top: 5.25em;
|
|
|
|
border: 1px #980905 solid;
|
|
|
|
}
|
|
|
|
.more-info-links.s-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.more-info {
|
|
|
|
padding: .75em;
|
|
|
|
border-top: 1px #980905 solid;
|
|
|
|
}
|
|
|
|
.more-info a, .more-info a:link, .more-info a:visited {
|
|
|
|
display: block;
|
|
|
|
color: white;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
text-decoration: none;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2020-07-11 06:23:37 -04:00
|
|
|
.clipboard-button {
|
|
|
|
background: #dbdbdb;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 5px;
|
|
|
|
padding: 2px 10px;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 2px;
|
|
|
|
right: 2px
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-button:active {
|
|
|
|
background: #ccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.clipboard-content {
|
|
|
|
opacity:0;
|
|
|
|
position:absolute;
|
|
|
|
z-index:-1;
|
|
|
|
}
|
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
#header {
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #c52f24 url(../images/header_tile.gif) repeat-x;
|
|
|
|
color: #FFF;
|
|
|
|
padding: 1.5em 0;
|
|
|
|
z-index: 99;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
#feature {
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #d5e9f6 url(../images/feature_tile.gif) repeat-x;
|
|
|
|
color: #333;
|
|
|
|
padding: 0.5em 0 1.5em;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#container {
|
2012-05-26 00:28:24 -04:00
|
|
|
color: #333;
|
|
|
|
padding: 0.5em 0 1.5em 0;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
#mainCol {
|
2012-05-26 00:28:24 -04:00
|
|
|
max-width: 630px;
|
|
|
|
margin-left: 2em;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
#subCol {
|
2012-05-26 00:28:24 -04:00
|
|
|
position: absolute;
|
|
|
|
z-index: 0;
|
2013-06-25 14:35:19 -04:00
|
|
|
top: 21px;
|
2012-05-26 00:28:24 -04:00
|
|
|
right: 0;
|
|
|
|
background: #FFF;
|
|
|
|
padding: 1em 1.5em 1em 1.25em;
|
2019-10-04 14:54:50 -04:00
|
|
|
width: 20em;
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 0.9285em;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1.3846;
|
2012-04-05 00:53:10 -04:00
|
|
|
margin-right: 1em;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2012-04-05 00:53:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
@media screen and (max-width: 800px) {
|
|
|
|
#subCol {
|
|
|
|
position: static;
|
|
|
|
width: inherit;
|
|
|
|
margin-left: -1em;
|
|
|
|
margin-right: 0;
|
|
|
|
padding-right: 1.25em;
|
2012-05-26 00:28:24 -04:00
|
|
|
}
|
2012-04-05 00:53:10 -04:00
|
|
|
}
|
2010-08-14 01:13:00 -04:00
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
#footer {
|
2012-05-26 00:28:24 -04:00
|
|
|
padding: 2em 0;
|
|
|
|
background: #222 url(../images/footer_tile.gif) repeat-x;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
#footer .wrapper {
|
2012-05-26 00:28:24 -04:00
|
|
|
padding-left: 1em;
|
|
|
|
max-width: 960px;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2012-05-26 00:28:24 -04:00
|
|
|
#header .wrapper, #topNav .wrapper, #feature .wrapper {padding-left: 1em; max-width: 960px;}
|
2019-10-04 14:54:50 -04:00
|
|
|
#feature .wrapper {max-width: 720px; padding-right: 23em; position: relative; z-index: 0;}
|
2012-05-26 00:28:24 -04:00
|
|
|
|
2018-08-17 16:41:42 -04:00
|
|
|
@media screen and (max-width: 960px) {
|
|
|
|
#container .wrapper { padding-right: 23em; }
|
|
|
|
}
|
|
|
|
|
2012-04-05 00:53:10 -04:00
|
|
|
@media screen and (max-width: 800px) {
|
2018-08-17 16:41:42 -04:00
|
|
|
#feature .wrapper, #container .wrapper { padding-right: 0; }
|
2012-05-26 00:28:24 -04:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
/* Links
|
|
|
|
--------------------------------------- */
|
|
|
|
|
|
|
|
a, a:link, a:visited {
|
2012-05-26 00:28:24 -04:00
|
|
|
color: #ee3f3f;
|
|
|
|
text-decoration: underline;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
#mainCol a, #subCol a, #feature a {color: #980905;}
|
2012-09-03 21:21:04 -04:00
|
|
|
#mainCol a code, #subCol a code, #feature a code {color: #980905;}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2017-04-04 15:09:17 -04:00
|
|
|
#mainCol a.anchorlink, #mainCol a.anchorlink code {color: #333;}
|
|
|
|
#mainCol a.anchorlink { text-decoration: none; }
|
2017-04-02 00:35:20 -04:00
|
|
|
#mainCol a.anchorlink:hover { text-decoration: underline; }
|
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
/* Navigation
|
|
|
|
--------------------------------------- */
|
|
|
|
|
2012-05-26 00:28:24 -04:00
|
|
|
.nav {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
float: right;
|
|
|
|
margin-top: 1.5em;
|
|
|
|
font-size: 1.2857em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav .nav-item {color: #FFF; text-decoration: none;}
|
|
|
|
.nav .nav-item:hover {text-decoration: underline;}
|
|
|
|
|
|
|
|
.guides-index-large, .guides-index-small .guides-index-item {
|
|
|
|
padding: 0.5em 1.5em;
|
|
|
|
border-radius: 1em;
|
|
|
|
-webkit-border-radius: 1em;
|
|
|
|
-moz-border-radius: 1em;
|
|
|
|
background: #980905;
|
|
|
|
position: relative;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.guides-index .guides-index-item {
|
|
|
|
background: #980905 url(../images/nav_arrow.gif) no-repeat right top;
|
|
|
|
padding-right: 1em;
|
|
|
|
position: relative;
|
|
|
|
z-index: 15;
|
|
|
|
padding-bottom: 0.125em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.guides-index:hover .guides-index-item, .guides-index .guides-index-item:hover {
|
|
|
|
background-position: right -81px;
|
|
|
|
text-decoration: underline !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 481px) {
|
|
|
|
.nav {
|
|
|
|
float: right;
|
|
|
|
margin-top: 1.5em;
|
|
|
|
font-size: 1.2857em;
|
|
|
|
}
|
|
|
|
.nav>li {
|
|
|
|
display: inline;
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
.guides-index.guides-index-small {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 480px) {
|
|
|
|
.nav {
|
|
|
|
float: none;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.nav .nav-item {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
background-color: #980905;
|
|
|
|
border: solid 1px #620c04;
|
|
|
|
border-top: 0;
|
|
|
|
padding: 15px 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.nav .nav-item, .nav-item.guides-index-item {
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
.nav .nav-item:first-child, .nav-item.guides-index-small {
|
|
|
|
border-top: solid 1px #620c04;
|
|
|
|
}
|
|
|
|
.guides-index.guides-index-small {
|
|
|
|
display: block;
|
|
|
|
margin-top: 1.5em;
|
|
|
|
}
|
|
|
|
.guides-index.guides-index-large {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.guides-index-small .guides-index-item {
|
|
|
|
font: inherit;
|
|
|
|
padding-left: .75em;
|
|
|
|
font-size: .95em;
|
2014-05-06 17:59:27 -04:00
|
|
|
background-position: 96% 16px;
|
2012-05-26 00:28:24 -04:00
|
|
|
-webkit-appearance: none;
|
2012-04-05 00:53:10 -04:00
|
|
|
}
|
2014-05-06 17:59:27 -04:00
|
|
|
.guides-index-small .guides-index-item:hover{
|
|
|
|
background-position: 96% -65px;
|
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#guides {
|
2018-10-19 18:41:32 -04:00
|
|
|
width: 37em;
|
2012-05-26 00:28:24 -04:00
|
|
|
display: block;
|
|
|
|
background: #980905;
|
|
|
|
border-radius: 1em;
|
|
|
|
color: #f1938c;
|
|
|
|
padding: 1.5em 2em;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
|
|
|
top: -0.25em;
|
|
|
|
right: 0;
|
|
|
|
padding-top: 2em;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2018-04-21 04:59:30 -04:00
|
|
|
#guides.visible {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
2018-10-19 18:41:32 -04:00
|
|
|
.guides-section dt, .guides-section dd {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-weight: normal;
|
|
|
|
font-size: 0.722em;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2009-02-24 08:27:21 -05:00
|
|
|
}
|
2018-10-19 18:41:32 -04:00
|
|
|
.guides-section dt {
|
|
|
|
margin: 0.5em 0 0;
|
|
|
|
padding:0;
|
|
|
|
}
|
|
|
|
#guides a {
|
|
|
|
background: none !important;
|
|
|
|
color: #FFF;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
#guides a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
.guides-section-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
width: 100%;
|
|
|
|
max-height: 35em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.guides-section {
|
|
|
|
min-width: 5em;
|
|
|
|
margin: 0 2em 0.5em 0;
|
|
|
|
flex: auto;
|
|
|
|
max-width: 12em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.guides-section dd {
|
|
|
|
line-height: 1.3;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
#guides hr {
|
2012-05-26 00:28:24 -04:00
|
|
|
display: block;
|
|
|
|
border: none;
|
|
|
|
height: 1px;
|
|
|
|
color: #f1938c;
|
|
|
|
background: #f1938c;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Headings
|
|
|
|
--------------------------------------- */
|
|
|
|
|
|
|
|
h1 {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 2.5em;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1;
|
2012-05-26 00:28:24 -04:00
|
|
|
margin: 0.6em 0 .2em;
|
|
|
|
font-weight: bold;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
h2 {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 2.1428em;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1;
|
2012-05-26 00:28:24 -04:00
|
|
|
margin: 0.7em 0 .2333em;
|
|
|
|
font-weight: bold;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2012-04-05 00:53:10 -04:00
|
|
|
@media screen and (max-width: 480px) {
|
|
|
|
h2 {
|
|
|
|
font-size: 1.45em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
h3 {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 1.7142em;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1.286;
|
2012-05-26 00:28:24 -04:00
|
|
|
margin: 0.875em 0 0.2916em;
|
|
|
|
font-weight: bold;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2010-08-14 01:13:00 -04:00
|
|
|
|
2012-04-05 00:53:10 -04:00
|
|
|
@media screen and (max-width: 480px) {
|
|
|
|
h3 {
|
|
|
|
font-size: 1.45em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
h4 {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 1.2857em;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1.2;
|
2012-05-26 00:28:24 -04:00
|
|
|
margin: 1.6667em 0 .3887em;
|
|
|
|
font-weight: bold;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
h5 {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 1em;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1.5;
|
2012-05-26 00:28:24 -04:00
|
|
|
margin: 1em 0 .5em;
|
|
|
|
font-weight: bold;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2010-08-14 01:13:00 -04:00
|
|
|
h6 {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 1em;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1.5;
|
2012-05-26 00:28:24 -04:00
|
|
|
margin: 1em 0 .5em;
|
|
|
|
font-weight: normal;
|
2012-11-04 20:17:20 -05:00
|
|
|
}
|
2009-02-24 08:27:21 -05:00
|
|
|
|
|
|
|
.section {
|
2012-05-26 00:28:24 -04:00
|
|
|
padding-bottom: 0.25em;
|
|
|
|
border-bottom: 1px solid #999;
|
2009-02-15 14:35:36 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
/* Content
|
|
|
|
--------------------------------------- */
|
|
|
|
|
|
|
|
.pic {
|
2012-05-26 00:28:24 -04:00
|
|
|
margin: 0 2em 2em 0;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
#topNav strong {color: #999; margin-right: 0.5em;}
|
|
|
|
#topNav strong a {color: #FFF;}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
|
|
|
#header h1 {
|
2012-05-26 00:28:24 -04:00
|
|
|
float: left;
|
2018-10-19 19:08:42 -04:00
|
|
|
background: url(../images/rails_guides_logo_1x.png) no-repeat;
|
2012-05-26 00:28:24 -04:00
|
|
|
width: 297px;
|
|
|
|
text-indent: -9999em;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2018-10-19 19:08:42 -04:00
|
|
|
@media
|
|
|
|
only screen and (-webkit-min-device-pixel-ratio: 2),
|
|
|
|
only screen and ( min--moz-device-pixel-ratio: 2),
|
|
|
|
only screen and ( -o-min-device-pixel-ratio: 2/1),
|
|
|
|
only screen and ( min-device-pixel-ratio: 2),
|
|
|
|
only screen and ( min-resolution: 192dpi),
|
|
|
|
only screen and ( min-resolution: 2dppx) {
|
|
|
|
#header h1 {
|
|
|
|
background: url(../images/rails_guides_logo_2x.png) no-repeat;
|
|
|
|
background-size: 160%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-05-26 00:28:24 -04:00
|
|
|
@media screen and (max-width: 480px) {
|
|
|
|
#header h1 {
|
|
|
|
float: none;
|
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#header h1 a {
|
2012-05-26 00:28:24 -04:00
|
|
|
text-decoration: none;
|
|
|
|
display: block;
|
|
|
|
height: 77px;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#feature p {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 1.2857em;
|
|
|
|
margin-bottom: 0.75em;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2012-04-05 00:53:10 -04:00
|
|
|
@media screen and (max-width: 480px) {
|
|
|
|
#feature p {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
#feature ul {margin-left: 0;}
|
2009-02-05 20:57:02 -05:00
|
|
|
#feature ul li {
|
2012-05-26 00:28:24 -04:00
|
|
|
list-style: none;
|
|
|
|
background: url(../images/check_bullet.gif) no-repeat left 0.5em;
|
|
|
|
padding: 0.5em 1.75em 0.5em 1.75em;
|
|
|
|
font-size: 1.1428em;
|
|
|
|
font-weight: bold;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#mainCol dd, #subCol dd {
|
2012-05-26 00:28:24 -04:00
|
|
|
padding: 0.25em 0 1em;
|
|
|
|
border-bottom: 1px solid #CCC;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
margin-left: 0;
|
|
|
|
/*padding-left: 28px;*/
|
|
|
|
padding-left: 0;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#mainCol dt, #subCol dt {
|
2012-11-07 06:16:48 -05:00
|
|
|
font-size: 1.2857em;
|
2012-05-26 00:28:24 -04:00
|
|
|
padding: 0.125em 0 0.25em 0;
|
|
|
|
margin-bottom: 0;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2012-11-07 06:16:48 -05:00
|
|
|
@media screen and (max-width: 480px) {
|
|
|
|
#mainCol dt, #subCol dt {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-11-19 15:42:18 -05:00
|
|
|
#mainCol dd.work-in-progress, #subCol dd.work-in-progress {
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #fff9d8 url(../images/tab_yellow.gif) no-repeat left top;
|
|
|
|
border: none;
|
|
|
|
padding: 1.25em 1em 1.25em 48px;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 0.25em;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2011-12-25 07:07:49 -05:00
|
|
|
#mainCol dd.kindle, #subCol dd.kindle {
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #d5e9f6 url(../images/tab_info.gif) no-repeat left top;
|
|
|
|
border: none;
|
|
|
|
padding: 1.25em 1em 1.25em 48px;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 0.25em;
|
2011-12-25 07:07:49 -05:00
|
|
|
}
|
|
|
|
|
2009-03-08 11:28:34 -04:00
|
|
|
#mainCol div.warning, #subCol dd.warning {
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #f9d9d8 url(../images/tab_red.gif) no-repeat left top;
|
|
|
|
border: none;
|
2013-01-05 17:18:21 -05:00
|
|
|
padding: 1.25em 1.25em 0.25em 48px;
|
2012-05-26 00:28:24 -04:00
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 0.25em;
|
2009-02-24 08:27:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#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;}
|
2009-02-05 20:57:02 -05:00
|
|
|
#subCol .chapters ul li {
|
2012-05-26 00:28:24 -04:00
|
|
|
list-style: none;
|
|
|
|
padding: 0 0 0 1em;
|
|
|
|
background: url(../images/bullet.gif) no-repeat left 0.45em;
|
|
|
|
margin-left: 0;
|
|
|
|
font-size: 1em;
|
|
|
|
font-weight: normal;
|
2009-02-17 17:14:58 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2016-04-18 17:34:56 -04:00
|
|
|
#subCol li ul, li ol { margin:0 1.5em; }
|
|
|
|
|
2009-02-24 18:59:37 -05:00
|
|
|
div.code_container {
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #EEE url(../images/tab_grey.gif) no-repeat left top;
|
|
|
|
padding: 0.25em 1em 0.5em 48px;
|
2020-07-11 06:23:37 -04:00
|
|
|
position: relative;
|
2009-02-24 18:59:37 -05:00
|
|
|
}
|
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
.note {
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #fff9d8 url(../images/tab_note.gif) no-repeat left top;
|
|
|
|
border: none;
|
|
|
|
padding: 1em 1em 0.25em 48px;
|
|
|
|
margin: 0.25em 0 1.5em 0;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.info {
|
2012-05-26 00:28:24 -04:00
|
|
|
background: #d5e9f6 url(../images/tab_info.gif) no-repeat left top;
|
|
|
|
border: none;
|
|
|
|
padding: 1em 1em 0.25em 48px;
|
|
|
|
margin: 0.25em 0 1.5em 0;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2012-08-31 12:01:06 -04:00
|
|
|
#mainCol div.todo {
|
2012-11-04 20:17:20 -05:00
|
|
|
background: #fff9d8 url(../images/tab_yellow.gif) no-repeat left top;
|
|
|
|
border: none;
|
|
|
|
padding: 1em 1em 0.25em 48px;
|
|
|
|
margin: 0.25em 0 1.5em 0;
|
2012-08-31 12:01:06 -04:00
|
|
|
}
|
|
|
|
|
2018-07-16 08:13:59 -04:00
|
|
|
.note code, .info code, .todo code {
|
|
|
|
background: #fff;
|
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
#mainCol ul li {
|
2012-05-26 00:28:24 -04:00
|
|
|
list-style:none;
|
|
|
|
background: url(../images/grey_bullet.gif) no-repeat left 0.5em;
|
|
|
|
padding-left: 1em;
|
|
|
|
margin-left: 0;
|
2009-02-15 14:35:36 -05:00
|
|
|
}
|
2009-02-05 20:57:02 -05:00
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
#subCol .content {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-size: 0.7857em;
|
2020-03-23 01:03:20 -04:00
|
|
|
line-height: 1.5;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
#subCol .content li {
|
2012-05-26 00:28:24 -04:00
|
|
|
font-weight: normal;
|
|
|
|
background: none;
|
|
|
|
padding: 0 0 1em;
|
|
|
|
font-size: 1.1667em;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
2010-08-14 01:13:00 -04:00
|
|
|
|
2009-02-05 20:57:02 -05:00
|
|
|
/* Clearing
|
|
|
|
--------------------------------------- */
|
|
|
|
|
|
|
|
.clearfix:after {
|
2012-11-04 20:17:20 -05:00
|
|
|
content: ".";
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
clear: both;
|
|
|
|
visibility: hidden;
|
2009-02-05 20:57:02 -05:00
|
|
|
}
|
|
|
|
|
2009-02-24 08:27:21 -05:00
|
|
|
* html .clearfix {height: 1%;}
|
|
|
|
.clearfix {display: block;}
|
2009-03-08 11:28:34 -04:00
|
|
|
|
|
|
|
/* Same bottom margin for special boxes than for regular paragraphs, this way
|
|
|
|
intermediate whitespace looks uniform. */
|
|
|
|
div.code_container, div.important, div.caution, div.warning, div.note, div.info {
|
2012-11-04 20:17:20 -05:00
|
|
|
margin-bottom: 1.5em;
|
2009-03-08 11:28:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Remove bottom margin of paragraphs in special boxes, otherwise they get a
|
|
|
|
spurious blank area below with the box background. */
|
|
|
|
div.important p, div.caution p, div.warning p, div.note p, div.info p {
|
2012-11-04 20:17:20 -05:00
|
|
|
margin-bottom: 1em;
|
2009-03-08 11:28:34 -04:00
|
|
|
}
|
2010-04-02 17:53:39 -04:00
|
|
|
|
2020-06-13 19:07:03 -04:00
|
|
|
/* When triple-clicking shell code, select only the command, not the prompt */
|
2020-07-04 04:59:08 -04:00
|
|
|
code.highlight.console span.w {
|
|
|
|
display: table-cell;
|
2020-06-12 10:12:57 -04:00
|
|
|
}
|
|
|
|
|
2010-04-02 17:53:39 -04:00
|
|
|
/* Edge Badge
|
|
|
|
--------------------------------------- */
|
|
|
|
|
|
|
|
#edge-badge {
|
|
|
|
position: fixed;
|
2020-06-05 17:06:13 -04:00
|
|
|
right: 0;
|
|
|
|
top: 0;
|
2010-04-02 17:53:39 -04:00
|
|
|
z-index: 100;
|
2020-06-05 17:06:13 -04:00
|
|
|
color: white;
|
|
|
|
font-size: 30px;
|
|
|
|
transform: rotate(45deg) translate(27.5%, -40%);
|
|
|
|
min-width: 200px;
|
|
|
|
font-weight: bold;
|
2020-06-12 08:57:53 -04:00
|
|
|
font-style: italic;
|
|
|
|
box-shadow: 0px 2px 2px 1px #1209096e;
|
|
|
|
text-shadow: 2px 2px 4px #5400007d;
|
|
|
|
background: radial-gradient(circle, rgb(255, 10, 0) 0%, rgb(200, 0, 0) 90%);
|
2010-04-02 17:53:39 -04:00
|
|
|
}
|