-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent cross-browser styling (CSS) #3474
Comments
Can you share an API definition that reproduces that? |
TYG :) |
Proposed fix(es) in swagger-ui.css (lines 172 & 612) .swagger-ui html { .swagger-ui *, .swagger-ui :after, .swagger-ui :before { .swagger-ui body { .swagger-ui .wrapper { .swagger-ui .opblock-tag-section { .swagger-ui .opblock-tag { .swagger-ui .opblock-tag:hover { .swagger-ui .opblock-tag { .swagger-ui .opblock-tag.no-desc span { .swagger-ui .opblock-tag svg { .swagger-ui .opblock-tag small { .swagger-ui .parameter__type { .swagger-ui .view-line-link { .swagger-ui .opblock { .swagger-ui .opblock.is-open .opblock-summary { .swagger-ui .opblock .opblock-section-header { .swagger-ui .opblock .opblock-section-header, .swagger-ui .opblock .opblock-section-header label { .swagger-ui .opblock .opblock-section-header label { .swagger-ui .opblock .opblock-section-header label span { .swagger-ui .opblock .opblock-section-header h4 { .swagger-ui .opblock .opblock-summary-method { .swagger-ui .opblock .opblock-summary-operation-id, .swagger-ui .opblock .opblock-summary-path, .swagger-ui .opblock .opblock-summary-path__deprecated { .swagger-ui .opblock .opblock-summary-operation-id .view-line-link, .swagger-ui .opblock .opblock-summary-path .view-line-link, .swagger-ui .opblock .opblock-summary-path__deprecated .view-line-link { .swagger-ui .opblock .opblock-summary-operation-id:hover .view-line-link, .swagger-ui .opblock .opblock-summary-path:hover .view-line-link, .swagger-ui .opblock .opblock-summary-path__deprecated:hover .view-line-link { .swagger-ui .opblock .opblock-summary-path__deprecated { .swagger-ui .opblock .opblock-summary-operation-id { .swagger-ui .opblock .opblock-summary-description { .swagger-ui .opblock .opblock-summary { .swagger-ui .opblock.opblock-post { .swagger-ui .opblock.opblock-post .opblock-summary-method { .swagger-ui .opblock.opblock-post .opblock-summary { .swagger-ui .opblock.opblock-put { .swagger-ui .opblock.opblock-put .opblock-summary-method { .swagger-ui .opblock.opblock-put .opblock-summary { .swagger-ui .opblock.opblock-delete { .swagger-ui .opblock.opblock-delete .opblock-summary-method { .swagger-ui .opblock.opblock-delete .opblock-summary { .swagger-ui .opblock.opblock-get { .swagger-ui .opblock.opblock-get .opblock-summary-method { .swagger-ui .opblock.opblock-get .opblock-summary { .swagger-ui .opblock.opblock-patch { .swagger-ui .opblock.opblock-patch .opblock-summary-method { .swagger-ui .opblock.opblock-patch .opblock-summary { .swagger-ui .opblock.opblock-head { .swagger-ui .opblock.opblock-head .opblock-summary-method { .swagger-ui .opblock.opblock-head .opblock-summary { .swagger-ui .opblock.opblock-options { .swagger-ui .opblock.opblock-options .opblock-summary-method { .swagger-ui .opblock.opblock-options .opblock-summary { .swagger-ui .opblock.opblock-deprecated { .swagger-ui .opblock.opblock-deprecated .opblock-summary-method { .swagger-ui .opblock.opblock-deprecated .opblock-summary { .swagger-ui .opblock .opblock-schemes { .swagger-ui .opblock .opblock-schemes .schemes-title { .swagger-ui .filter .operation-filter-input { .swagger-ui .tab { .swagger-ui .tab li { .swagger-ui .tab li:first-of-type { .swagger-ui .tab li:first-of-type:after { .swagger-ui .tab li.active { .swagger-ui .opblock-description-wrapper, .swagger-ui .opblock-external-docs-wrapper, .swagger-ui .opblock-title_normal { .swagger-ui .opblock-description-wrapper h4, .swagger-ui .opblock-external-docs-wrapper h4, .swagger-ui .opblock-title_normal h4 { .swagger-ui .opblock-description-wrapper p, .swagger-ui .opblock-external-docs-wrapper p, .swagger-ui .opblock-title_normal p { .swagger-ui .opblock-external-docs-wrapper h4 { .swagger-ui .execute-wrapper { .swagger-ui .execute-wrapper .btn { .swagger-ui .body-param-options { .swagger-ui .body-param-options .body-param-edit { .swagger-ui .body-param-options label { .swagger-ui .body-param-options label select { .swagger-ui .responses-inner { .swagger-ui .responses-inner h4, .swagger-ui .responses-inner h5 { .swagger-ui .response-col_status { .swagger-ui .response-col_status .response-undocumented { .swagger-ui .response-col_description__inner span { .swagger-ui .response-col_description__inner span p { .swagger-ui .opblock-body pre { .swagger-ui .opblock-body pre span { .swagger-ui .opblock-body pre .headerline { .swagger-ui .scheme-container { .swagger-ui .scheme-container .schemes { .swagger-ui .scheme-container .schemes > label { .swagger-ui .scheme-container .schemes > label select { .swagger-ui .loading-container { .swagger-ui .loading-container .loading { .swagger-ui .loading-container .loading:after { .swagger-ui .loading-container .loading:before { @-webkit-keyframes rotation { @Keyframes rotation { @-webkit-keyframes blinker { @Keyframes blinker { .swagger-ui section h3 { .swagger-ui a.nostyle { .swagger-ui a.nostyle, .swagger-ui a.nostyle:visited { .swagger-ui .btn { .swagger-ui .btn[disabled] { .swagger-ui .btn:hover { .swagger-ui .btn.cancel { .swagger-ui .btn.authorize { .swagger-ui .btn.authorize span { .swagger-ui .btn.authorize svg { .swagger-ui .btn.execute { @-webkit-keyframes swagger-ui-pulse { @Keyframes swagger-ui-pulse { .swagger-ui .btn-group { .swagger-ui .btn-group .btn { .swagger-ui .btn-group .btn:first-child { .swagger-ui .btn-group .btn:last-child { .swagger-ui .authorization__btn { .swagger-ui .authorization__btn.locked { .swagger-ui .authorization__btn.unlocked { .swagger-ui .expand-methods, .swagger-ui .expand-operation { .swagger-ui .expand-methods svg, .swagger-ui .expand-operation svg { .swagger-ui .expand-methods { .swagger-ui .expand-methods:hover svg { .swagger-ui .expand-methods svg { .swagger-ui button { .swagger-ui select { .swagger-ui select[multiple] { .swagger-ui .opblock-body select { .swagger-ui label { .swagger-ui input[type=email], .swagger-ui input[type=file], .swagger-ui input[type=password], .swagger-ui input[type=search], .swagger-ui input[type=text] { .swagger-ui input[type=email].invalid, .swagger-ui input[type=file].invalid, .swagger-ui input[type=password].invalid, .swagger-ui input[type=search].invalid, .swagger-ui input[type=text].invalid { @-webkit-keyframes shake { @Keyframes shake { .swagger-ui textarea { .swagger-ui textarea:focus { .swagger-ui textarea.curl { .swagger-ui .checkbox { .swagger-ui .checkbox label { .swagger-ui .checkbox p { .swagger-ui .checkbox input[type=checkbox] { .swagger-ui .checkbox input[type=checkbox] + label > .item { .swagger-ui .checkbox input[type=checkbox] + label > .item:active { .swagger-ui .checkbox input[type=checkbox]:checked + label > .item { .swagger-ui .dialog-ux { .swagger-ui .dialog-ux .backdrop-ux { .swagger-ui .dialog-ux .modal-ux { .swagger-ui .dialog-ux .modal-ux-content { .swagger-ui .dialog-ux .modal-ux-content p { .swagger-ui .dialog-ux .modal-ux-content h4 { .swagger-ui .dialog-ux .modal-ux-header { .swagger-ui .dialog-ux .modal-ux-header .close-modal { .swagger-ui .dialog-ux .modal-ux-header h3 { .swagger-ui .model { .swagger-ui .model-toggle { .swagger-ui .model-toggle.collapsed { .swagger-ui .model-toggle:after { .swagger-ui .model-jump-to-path { .swagger-ui .model-jump-to-path .view-line-link { .swagger-ui .model-title { .swagger-ui .model-title:hover .model-hint { .swagger-ui .model-hint { .swagger-ui .model p { .swagger-ui section.models { .swagger-ui section.models.is-open { .swagger-ui section.models.is-open h4 { .swagger-ui section.models h4 { .swagger-ui section.models h4 svg { .swagger-ui section.models h4 span { .swagger-ui section.models h4:hover { .swagger-ui section.models h5 { .swagger-ui section.models .model-jump-to-path { .swagger-ui section.models .model-container { .swagger-ui section.models .model-container:hover { .swagger-ui section.models .model-container:first-of-type { .swagger-ui section.models .model-container:last-of-type { .swagger-ui section.models .model-box { .swagger-ui .model-box { .swagger-ui .model-box .model-jump-to-path { .swagger-ui .model-title { .swagger-ui span > span.model, .swagger-ui span > span.model .brace-close { .swagger-ui .prop-type { .swagger-ui .prop-enum { .swagger-ui .prop-format { .swagger-ui table { .swagger-ui table.model tbody tr td { .swagger-ui table.model tbody tr td:first-of-type { .swagger-ui table.headers td { .swagger-ui table tbody tr td { .swagger-ui table tbody tr td:first-of-type { .swagger-ui table thead tr td, .swagger-ui table thead tr th { .swagger-ui .parameters-col_description p { .swagger-ui .parameters-col_description input[type=text] { .swagger-ui .parameter__name { .swagger-ui .parameter__name.required { .swagger-ui .parameter__name.required:after { .swagger-ui .parameter__in { .swagger-ui .table-container { .swagger-ui .topbar { .swagger-ui .topbar .topbar-wrapper, .swagger-ui .topbar a { .swagger-ui .topbar a { .swagger-ui .topbar a span { .swagger-ui .topbar .download-url-wrapper { .swagger-ui .topbar .download-url-wrapper input[type=text] { .swagger-ui .topbar .download-url-wrapper .select-label { .swagger-ui .topbar .download-url-wrapper .select-label span { .swagger-ui .topbar .download-url-wrapper .select-label select { .swagger-ui .topbar .download-url-wrapper .download-url-button { .swagger-ui .info { .swagger-ui .info hgroup.main { .swagger-ui .info hgroup.main a { .swagger-ui .info li, .swagger-ui .info p, .swagger-ui .info table { .swagger-ui .info h1, .swagger-ui .info h2, .swagger-ui .info h3, .swagger-ui .info h4, .swagger-ui .info h5 { .swagger-ui .info code { .swagger-ui .info a { .swagger-ui .info a:hover { .swagger-ui .info > div { .swagger-ui .info .base-url { .swagger-ui .info .title { .swagger-ui .info .title small { .swagger-ui .info .title small pre { .swagger-ui .auth-btn-wrapper { .swagger-ui .auth-wrapper { .swagger-ui .auth-wrapper .authorize { .swagger-ui .auth-container { .swagger-ui .auth-container:last-of-type { .swagger-ui .auth-container h4 { .swagger-ui .auth-container .wrapper { .swagger-ui .auth-container input[type=password], .swagger-ui .auth-container input[type=text] { .swagger-ui .auth-container .errors { .swagger-ui .scopes h2 { .swagger-ui .scope-def { .swagger-ui .errors-wrapper { .swagger-ui .errors-wrapper .error-wrapper { .swagger-ui .errors-wrapper .errors h4 { .swagger-ui .errors-wrapper .errors small { .swagger-ui .errors-wrapper hgroup { .swagger-ui .errors-wrapper hgroup h4 { @-webkit-keyframes scaleUp { @Keyframes scaleUp { .swagger-ui .Resizer.vertical.disabled { /# sourceMappingURL=swagger-ui.css.map/ |
@orbex would you consider submitting a PR? |
You should never submit CSS with !important to the public. It's terrible practice |
Swagger-UI version: 3.0.21
Swagger version: 2.0
Chrome version: 59.0.3071.115
Firefox version: 54.0.1
The text was updated successfully, but these errors were encountered: