Skip to content

Commit b196425

Browse files
committed
Merge pull request swagger-api#540 from bezhermoso/throbber_img_reference
Moved reference to throbber.gif to CSS file.
2 parents 3a7b66d + f8991bc commit b196425

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

dist/css/screen.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -743,17 +743,20 @@
743743
display: inline-block;
744744
font-size: 0.9em;
745745
}
746-
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header img {
747-
display: block;
748-
clear: none;
749-
float: right;
750-
}
751746
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header input.submit {
752747
display: block;
753748
clear: none;
754749
float: left;
755750
padding: 6px 8px;
756751
}
752+
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header span.response_throbber {
753+
background-image: url('../images/throbber.gif');
754+
width: 128px;
755+
height: 16px;
756+
display: block;
757+
clear: none;
758+
float: right;
759+
}
757760
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form input[type='text'].error {
758761
outline: 2px solid black;
759762
outline-color: #cc0000;

src/main/html/css/screen.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -743,17 +743,20 @@
743743
display: inline-block;
744744
font-size: 0.9em;
745745
}
746-
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header img {
747-
display: block;
748-
clear: none;
749-
float: right;
750-
}
751746
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header input.submit {
752747
display: block;
753748
clear: none;
754749
float: left;
755750
padding: 6px 8px;
756751
}
752+
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content div.sandbox_header span.response_throbber {
753+
background-image: url('../images/throbber.gif');
754+
width: 128px;
755+
height: 16px;
756+
display: block;
757+
clear: none;
758+
float: right;
759+
}
757760
.swagger-section .swagger-ui-wrap ul#resources li.resource ul.endpoints li.endpoint ul.operations li.operation div.content form input[type='text'].error {
758761
outline: 2px solid black;
759762
outline-color: #cc0000;

src/main/less/specs.less

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -671,17 +671,20 @@
671671
display: inline-block;
672672
font-size: 0.9em;
673673
}
674-
img {
675-
display: block;
676-
clear: none;
677-
float: right;
678-
}
679674
input.submit {
680675
display: block;
681676
clear: none;
682677
float: left;
683678
padding: 6px 8px;
684679
}
680+
span.response_throbber {
681+
background-image: url('../images/throbber.gif');
682+
width: 128px;
683+
height: 16px;
684+
display: block;
685+
clear: none;
686+
float: right;
687+
}
685688
}
686689
form {
687690
input[type='text'].error {

src/main/template/operation.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
<div class='sandbox_header'>
8484
<input class='submit' name='commit' type='button' value='Try it out!' />
8585
<a href='#' class='response_hider' style='display:none'>Hide Response</a>
86-
<img alt='Throbber' class='response_throbber' src='images/throbber.gif' style='display:none' />
86+
<span class='response_throbber' style='display:none'></span>
8787
</div>
8888
{{/if}}
8989
</form>

0 commit comments

Comments
 (0)