summaryrefslogtreecommitdiffstats
path: root/skins/vector/special.preferences.less
blob: a9b10065f210647452137c9c8e58aca773cb7cd2 (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
@import "mediawiki.mixins";
@import "variables";

/**
 * The following code is highly modified from monobook. It would be nice if the
 * preftoc id was more human readable like preferences-toc for instance,
 * howerver this would require backporting the other skins.
 */

#preftoc {
	/* Tabs */
	width: 100%;
	float: left;
	clear: both;
	margin: 0 !important;
	padding: 0 !important;
	.background-image('images/preferences/break.png');
	background-position: bottom left;
	background-repeat: no-repeat;

	li {
		/* Tab */
		float: left;
		margin: 0;
		padding: 0;
		padding-right: 1px;
		height: 2.25em;
		white-space: nowrap;
		list-style-type: none;
		list-style-image: none;
		.background-image('images/preferences/break.png');
		background-position: bottom right;
		background-repeat: no-repeat;

		/* Sadly, IE6 won't understand this */
		&:first-child {
			margin-left: 1px;
		}

		&.selected {
			a {
				.background-image('images/preferences/fade.png');
				background-position: bottom;
				background-repeat: repeat-x;
				color: #333;
				text-decoration: none;
			}
		}
	}

	a,
	a:active {
		display: inline-block;
		position: relative;
		color: @menu-link-color;
		padding: 0.5em;
		text-decoration: none;
		background-image: none;
		font-size: 0.9em;
	}

	a:hover,
	a:focus {
		text-decoration: underline;
	}
}

#preferences {
	float: left;
	width: 100%;
	margin: 0;
	margin-top: -2px;
	clear: both;
	border: solid 1px #ccc;
	background-color: #fafafa;

	fieldset {
		border: none;
		border-top: solid 1px #ccc;

		&.prefsection {
			border: none;
			padding: 0;
			margin: 1em;

			legend.mainLegend {
				display: none;
			}
		}
	}

	legend {
		color: #666;
	}

	td {
		padding-left: 0.5em;
		padding-right: 0.5em;
	}

	div.mw-prefs-buttons {
		padding: 1em;

		input {
			margin-right: 0.25em;
		}
	}
}

.htmlform-tip {
	font-size: x-small;
	padding: .2em 2em;
	color: #666;
}