First commit: this starts off on a pretty solid foot because we iterated on it a lot already.

This commit is contained in:
Tom MacWright
2016-03-02 17:40:09 -08:00
commit e4f117bf7d
21 changed files with 5375 additions and 0 deletions

3758
css/base.css Normal file

File diff suppressed because it is too large Load Diff

100
css/railscasts.css Normal file
View File

@ -0,0 +1,100 @@
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #232323;
color: #e6e1dc;
}
.hljs-comment,
.hljs-quote {
color: #bc9458;
font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag {
color: #c26230;
}
.hljs-string,
.hljs-number,
.hljs-regexp,
.hljs-variable,
.hljs-template-variable {
color: #a5c261;
}
.hljs-subst {
color: #519f50;
}
.hljs-tag,
.hljs-name {
color: #e8bf6a;
}
.hljs-type {
color: #da4939;
}
.hljs-symbol,
.hljs-bullet,
.hljs-built_in,
.hljs-builtin-name,
.hljs-attr,
.hljs-link {
color: #6d9cbe;
}
.hljs-params {
color: #d0d0ff;
}
.hljs-attribute {
color: #cda869;
}
.hljs-meta {
color: #9b859d;
}
.hljs-title,
.hljs-section {
color: #ffc66d;
}
.hljs-addition {
background-color: #144212;
color: #e6e1dc;
display: inline-block;
width: 100%;
}
.hljs-deletion {
background-color: #600;
color: #e6e1dc;
display: inline-block;
width: 100%;
}
.hljs-selector-class {
color: #9b703f;
}
.hljs-selector-id {
color: #8b98ab;
}
.hljs-emphasis {
font-style: italic;
}
.hljs-strong {
font-weight: bold;
}
.hljs-link {
text-decoration: underline;
}

151
css/style.css Normal file
View File

@ -0,0 +1,151 @@
/* BASE OVERRIDES */
/* Add buffer for nicer anchor links */
.prose h2:first-child {
padding-top: 20px;
}
.prose h3:first-child {
padding-top: 20px;
}
/* Header gets big */
@media only screen and (max-width:960px) {
.prose h2:first-child {
padding-top: 60px;
}
.prose h3:first-child {
padding-top: 60px;
}
}
/* Header gets bigger */
@media only screen and (max-width:640px) {
.prose h2:first-child {
padding-top: 100px;
}
.prose h3:first-child {
padding-top: 100px;
}
}
/* tables are too giant */
.prose table,
.prose table code {
margin-bottom: 20px;
font-size: 12px;
line-height: 1.5;
}
.prose table th, .prose table td {
padding: 5px;
}
.scroll-styled::-webkit-scrollbar {
width: 6px;
height: 6px;
background: transparent;
}
.scroll-styled::-webkit-scrollbar:hover {
background: transparent;
}
.scroll-styled::-webkit-scrollbar-track {
background:none;
}
.scroll-styled::-webkit-scrollbar-thumb {
background: rgba(0,0,0,.18);
width: 6px;
border:none;
border-radius: 3px;
}
.scroll-styled::-webkit-scrollbar-thumb:hover {
background: rgba(0,0,0,.25);
}
.scroll-styled::-webkit-scrollbar-track:hover {
background: transparent;
}
.dark.keyline-top,
.dark.keyline-bottom {
border-color: #313131;
}
html, body, #app, .container {
height: 100%;
}
body pre {
padding: 0;
}
/* BASE ADDONS */
.fill-dark2 { background-color: #313131; }
.fill-dark2 .rounded-toggle input[type=radio]:checked + label,
.fill-dark2 .rounded-toggle .active { background-color: #313131; }
.space-top3 { margin-top: 30px;}
.space-top5 { margin-top: 50px;}
.line-height15 { line-height: 15px; }
.pad00y { padding-top: 2px; padding-bottom: 2px; }
.space-bottom00 { margin-bottom: 3px;}
.endpoint {
width: 100%;
display: flex;
}
.endpoint-method {
}
.endpoint-url {
flex-grow: 1;
word-wrap: break-word;
}
.endpoint-url a {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 2px;
font-weight:bold;
padding: 2px;
color: #fff;
}
.endpoint-url a:hover {
background-color: rgba(255, 255, 255, 0.15);
}
.endpoint-token {
}
a.hljs-linked {
border-radius: 2px;
color: #a5c261;
background: #383C2F;
padding: 2px;
}
body .prose blockquote {
padding: 5px 10px;
background: #232323;
}
.preview {
background-image: -webkit-linear-gradient(#F1F075, #F1F075);
background-size: 10px 10px;
background-repeat: repeat-y;
}
.preview h2::after,
.preview h3::after {
content: 'PREVIEW';
background-color: #F1F075;
border-radius: 2px;
font-size: 9px;
font-weight: normal;
padding: 2px 5px;
color: rgba(0, 0, 0, 0.5);
margin-left: 10px;
vertical-align: middle;
}