mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-22 19:12:50 +00:00
8101b6511e
* 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
18 lines
507 B
CSS
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;
|
|
}
|