Skip to content

Commit

Permalink
Added dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Pupix committed Feb 10, 2019
1 parent 8a900aa commit 6c3f744
Show file tree
Hide file tree
Showing 37 changed files with 511 additions and 186 deletions.
84 changes: 84 additions & 0 deletions app/css/code-theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.swagger-section .swagger-ui-wrap .model-signature .signature-container .description,
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
color: #abb2bf;
background: #282c34;
line-height: normal;
font-size: 13px;
}

.hljs-comment,
.hljs-quote {
color: #5c6370;
font-style: italic;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
color: #c678dd;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
color: #e06c75;
}

.hljs-literal {
color: #56b6c2;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta-string {
color: #98c379;
}

.hljs-built_in,
.hljs-class .hljs-title {
color: #e6c07b;
}

.swagger-section .swagger-ui-wrap .model-signature .propName,
.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
color: #d19a66;
}

.swagger-section .swagger-ui-wrap .model-signature .description .strong {
color: #abb2bf;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
color: #61aeee;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

.hljs-link {
text-decoration: underline;
}
18 changes: 9 additions & 9 deletions app/css/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@
}
.swagger-section .swagger-ui-wrap {
line-height: 1;
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
max-width: 960px;
margin-left: auto;
margin-right: auto;
/* JSONEditor specific styling */
}
.swagger-section .swagger-ui-wrap b,
.swagger-section .swagger-ui-wrap strong {
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
font-weight: bold;
}
.swagger-section .swagger-ui-wrap q,
Expand Down Expand Up @@ -334,7 +334,7 @@
width: 100%;
}
.swagger-section .swagger-ui-wrap .model-signature {
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
font-size: 1em;
line-height: 1.5em;
}
Expand Down Expand Up @@ -479,7 +479,7 @@
font-size: 1.5em;
line-height: 1.3em;
padding: 10px 0 10px 0;
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
font-weight: bold;
}
.swagger-section .swagger-ui-wrap .heading_with_menu {
Expand Down Expand Up @@ -531,7 +531,7 @@
font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
}
.swagger-section .swagger-ui-wrap form.formtastic fieldset.inputs ol li.text textarea {
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
height: 250px;
padding: 4px;
display: block;
Expand Down Expand Up @@ -609,7 +609,7 @@
margin: 20px 0 25px 0 !important;
}
.swagger-section .swagger-ui-wrap ul#resources {
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
font-size: 0.9em;
}
.swagger-section .swagger-ui-wrap ul#resources li.resource {
Expand Down Expand Up @@ -682,7 +682,7 @@
display: block;
clear: none;
float: left;
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
font-weight: bold;
}
.swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a {
Expand Down Expand Up @@ -1049,7 +1049,7 @@
padding: 10px 0;
font-size: 0.8em;
border-top: 1px solid #dddddd;
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
color: #999999;
font-style: italic;
}
Expand All @@ -1064,7 +1064,7 @@
}
.swagger-section .swagger-ui-wrap .markdown ol,
.swagger-section .swagger-ui-wrap .markdown ul {
font-family: "Droid Sans", sans-serif;
font-family: "Roboto", sans-serif;
margin: 5px 0 10px;
padding: 0 0 0 18px;
list-style-type: disc;
Expand Down
Loading

0 comments on commit 6c3f744

Please sign in to comment.