mediawiki-extensions-Visual.../modules/ve-mw/preinit/styles/ve.init.mw.DesktopArticleTarget.init-wikimediatheme.css
Ed Sanders 8101b6511e Improve smooth scroll to section behaviour
* Append the toolbar before starting the scroll
* If the toolbar is floating set the anchor to full height
  immediately. This shouldn't cause the content to jump down
  due to scroll anchoring:
  (https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-anchor/Guide_to_scroll_anchoring)
  But add our own logic for it for browsers which don't support that.
* Now the browser only has to deal with the scroll animation,
  and not the height animation of the toolbar anchor at the
  same time, making it smoother and less buggy.

Bug: T301773
Change-Id: I61d533d40758d559b03c858e0006ef2e4f0fcd16
2022-02-15 15:23:47 +00:00

18 lines
507 B
CSS

/*!
* VisualEditor MediaWiki DesktopArticleTarget WikimediaUI theme init styles.
*
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder-bar {
height: 42px;
border-bottom: 1px solid #c8ccd1;
box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
}
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder-floating,
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder-open {
height: 42px;
}