forked from wikimedia-gadgets/shortdesc-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Shortdesc-helper.css
executable file
·110 lines (90 loc) · 2.33 KB
/
Shortdesc-helper.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
/* _____________________________________________________________________________
* | |
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
* |_____________________________________________________________________________|
*
*/
/* v3.5.3 */
/* Stylings for missing description and links to wikidata */
.sdh-missing-description {
color: DarkRed; /* Using DarkRed rather than previous Red to meet WCAG AA */
}
.sdh-wikidata-description a {
color: MediumVioletRed; /* Using MediumVioletRed rather than previous HotPink to meet WCAG AA */
}
.sdh-ve-hidden {
display: none;
}
/**
* Interestingly, Vector's stylesheet makes <a> elements without href have a pointer automatically
* This is for other skins.
*/
.sdh-clicky a {
cursor: pointer;
}
.sdh-clicky-disabled a {
pointer-events: none;
}
/* Brackets and seperators for clickies */
.sdh-clicky + .sdh-clicky::before {
content: ' · ';
}
.sdh-clickies::before {
content: ' (';
}
.sdh-clickies::after {
content: ')';
}
/* Used to hide display of description when switching to editing box */
.sdh-showdescrip-hidden {
display: none;
}
/* Styling for editing bar */
#sdh-editbox {
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
}
/* Make things flex to allow description input box size to be set exactly, and everything else to look good. */
#sdh .oo-ui-fieldLayout-field {
display: flex;
align-items: center;
}
#sdh-descriptionbox {
margin-right: 0;
}
/* Styling for processing animation */
@keyframes wave {
0% { transform: translateY( 0 ); }
20% { transform: translateY( -0.25em ); }
40% { transform: translateY( 0 ); }
100% { transform: translateY( 0 ); }
}
.sdh-processing {
display: inline-block;
margin-left: 0.5em;
}
.sdh-processing-dot {
display: inline-block;
animation: wave 1s ease-out infinite;
}
.sdh-processing-dot-1 {
animation-delay: 200ms;
}
.sdh-processing-dot-2 {
animation-delay: 400ms;
}
.sdh-processing-dot-3 {
animation-delay: 600ms;
}
/* Styling for character counter based on length */
.sdh-too-long {
color: #d43900;
}
.sdh-very-long {
color: #e00000;
font-weight: bold;
}