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
11 changes: 11 additions & 0 deletions less/puppetdocs.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ b, strong {
font-weight: @font-weight-bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
& strong {
color: @brand-amber;
}
}

a {
font-weight: @font-weight-medium;
}
Expand Down
8 changes: 8 additions & 0 deletions less/type.less
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ ol {
}
}

// Re-align ol items to match ul items.
ol {
padding-left: 2rem;
li {
padding-left: 0.5rem;
}
}

// List options

// Unstyled keeps list items block level, just removes default browser padding and list-style
Expand Down
2 changes: 1 addition & 1 deletion less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@font-size-large: (@font-size-base * 1.25); // ~22px
@font-size-small: (@font-size-base * 0.836364); // ~14.72px

@font-size-h1: (@font-size-base * 2.6); // ~46px
@font-size-h1: (@font-size-base * 2.9); // ~51px
@font-size-h2: (@font-size-base * 2.15); // ~38px
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to make H2-H4 smaller, and more differentiated, rather than increasing the size of the H1? These fonts are all rather huge. With a longish title, the H2s extend to two or sometimes three lines, like here: https://docs.puppet.com/pe/latest/release_notes_known_issues_console.html. It's also difficult to distinguish between H2 and H3, like here: https://docs.puppet.com/pe/latest/install_agents.html. You have to really be paying attention to font size to recognize that the H3s are children. Because we don't use indenting to indicate document structure, it seems important that the heading levels are very clearly distinguishable.

@font-size-h3: (@font-size-base * 1.7); // ~30px
@font-size-h4: (@font-size-base * 1.25); // ~22px
Expand Down