summaryrefslogtreecommitdiffstats
path: root/core/css/mobile.scss
blob: 646fb65474c5fe01355e045aee437fbf1614a47c (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
@media only screen and (max-width: 768px) {

	/* position share dropdown */
	#dropdown {
		margin-right: 10% !important;
		width: 80% !important;
	}

	/* fix name autocomplete not showing on mobile */
	.ui-autocomplete {
		z-index: 1000 !important;
	}

	/* fix error display on smaller screens */
	.error-wide {
		width: 100%;
		margin-left: 0 !important;
		box-sizing: border-box;
	}

	/* APP SIDEBAR TOGGLE and SWIPE ----------------------------------------------*/
	#app-navigation {
		transform: translateX(-250px);
	}
	.snapjs-left {
		#app-navigation {
			transform: translateX(0);
		}
	}

	#app-content {
		margin-left: 0;
	}


	/* full width for message list on mobile */
	.app-content-list {
		width: 100%;
		background: var(--color-main-background);
		position: relative;
		z-index: 100;
	}
	
	/* since list and content are only displayed full window size
	 * we don't ant inner scrolling
	 */
	#app-content-wrapper {
		.app-content-list,
		.app-content-detail {
			max-height: unset;
		}
	}

	/* Show app details page */
	#app-content.showdetails {
		#app-navigation-toggle {
			transform: translateX(-44px);
		}
		#app-navigation-toggle-back {
			position: fixed;
			display: inline-block !important;
			top: 45px;
			left: 0;
			width: 44px;
			height: 44px;
			z-index: 149;
			background-color: rgba(255, 255, 255, .7);
			cursor: pointer;
			opacity: .6;
			transform: rotate(90deg);
		}
		.app-content-list {
			transform: translateX(-100%);
		}

	/* end of media query */
}
	/* allow horizontal scrollbar in settings
	otherwise user management is not usable on mobile */
	#body-settings #app-content {
		overflow-x: auto !important;
	}

	#app-navigation-toggle {
		position: fixed;
		display: inline-block !important;
		top: 50px;
		left: 0;
		width: 44px;
		height: 44px;
		z-index: 149;
		background-color: var(--color-main-background-darker);
		cursor: pointer;
		opacity: 0.6;
	}
	#app-navigation-toggle:hover,
	#app-navigation-toggle:focus {
		opacity: 1;
	}

	/* position controls for apps with app-navigation */
	#app-navigation + #app-content #controls {
		padding-left: 44px;
	}

	/* .viewer-mode is when text editor, PDF viewer, etc is open */
	#body-user .app-files.viewer-mode #controls {
		padding-left: 0 !important;
	}
	.app-files.viewer-mode #app-navigation-toggle {
		display: none !important;
	}

	table.multiselect thead {
		left: 0 !important;
	}

	/* prevent overflow in user management controls bar */
	#usersearchform {
		display: none;
	}
	#body-settings #controls {
		min-width: 768px !important;
	}

	/* do not show dates in filepicker */
	#oc-dialog-filepicker-content .filelist .filesize,
	#oc-dialog-filepicker-content .filelist .date {
		display: none;
	}
	#oc-dialog-filepicker-content .filelist .filename {
		max-width: 80%;
	}

	/* fix controls bar jumping when navigation is slid out */
	.snapjs-left #app-navigation-toggle,
	.snapjs-left #controls {
		top: 0;
	}
	.snapjs-left table.multiselect thead {
		top: 44px;
	}

	/* end of media query */
}

@media only screen and (max-width: 480px) {
	#header .header-right .menu {
		max-width: calc(100vw - 10px);
		position: fixed;
		&::after {
			display: none !important;
		}
	}
	/* Arrow directly child of menutoggle */
	#header .header-right > div {
		&.openedMenu {
			&::after {
				display: block;
			}
		}
		&::after {
			border: 10px solid transparent;
			border-bottom-color: var(--color-main-background);
			bottom: 0;
			content: ' ';
			height: 0;
			width: 0;
			position: absolute;
			pointer-events: none;
			right: 15px;
			z-index: 2001;
			display: none;
		}

		/* settings need a different offset, since they have a right padding */
		&#settings::after {
			right: 27px;
		}
	}
}