Skip to content

Commit b82068d

Browse files
committed
add animation on content width change
1 parent e82d4b5 commit b82068d

File tree

1 file changed

+7
-0
lines changed
  • scaladoc/resources/dotty_res/styles/theme/layout

1 file changed

+7
-0
lines changed

scaladoc/resources/dotty_res/styles/theme/layout/content.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
overflow: hidden;
1515
}
1616

17+
#content.sidebar-shown {
18+
-webkit-transition: width 0.3s ease-in-out;
19+
-moz-transition: width 0.3s ease-in-out;
20+
-o-transition: width 0.3s ease-in-out;
21+
transition: width 0.3s ease-in-out;
22+
}
23+
1724
@media (min-width: 1920px) {
1825
#content {
1926
width: calc(90 * var(--base-spacing));

0 commit comments

Comments
 (0)