Skip to content

Commit 4fe673d

Browse files
gkalpakjosephperrott
authored andcommitted
fix(docs-infra): better distinguish wrapped headings from other entries in TOC (angular#39092)
Previously, when a heading was longer than the Table of Content's (TOC) width and it had to be wrapped into multiple lines, it was hard to distinguish the subsequent lines from other TOC entries (i.e. other headings). This commit makes it easier to visually distinguish wrapped heading lines from other headings by reducing the spacing between wrapped lines of the same heading (making it more obvious that they belong together). PR Close angular#39092
1 parent d3bd00b commit 4fe673d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

aio/src/styles/2-modules/_toc.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@
105105

106106
li {
107107
box-sizing: border-box;
108-
@include font-size(12);
109-
@include line-height(16);
110-
padding: 3px 0 3px 12px;
108+
padding: 7px 0 7px 12px;
111109
position: relative;
112110
transition: all 0.3s ease-in-out;
113111

@@ -129,6 +127,7 @@
129127
color: lighten($darkgray, 10);
130128
overflow: visible;
131129
@include font-size(12);
130+
@include line-height(16);
132131
display: table-cell;
133132
}
134133

@@ -168,11 +167,11 @@
168167
}
169168

170169
&:first-child:before {
171-
top: 13px;
170+
top: 15px;
172171
}
173172

174173
&:last-child:before {
175-
bottom: calc(100% - 14px);
174+
bottom: calc(100% - 15px);
176175
}
177176

178177
&:not(.active):hover a:before {

0 commit comments

Comments
 (0)