summaryrefslogtreecommitdiffstats
path: root/skins/vector/components/collapsibleNav.less
blob: e6f5c9aa06917b9cadbb9b27cc35ec10e9a68d1a (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
/**
 * LESS Stylesheet for collapsible nav
 */
@import "mediawiki.mixins.less";

#mw-panel.collapsible-nav {
	.portal {
		background-position: left top;
		background-repeat: no-repeat;
		.background-image('images/portal-break.png');
		padding: 0.25em 0 !important;
		margin: -11px 9px 10px 11px;

		h3 {
			font-size: @menu-main-heading-font-size;
			color: @collapsible-nav-heading-color;
			font-weight: normal;
			background-position: left center;
			background-repeat: no-repeat;
			.background-image-svg('images/arrow-expanded.svg', 'images/arrow-expanded.png');
			padding: @collapsible-nav-heading-padding;
			margin-bottom: 0;

			&:hover {
				cursor: pointer;
				text-decoration: none;
			}

			a {
				color: @collapsible-nav-heading-color;
				text-decoration: none;
			}
		}

		.body {
			margin: @collapsible-nav-body-margin;
			background-image: none !important;
			padding-top: 0;
			display: none;

			ul {
				li {
					padding: 0.25em 0;
				}
			}
		}


		/* First */
		&.first {
			background-image: none;
			margin-top: 0;
			h3 {
				display: none;
			}
		}

		/* Persistent */
		&.persistent {
			.body {
				display: block;
				margin-left: 0.5em;
			}

			h3 {
				background-image: none !important;
				padding-left: 0.7em;
				cursor: default;
			}
		}

		/* Collapsed */
		&.collapsed {
			h3 {
				color: @collapsible-nav-heading-collapsed-color;
				background-position: left center;
				background-repeat: no-repeat;
				.background-image-svg('images/arrow-collapsed-ltr.svg', 'images/arrow-collapsed-ltr.png');
				margin-bottom: 0;

				&:hover {
					text-decoration: underline;
				}

				a {
					color: @collapsible-nav-heading-collapsed-color;
				}
			}
		}
	}
}