summaryrefslogtreecommitdiffstats
path: root/core/css/apps.scss
blob: 898a18ae9c98d0d6b1870125448191fd9032ce5e (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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
/**
 * @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
 * @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
 * @copyright Copyright (c) 2016, Morris Jobke <hey@morrisjobke.de>
 * @copyright Copyright (c) 2016, pgys <info@pexlab.space>
 * @copyright Copyright (c) 2016, Lukas Reschke <lukas@statuscode.ch>
 * @copyright Copyright (c) 2016, Stefan Weil <sw@weilnetz.de>
 * @copyright Copyright (c) 2016, Roeland Jago Douma <rullzer@owncloud.com>
 * @copyright Copyright (c) 2016, jowi <sjw@gmx.ch>
 * @copyright Copyright (c) 2015, Hendrik Leppelsack <hendrik@leppelsack.de>
 * @copyright Copyright (c) 2015, Thomas Müller <thomas.mueller@tmit.eu>
 * @copyright Copyright (c) 2015, Vincent Petry <pvince81@owncloud.com>
 * @copyright Copyright (c) 2014-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 */

/* HEADING STYLING ---------------------------------------------------------- */

h2 {
	font-size: 20px;
	font-weight: 300;
	margin-bottom: 12px;
	line-height: 140%;
}
h3 {
	font-size: 15px;
	font-weight: 300;
	margin: 12px 0;
}
/* do not use italic typeface style, instead lighter color */
em {
	font-style: normal;
	-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)';
	opacity: .5;
}

/* APP STYLING -------------------------------------------------------------- */

#app {
	height: 100%;
	width: 100%;
	* {
		box-sizing: border-box;
	}
}

/* APP-NAVIGATION ------------------------------------------------------------*/

/* Navigation: folder like structure */

