summaryrefslogtreecommitdiffstats
path: root/devtools/client/application/src/components/routing/SidebarItem.css
blob: f1852748ab7f501979d53116f9fee418e703a33b (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
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


/*
 * Sidebar list items
 */

.sidebar-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: var(--base-unit);
  padding: calc(var(--base-unit)) calc(var(--base-unit) * 6);
  user-select: none;
  cursor: pointer;
}

.sidebar-item--selected {
	background-color: var(--theme-selection-background);
	color: var(--theme-selection-color);
}

.sidebar-item:not(.sidebar-item--selected):hover {
	background-color: var(--highlight-color);
}

.sidebar-item__icon {
	height: calc(var(--base-unit) * 4);
	width: calc(var(--base-unit) * 4);
	-moz-context-properties: fill;
	fill: currentColor;
}