Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions _includes/crates.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<table>
<table class="crates">
<thead>
<tr><th>Project</th><th colspan="2">Crate</th><th>Docs</th></tr>
</thead>
Expand All @@ -17,7 +17,9 @@
v{{crate.max_version}}
</td>
<td class="docs">
<a href="/{{crate.repo}}/stable/latest/docs/{{ crate.name | replace: "-rs", "" }}">🕮</a>
<a href="/{{crate.repo}}/stable/latest/docs/{{ crate.name | replace: "-rs", "" }}">
{% include docs.svg %}
</a>
</td>
</tr>
{% endfor %}
Expand Down
5 changes: 5 additions & 0 deletions _includes/docs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 0 additions & 18 deletions _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ table {
padding: 0.3em 0.7em;
}

.section {
font-weight: bold;
text-align: right;
}

th {
border-bottom: 1px solid $text-color;
}
Expand Down Expand Up @@ -147,19 +142,6 @@ a.badge {
text-decoration: none;
}

td.docs {
text-align: center;

a:hover {
text-decoration: none;
transform: scale(1.3);
transition-property: transform;
transition: 0.2s;
display: inline-block;
}
}


/**
* Blockquotes
*/
Expand Down
31 changes: 31 additions & 0 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -382,3 +382,34 @@ section.special {
overflow: hidden;
}
}

table.crates {
.section {
font-weight: bold;
text-align: right;
}

td.docs {
text-align: center;

svg {
height: 0.85em;
width: auto;

path {
fill: currentcolor;
}
}

a {
display: inline-block;
}

a:hover {
transform: scale(1.3);
transition-property: transform;
transition: 0.2s;
}

}
}