#app-navigation {
	width: 250px;
	height: 100%;
	float: left;
	box-sizing: border-box;
	background-color: $color-main-background;
	padding-bottom: 44px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border-right: 1px solid nc-darken($color-main-background, 8%);
	display: flex;
	flex-direction: column;
	> ul {
		position: relative;
		height: 100%;
		width: inherit;
		overflow: auto;
		box-sizing: border-box;
		> li {
			&:focus,
			&:hover,
			&.active,
			a.selected {
				&,
				> a {
					opacity: 1;
					box-shadow: inset 2px 0 $color-primary;
				}
			}
		}
	}
	li {
		position: relative;
		width: 100%;
		box-sizing: border-box;
	}
	&.without-app-settings {
		padding-bottom: 0;
	}
	.active.with-menu > a,
	.with-counter > a {
		padding-right: 50px;
	}
	.active.with-menu.with-counter > a {
		padding-right: 90px;
	}
	.with-icon a,
	.app-navigation-entry-loading a {
		padding-left: 44px;
		background-size: 16px 16px;
		background-position: 14px center;
		background-repeat: no-repeat;
	}
	li > a {
		display: block;
		width: 100%;
		line-height: 44px;
		min-height: 44px;
		padding: 0 12px;
		overflow: hidden;
		box-sizing: border-box;
		white-space: nowrap;
		text-overflow: ellipsis;
		color: $color-main-text;
		opacity: .57;
	}
	li > a:first-child img {
	    margin-bottom: -3px;
	    margin-right: 11px;
	    width: 16px;
	    margin-left: 2px;
	}
	.collapse {
		display: none;
		/* hide collapse button initially */
	}
	.collapsible {
		> .collapse {
			position: absolute;
			height: 44px;
			width: 44px;
			margin: 0;
			padding: 0;
			background: none;
			background-image: url('../img/actions/triangle-s.svg?v=1');
			background-size: 16px;
			background-repeat: no-repeat;
			background-position: center;
			border: none;
			border-radius: 0;
			outline: none !important;
			box-shadow: none;
		}
		&:hover > a,
		&:focus > a {
			background-image: none;
		}
		&:hover,
		&:focus {
			> .collapse {
				display: block;
			}
		}
		.collapse {
			-webkit-transform: rotate(-90deg);
			-ms-transform: rotate(-90deg);
			transform: rotate(-90deg);
		}
		&.open {
			.collapse {
				-webkit-transform: rotate(0);
				-ms-transform: rotate(0);
				transform: rotate(0);
			}
			background-image: linear-gradient(top, nc-darken($color-main-background, 8%) 0%, nc-darken($color-main-background, 3%) 100%);
			background-image: -webkit-linear-gradient(top, nc-darken($color-main-background, 8%) 0%, nc-darken($color-main-background, 3%) 100%);
			background-image: -ms-linear-gradient(top, nc-darken($color-main-background, 8%) 0%, nc-darken($color-main-background, 3%) 100%);
		}
	}
	> {
		/* Second level nesting for lists */
		ul ul {
			display: none;
			li > a {
				padding-left: 32px;
			}
		}
		.with-icon ul li {
			> a,
			&.app-navigation-entry-loading > a {
				padding-left: 68px;
				background-position: 44px center;
			}
		}
	}
	> ul .collapsible.open {
		&:hover,
		&:focus {
			box-shadow: inset 0 0 3px $color-box-shadow;
		}
		ul {
			display: block;
		}
	}
	/* Deleted entries with undo button */
	.app-navigation-entry-deleted {
		display: inline-block;
		height: 44px;
		width: 100%;
	}
	.app-navigation-entry-deleted-description {
		padding-left: 12px;
		position: relative;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
		display: inline-block;
		width: calc(100% - 49px);
		line-height: 44px;
		float: left;
	}
	.app-navigation-entry-deleted-button {
		margin: 0;
		height: 44px;
		width: 44px;
		line-height: 44px;
		border: 0;
		display: inline-block;
		background-color: transparent;
		opacity: .5;
		&:hover, &:focus {
			opacity: 1;
		}
	}
	/* counter and actions, legacy code */
	.utils {
		position: absolute;
		padding: 7px 7px 0 0;
		right: 0;
		top: 0;
		bottom: 0;
		font-size: 12px;
		button,
		.counter {
			width: 44px;
			height: 44px;
			padding-top: 12px;
		}
	}
	/* drag and drop */
	.drag-and-drop {
		-webkit-transition: padding-bottom 500ms ease 0s;
		transition: padding-bottom 500ms ease 0s;
		padding-bottom: 40px;
	}
	.error {
		color: $color-error;
	}
	.app-navigation-separator {
		border-bottom: 1px solid nc-lighten($color-main-text, 86%);
	}

	/**
	 * App navigation utils, buttons and counters for drop down menu
	 */
	.app-navigation-entry-utils {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 105;
		ul {
			display: flex !important;
			align-items: center;
			justify-content: flex-end;
		}
		li {
			width: 44px !important;
			height: 44px;
		}
	}
	.active > .app-navigation-entry-utils li {
		display: inline-block;
	}
	.app-navigation-entry-utils button {
		height: 100%;
		width: 100%;
		margin: 0;
		box-shadow: none;
	}
	.app-navigation-entry-utils-menu-button {
		button {
			border: 0;
			opacity: .5;
			background-color: transparent;
			background-repeat: no-repeat;
			background-position: center;
			background-image: url('../img/actions/more.svg?v=1');
		}
		&:hover button,
		&:focus button {
			background-color: transparent;
			opacity: 1;
		}
	}
	.app-navigation-entry-utils-counter {
		overflow: hidden;
		text-overflow: hidden;
		text-align: right;
		font-size: 9pt;
		width: 38px;
		line-height: 44px;
		padding: 0 10px;
	}
	.app-navigation-entry-utils ul, .app-navigation-entry-menu ul {
		list-style-type: none;
	}

	/* editing an entry */
	.app-navigation-entry-edit {
		padding-left: 5px;
		padding-right: 5px;
		display: inline-block;
		height: 39px;
		width: 100%;
		input {
			border-bottom-right-radius: 0;
			border-top-right-radius: 0;
			width: calc(100% - 36px);
			padding: 5px;
			margin-right: 0;
			height: 38px;
			float: left;
			border: 1px solid rgba(nc-lighten($color-main-text, 73%), 0.9);
		}
		button,
		input[type='submit'] {
			width: 36px;
			height: 38px;
			float: left;
		}
		.icon-checkmark {
			border-bottom-left-radius: 0;
			border-top-left-radius: 0;
			border-left: 0;
			margin-right: 0;
		}
	}
}

