Skip to content

Commit 8a85a96

Browse files
authored
Use monospace font for signatures (#134)
* chore: Set monospace for attr-name and attr-value * Use monospace for method headings ref. https://github.com/rails/sdoc/blob/e26cca7ccbd0a2cd9ee5a9570c20fa193c825d1a/lib/sdoc/helpers.rb#L209-L218
1 parent 155d0cd commit 8a85a96

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/_sass/railsdoc.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ code {
170170
}
171171
}
172172

173+
// FIXME: Wrap method with `code` tag in sdoc
174+
.method {
175+
h3 {
176+
font-family: monospace;
177+
font-size: 1.3rem;
178+
}
179+
}
180+
173181
#content {
174182
$hacky-div-height: 4rem;
175183

@@ -195,6 +203,15 @@ code {
195203

196204
.attr-name {
197205
font-weight: bold;
206+
font-family: monospace;
207+
}
208+
209+
.attr-value {
210+
font-family: monospace;
211+
}
212+
213+
.attr-rw {
214+
font-family: monospace;
198215
}
199216
}
200217

0 commit comments

Comments
 (0)