-
Notifications
You must be signed in to change notification settings - Fork 40
/
ve.init.mw.DesktopArticleTarget.init.css
126 lines (108 loc) · 3.25 KB
/
ve.init.mw.DesktopArticleTarget.init.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*!
* VisualEditor MediaWiki DesktopArticleTarget init styles.
*
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/* stylelint-disable selector-max-id */
/*!
* State | <html> classes
* - mw.DesktopArticleTarget.init.css is loaded
* Reading | ve-available
* Loading editor | ve-available ve-activated ve-loading
* - mw.DesktopArticleTarget.css is loaded
* Activate editor | ve-available ve-activated ve-loading ve-activating
* Active | ve-available ve-activated ve-active
* Deactivate editor | ve-available ve-deactivating
* Deactivated | ve-available
*/
/* Only hide the #toc inside the original article, not generated ones in VE (T187636) */
.ve-activated .ve-init-mw-desktopArticleTarget-editableContent #toc,
.ve-activated #siteNotice,
.ve-activated .mw-indicators,
.ve-activated #t-print,
.ve-activated #t-permalink,
.ve-activated #p-coll-print_export,
.ve-activated #t-cite,
.ve-deactivating .ve-ui-surface,
.ve-active .ve-init-mw-desktopArticleTarget-editableContent,
.ve-active .ve-init-mw-tempWikitextEditorWidget {
display: none;
}
/* The surface needs to be measurable but not visible while
being setup as some nodes render based on their dimensions,
e.g. ve.ce.FocusableNode#updateInvisibleIcon */
.ve-activating .ve-ui-surface {
height: 0;
padding: 0 !important; /* stylelint-disable-line declaration-no-important */
overflow: hidden;
}
/* While loading, everything except the progress bar */
.ve-loading #content > :not( .ve-init-mw-desktopArticleTarget-loading-overlay ),
/* Once activated, all uneditable content except catlinks */
.ve-activated .ve-init-mw-desktopArticleTarget-uneditableContent {
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
opacity: 0.5;
}
.ve-activated #firstHeading {
/* Override the styles above to allow the heading to be selected, for copy-pasting */
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
pointer-events: auto;
cursor: text;
}
.ve-activated #firstHeading a {
/* Re-disable any gadget-added links inside the heading, e.g. section 0 edit links */
pointer-events: none;
}
.ve-activated #catlinks {
cursor: pointer;
}
.ve-activated #catlinks a {
opacity: 1;
}
.ve-activated #content {
position: relative;
}
/* stylelint-enable selector-max-id */
.ve-init-mw-desktopArticleTarget-loading-overlay {
position: absolute;
top: 1.25em;
left: 0;
right: 0;
z-index: 1;
margin-top: -0.5em;
}
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder {
transition: height 250ms ease;
height: 0;
/* Toolbar placeholder is styled in theme files */
}
/* OOUI may not have loaded yet */
.oo-ui-element-hidden {
display: none !important; /* stylelint-disable-line declaration-no-important */
}
/* Section edit links */
/* stylelint-disable no-descending-specificity */
.mw-editsection {
/* bidi isolation: */
unicode-bidi: -moz-isolate;
unicode-bidi: -webkit-isolate;
unicode-bidi: isolate;
}
.mw-editsection:before {
content: '\200B';
}
.mw-editsection a {
white-space: nowrap;
}
.mw-editsection-divider {
color: #54595d;
}
/* stylelint-enable no-descending-specificity */