Debian Codegraph @

extensions/VisualEditor/lib/ve/src/ui/styles/ve.ui.MobileContext.less

raw
1 /*!
2 * VisualEditor UserInterface MobileContext styles.
3 *
4 * @copyright See AUTHORS.txt
5 */
6
7 @import '../../../lib/codex-design-tokens/theme-wikimedia-ui.less';
8
9 .ve-ui-mobileContext {
10 position: fixed;
11 left: 0;
12 right: 0;
13 bottom: 0;
14 background: @background-color-base;
15 /* Match toolbar border & shadow */
16 border-top: @border-subtle;
17 box-shadow: 0 -1px 1px 0 rgba( 0, 0, 0, 0.1 );
18 /* Transition out faster, as keyboard may be coming up */
19 transition: transform 100ms;
20 transform: translateY( 0% );
21
22 &.ve-ui-context-hidden {
23 display: block;
24 transition: transform 250ms;
25 transform: translateY( 100% );
26 }
27
28 &-menu {
29 position: relative;
30 }
31
32 &-close {
33 position: absolute;
34 right: 0;
35 top: 2px;
36 }
37 }