summaryrefslogtreecommitdiffstats
path: root/apps/theming/css/theming.scss
blob: 22e3bdc0d955de2746998d8657e75e71f1bd55e0 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
.nc-theming-main-background {
	background-color: $color-primary;
}

.nc-theming-main-text {
	color: $color-primary-text;
}

.nc-theming-contrast {
	color: $color-primary-text;
}

/* invert header icons on bright background */
@if (lightness($color-primary) > 55) {
	.searchbox input[type="search"] {
		background: transparent url('../../../core/img/actions/search.svg') no-repeat 6px center;
	}
	#appmenu li a img {
		-webkit-filter: invert(1);
		filter: invert(1);
		filter: progid:DXImageTransform.Microsoft.BasicImage(invert='1');
	}
	#contactsmenu .icon-contacts {
		background-image: url('../../../core/img/places/contacts-dark.svg');
	}
	#settings .icon-settings-white {
		background-image: url('../../../core/img/actions/settings-dark.svg');
	}
	#appmenu .icon-more-white {
		background-image: url('../../../core/img/actions/more.svg');
	}
}

/* Colorized svg images */
.icon-file, .icon-filetype-text {
	background-image: url(./img/core/filetypes/text.svg?v=#{$theming-cachebuster});
}

.icon-folder, .icon-filetype-folder {
	background-image: url(./img/core/filetypes/folder.svg?v=#{$theming-cachebuster});
}

.icon-filetype-folder-drag-accept {
	background-image: url(./img/core/filetypes/folder-drag-accept.svg?v=#{$theming-cachebuster}) !important;
}

/* override styles for login screen in guest.css */
#header .logo {
	background-image: url(#{$image-logo});
	@if $theming-logo-mime != '' {
		background-size: contain;
	}
}

#body-login,
#firstrunwizard .firstrunwizard-header,
#theming-preview {
	background-image: url(#{$image-login-background});
	background-color: $color-primary;
}

input.primary {
	background-color: $color-primary;
	color: $color-primary-text;
}

@if (lightness($color-primary) > 50) {
	#body-login #submit-icon.icon-confirm-white {
		background-image: url('../../../core/img/actions/confirm.svg');
	}
}

// plain background color for login page
@if $image-login-plain == 'true' {
	#body-login, #firstrunwizard .firstrunwizard-header, #theming-preview {
		background-image: none !important;
		background-color: $color-primary;
	}
	#body-login {

		a, label, p {
			color: $color-primary-text !important;
		}

		@if (lightness($color-primary) > 50) {
			#submit {
				border-color: nc-darken($color-primary, 20%);
				background-color: nc-darken($color-primary, 20%);
			}
			#submit:hover {
				border-color: nc-darken($color-primary, 10%);
				background-color: nc-darken($color-primary, 10%);
			}
			input[type='checkbox'].checkbox--white + label:before {
				border-color: nc-darken($color-primary, 40%) !important;
			}
			input[type='checkbox'].checkbox--white:not(:disabled):not(:checked) + label:hover:before,
			input[type='checkbox'].checkbox--white:focus + label:before {
				border-color: nc-darken($color-primary, 30%) !important;
			}
			input[type='checkbox'].checkbox--white:checked + label:before {
				border-color: nc-darken($color-primary, 30%) !important;
				background-image: url('../../../core/img/actions/checkbox-mark.svg');
				background-color: nc-darken($color-primary, 30%) !important;
			}
		} @else {
			#submit {
				border-color: nc-lighten($color-primary, 20%);
				background-color: nc-lighten($color-primary, 20%);
			}
			#submit:hover {
				border-color: nc-lighten($color-primary, 10%);
				background-color: nc-lighten($color-primary, 10%);
			}
		}
	}
}

@if ($color-primary == #ffffff) {
	/* show grey border below header */
	#body-user #header,
	#body-settings #header,
	#body-public #header {
		border-bottom: 1px solid #ebebeb;
	}

	/* show triangle in header in grey */
	#appmenu li a.active:before,
	.header-right #settings #expand:before {
		border-bottom-color:#ebebeb;
	}

	/* show border around quota bar in files app */
	.app-files #quota .quota-container {
		border: 1px solid #ebebeb;
	}
}