Skip to content

Commit

Permalink
Fix table styling per Massy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rand McKinney committed Nov 17, 2023
1 parent e37915b commit 0f0ad6e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions css/table.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
table {
table.manifest-ref-table {
border: 1px solid #E1E1E1;
margin: 0 0 20px 0;
border-collapse: collapse;
}

th, td {
th.manifest-ref-table, td.manifest-ref-table {
border: 1px solid #ccc;
padding: 10px;
font-size: .9em;
text-align: left;
}

th {
th.manifest-ref-table {
background: #e6e6e6;
}

Expand Down
28 changes: 14 additions & 14 deletions pages/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@

### Properties

<table>
<table class="manifest-ref-table">
<thead><tr>
<th>Property</th>
<th>Type</th>
<th>Description</th>
<th>Required?</th>
<th class="manifest-ref-table">Property</th>
<th class="manifest-ref-table">Type</th>
<th class="manifest-ref-table">Description</th>
<th class="manifest-ref-table">Required?</th>
</tr></thead>

<tbody>
{% for property in schema.properties %}
{% assign required_properties = schema.required %}
<tr>
<td>{{property.first}}</td>
<td class="manifest-ref-table">{{property.first}}</td>

<!-- Type -->
<td>
<td class="manifest-ref-table">
{% if property.last.type=="object" %}
Object

Expand All @@ -38,14 +38,14 @@
</td>

<!-- Description -->
<td>{{property.last.description|markdownify}}
<td class="manifest-ref-table">{{property.last.description|markdownify}}
{% if property.last.additionalProperties %}
{% assign href=property.last.additionalProperties.first[1] %}
See {% include ref-to-link.html ref=href %}
{% endif %}
</td>

<td> <!-- Required? -->
<td class="manifest-ref-table"> <!-- Required? -->
{% include required.html prop=property.first required_list=required_properties %}
</td>

Expand Down Expand Up @@ -104,21 +104,21 @@
<tbody>
{% for property in entity.properties %}
<tr>
<td>{{property.first}}</td>
<td class="manifest-ref-table">{{property.first}}</td>

<!-- Type -->
<td>
<td class="manifest-ref-table">
{% include type.html prop_info=property.last %}
</td>

<!-- Description -->
<td>{%- include description.html str=property.last.description -%}</td>
<td class="manifest-ref-table">{%- include description.html str=property.last.description -%}</td>

<td> <!-- Required? -->
<td class="manifest-ref-table"> <!-- Required? -->
{% include required.html prop=property.first required_list=entity.required %}
</td>

<td> <!-- Default Value -->
<td class="manifest-ref-table"> <!-- Default Value -->
{% if property.last.default == empty %} Empty array {%endif%}
{% if property.last.default %}
{{property.last.default}}
Expand Down

0 comments on commit 0f0ad6e

Please sign in to comment.