summaryrefslogtreecommitdiff
blob: 50a8bdfcaa82dd1d9cf8833b7d5d420cd8d0f115 (plain)
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
@import 'mediawiki.ui/variables.less';

.mw-pt-languages {
	background-color: #f8f9fa;
	display: table;
	border: 1px solid #a2a9b1;
	box-sizing: border-box;
	line-height: 1.2;
	width: 100%;
	clear: both;
	overflow: auto;
}

/* Visually merge languages box border into translate box where available */
.mw-pt-translate-header ~ .mw-parser-output .mw-pt-languages {
	margin-top: -1px;
}

.mw-pt-languages-label {
	background-color: #eaecf0;
	padding: 0.5em;
	font-weight: bold;
	white-space: nowrap;
}

/* Increased specificity to override .mw-content-(rtl|ltr) ul { padding: 0; } */
.mw-pt-languages .mw-pt-languages-list {
	padding: 0.5em;
}

.mw-pt-languages-list {
	li {
		display: inline-block;
		margin: 0;
	}

	li:after {
		content: '@{msg-tpt-languages-separator}';
	}

	li:last-child:after {
		content: none;
	}
}

.mw-pt-languages-selected,
.mw-pt-languages-ui {
	font-weight: bold;
}

.mw-pt-progress {
	padding-right: 11px;
	background: transparent right center no-repeat;
	background-size: 9px 9px;
}

/* Need very high specificity to override skin styles in the sidebar */
#mw-panel .portal .body .mw-pt-progress--none a,
.interwiki-x-pagetranslation.mw-pt-progress--none a {
	color: #ba0000;
}

#mw-panel .portal .body .mw-pt-progress--none a:visited,
.interwiki-x-pagetranslation.mw-pt-progress--none a:visited {
	color: #a55858;
}

.mw-pt-progress--stub {
	background-image: url( ../images/prog-1.png );
}

.mw-pt-progress--low {
	background-image: url( ../images/prog-2.png );
}

.mw-pt-progress--med {
	background-image: url( ../images/prog-3.png );
}

.mw-pt-progress--high {
	background-image: url( ../images/prog-4.png );
}

.mw-pt-progress--complete {
	background-image: url( ../images/prog-5.png );
}

@media screen and ( min-width: @width-breakpoint-tablet ) {
	.mw-pt-languages-label {
		display: table-cell;
		/* Given `white-space: nowrap` above, label never shrinks underneath textual content. */
		width: 1%;
	}

	.mw-pt-languages-list {
		display: table-cell;
	}
}