aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dashboard/css/dashboard.scss
blob: 9edf00a24206541d4aa2c1f363854bc23a996de8 (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
// Show Dashboard background image beneath header
#body-user #header {
	background-size: cover !important;
	background-position: center 50% !important;
	background-repeat: no-repeat !important;
	background-attachment: fixed !important;
}

#content {
	padding-top: 0 !important;
}

// Hide triangle indicators from navigation since they are out of place without the header bar
#appmenu li a.active::before,
#appmenu li:hover a::before,
#appmenu li:hover a.active::before,
#appmenu li a:focus::before {
	display: none !important;
}

$has-custom-logo: variable_exists('theming-logo-mime') and $theming-logo-mime != '';

body.dashboard-inverted:not(.dashboard-dark) {
	// Do not invert the default logo
	@if ($has-custom-logo == false) {
		$image-logo: url(icon-color-path('logo', 'logo', #ffffff, 1, true));
		#header .logo {
			background-image: $image-logo !important;
			opacity: 1;
		}
	}

	#app-dashboard > h2 {
		color: #fff;
	}
	#appmenu li span {
		color: #fff;
	}
	#appmenu svg image {
		filter: invert(0);
	}
	#appmenu .icon-more-white,
	.header-right > div:not(#settings) > *:first-child {
		filter: invert(1) hue-rotate(180deg);
	}
}

body.dashboard-dark:not(.dashboard-inverted) {
	// invert the default logo
	@if ($has-custom-logo == false) {
		$image-logo: url(icon-color-path('logo', 'logo', #000000, 1, true));
		#header .logo {
			background-image: $image-logo !important;
			opacity: 1;
		}
	}

	#app-dashboard > h2 {
		color: #000;
	}
	#appmenu li span {
		color: #000;
	}
	#appmenu svg {
		filter: invert(1) hue-rotate(180deg) !important;
	}
	#appmenu .icon-more-white,
	.header-right > div:not(#settings) > *:first-child {
		filter: invert(1) hue-rotate(180deg) !important;
	}
}