Skip to content

Commit ea381f2

Browse files
committed
Auto merge of emberjs#1179 - kpfefferle:toc-hover-wrapping, r=acorncom
Prevent text wrapping on TOC hover animation Resolves emberjs#1174 Old behavior: ![old](https://cloud.githubusercontent.com/assets/250934/12441153/1332bc4a-bf12-11e5-937b-5253f3d7b023.gif) New behavior: ![new](https://cloud.githubusercontent.com/assets/250934/12441158/1aa9e5a2-bf12-11e5-84bf-43c68ae0f86b.gif)
2 parents 3e03772 + b327136 commit ea381f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/stylesheets/components/_sidebar.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ ol.toc-level-1 {
111111

112112
li {
113113
border-left: 3px solid transparent;
114-
transition: border-width $duration;
114+
transition: border-width $duration, margin-right $duration;
115115

116116
&.selected,
117117
&:hover {
@@ -120,6 +120,7 @@ ol.toc-level-1 {
120120

121121
&:hover {
122122
border-left-width: 6px;
123+
margin-right: -3px;
123124
}
124125
}
125126

0 commit comments

Comments
 (0)