added scope to swagger, therefore, it can be included/embedded within other applications and not have css bleed.

This commit is contained in:
Kyle J. Ginavan
2014-04-11 08:53:26 -05:00
parent f6380d17e5
commit 84f4e670fc
3 changed files with 507 additions and 532 deletions

View File

@@ -1,135 +1,130 @@
/* /* Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org> */
.swagger-section pre code {
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
*/
pre code {
display: block; padding: 0.5em; display: block; padding: 0.5em;
background: #F0F0F0; background: #F0F0F0;
} }
pre code, .swagger-section pre code,
pre .subst, .swagger-section pre .subst,
pre .tag .title, .swagger-section pre .tag .title,
pre .lisp .title, .swagger-section pre .lisp .title,
pre .clojure .built_in, .swagger-section pre .clojure .built_in,
pre .nginx .title { .swagger-section pre .nginx .title {
color: black; color: black;
} }
pre .string, .swagger-section pre .string,
pre .title, .swagger-section pre .title,
pre .constant, .swagger-section pre .constant,
pre .parent, .swagger-section pre .parent,
pre .tag .value, .swagger-section pre .tag .value,
pre .rules .value, .swagger-section pre .rules .value,
pre .rules .value .number, .swagger-section pre .rules .value .number,
pre .preprocessor, .swagger-section pre .preprocessor,
pre .ruby .symbol, .swagger-section pre .ruby .symbol,
pre .ruby .symbol .string, .swagger-section pre .ruby .symbol .string,
pre .aggregate, .swagger-section pre .aggregate,
pre .template_tag, .swagger-section pre .template_tag,
pre .django .variable, .swagger-section pre .django .variable,
pre .smalltalk .class, .swagger-section pre .smalltalk .class,
pre .addition, .swagger-section pre .addition,
pre .flow, .swagger-section pre .flow,
pre .stream, .swagger-section pre .stream,
pre .bash .variable, .swagger-section pre .bash .variable,
pre .apache .tag, .swagger-section pre .apache .tag,
pre .apache .cbracket, .swagger-section pre .apache .cbracket,
pre .tex .command, .swagger-section pre .tex .command,
pre .tex .special, .swagger-section pre .tex .special,
pre .erlang_repl .function_or_atom, .swagger-section pre .erlang_repl .function_or_atom,
pre .markdown .header { .swagger-section pre .markdown .header {
color: #800; color: #800;
} }
pre .comment, .swagger-section pre .comment,
pre .annotation, .swagger-section pre .annotation,
pre .template_comment, .swagger-section pre .template_comment,
pre .diff .header, .swagger-section pre .diff .header,
pre .chunk, .swagger-section pre .chunk,
pre .markdown .blockquote { .swagger-section pre .markdown .blockquote {
color: #888; color: #888;
} }
pre .number, .swagger-section pre .number,
pre .date, .swagger-section pre .date,
pre .regexp, .swagger-section pre .regexp,
pre .literal, .swagger-section pre .literal,
pre .smalltalk .symbol, .swagger-section pre .smalltalk .symbol,
pre .smalltalk .char, .swagger-section pre .smalltalk .char,
pre .go .constant, .swagger-section pre .go .constant,
pre .change, .swagger-section pre .change,
pre .markdown .bullet, .swagger-section pre .markdown .bullet,
pre .markdown .link_url { .swagger-section pre .markdown .link_url {
color: #080; color: #080;
} }
pre .label, .swagger-section pre .label,
pre .javadoc, .swagger-section pre .javadoc,
pre .ruby .string, .swagger-section pre .ruby .string,
pre .decorator, .swagger-section pre .decorator,
pre .filter .argument, .swagger-section pre .filter .argument,
pre .localvars, .swagger-section pre .localvars,
pre .array, .swagger-section pre .array,
pre .attr_selector, .swagger-section pre .attr_selector,
pre .important, .swagger-section pre .important,
pre .pseudo, .swagger-section pre .pseudo,
pre .pi, .swagger-section pre .pi,
pre .doctype, .swagger-section pre .doctype,
pre .deletion, .swagger-section pre .deletion,
pre .envvar, .swagger-section pre .envvar,
pre .shebang, .swagger-section pre .shebang,
pre .apache .sqbracket, .swagger-section pre .apache .sqbracket,
pre .nginx .built_in, .swagger-section pre .nginx .built_in,
pre .tex .formula, .swagger-section pre .tex .formula,
pre .erlang_repl .reserved, .swagger-section pre .erlang_repl .reserved,
pre .prompt, .swagger-section pre .prompt,
pre .markdown .link_label, .swagger-section pre .markdown .link_label,
pre .vhdl .attribute, .swagger-section pre .vhdl .attribute,
pre .clojure .attribute, .swagger-section pre .clojure .attribute,
pre .coffeescript .property { .swagger-section pre .coffeescript .property {
color: #88F color: #88F
} }
pre .keyword, .swagger-section pre .keyword,
pre .id, .swagger-section pre .id,
pre .phpdoc, .swagger-section pre .phpdoc,
pre .title, .swagger-section pre .title,
pre .built_in, .swagger-section pre .built_in,
pre .aggregate, .swagger-section pre .aggregate,
pre .css .tag, .swagger-section pre .css .tag,
pre .javadoctag, .swagger-section pre .javadoctag,
pre .phpdoc, .swagger-section pre .phpdoc,
pre .yardoctag, .swagger-section pre .yardoctag,
pre .smalltalk .class, .swagger-section pre .smalltalk .class,
pre .winutils, .swagger-section pre .winutils,
pre .bash .variable, .swagger-section pre .bash .variable,
pre .apache .tag, .swagger-section pre .apache .tag,
pre .go .typename, .swagger-section pre .go .typename,
pre .tex .command, .swagger-section pre .tex .command,
pre .markdown .strong, .swagger-section pre .markdown .strong,
pre .request, .swagger-section pre .request,
pre .status { .swagger-section pre .status {
font-weight: bold; font-weight: bold;
} }
pre .markdown .emphasis { .swagger-section pre .markdown .emphasis {
font-style: italic; font-style: italic;
} }
pre .nginx .built_in { .swagger-section pre .nginx .built_in {
font-weight: normal; font-weight: normal;
} }
pre .coffeescript .javascript, .swagger-section pre .coffeescript .javascript,
pre .javascript .xml, .swagger-section pre .javascript .xml,
pre .tex .formula, .swagger-section pre .tex .formula,
pre .xml .javascript, .swagger-section pre .xml .javascript,
pre .xml .vbscript, .swagger-section pre .xml .vbscript,
pre .xml .css, .swagger-section pre .xml .css,
pre .xml .cdata { .swagger-section pre .xml .cdata {
opacity: 0.5; opacity: 0.5;
} }

830
dist/css/screen.css vendored

File diff suppressed because it is too large Load Diff

2
dist/index.html vendored
View File

@@ -61,7 +61,7 @@
</script> </script>
</head> </head>
<body> <body class='swagger-section'>
<div id='header'> <div id='header'>
<div class="swagger-ui-wrap"> <div class="swagger-ui-wrap">
<a id="logo" href="http://swagger.wordnik.com">swagger</a> <a id="logo" href="http://swagger.wordnik.com">swagger</a>