Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
new release
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuales committed Apr 2, 2015
1 parent 45a390f commit e787a22
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 57 deletions.
42 changes: 30 additions & 12 deletions dist/css/swagger-ui.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
.swagger-ui .api-description {
margin-bottom: 20px;
}
.swagger-ui .endpoint {
border-bottom: 1px solid #ddd;
}
.swagger-ui .endpoint:last-child {
border: 0;
}
.swagger-ui .endpoint.active h4 a,
.swagger-ui .endpoint:hover h4 a {
color: #000;
}
.swagger-ui .endpoint.active .endpoint-actions li a,
.swagger-ui .endpoint:hover .endpoint-actions li a {
color: #555;
}
.swagger-ui .endpoint a {
text-decoration: none;
color: #999;
Expand All @@ -6,25 +23,19 @@
color: #000;
text-decoration: underline;
}
.swagger-ui .endpoint h4 span {
.swagger-ui .endpoint .endpoint-heading span {
color: #999;
}
.swagger-ui .endpoint ul.pull-right {
.swagger-ui .endpoint .endpoint-actions {
line-height: 1.1;
margin: 10px 0;
}
.swagger-ui .endpoint ul.pull-right li {
.swagger-ui .endpoint .endpoint-actions li {
border-right: 1px solid #ddd;
}
.swagger-ui .endpoint ul.pull-right li:last-child {
.swagger-ui .endpoint .endpoint-actions li:last-child {
border-right: 0;
}
.swagger-ui .endpoint.active a {
color: #000;
}
.swagger-ui .endpoint.active ul.pull-right li a {
color: #555;
}
.swagger-ui .operation {
margin-bottom: 10px;
}
Expand All @@ -48,6 +59,9 @@
.swagger-ui .operation .description {
margin: 2px 10px 0 0;
}
.swagger-ui .operation .content-type label {
margin-right: 5px;
}
.swagger-ui .operation .content {
padding: 10px;
border-top: 0 !important;
Expand All @@ -66,6 +80,7 @@
.swagger-ui .operation .content .table-responsive .table td,
.swagger-ui .operation .content .table-responsive .table th {
white-space: initial;
word-break: break-word;
}
.swagger-ui .operation .content thead th {
color: #666;
Expand All @@ -78,6 +93,7 @@
max-height: 200px;
overflow: auto;
font-size: .9em;
word-wrap: initial;
}
.swagger-ui .operation .content input,
.swagger-ui .operation .content textarea {
Expand Down Expand Up @@ -118,17 +134,19 @@
max-height: initial;
cursor: text;
font-size: .9em;
word-break: break-word;
white-space: normal;
}
.swagger-ui .operation .content pre.model .type {
color: #5555aa;
}
.swagger-ui .operation .content pre.model .pad {
margin-left: 1em;
}
.swagger-ui .operation .content .parameters pre {
.swagger-ui .operation .content .parameters pre.model-schema {
cursor: pointer;
}
.swagger-ui .operation .content .parameters pre:hover {
.swagger-ui .operation .content .parameters pre.model-schema:hover {
background-color: #ffd;
}
.swagger-ui .operation .content .parameters .name {
Expand Down
2 changes: 1 addition & 1 deletion dist/css/swagger-ui.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 33 additions & 13 deletions dist/less/swagger-ui.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,30 @@

.swagger-ui{

.api-description{
margin-bottom: 20px;
}

.endpoint{

border-bottom: 1px solid #ddd;

&:last-child{
border: 0;
}

&.active,
&:hover{

h4 a{
color: #000;
}

.endpoint-actions li a{
color: #555;
}
}

a{

text-decoration: none;
Expand All @@ -37,11 +59,11 @@
}
}

h4 span{
.endpoint-heading span{
color: #999;
}

ul.pull-right{
.endpoint-actions{

line-height: @headings-line-height;
margin: (@line-height-computed / 2) 0;
Expand All @@ -56,16 +78,6 @@
}
}

&.active {

a{
color: #000;
}

ul.pull-right li a{
color: #555;
}
}
}

.operation{
Expand Down Expand Up @@ -96,6 +108,10 @@
margin: 2px 10px 0 0;
}

.content-type label{
margin-right: 5px;
}

.content{

padding: 10px;
Expand All @@ -118,6 +134,7 @@
td,
th{
white-space: initial;
word-break: break-word;
}
}

Expand All @@ -133,6 +150,7 @@
max-height: 200px;
overflow: auto;
font-size: .9em;
word-wrap: initial;
}

input,
Expand Down Expand Up @@ -186,6 +204,8 @@
max-height: initial;
cursor: text;
font-size: .9em;
word-break: break-word;
white-space: normal;

.type{
color: #5555aa;
Expand All @@ -198,7 +218,7 @@

.parameters{

pre{
pre.model-schema{

cursor: pointer;

Expand Down
Loading

0 comments on commit e787a22

Please sign in to comment.