/* APP-CONTENT ---------------------------------------------------------------*/
/* Part where the content will be loaded into */
#app-content {
	position: relative;
	height: 100%;
	overflow-y: auto;
	/* no top border for first settings item */
	> .section:first-child {
		border-top: none;
	}
	&.with-app-sidebar {
		margin-right: 27%;
	}
}

#app-content-wrapper {
	min-width: 100%;
	min-height: 100%;
}

/* APP-SIDEBAR ----------------------------------------------------------------*/

/*
	Sidebar: a sidebar to be used within #app-content
	 have it as first element within app-content in order to shrink other
	 sibling containers properly. Compare Files app for example.
*/
#app-sidebar {
	position: fixed;
	top: 45px;
	right: 0;
	left: auto;
	bottom: 0;
	width: 27%;
	min-width: 300px;
	display: block;
	background: $color-main-background;
	border-left: 1px solid nc-darken($color-main-background, 8%);
	-webkit-transition: margin-right 300ms;
	transition: margin-right 300ms;
	overflow-x: hidden;
	overflow-y: auto;
	visibility: visible;
	z-index: 500;
	&.disappear {
		visibility: hidden;
	}
}

/* APP-SETTINGS ---------------------------------------------------------------*/

/* settings area */
#app-settings {
	position: fixed;
	width: 250px;
	/* change to 100% when layout positions are absolute */
	bottom: 0;
	z-index: 140;
	&.open #app-settings-content,
	&.opened #app-settings-content {
		display: block;
	}
}

#app-settings-content {
	display: none;
	padding: 10px;
	background-color: $color-main-background;
	/* restrict height of settings and make scrollable */
	max-height: 300px;
	overflow-y: auto;
	border-right: 1px solid nc-darken($color-main-background, 8%);
	width: 250px;
	box-sizing: border-box;

	/* display input fields at full width */
	input[type='text'] {
		width: 93%;
	}

	.info-text {
		padding: 5px 0 7px 22px;
		color: rgba($color-main-text, .4);
	}
}

#app-settings-header {
	border-right: 1px solid nc-darken($color-main-background, 8%);
	width: 250px;
	box-sizing: border-box;
}

.settings-button {
	display: block;
	height: 44px;
	width: 100%;
	padding: 0;
	margin: 0;
	background-color: $color-main-background;
	background-image: url('../img/actions/settings.svg?v=1');
	background-position: 14px center;
	background-repeat: no-repeat;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	text-align: left;
	padding-left: 42px;
	font-weight: normal;
	&:hover,
	&:focus {
		background-color: $color-main-background;
	}
	&.opened {
		&:hover, &:focus {
			background-color: $color-main-background;
		}
	}
}

/* GENERAL SECTION ---------------------------------------------------------- */
.section {
	display: block;
	padding: 30px;
	color: nc-lighten($color-main-text, 33%);
	margin-bottom: 24px;
	&.hidden {
		display: none !important;
	}
	/* slight position correction of checkboxes and radio buttons */
	input {
		&[type='checkbox'],
		&[type='radio'] {
			vertical-align: -2px;
			margin-right: 4px;
		}
	}
}
.sub-section {
	position: relative;
	margin-top: 10px;
	margin-left: 27px;
	margin-bottom: 10px;
}

.appear {
	opacity: 1;
	-webkit-transition: opacity 500ms ease 0s;
	-moz-transition: opacity 500ms ease 0s;
	-ms-transition: opacity 500ms ease 0s;
	-o-transition: opacity 500ms ease 0s;
	transition: opacity 500ms ease 0s;
	&.transparent {
		opacity: 0;
	}
}

/* DROPDOWN ----------------------------------------------------------------- */
.dropdown {
	background: nc-darken($color-main-background, 8%);
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	box-shadow: 0 1px 1px $color-box-shadow;
	display: block;
	margin-right: 0;
	position: absolute;
	right: 0;
	width: 420px;
	z-index: 500;
	padding: 16px;
}

