header.css 7.0 KB

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