header.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. /* prevent ugly selection effect on accidental selection */
  2. #header,
  3. #navigation,
  4. #expanddiv {
  5. -webkit-user-select: none;
  6. -moz-user-select: none;
  7. -ms-user-select: none;
  8. }
  9. /* removed until content-focusing issue is fixed */
  10. #skip-to-content a {
  11. position: absolute;
  12. left: -10000px;
  13. top: auto;
  14. width: 1px;
  15. height: 1px;
  16. overflow: hidden;
  17. }
  18. #skip-to-content a:focus {
  19. left: 76px;
  20. top: -9px;
  21. color: #fff;
  22. width: auto;
  23. height: auto;
  24. }
  25. /* HEADERS ------------------------------------------------------------------ */
  26. #body-user #header,
  27. #body-settings #header,
  28. #body-public #header {
  29. position: fixed;
  30. top: 0;
  31. left: 0;
  32. right: 0;
  33. z-index: 2000;
  34. height: 45px;
  35. line-height: 2.5em;
  36. background-color: #0082c9;
  37. box-sizing: border-box;
  38. }
  39. /* LOGO and APP NAME -------------------------------------------------------- */
  40. #owncloud {
  41. position: absolute;
  42. top: 0;
  43. left: 0;
  44. padding: 5px;
  45. padding-bottom: 0;
  46. height: 45px; /* header height */
  47. box-sizing: border-box;
  48. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  49. opacity: 1;
  50. }
  51. #owncloud:focus {
  52. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  53. opacity: .75;
  54. }
  55. #owncloud:hover,
  56. #owncloud:active {
  57. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  58. opacity: 1;
  59. }
  60. #header .logo {
  61. background-image: url('../img/logo-icon.svg?v=1');
  62. background-repeat: no-repeat;
  63. background-size: 175px;
  64. background-position: center;
  65. width: 252px;
  66. height: 120px;
  67. margin: 0 auto;
  68. }
  69. #header .logo-icon {
  70. /* display logo so appname can be shown next to it */
  71. display: inline-block;
  72. background-image: url('../img/logo-icon.svg?v=1');
  73. background-repeat: no-repeat;
  74. background-position: center center;
  75. width: 62px;
  76. height: 34px;
  77. }
  78. #header .header-appname-container {
  79. display: inline-block;
  80. position: absolute;
  81. left: 70px;
  82. height: 27px;
  83. padding-top: 18px;
  84. padding-right: 10px;
  85. }
  86. /* hover effect for app switcher label */
  87. .header-appname-container .header-appname,
  88. .menutoggle .icon-caret {
  89. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  90. opacity: .75;
  91. }
  92. .menutoggle:hover .header-appname,
  93. .menutoggle:hover .icon-caret,
  94. .menutoggle:focus .header-appname,
  95. .menutoggle:focus .icon-caret,
  96. .menutoggle.active .header-appname,
  97. .menutoggle.active .icon-caret {
  98. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  99. opacity: 1;
  100. }
  101. /* show appname next to logo */
  102. .header-appname {
  103. display: inline-block;
  104. position: relative;
  105. color: #fff;
  106. font-size: 16px;
  107. font-weight: 300;
  108. margin: 0;
  109. margin-top: -24px;
  110. padding: 7px 0 7px 5px;
  111. vertical-align: middle;
  112. }
  113. /* show caret indicator next to logo to make clear it is tappable */
  114. #header .icon-caret {
  115. display: inline-block;
  116. width: 12px;
  117. height: 12px;
  118. margin: 0;
  119. margin-top: -21px;
  120. padding: 0;
  121. vertical-align: middle;
  122. }
  123. /* do not show menu toggle on public share links as there is no menu */
  124. #body-public #header .icon-caret {
  125. display: none;
  126. }
  127. /* NAVIGATION --------------------------------------------------------------- */
  128. #navigation {
  129. position: fixed;
  130. top: 45px;
  131. left: 10px;
  132. width: 265px;
  133. max-height: 85%;
  134. margin-top: 0;
  135. padding-bottom: 10px;
  136. background-color: rgba(255, 255, 255, .97);
  137. box-shadow: 0 1px 10px rgba(50, 50, 50, .7);
  138. border-radius: 3px;
  139. border-top-left-radius: 0;
  140. border-top-right-radius: 0;
  141. display: none;
  142. /*overflow-y: auto;
  143. overflow-x: hidden;*/
  144. z-index: 2000;
  145. }
  146. /* arrow look */
  147. #navigation:after, #expanddiv:after {
  148. bottom: 100%;
  149. border: solid transparent;
  150. content: " ";
  151. height: 0;
  152. width: 0;
  153. position: absolute;
  154. pointer-events: none;
  155. border-color: rgba(0, 0, 0, 0);
  156. border-bottom-color: rgba(255, 255, 255, .97);
  157. border-width: 10px;
  158. margin-left: -10px;
  159. }
  160. /* position of dropdown arrow */
  161. #navigation:after {
  162. left: 47%;
  163. }
  164. #expanddiv:after {
  165. right: 15px;
  166. }
  167. #navigation, #navigation * {
  168. box-sizing:border-box;
  169. }
  170. #navigation li {
  171. display: inline-block;
  172. }
  173. #navigation a {
  174. position: relative;
  175. width: 80px;
  176. height: 80px;
  177. display: inline-block;
  178. text-align: center;
  179. padding: 20px 0;
  180. }
  181. #navigation a span {
  182. display: inline-block;
  183. font-size: 13px;
  184. padding-bottom: 0;
  185. padding-left: 0;
  186. width: 80px;
  187. text-align: center;
  188. color: #000;
  189. white-space:nowrap;
  190. overflow:hidden;
  191. text-overflow:ellipsis;
  192. }
  193. /* icon opacity and hover effect */
  194. #navigation a svg,
  195. #navigation a span {
  196. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  197. opacity: .5;
  198. }
  199. #navigation a:hover svg,
  200. #navigation a:focus svg,
  201. #navigation a:hover span,
  202. #navigation a:focus span,
  203. #navigation a.active svg,
  204. #navigation a.active span,
  205. #apps-management a:hover svg,
  206. #apps-management a:focus svg,
  207. #apps-management a.active svg,
  208. #apps-management a:hover span,
  209. #apps-management a:focus span,
  210. #apps-management a.active span {
  211. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  212. opacity: .75;
  213. }
  214. #navigation .app-icon {
  215. margin: 0 auto;
  216. padding: 0;
  217. max-height: 32px;
  218. max-width: 32px;
  219. }
  220. /* Apps management */
  221. #apps-management {
  222. min-height: initial;
  223. height: initial;
  224. margin: 0;
  225. }
  226. #apps-management a svg,
  227. #apps-management a span {
  228. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
  229. opacity: .3;
  230. }
  231. /* loading feedback for apps */
  232. #navigation .app-loading .icon-loading-dark {
  233. display: inline !important;
  234. position: absolute;
  235. top: 20px;
  236. left: 24px;
  237. width: 32px;
  238. height: 32px;
  239. }
  240. #navigation .app-loading .app-icon {
  241. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  242. opacity: 0;
  243. }
  244. #apps {
  245. max-height: calc(100vh - 100px);
  246. overflow:auto;
  247. }
  248. /* USER MENU -----------------------------------------------------------------*/
  249. /* info part on the right, used e.g. for info on who shared something */
  250. .header-right {
  251. position: absolute;
  252. right: 0;
  253. padding: 7px 5px;
  254. color: #fff;
  255. height: 100%;
  256. max-width: 80%;
  257. white-space: nowrap;
  258. box-sizing: border-box;
  259. }
  260. /* Profile picture in header */
  261. #header .avatardiv {
  262. float: left;
  263. display: inline-block;
  264. margin-right: 8px;
  265. cursor: pointer;
  266. height: 32px;
  267. width: 32px;
  268. }
  269. #header .avatardiv img {
  270. opacity: 1;
  271. cursor: pointer;
  272. }
  273. #settings {
  274. float: right;
  275. color: #ddd;
  276. cursor: pointer;
  277. }
  278. #settings .icon-loading-small-dark {
  279. display: inline-block;
  280. margin-bottom: -3px;
  281. margin-right: 6px;
  282. background-size: 16px 16px;
  283. }
  284. #expand {
  285. display: block;
  286. padding: 7px 30px 6px 10px;
  287. cursor: pointer;
  288. }
  289. #expand * {
  290. cursor: pointer;
  291. }
  292. #expand:hover,
  293. #expand:focus,
  294. #expand:active {
  295. color: #fff;
  296. }
  297. #expand img {
  298. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  299. opacity: .7;
  300. margin-bottom: -2px;
  301. }
  302. #expand:hover img,
  303. #expand:focus img,
  304. #expand:active img {
  305. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  306. opacity: 1;
  307. }
  308. #expand .icon-caret {
  309. margin-top: 0;
  310. }
  311. #expanddiv {
  312. position: absolute;
  313. right: 10px;
  314. top: 45px;
  315. z-index: 2000;
  316. display: none;
  317. background: rgb(255, 255, 255);
  318. border: 1px solid rgb(204, 204, 204);
  319. box-shadow: 0 1px 10px rgba(50, 50, 50, .7);
  320. border-radius: 3px;
  321. border-top-left-radius: 0;
  322. border-top-right-radius: 0;
  323. box-sizing: border-box;
  324. }
  325. #expanddiv:after {
  326. border-color: rgba(0, 0, 0, 0);
  327. border-bottom-color: rgba(255, 255, 255, 1);
  328. }
  329. #expanddiv a {
  330. display: block;
  331. height: 40px;
  332. color: #000;
  333. padding: 4px 12px 0;
  334. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  335. opacity: .5;
  336. box-sizing: border-box;
  337. }
  338. #expanddiv a img {
  339. margin-bottom: -3px;
  340. margin-right: 6px;
  341. }
  342. #expanddiv a:hover,
  343. #expanddiv a:focus,
  344. #expanddiv a:active,
  345. #expanddiv a.active {
  346. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  347. opacity: .75;
  348. }
  349. /* do not show display name when profile picture is present */
  350. #header .avatardiv.avatardiv-shown + #expandDisplayName {
  351. display: none;
  352. }
  353. #header #expand {
  354. display: block;
  355. }