/* TABS --------------------------------------------------------------------- */
.tabHeaders {
	display: inline-block;
	margin: 15px;
	.tabHeader {
		float: left;
		padding: 5px;
		cursor: pointer;
		color: nc-lighten($color-main-text, 33%);
		margin-bottom: 1px;
		a {
			color: nc-lighten($color-main-text, 33%);
			margin-bottom: 1px;
		}
		&.selected {
			font-weight: 600;
			border-bottom: 1px solid nc-lighten($color-main-text, 20%);
		}
		&:hover {
			border-bottom: 1px solid nc-lighten($color-main-text, 20%);
		}
		&.selected, &:hover {
			margin-bottom: 0px;
			color: $color-main-text;
			a {
				margin-bottom: 0px;
				color: $color-main-text;
			}
		}
	}
}
.tabsContainer {
	clear: left;
	.tab {
		padding: 0 15px 15px;
	}
}

/* POPOVER MENU ------------------------------------------------------------- */
.ie,
.edge {
	.bubble, .bubble:after,
	.popovermenu, .popovermenu:after,
	#app-navigation .app-navigation-entry-menu,
	#app-navigation .app-navigation-entry-menu:after {
		border: 1px solid nc-darken($color-main-background, 8%);
	}
}

.bubble,
.app-navigation-entry-menu,
.popovermenu {
	position: absolute;
	background-color: $color-main-background;
	color: nc-lighten($color-main-text, 20%);
	border-radius: 3px;
	z-index: 110;
	margin: 5px;
	margin-top: -5px;
	right: 0;
	-webkit-filter: drop-shadow(0 0 5px $color-box-shadow);
	-moz-filter: drop-shadow(0 0 5px $color-box-shadow);
	-ms-filter: drop-shadow(0 0 5px $color-box-shadow);
	-o-filter: drop-shadow(0 0 5px $color-box-shadow);
	filter: drop-shadow(0 0 5px $color-box-shadow);
	display: none;

	&:after {
		bottom: 100%;
	 /* Min-width of popover is 36px and arrow width is 20px
		wich leaves us 8px right and 8px left */
		right: 8px;
		/* change this to adjust the arrow position */
		border: solid transparent;
		content: ' ';
		height: 0;
		width: 0;
		position: absolute;
		pointer-events: none;
		border-bottom-color: $color-main-background;
		border-width: 10px;
	}
	/* Center the popover */
	&.menu-center {
		transform: translateX(50%);
		right: 50%;
		margin-right: 0;
		&:after {
			right: 50%;
			transform: translateX(50%);
		}
	}
	/* Align the popover to the left */
	&.menu-left {
		right: auto;
		left: 0;
		margin-right: 0;
		&:after {
			left: 6px;
			right: auto;
		}
	}

	&.open {
		display: block;
	}

	ul {
		/* Overwrite #app-navigation > ul ul */
		display: flex !important;
		flex-direction: column;
	}
	li {
		display: flex;
		> button,
		> a,
		> .menuitem {
			cursor: pointer;
			line-height: 36px;
			border: 0;
			background-color: transparent;
			display: flex;
			align-items: center;
			width: auto;
			height: auto;
			margin: 0;
			font-weight: inherit;
			box-shadow: none;
			/* prevent .action class to break the design */
			&.action {
				padding: inherit !important;
			}
			> span {
				cursor: pointer;
				white-space: nowrap;
			}
			> p {
				width: 150px;
				line-height: 1.6em;
				padding: 8px 0;
			}
			/* Add padding if contains icon+text */
			&:not(:empty) {
				padding: 0 !important;
				padding-right: 10px !important;
			}
			> img {
				width: 16px;
				padding: 0 10px;
			}
		}
		.menuitem {
			-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)' !important;
			filter: alpha(opacity = 50) !important;
			opacity: .5 !important;
			&:hover, &:focus, &.active {
				-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)' !important;
				filter: alpha(opacity = 100) !important;
				opacity: 1 !important;
			}
		}
		[class^='icon-'],
		[class*=' icon-']{
			/* Keep padding to define the width to
			 assure correct position of a possible text */
			padding: 18px 0 18px 36px;
			min-width: 0; /* Overwrite icons*/
			min-height: 0;
			background-position: 10px center;
			opacity: 0.7; /* Default button icon override */
		}
	}
}