bumped version

This commit is contained in:
Tony Tam
2013-03-05 21:10:17 -08:00
parent c2292905c2
commit db4175ef57
5 changed files with 178 additions and 182 deletions

252
dist/css/screen.css vendored
View File

@@ -68,7 +68,6 @@ h1 span.divider, h2 span.divider, h3 span.divider, h4 span.divider, h5 span.divi
} }
h1 { h1 {
color: #547f00;
color: black; color: black;
font-size: 1.5em; font-size: 1.5em;
line-height: 1.3em; line-height: 1.3em;
@@ -78,7 +77,6 @@ h1 {
} }
h2 { h2 {
color: #89bf04;
color: black; color: black;
font-size: 1.3em; font-size: 1.3em;
padding: 10px 0 10px 0; padding: 10px 0 10px 0;
@@ -104,14 +102,14 @@ h3 {
padding: 10px 0 10px 0; padding: 10px 0 10px 0;
} }
div.heading_with_menu { .heading_with_menu {
float: none; float: none;
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
} }
div.heading_with_menu h1, div.heading_with_menu h2, div.heading_with_menu h3, div.heading_with_menu h4, div.heading_with_menu h5, div.heading_with_menu h6 { .heading_with_menu h1, .heading_with_menu h2, .heading_with_menu h3, .heading_with_menu h4, .heading_with_menu h5, .heading_with_menu h6 {
display: block; display: block;
clear: none; clear: none;
float: left; float: left;
@@ -122,7 +120,7 @@ div.heading_with_menu h1, div.heading_with_menu h2, div.heading_with_menu h3, di
width: 60%; width: 60%;
} }
div.heading_with_menu ul { .heading_with_menu ul {
display: block; display: block;
clear: none; clear: none;
float: right; float: right;
@@ -133,19 +131,25 @@ div.heading_with_menu ul {
margin-top: 10px; margin-top: 10px;
} }
input.parameter {
width: 300px;
border: 1px solid #aaa;
}
.body-textarea { .body-textarea {
width: 300px; width: 300px;
height: 100px; height: 100px;
border: 1px solid #aaa;
} }
p { p {
line-height: 1.4em; line-height: 1.4em;
padding: 0 0 10px 0; padding: 0 0 10px;
color: #333333; color: #333333;
} }
ol { ol {
margin: 0px 0 10px 0; margin: 0px 0 10px;
padding: 0 0 0 18px; padding: 0 0 0 18px;
list-style-type: decimal; list-style-type: decimal;
} }
@@ -167,8 +171,7 @@ ol li {
.markdown pre { .markdown pre {
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
background-color: #fcf6db; background-color: #fcf6db;
border: 1px solid black; border: 1px solid #e5e0c6;
border-color: #e5e0c6;
padding: 10px; padding: 10px;
margin: 0 0 10px 0; margin: 0 0 10px 0;
} }
@@ -186,7 +189,7 @@ ol li {
.markdown ol, .markdown ul { .markdown ol, .markdown ul {
font-family: "Droid Sans", sans-serif; font-family: "Droid Sans", sans-serif;
margin: 5px 0 10px 0; margin: 5px 0 10px;
padding: 0 0 0 18px; padding: 0 0 0 18px;
list-style-type: disc; list-style-type: disc;
} }
@@ -219,10 +222,9 @@ a {
color: #547f00; color: #547f00;
} }
strong { b, strong {
font-family: "Droid Sans", sans-serif; font-family: "Droid Sans", sans-serif;
font-weight: bold; font-weight: bold;
font-weight: bold;
} }
.code { .code {
@@ -232,10 +234,8 @@ strong {
pre { pre {
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
background-color: #fcf6db; background-color: #fcf6db;
border: 1px solid black; border: 1px solid #e5e0c6;
border-color: #e5e0c6;
padding: 10px; padding: 10px;
/* white-space: pre-line */
} }
pre code { pre code {
@@ -279,8 +279,7 @@ table tbody tr.offset {
form.form_box { form.form_box {
background-color: #ebf3f9; background-color: #ebf3f9;
border: 1px solid black; border: 1px solid #c3d9ec;
border-color: #c3d9ec;
padding: 10px; padding: 10px;
} }
@@ -295,7 +294,7 @@ form.form_box input[type=submit] {
form.form_box p { form.form_box p {
font-size: 0.9em; font-size: 0.9em;
padding: 0 0 15px 0; padding: 0 0 15px;
color: #7e7b6d; color: #7e7b6d;
} }
@@ -322,7 +321,7 @@ form.formtastic fieldset.inputs ol li label {
display: block; display: block;
clear: both; clear: both;
width: auto; width: auto;
padding: 0 0 3px 0; padding: 0 0 3px;
color: #666666; color: #666666;
} }
@@ -499,7 +498,7 @@ body ul#resources li.resource div.heading {
body ul#resources li.resource div.heading h2 { body ul#resources li.resource div.heading h2 {
color: #999999; color: #999999;
padding-left: 0px; padding-left: 0;
display: block; display: block;
clear: none; clear: none;
float: left; float: left;
@@ -516,10 +515,7 @@ body ul#resources li.resource div.heading h2 a:hover {
} }
body ul#resources li.resource div.heading ul.options { body ul#resources li.resource div.heading ul.options {
float: none;
clear: both;
overflow: hidden; overflow: hidden;
margin: 0;
padding: 0; padding: 0;
display: block; display: block;
clear: none; clear: none;
@@ -572,8 +568,8 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 10px 0; margin: 0 0 10px;
padding: 0 0 0 0px; padding: 0;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading {
@@ -581,11 +577,10 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 0 0; margin: 0;
padding: 0; padding: 0;
background-color: #e7f0f7; background-color: #e7f0f7;
border: 1px solid black; border: 1px solid #c3d9ec;
border-color: #c3d9ec;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading h3 {
@@ -636,10 +631,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.heading ul.options {
float: none;
clear: both;
overflow: hidden; overflow: hidden;
margin: 0;
padding: 0; padding: 0;
display: block; display: block;
clear: none; clear: none;
@@ -681,8 +673,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content {
background-color: #ebf3f9; background-color: #ebf3f9;
border: 1px solid black; border: 1px solid #c3d9ec;
border-color: #c3d9ec;
border-top: none; border-top: none;
padding: 10px; padding: 10px;
-moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomleft: 6px;
@@ -697,14 +688,14 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
-ms-border-bottom-right-radius: 6px; -ms-border-bottom-right-radius: 6px;
-khtml-border-bottom-right-radius: 6px; -khtml-border-bottom-right-radius: 6px;
border-bottom-right-radius: 6px; border-bottom-right-radius: 6px;
margin: 0 0 20px 0; margin: 0 0 20px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content h4 {
color: #0f6ab4; color: #0f6ab4;
font-size: 1.1em; font-size: 1.1em;
margin: 0; margin: 0;
padding: 15px 0 5px 0px; padding: 15px 0 5px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content form input[type='text'].error { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content form input[type='text'].error {
@@ -727,7 +718,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header img { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.sandbox_header img {
display: block;
display: block; display: block;
clear: none; clear: none;
float: right; float: right;
@@ -740,12 +730,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
font-size: 0.9em; font-size: 0.9em;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.response div.block {
background-color: #fcf6db;
border: 1px solid black;
border-color: #e5e0c6;
}
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.response div.block pre { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.get div.content div.response div.block pre {
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
padding: 10px; padding: 10px;
@@ -759,8 +743,8 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 10px 0; margin: 0 0 10px;
padding: 0 0 0 0px; padding: 0;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading {
@@ -768,11 +752,10 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 0 0; margin: 0;
padding: 0; padding: 0;
background-color: #e7f6ec; background-color: #e7f6ec;
border: 1px solid black; border: 1px solid #c3e8d1;
border-color: #c3e8d1;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading h3 {
@@ -823,10 +806,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.heading ul.options {
float: none;
clear: both;
overflow: hidden; overflow: hidden;
margin: 0;
padding: 0; padding: 0;
display: block; display: block;
clear: none; clear: none;
@@ -868,8 +848,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content {
background-color: #ebf7f0; background-color: #ebf7f0;
border: 1px solid black; border: 1px solid #c3e8d1;
border-color: #c3e8d1;
border-top: none; border-top: none;
padding: 10px; padding: 10px;
-moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomleft: 6px;
@@ -884,14 +863,14 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
-ms-border-bottom-right-radius: 6px; -ms-border-bottom-right-radius: 6px;
-khtml-border-bottom-right-radius: 6px; -khtml-border-bottom-right-radius: 6px;
border-bottom-right-radius: 6px; border-bottom-right-radius: 6px;
margin: 0 0 20px 0; margin: 0 0 20px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content h4 {
color: #10a54a; color: #10a54a;
font-size: 1.1em; font-size: 1.1em;
margin: 0; margin: 0;
padding: 15px 0 5px 0px; padding: 15px 0 5px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content form input[type='text'].error { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content form input[type='text'].error {
@@ -914,7 +893,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header img { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.sandbox_header img {
display: block;
display: block; display: block;
clear: none; clear: none;
float: right; float: right;
@@ -927,12 +905,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
font-size: 0.9em; font-size: 0.9em;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.response div.block {
background-color: #fcf6db;
border: 1px solid black;
border-color: #e5e0c6;
}
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.response div.block pre { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.post div.content div.response div.block pre {
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
padding: 10px; padding: 10px;
@@ -946,8 +918,8 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 10px 0; margin: 0 0 10px;
padding: 0 0 0 0px; padding: 0;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading {
@@ -955,11 +927,10 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 0 0; margin: 0;
padding: 0; padding: 0;
background-color: #f9f2e9; background-color: #f9f2e9;
border: 1px solid black; border: 1px solid #f0e0ca;
border-color: #f0e0ca;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading h3 {
@@ -987,7 +958,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
width: 50px; width: 50px;
font-size: 0.7em; font-size: 0.7em;
text-align: center; text-align: center;
padding: 7px 0 4px 0; padding: 7px 0 4px;
-moz-border-radius: 2px; -moz-border-radius: 2px;
-webkit-border-radius: 2px; -webkit-border-radius: 2px;
-o-border-radius: 2px; -o-border-radius: 2px;
@@ -1010,10 +981,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.heading ul.options {
float: none;
clear: both;
overflow: hidden; overflow: hidden;
margin: 0;
padding: 0; padding: 0;
display: block; display: block;
clear: none; clear: none;
@@ -1055,8 +1023,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content {
background-color: #faf5ee; background-color: #faf5ee;
border: 1px solid black; border: 1px solid #f0e0ca;
border-color: #f0e0ca;
border-top: none; border-top: none;
padding: 10px; padding: 10px;
-moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomleft: 6px;
@@ -1071,14 +1038,14 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
-ms-border-bottom-right-radius: 6px; -ms-border-bottom-right-radius: 6px;
-khtml-border-bottom-right-radius: 6px; -khtml-border-bottom-right-radius: 6px;
border-bottom-right-radius: 6px; border-bottom-right-radius: 6px;
margin: 0 0 20px 0; margin: 0 0 20px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content h4 {
color: #c5862b; color: #c5862b;
font-size: 1.1em; font-size: 1.1em;
margin: 0; margin: 0;
padding: 15px 0 5px 0px; padding: 15px 0 5px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content form input[type='text'].error { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content form input[type='text'].error {
@@ -1101,7 +1068,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header img { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.sandbox_header img {
display: block;
display: block; display: block;
clear: none; clear: none;
float: right; float: right;
@@ -1114,12 +1080,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
font-size: 0.9em; font-size: 0.9em;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.response div.block {
background-color: #fcf6db;
border: 1px solid black;
border-color: #e5e0c6;
}
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.response div.block pre { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.put div.content div.response div.block pre {
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
padding: 10px; padding: 10px;
@@ -1128,14 +1088,13 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
overflow-y: auto; overflow-y: auto;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch {
float: none; float: none;
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 10px 0; margin: 0 0 10px;
padding: 0 0 0 0px; padding: 0;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading {
@@ -1143,11 +1102,10 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 0 0; margin: 0;
padding: 0; padding: 0;
background-color: #FCE9E3; background-color: #FCE9E3;
border: 1px solid black; border: 1px solid #F5D5C3;
border-color: #F5D5C3;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading h3 {
@@ -1198,10 +1156,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.heading ul.options {
float: none;
clear: both;
overflow: hidden; overflow: hidden;
margin: 0;
padding: 0; padding: 0;
display: block; display: block;
clear: none; clear: none;
@@ -1243,8 +1198,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content {
background-color: #faf0ef; background-color: #faf0ef;
border: 1px solid black; border: 1px solid #f0cecb;
border-color: #f0cecb;
border-top: none; border-top: none;
padding: 10px; padding: 10px;
-moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomleft: 6px;
@@ -1259,14 +1213,14 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
-ms-border-bottom-right-radius: 6px; -ms-border-bottom-right-radius: 6px;
-khtml-border-bottom-right-radius: 6px; -khtml-border-bottom-right-radius: 6px;
border-bottom-right-radius: 6px; border-bottom-right-radius: 6px;
margin: 0 0 20px 0; margin: 0 0 20px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content h4 {
color: #D38042; color: #D38042;
font-size: 1.1em; font-size: 1.1em;
margin: 0; margin: 0;
padding: 15px 0 5px 0px; padding: 15px 0 5px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content form input[type='text'].error { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content form input[type='text'].error {
@@ -1289,7 +1243,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header img { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.sandbox_header img {
display: block;
display: block; display: block;
clear: none; clear: none;
float: right; float: right;
@@ -1302,12 +1255,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
font-size: 0.9em; font-size: 0.9em;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.response div.block {
background-color: #fcf6db;
border: 1px solid black;
border-color: #e5e0c6;
}
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.response div.block pre { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.patch div.content div.response div.block pre {
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
padding: 10px; padding: 10px;
@@ -1321,8 +1268,8 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 10px 0; margin: 0 0 10px;
padding: 0 0 0 0px; padding: 0;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading {
@@ -1330,11 +1277,10 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
clear: both; clear: both;
overflow: hidden; overflow: hidden;
display: block; display: block;
margin: 0 0 0 0; margin: 0;
padding: 0; padding: 0;
background-color: #f5e8e8; background-color: #f5e8e8;
border: 1px solid black; border: 1px solid #e8c6c7;
border-color: #e8c6c7;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading h3 {
@@ -1385,10 +1331,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.heading ul.options {
float: none;
clear: both;
overflow: hidden; overflow: hidden;
margin: 0;
padding: 0; padding: 0;
display: block; display: block;
clear: none; clear: none;
@@ -1430,8 +1373,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content {
background-color: #f7eded; background-color: #f7eded;
border: 1px solid black; border: 1px solid #e8c6c7;
border-color: #e8c6c7;
border-top: none; border-top: none;
padding: 10px; padding: 10px;
-moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomleft: 6px;
@@ -1453,7 +1395,7 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
color: #a41e22; color: #a41e22;
font-size: 1.1em; font-size: 1.1em;
margin: 0; margin: 0;
padding: 15px 0 5px 0px; padding: 15px 0 5px;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content form input[type='text'].error { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content form input[type='text'].error {
@@ -1476,7 +1418,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header img { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.sandbox_header img {
display: block;
display: block; display: block;
clear: none; clear: none;
float: right; float: right;
@@ -1489,12 +1430,6 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
font-size: 0.9em; font-size: 0.9em;
} }
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.response div.block {
background-color: #fcf6db;
border: 1px solid black;
border-color: #e5e0c6;
}
body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.response div.block pre { body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation.delete div.content div.response div.block pre {
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace; font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
padding: 10px; padding: 10px;
@@ -1509,12 +1444,24 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
font-size: 1em; font-size: 1em;
line-height: 1.5em; line-height: 1.5em;
} }
.model-signature .description span {
.model-signature .description div {
font-size: 0.9em; font-size: 0.9em;
line-height: 1.5em; line-height: 1.5em;
margin-left: 1em;
} }
.model-signature .description span:nth-child(odd) { color:#333; }
.model-signature .description span:nth-child(even) { color:#C5862B; } .model-signature .description .strong {
font-weight: bold;
color: #000;
font-size: .9em;
}
.model-signature .description .stronger {
font-weight: bold;
color: #000;
}
.model-signature .signature-nav a { .model-signature .signature-nav a {
text-decoration: none; text-decoration: none;
color: #AAA; color: #AAA;
@@ -1551,24 +1498,16 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
} }
.model-signature ul.signature-nav { .model-signature ul.signature-nav {
float: none; display: block;
clear: both;
overflow: hidden;
margin: 0; margin: 0;
padding: 0; padding: 0;
display: block;
clear: none;
float: right;
margin-right: 5px;
margin-bottom: 5px;
} }
.model-signature ul.signature-nav li { .model-signature ul.signature-nav li {
float: left; float: left;
clear: none; margin: 0 5px 5px 0;
margin: 0; padding: 2px 5px 2px 0;
padding: 2px 10px; border-right: 1px solid #ddd;
border-right: 1px solid #dddddd;
} }
.model-signature ul.signature-nav li:last-child { .model-signature ul.signature-nav li:last-child {
@@ -1576,15 +1515,58 @@ body ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operatio
border-right: none; border-right: none;
} }
.model-signature .propName {
font-weight: bold;
}
.model-signature .propType {
color: #5555aa;
}
.model-signature .propOptKey {
font-style: italic;
}
.model-signature .propOpt {
color: #555;
}
pre code { pre code {
background: none; background: none;
} }
.content pre {
font-size: 12px;
margin-top: 5px;
padding: 5px;
}
.content > .content-type > div > label { .content > .content-type > div > label {
clear: both; clear: both;
display: block; display: block;
color: #0F6AB4; color: #0F6AB4;
font-size: 1.1em; font-size: 1.1em;
margin: 0; margin: 0;
padding: 15px 0 5px 0px; padding: 15px 0 5px;
}
.swagger-ui-wrap {
max-width: 960px;
margin-left: auto;
margin-right: auto;
}
.icon-btn {
cursor: pointer;
}
#message-bar {
min-height: 30px;
text-align: center;
padding-top: 10px;
}
.message-success {
color: #89BF04;
}
.message-fail {
color: #cc0000;
} }

30
dist/index.html vendored
View File

@@ -16,35 +16,9 @@
<script src='swagger-ui.js' type='text/javascript'></script> <script src='swagger-ui.js' type='text/javascript'></script>
<script src='lib/highlight.7.3.pack.js' type='text/javascript'></script> <script src='lib/highlight.7.3.pack.js' type='text/javascript'></script>
<style type="text/css">
.swagger-ui-wrap {
max-width: 960px;
margin-left: auto;
margin-right: auto;
}
.icon-btn {
cursor: pointer;
}
#message-bar {
min-height: 30px;
text-align: center;
padding-top: 10px;
}
.message-success {
color: #89BF04;
}
.message-fail {
color: #cc0000;
}
</style>
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
window.swaggerUi = new SwaggerUi({ window.swaggerUi = new SwaggerUi({
discoveryUrl:"http://petstore.swagger.wordnik.com/api/api-docs.json", discoveryUrl:"http://petstore.swagger.wordnik.com/api/api-docs.json",
apiKey:"special-key", apiKey:"special-key",
dom_id:"swagger-ui-container", dom_id:"swagger-ui-container",

64
dist/swagger-ui.js vendored
View File

@@ -305,7 +305,7 @@ function program5(depth0,data) {
function program7(depth0,data) { function program7(depth0,data) {
return "\n <div style='margin:0;padding:0;display:inline'></div>\n <h4>Status Codes</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>HTTP Status Code</th>\n <th>Reason</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n \n </tbody>\n </table>\n ";} return "\n <div style='margin:0;padding:0;display:inline'></div>\n <h4>Error Status Codes</h4>\n <table class='fullwidth'>\n <thead>\n <tr>\n <th>HTTP Status Code</th>\n <th>Reason</th>\n </tr>\n </thead>\n <tbody class=\"operation-status\">\n \n </tbody>\n </table>\n ";}
function program9(depth0,data) { function program9(depth0,data) {
@@ -584,7 +584,7 @@ function program9(depth0,data) {
function program10(depth0,data) { function program10(depth0,data) {
var buffer = "", stack1; var buffer = "", stack1;
buffer += "\n <input minlength='0' name='"; buffer += "\n <input class='parameter' minlength='0' name='";
foundHelper = helpers.name; foundHelper = helpers.name;
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
@@ -600,7 +600,7 @@ function program10(depth0,data) {
function program12(depth0,data) { function program12(depth0,data) {
var buffer = "", stack1; var buffer = "", stack1;
buffer += "\n <input minlength='0' name='"; buffer += "\n <input class='parameter' minlength='0' name='";
foundHelper = helpers.name; foundHelper = helpers.name;
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
@@ -721,7 +721,7 @@ function program11(depth0,data) {
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); } else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "name", { hash: {} }); }
buffer += escapeExpression(stack1) + "</td>\n<td>\n <select name='"; buffer += escapeExpression(stack1) + "</td>\n<td>\n <select class='parameter' name='";
foundHelper = helpers.name; foundHelper = helpers.name;
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
@@ -781,15 +781,35 @@ function program1(depth0,data) {
function program3(depth0,data) { function program3(depth0,data) {
var buffer = "", stack1; var buffer = "", stack1, stack2;
buffer += "\n "; buffer += "\n ";
foundHelper = helpers.defaultValue; foundHelper = helpers.defaultValue;
stack1 = foundHelper || depth0.defaultValue; stack1 = foundHelper || depth0.defaultValue;
stack2 = helpers['if'];
tmp1 = self.program(4, program4, data);
tmp1.hash = {};
tmp1.fn = tmp1;
tmp1.inverse = self.program(6, program6, data);
stack1 = stack2.call(depth0, stack1, tmp1);
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "\n ";
return buffer;}
function program4(depth0,data) {
var buffer = "", stack1;
buffer += "\n ";
foundHelper = helpers.defaultValue;
stack1 = foundHelper || depth0.defaultValue;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "defaultValue", { hash: {} }); } else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "defaultValue", { hash: {} }); }
buffer += escapeExpression(stack1) + "\n "; buffer += escapeExpression(stack1) + "\n ";
return buffer;} return buffer;}
function program6(depth0,data) {
return "\n (empty)\n ";}
buffer += "<td class='code'>"; buffer += "<td class='code'>";
foundHelper = helpers.name; foundHelper = helpers.name;
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
@@ -839,15 +859,35 @@ function program1(depth0,data) {
function program3(depth0,data) { function program3(depth0,data) {
var buffer = "", stack1; var buffer = "", stack1, stack2;
buffer += "\n "; buffer += "\n ";
foundHelper = helpers.defaultValue; foundHelper = helpers.defaultValue;
stack1 = foundHelper || depth0.defaultValue; stack1 = foundHelper || depth0.defaultValue;
stack2 = helpers['if'];
tmp1 = self.program(4, program4, data);
tmp1.hash = {};
tmp1.fn = tmp1;
tmp1.inverse = self.program(6, program6, data);
stack1 = stack2.call(depth0, stack1, tmp1);
if(stack1 || stack1 === 0) { buffer += stack1; }
buffer += "\n ";
return buffer;}
function program4(depth0,data) {
var buffer = "", stack1;
buffer += "\n ";
foundHelper = helpers.defaultValue;
stack1 = foundHelper || depth0.defaultValue;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "defaultValue", { hash: {} }); } else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "defaultValue", { hash: {} }); }
buffer += escapeExpression(stack1) + "\n "; buffer += escapeExpression(stack1) + "\n ";
return buffer;} return buffer;}
function program6(depth0,data) {
return "\n (empty)\n ";}
buffer += "<td class='code required'>"; buffer += "<td class='code required'>";
foundHelper = helpers.name; foundHelper = helpers.name;
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
@@ -965,7 +1005,7 @@ function program9(depth0,data) {
function program10(depth0,data) { function program10(depth0,data) {
var buffer = "", stack1; var buffer = "", stack1;
buffer += "\n <input class='required' type='file' name='"; buffer += "\n <input class='parameter' class='required' type='file' name='";
foundHelper = helpers.name; foundHelper = helpers.name;
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
@@ -991,7 +1031,7 @@ function program12(depth0,data) {
function program13(depth0,data) { function program13(depth0,data) {
var buffer = "", stack1; var buffer = "", stack1;
buffer += "\n <input class='required' minlength='1' name='"; buffer += "\n <input class='parameter' class='required' minlength='1' name='";
foundHelper = helpers.name; foundHelper = helpers.name;
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
@@ -1007,7 +1047,7 @@ function program13(depth0,data) {
function program15(depth0,data) { function program15(depth0,data) {
var buffer = "", stack1; var buffer = "", stack1;
buffer += "\n <input class='required' minlength='1' name='"; buffer += "\n <input class='parameter' class='required' minlength='1' name='";
foundHelper = helpers.name; foundHelper = helpers.name;
stack1 = foundHelper || depth0.name; stack1 = foundHelper || depth0.name;
if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); }
@@ -1729,7 +1769,7 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials
OperationView.prototype.toggleOperationContent = function() { OperationView.prototype.toggleOperationContent = function() {
var elem; var elem;
elem = $('#' + this.model.resourceName + "_" + this.model.nickname + "_" + this.model.httpMethod + "_" + this.model.number + "_content"); elem = $('#' + Docs.escapeResourceName(this.model.resourceName) + "_" + this.model.nickname + "_" + this.model.httpMethod + "_" + this.model.number + "_content");
if (elem.is(':visible')) { if (elem.is(':visible')) {
return Docs.collapseOperation(elem); return Docs.collapseOperation(elem);
} else { } else {

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{ {
"name": "swagger-ui", "name": "swagger-ui",
"version": "0.1.11", "version": "0.1.12",
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API", "description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API",
"scripts": { "scripts": {
"build": "PATH=$PATH:./node_modules/.bin cake dist", "build": "PATH=$PATH:./node_modules/.bin cake dist",
@@ -19,7 +19,7 @@
"readmeFilename": "README.md", "readmeFilename": "README.md",
"dependencies": { "dependencies": {
"coffee-script": "~1.5.0", "coffee-script": "~1.5.0",
"swagger-client": "1.0.1", "swagger-client": "1.0.2",
"handlebars": "~1.0.10" "handlebars": "~1.0.10"
} }
} }