mirror of https://github.com/status-im/swarms.git
Responsive layout - Ideas Table / People Table (#243)
This commit is contained in:
parent
7f62ba2688
commit
6c656db569
|
@ -2,6 +2,7 @@
|
|||
!.github
|
||||
!.gitignore
|
||||
!*.md
|
||||
!*.scss
|
||||
_site
|
||||
.sass-cache
|
||||
.jekyll-metadata
|
||||
|
|
|
@ -18,14 +18,14 @@
|
|||
</thead>
|
||||
{% for page in ideas %}
|
||||
<tr>
|
||||
<td class="lead-contributor">{{page.lead-contributor|xml_escape}}</td>
|
||||
<td class="id"><a href="{{page.url|relative_url}}">{{page.id|xml_escape}}</a></td>
|
||||
<td class="title">{{page.title|xml_escape}}</td>
|
||||
<td class="categ">{{page.category|xml_escape}}</td>
|
||||
<td class="success-metrics">{% if page.success-metrics %}✅ {% else %}❌{% endif %}</td>
|
||||
<td class="exit-criteria">{% if page.exit-criteria %}✅{% else %}❌{% endif %}</td>
|
||||
<td class="clear-roles">{% if page.clear-roles %}✅{% else %}❌{% endif %}</td>
|
||||
<td class="future-iterations">{% if page.future-iterations %}✅{% else %}❌{% endif %}</td>
|
||||
<td data-label="Lead Contributor" class="lead-contributor">{{page.lead-contributor|xml_escape}}</td>
|
||||
<td data-label="Idea" class="id"><a href="{{page.url|relative_url}}">{{page.id|xml_escape}}</a></td>
|
||||
<td data-label="Title" class="title">{{page.title|xml_escape}}</td>
|
||||
<td data-label="Category" class="categ">{{page.category|xml_escape}}</td>
|
||||
<td data-label="Success metrics" class="success-metrics">{% if page.success-metrics %}✅ {% else %}❌{% endif %}</td>
|
||||
<td data-label="Exit criteria" class="exit-criteria">{% if page.exit-criteria %}✅{% else %}❌{% endif %}</td>
|
||||
<td data-label="Clear roles" class="clear-roles">{% if page.clear-roles %}✅{% else %}❌{% endif %}</td>
|
||||
<td data-label="Future iterations?" class="future-iterations">{% if page.future-iterations %}✅{% else %}❌{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
|
|
@ -19,16 +19,16 @@
|
|||
{% if count > 0 %}
|
||||
<tr>
|
||||
|
||||
<td class="idea">
|
||||
<td data-label="Idea" class="idea">
|
||||
<a href="{{page.url|relative_url}}">{{page.id|xml_escape}}</a>
|
||||
</td>
|
||||
<td class="role-needed">
|
||||
<td data-label="Looking for" class="role-needed">
|
||||
{% for role in page.roles-needed %}
|
||||
{{ role }}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td class="status"> {{ page.status }} </td>
|
||||
<td class="okr">
|
||||
<td data-label="Idea Status" class="status"> {{ page.status }} </td>
|
||||
<td data-label="OKRs" class="okr">
|
||||
{% for okr in page.okrs %}
|
||||
{{ okr }}<br>
|
||||
{% endfor %}
|
||||
|
@ -54,8 +54,8 @@
|
|||
{% assign ideas = include.ideas|where:"status","Active" %}
|
||||
|
||||
<tr>
|
||||
<td class="contributor">{{contributor|xml_escape}}</td>
|
||||
<td class="ideas">
|
||||
<td data-label="Contributor" class="contributor">{{contributor|xml_escape}}</td>
|
||||
<td data-label="Ideas" class="ideas">
|
||||
{% for page in ideas %}
|
||||
{% if page.contributors contains contributor %}
|
||||
<a href="{{page.url|relative_url}}">{{page.id|xml_escape}}</a>
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
---
|
||||
|
||||
@import "minima";
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
table {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
table caption {
|
||||
font-size: 1.3em;
|
||||
}
|
||||
|
||||
table thead {
|
||||
border: none;
|
||||
clip: rect(0 0 0 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
table tr {
|
||||
border-bottom: 3px solid #ddd;
|
||||
display: block;
|
||||
margin-bottom: .625em;
|
||||
}
|
||||
|
||||
table td {
|
||||
border-bottom: 1px solid #ddd;
|
||||
display: block;
|
||||
font-size: .9em;
|
||||
font-weight: bold;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table td::before {
|
||||
content: attr(data-label);
|
||||
float: left;
|
||||
font-weight: lighter;
|
||||
font-size: 0.7em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
table td:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue