Skip to content

Commit 01894d5

Browse files
authored
Merge pull request #217 from sophie-h/sophie-h/docs-icon
Replace docs icon with svg variant
2 parents 5d329d6 + c36ce18 commit 01894d5

File tree

4 files changed

+40
-20
lines changed

4 files changed

+40
-20
lines changed

Diff for: _includes/crates.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<table>
1+
<table class="crates">
22
<thead>
33
<tr><th>Project</th><th colspan="2">Crate</th><th>Docs</th></tr>
44
</thead>
@@ -17,7 +17,9 @@
1717
v{{crate.max_version}}
1818
</td>
1919
<td class="docs">
20-
<a href="/{{crate.repo}}/stable/latest/docs/{{ crate.name | replace: "-rs", "" }}">🕮</a>
20+
<a href="/{{crate.repo}}/stable/latest/docs/{{ crate.name | replace: "-rs", "" }}">
21+
{% include docs.svg %}
22+
</a>
2123
</td>
2224
</tr>
2325
{% endfor %}

Diff for: _includes/docs.svg

+5
Loading

Diff for: _sass/_base.scss

-18
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ table {
9292
padding: 0.3em 0.7em;
9393
}
9494

95-
.section {
96-
font-weight: bold;
97-
text-align: right;
98-
}
99-
10095
th {
10196
border-bottom: 1px solid $text-color;
10297
}
@@ -147,19 +142,6 @@ a.badge {
147142
text-decoration: none;
148143
}
149144

150-
td.docs {
151-
text-align: center;
152-
153-
a:hover {
154-
text-decoration: none;
155-
transform: scale(1.3);
156-
transition-property: transform;
157-
transition: 0.2s;
158-
display: inline-block;
159-
}
160-
}
161-
162-
163145
/**
164146
* Blockquotes
165147
*/

Diff for: _sass/_layout.scss

+31
Original file line numberDiff line numberDiff line change
@@ -382,3 +382,34 @@ section.special {
382382
overflow: hidden;
383383
}
384384
}
385+
386+
table.crates {
387+
.section {
388+
font-weight: bold;
389+
text-align: right;
390+
}
391+
392+
td.docs {
393+
text-align: center;
394+
395+
svg {
396+
height: 0.85em;
397+
width: auto;
398+
399+
path {
400+
fill: currentcolor;
401+
}
402+
}
403+
404+
a {
405+
display: inline-block;
406+
}
407+
408+
a:hover {
409+
transform: scale(1.3);
410+
transition-property: transform;
411+
transition: 0.2s;
412+
}
413+
414+
}
415+
}

0 commit comments

Comments
 (0)