Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit bcab20a

Browse files
authored
Fix sidebar icons, Add associated type icon (#145)
* Fix type determination for requirements in HTML output * Add associatedtype icon to CSS * Fix determination of sidebar list item class * Add changelog entries for #145
1 parent 6fe449c commit bcab20a

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

Assets/css/all.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
}
177177

178178
:root {
179+
--icon-associatedtype: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%23ff6682' height='90' rx='8' stroke='%23ff2d55' stroke-miterlimit='10' stroke-width='4' width='90' x='5' y='5'/%3E%3Cpath d='m42 81.71v-50.41h-17.53v-13h51.06v13h-17.53v50.41z' fill='%23fff'/%3E%3C/svg%3E%0A");
179180
--icon-case: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%2389c5e6' height='90' rx='8' stroke='%236bb7e1' stroke-miterlimit='10' stroke-width='4' width='90' x='5' y='5'/%3E%3Cpath d='m20.21 50c0-20.7 11.9-32.79 30.8-32.79 16 0 28.21 10.33 28.7 25.32h-15.52c-.79-7.53-6.1-12.42-13.19-12.42-8.79 0-14.37 7.52-14.37 19.82s5.54 20 14.41 20c7.08 0 12.22-4.66 13.23-12.09h15.52c-.74 15.07-12.43 25-28.78 25-19.01-.03-30.8-12.12-30.8-32.84z' fill='%23fff'/%3E%3C/svg%3E%0A");
180181
--icon-class: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%239b98e6' height='90' rx='8' stroke='%235856d6' stroke-miterlimit='10' stroke-width='4' width='90' x='5' y='5'/%3E%3Cpath d='m20.21 50c0-20.7 11.9-32.79 30.8-32.79 16 0 28.21 10.33 28.7 25.32h-15.52c-.79-7.53-6.1-12.42-13.19-12.42-8.79 0-14.37 7.52-14.37 19.82s5.54 20 14.41 20c7.08 0 12.22-4.66 13.23-12.09h15.52c-.74 15.07-12.43 25-28.78 25-19.01-.03-30.8-12.12-30.8-32.84z' fill='%23fff'/%3E%3C/svg%3E");
181182
--icon-enumeration: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%23eca95b' height='90' rx='8' stroke='%23e89234' stroke-miterlimit='10' stroke-width='4' width='90' x='5.17' y='5'/%3E%3Cpath d='m71.9 81.71h-43.47v-63.42h43.47v13h-27.34v12.62h25.71v11.87h-25.71v12.92h27.34z' fill='%23fff'/%3E%3C/svg%3E%0A");
@@ -1002,6 +1003,11 @@ nav li[class] {
10021003
padding-left: 2.5em;
10031004
}
10041005

1006+
.associatedtype {
1007+
--background-image: var(--icon-associatedtype);
1008+
--link: var(--system-pink);
1009+
}
1010+
10051011
.case,
10061012
.enumeration_case {
10071013
--background-image: var(--icon-case);

Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Added icon for associated type symbols.
13+
#145 by @mattt.
14+
1015
### Changed
1116

1217
- Changed HTML output to show scrollbars only when necessary.
@@ -20,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2025
#144 by @mbrandonw.
2126
- Fixed crash when attempting to generate paths with no base URL specified.
2227
#127 by @mattpolzin, @kareman, and @mattt.
28+
- Fixed display of sidebar icons.
29+
#145 by @mattt.
2330

2431
## [1.0.0-beta.3] - 2020-05-19
2532

0 commit comments

Comments
 (0)