fix(docs-infra): fix table header layout in API pages (#24919)

PR Close #24919
This commit is contained in:
George Kalpakas 2018-07-17 12:14:18 +03:00 committed by Victor Berchet
parent 2d38fa104b
commit 3cd9645daa
3 changed files with 16 additions and 15 deletions

View File

@ -31,13 +31,10 @@
}
.method-table, .option-table, .list-table {
th {
display: flex;
.with-github-links {
align-items: center;
h3 {
flex: 1;
}
display: flex;
justify-content: space-between;
.github-links {
a {

View File

@ -13,8 +13,10 @@
<a id="{$ option.anchor $}"></a>
<table class="is-full-width option-table">
<thead><tr><th>
<h3>{$ option.name $}</h3>
{$ github.githubLinks(option, versionInfo) $}
<div class="with-github-links">
<h3>{$ option.name $}</h3>
{$ github.githubLinks(option, versionInfo) $}
</div>
</th></tr></thead>
<tbody>
<tr>

View File

@ -74,13 +74,15 @@
<a id="{$ method.anchor $}"></a>
<table class="is-full-width method-table {$ cssClass $}">
{% if method.name !== 'constructor' %}<thead><tr><th>
<h3>
{% if method.isCallMember %}<i>call signature</i>
{% elseif method.isNewMember %}<i>construct signature</i>
{% else %}{$ method.name $}()
{% endif %}
</h3>
{$ github.githubLinks(method, versionInfo) $}
<div class="with-github-links">
<h3>
{% if method.isCallMember %}<i>call signature</i>
{% elseif method.isNewMember %}<i>construct signature</i>
{% else %}{$ method.name $}()
{% endif %}
</h3>
{$ github.githubLinks(method, versionInfo) $}
</div>
</th></tr></thead>{% endif %}
<tbody>
{% if method.shortDescription %}<tr>