mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #369 from emmanuelballery/fixes_for_ff36
Fixes HTML structures for FF36 (and maybe other old browsers)
This commit is contained in:
commit
c6741d5710
@ -171,7 +171,7 @@ table tbody tr td {
|
|||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#section {
|
.section {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
background: #f8f8f8;
|
background: #f8f8f8;
|
||||||
padding: 5px 20px;
|
padding: 5px 20px;
|
||||||
@ -188,14 +188,14 @@ li.resource:last-child {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* heading */
|
/* heading */
|
||||||
a.heading {
|
.heading {
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
float: none;
|
float: none;
|
||||||
clear: both;
|
clear: both;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
a.heading h2 {
|
.heading h2 {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
display: block;
|
display: block;
|
||||||
@ -204,7 +204,7 @@ a.heading h2 {
|
|||||||
font-family: "Droid Sans", sans-serif;
|
font-family: "Droid Sans", sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
a.heading ul.options {
|
.heading ul.options {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
display: block;
|
display: block;
|
||||||
@ -212,7 +212,7 @@ a.heading ul.options {
|
|||||||
float: right;
|
float: right;
|
||||||
margin: 6px 10px 0 0;
|
margin: 6px 10px 0 0;
|
||||||
}
|
}
|
||||||
a.heading ul.options li {
|
.heading ul.options li {
|
||||||
float: left;
|
float: left;
|
||||||
clear: none;
|
clear: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -221,12 +221,12 @@ a.heading ul.options li {
|
|||||||
color: #666666;
|
color: #666666;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
a.heading ul.options li:first-child,
|
.heading ul.options li:first-child,
|
||||||
a.heading ul.options li.first {
|
.heading ul.options li.first {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
a.heading ul.options li:last-child,
|
.heading ul.options li:last-child,
|
||||||
a.heading ul.options li.last {
|
.heading ul.options li.last {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
}
|
}
|
||||||
@ -240,13 +240,13 @@ li.operation {
|
|||||||
margin: 0 0 10px;
|
margin: 0 0 10px;
|
||||||
padding: 0 0 0 0;
|
padding: 0 0 0 0;
|
||||||
}
|
}
|
||||||
li.operation a.heading {
|
li.operation .heading {
|
||||||
margin: 0 0 0 0;
|
margin: 0 0 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
li.operation a.heading h3 {
|
li.operation .heading h3 {
|
||||||
display: block;
|
display: block;
|
||||||
clear: none;
|
clear: none;
|
||||||
float: left;
|
float: left;
|
||||||
@ -256,25 +256,25 @@ li.operation a.heading h3 {
|
|||||||
line-height: 1.1em;
|
line-height: 1.1em;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
li.operation a.heading h3 span {
|
li.operation .heading h3 span {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
li.operation a.heading h3 span.icon {
|
li.operation .heading h3 span.icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
background: no-repeat center center;
|
background: no-repeat center center;
|
||||||
}
|
}
|
||||||
li.operation a.heading h3 span.lock {
|
li.operation .heading h3 span.lock {
|
||||||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAYAAABbayygAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUHEisepJ6ljAAAAJ5JREFUGNNt0LEOAUEUheEPuwkFtSg0old4Eo/imbQKiULpBZQSCtFoaIjSktXMxpjsSW5xzvnnZmb4aYMymg9WEq1Decc1zCNkyxisoFGUTXDGEZpR8cIp8jccKiaLigwDdMP9hughr8ptALtYoB18C+Pgd5KXlrhgX5P/mSfmmKVgM/mmDP1qQ1rEyjFFkYKNmtMF3uikYFGzOdXnC5FWMZNd2GfvAAAAAElFTkSuQmCC");
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAMCAYAAABbayygAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUHEisepJ6ljAAAAJ5JREFUGNNt0LEOAUEUheEPuwkFtSg0old4Eo/imbQKiULpBZQSCtFoaIjSktXMxpjsSW5xzvnnZmb4aYMymg9WEq1Decc1zCNkyxisoFGUTXDGEZpR8cIp8jccKiaLigwDdMP9hughr8ptALtYoB18C+Pgd5KXlrhgX5P/mSfmmKVgM/mmDP1qQ1rEyjFFkYKNmtMF3uikYFGzOdXnC5FWMZNd2GfvAAAAAElFTkSuQmCC");
|
||||||
|
|
||||||
}
|
}
|
||||||
li.operation a.heading h3 span.keys {
|
li.operation .heading h3 span.keys {
|
||||||
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUHEisb1PRRAwAAAN9JREFUKM9lz71KQ0EQhuEnJ7EIKhZWaRULu4htLLwDvYRgZWmTWoI3kAuIlVik0U5Io4USRMFOUGwU7cQ/kAQMajMHDpuBZWd235lvPtjHDT4xxhuu0ZJEhhXU8YAG7rCKBWyn8EnkVSxjOuoPbKTT1/GXnCd0YqWt4uQrk3GLGcxiswgPcRgG4QsDzKMSKtUc/kUbFwEf4BlrUdeCk8WOj3jBO+5xhGOMwmQzh6Ec9zemwtgOLuN9D4tZYqwUSvnuu3jFHLpZASqHUqXQfIZe5PX8Y4RTLKGfqLVwjp9/HR4zOkGnnAoAAAAASUVORK5CYII=");
|
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAMCAYAAAC0qUeeAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QUHEisb1PRRAwAAAN9JREFUKM9lz71KQ0EQhuEnJ7EIKhZWaRULu4htLLwDvYRgZWmTWoI3kAuIlVik0U5Io4USRMFOUGwU7cQ/kAQMajMHDpuBZWd235lvPtjHDT4xxhuu0ZJEhhXU8YAG7rCKBWyn8EnkVSxjOuoPbKTT1/GXnCd0YqWt4uQrk3GLGcxiswgPcRgG4QsDzKMSKtUc/kUbFwEf4BlrUdeCk8WOj3jBO+5xhGOMwmQzh6Ec9zemwtgOLuN9D4tZYqwUSvnuu3jFHLpZASqHUqXQfIZe5PX8Y4RTLKGfqLVwjp9/HR4zOkGnnAoAAAAASUVORK5CYII=");
|
||||||
}
|
}
|
||||||
li.operation a.heading h3 span.http_method i, li.operation a.heading h3 span.deprecated i {
|
li.operation .heading h3 span.http_method i, li.operation .heading h3 span.deprecated i {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: white;
|
color: white;
|
||||||
@ -288,11 +288,11 @@ li.operation a.heading h3 span.http_method i, li.operation a.heading h3 span.dep
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background-color: #ccc;
|
background-color: #ccc;
|
||||||
}
|
}
|
||||||
li.operation a.heading h3 span.deprecated i {
|
li.operation .heading h3 span.deprecated i {
|
||||||
width: 75px;
|
width: 75px;
|
||||||
background-color: #F00;
|
background-color: #F00;
|
||||||
}
|
}
|
||||||
li.operation a.heading h3 span.path {
|
li.operation .heading h3 span.path {
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,14 +333,14 @@ li.operation div.content form input[type='text'].error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* GET operations */
|
/* GET operations */
|
||||||
li.operation.get a.heading {
|
li.operation.get .heading {
|
||||||
border-color: #c3d9ec;
|
border-color: #c3d9ec;
|
||||||
background-color: #e7f0f7;
|
background-color: #e7f0f7;
|
||||||
}
|
}
|
||||||
li.operation.get a.heading h3 span.http_method i {
|
li.operation.get .heading h3 span.http_method i {
|
||||||
background-color: #0f6ab4;
|
background-color: #0f6ab4;
|
||||||
}
|
}
|
||||||
li.operation.get a.heading ul.options li {
|
li.operation.get .heading ul.options li {
|
||||||
border-right-color: #c3d9ec;
|
border-right-color: #c3d9ec;
|
||||||
color: #0f6ab4;
|
color: #0f6ab4;
|
||||||
}
|
}
|
||||||
@ -354,14 +354,14 @@ li.operation.get div.content h4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* POST operations */
|
/* POST operations */
|
||||||
li.operation.post a.heading {
|
li.operation.post .heading {
|
||||||
border-color: #a7e1a1;
|
border-color: #a7e1a1;
|
||||||
background-color: #d4f7cd;
|
background-color: #d4f7cd;
|
||||||
}
|
}
|
||||||
li.operation.post a.heading h3 span.http_method i{
|
li.operation.post .heading h3 span.http_method i{
|
||||||
background-color: #10a54a;
|
background-color: #10a54a;
|
||||||
}
|
}
|
||||||
li.operation.post a.heading ul.options li {
|
li.operation.post .heading ul.options li {
|
||||||
border-right-color: #c3e8d1;
|
border-right-color: #c3e8d1;
|
||||||
color: #10a54a;
|
color: #10a54a;
|
||||||
}
|
}
|
||||||
@ -375,14 +375,14 @@ li.operation.post div.content h4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ANY operations */
|
/* ANY operations */
|
||||||
li.operation.any a.heading {
|
li.operation.any .heading {
|
||||||
background-color: lightgray;
|
background-color: lightgray;
|
||||||
border-color: gray;
|
border-color: gray;
|
||||||
}
|
}
|
||||||
li.operation.any a.heading h3 span.http_method i {
|
li.operation.any .heading h3 span.http_method i {
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
}
|
}
|
||||||
li.operation.any a.heading ul.options li {
|
li.operation.any .heading ul.options li {
|
||||||
color: #000;
|
color: #000;
|
||||||
border-right-color: gray;
|
border-right-color: gray;
|
||||||
}
|
}
|
||||||
@ -396,14 +396,14 @@ li.operation.any div.content h4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* PUT operations */
|
/* PUT operations */
|
||||||
li.operation.put a.heading {
|
li.operation.put .heading {
|
||||||
background-color: #f9f2e9;
|
background-color: #f9f2e9;
|
||||||
border-color: #f0e0ca;
|
border-color: #f0e0ca;
|
||||||
}
|
}
|
||||||
li.operation.put a.heading h3 span.http_method i {
|
li.operation.put .heading h3 span.http_method i {
|
||||||
background-color: #c5862b;
|
background-color: #c5862b;
|
||||||
}
|
}
|
||||||
li.operation.put a.heading ul.options li {
|
li.operation.put .heading ul.options li {
|
||||||
border-right-color: #f0e0ca;
|
border-right-color: #f0e0ca;
|
||||||
color: #c5862b;
|
color: #c5862b;
|
||||||
}
|
}
|
||||||
@ -417,14 +417,14 @@ li.operation.put div.content h4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* DELETE operations */
|
/* DELETE operations */
|
||||||
li.operation.delete a.heading {
|
li.operation.delete .heading {
|
||||||
background-color: #f5e8e8;
|
background-color: #f5e8e8;
|
||||||
border-color: #e8c6c7;
|
border-color: #e8c6c7;
|
||||||
}
|
}
|
||||||
li.operation.delete a.heading h3 span.http_method i {
|
li.operation.delete .heading h3 span.http_method i {
|
||||||
background-color: #a41e22;
|
background-color: #a41e22;
|
||||||
}
|
}
|
||||||
li.operation.delete a.heading ul.options li {
|
li.operation.delete .heading ul.options li {
|
||||||
border-right-color: #e8c6c7;
|
border-right-color: #e8c6c7;
|
||||||
color: #a41e22;
|
color: #a41e22;
|
||||||
}
|
}
|
||||||
@ -438,14 +438,14 @@ li.operation.delete div.content h4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* PATCH operations */
|
/* PATCH operations */
|
||||||
li.operation.patch a.heading {
|
li.operation.patch .heading {
|
||||||
background-color: #f5e8e8;
|
background-color: #f5e8e8;
|
||||||
border-color: #e8c6e7;
|
border-color: #e8c6e7;
|
||||||
}
|
}
|
||||||
li.operation.patch a.heading h3 span.http_method i {
|
li.operation.patch .heading h3 span.http_method i {
|
||||||
background-color: #a41ee2;
|
background-color: #a41ee2;
|
||||||
}
|
}
|
||||||
li.operation.patch a.heading ul.options li {
|
li.operation.patch .heading ul.options li {
|
||||||
border-right-color: #e8c6c7;
|
border-right-color: #e8c6c7;
|
||||||
color: #a41ee2;
|
color: #a41ee2;
|
||||||
}
|
}
|
||||||
@ -459,13 +459,13 @@ li.operation.patch div.content h4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* LINK operations */
|
/* LINK operations */
|
||||||
li.operation.link a.heading {
|
li.operation.link .heading {
|
||||||
background-color: #F7F7D5;
|
background-color: #F7F7D5;
|
||||||
}
|
}
|
||||||
li.operation.link a.heading h3 span.http_method i {
|
li.operation.link .heading h3 span.http_method i {
|
||||||
background-color: #C3D448;
|
background-color: #C3D448;
|
||||||
}
|
}
|
||||||
li.operation.link a.heading ul.options li {
|
li.operation.link .heading ul.options li {
|
||||||
color: #C3D448;
|
color: #C3D448;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -477,13 +477,13 @@ li.operation.link div.content h4 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* UNLINK operations */
|
/* UNLINK operations */
|
||||||
li.operation.unlink a.heading {
|
li.operation.unlink .heading {
|
||||||
background-color: #FFEBDE;
|
background-color: #FFEBDE;
|
||||||
}
|
}
|
||||||
li.operation.unlink a.heading h3 span.http_method i {
|
li.operation.unlink .heading h3 span.http_method i {
|
||||||
background-color: #FF8438;
|
background-color: #FF8438;
|
||||||
}
|
}
|
||||||
li.operation.unlink a.heading ul.options li {
|
li.operation.unlink .heading ul.options li {
|
||||||
color: #FF8438;
|
color: #FF8438;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('body,html').scrollTop(elem.position().top);
|
$('body,html').scrollTop(elem.position().top);
|
||||||
});
|
});
|
||||||
elem.find('a.toggler').click();
|
elem.find('.toggler').click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -430,9 +430,9 @@
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.operations').on('click', '.operation > a', function(e) {
|
$('.operations').on('click', '.operation > .heading', function(e) {
|
||||||
if (history.pushState) {
|
if (history.pushState) {
|
||||||
history.pushState(null, null, $(this).attr('href'));
|
history.pushState(null, null, $(this).data('href'));
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<li class="{{ data.method|lower }} operation" id="{{ data.id }}">
|
<li class="{{ data.method|lower }} operation" id="{{ data.id }}">
|
||||||
<a class="heading toggler{% if data.deprecated %} deprecated{% endif %}" href="#{{ data.id }}">
|
<div class="heading toggler{% if data.deprecated %} deprecated{% endif %}" data-href="#{{ data.id }}">
|
||||||
<h3>
|
<h3>
|
||||||
<span class="http_method">
|
<span class="http_method">
|
||||||
<i>{{ data.method|upper }}</i>
|
<i>{{ data.method|upper }}</i>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<li>{{ data.description }}</li>
|
<li>{{ data.description }}</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</a>
|
</div>
|
||||||
|
|
||||||
<div class="content" style="display: {% if displayContent is defined and displayContent == true %}display{% else %}none{% endif %};">
|
<div class="content" style="display: {% if displayContent is defined and displayContent == true %}display{% else %}none{% endif %};">
|
||||||
<ul class="tabs">
|
<ul class="tabs">
|
||||||
@ -175,7 +175,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{% for status_code, descriptions in data.statusCodes %}
|
{% for status_code, descriptions in data.statusCodes %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="http://en.wikipedia.org/wiki/HTTP_{{ status_code }}" target="_blank">{{ status_code }}<a/></td>
|
<td><a href="http://en.wikipedia.org/wiki/HTTP_{{ status_code }}" target="_blank">{{ status_code }}</a></td>
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
{% for description in descriptions %}
|
{% for description in descriptions %}
|
||||||
|
@ -3,8 +3,9 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% for section, sections in resources %}
|
{% for section, sections in resources %}
|
||||||
{% if section != '_others' %}
|
{% if section != '_others' %}
|
||||||
<div id="section">
|
<li class="section">
|
||||||
<h1>{{ section }}</h1>
|
<h1>{{ section }}</h1>
|
||||||
|
<ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for resource, methods in sections %}
|
{% for resource, methods in sections %}
|
||||||
<li class="resource">
|
<li class="resource">
|
||||||
@ -27,7 +28,8 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if section != '_others' %}
|
{% if section != '_others' %}
|
||||||
</div>
|
</ul>
|
||||||
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user