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

#body-login #header {
	padding-top: 10px;
}

#body-login .wrapper {
	display: -webkit-box;
	-webkit-box-orient: horizontal;
	-webkit-box-pack: center;
	-webkit-box-align: center;

	display: -moz-box;
	-moz-box-orient: horizontal;
	-moz-box-pack: center;
	-moz-box-align: center;

	display: box;
	box-orient: horizontal;
	box-pack: center;
	box-align: center;
}

/* compress search box on mobile, expand when focused */
.searchbox input[type="search"] {
	width: 15%;
	-webkit-transition: width 100ms;
	-moz-transition: width 100ms;
	-o-transition: width 100ms;
	transition: width 100ms;
}
.searchbox input[type="search"]:focus,
.searchbox input[type="search"]:active {
	width: 155px;
	max-width: 50%;
}

/* do not show display name on mobile when profile picture is present */
#header .avatardiv.avatardiv-shown + #expandDisplayName {
	display: none;
}

/* don’t require a minimum width for controls bar */
#controls {
	min-width: initial !important;
}

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


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


/* app sidebar toggle and swipe */
#app-navigation,
#app-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

#app-navigation {
	width: 230px !important;
}

#app-content {
	width: 100% !important;
	left: 0 !important;
	background-color: #fff;
	overflow: hidden;
}

#app-navigation-toggle {
	position: absolute;
	display: inline-block !important;
	top: 0;
	left: 0;
	width: 44px;
	height: 44px;
	z-index: 149;
	background-color: rgba(255, 255, 255, .7);
	cursor: pointer;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
	filter: alpha(opacity=60);
	opacity: .6;
}
#app-navigation-toggle:hover,
#app-navigation-toggle:focus {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	opacity: 1;
}


/* fix controls bar for apps which don't use the standard */
#body-user .app-files #controls,
#user-controls {
	left: 0 !important;
	padding-left: 44px !important;
}
table.multiselect thead {
	left: 0 !important;
}

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



/* end of media query */
}