header.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. -moz-box-sizing: border-box;
  38. box-sizing: border-box;
  39. }
  40. /* LOGO and APP NAME -------------------------------------------------------- */
  41. #owncloud {
  42. position: absolute;
  43. top: 0;
  44. left: 0;
  45. padding: 5px;
  46. padding-bottom: 0;
  47. height: 45px; /* header height */
  48. -moz-box-sizing: border-box;
  49. box-sizing: border-box;
  50. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  51. opacity: 1;
  52. }
  53. #owncloud:focus {
  54. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  55. opacity: .75;
  56. }
  57. #owncloud:hover,
  58. #owncloud:active {
  59. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  60. opacity: 1;
  61. }
  62. #header .logo {
  63. background-image: url(../img/logo.svg);
  64. background-repeat: no-repeat;
  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. margin: 0;
  107. margin-top: -24px;
  108. padding: 7px 0 7px 5px;
  109. vertical-align: middle;
  110. }
  111. /* show caret indicator next to logo to make clear it is tappable */
  112. #header .icon-caret {
  113. display: inline-block;
  114. width: 12px;
  115. height: 12px;
  116. margin: 0;
  117. margin-top: -21px;
  118. padding: 0;
  119. vertical-align: middle;
  120. }
  121. /* do not show menu toggle on public share links as there is no menu */
  122. #body-public #header .icon-caret {
  123. display: none;
  124. }
  125. /* NAVIGATION --------------------------------------------------------------- */
  126. #navigation {
  127. position: fixed;
  128. top: 45px;
  129. left: 10px;
  130. width: 265px;
  131. max-height: 85%;
  132. margin-top: 0;
  133. padding-bottom: 10px;
  134. background-color: rgba(0, 0, 0, .97);
  135. box-shadow: 0 1px 10px rgba(50, 50, 50, .7);
  136. border-radius: 3px;
  137. border-top-left-radius: 0;
  138. border-top-right-radius: 0;
  139. display: none;
  140. /*overflow-y: auto;
  141. overflow-x: hidden;*/
  142. z-index: 2000;
  143. }
  144. /* arrow look */
  145. #navigation:after, #expanddiv:after {
  146. bottom: 100%;
  147. border: solid transparent;
  148. content: " ";
  149. height: 0;
  150. width: 0;
  151. position: absolute;
  152. pointer-events: none;
  153. border-color: rgba(0, 0, 0, 0);
  154. border-bottom-color: rgba(0, 0, 0, .97);
  155. border-width: 10px;
  156. margin-left: -10px;
  157. }
  158. /* position of dropdown arrow */
  159. #navigation:after {
  160. left: 47%;
  161. }
  162. #expanddiv:after {
  163. right: 15px;
  164. }
  165. #navigation, #navigation * {
  166. -moz-box-sizing:border-box;
  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. /* USER MENU -----------------------------------------------------------------*/
  235. /* info part on the right, used e.g. for info on who shared something */
  236. .header-right {
  237. position: absolute;
  238. right: 0;
  239. padding: 7px 5px;
  240. color: #fff;
  241. height: 100%;
  242. max-width: 80%;
  243. white-space: nowrap;
  244. -moz-box-sizing: border-box;
  245. box-sizing: border-box;
  246. }
  247. /* Profile picture in header */
  248. #header .avatardiv {
  249. float: left;
  250. display: inline-block;
  251. margin-right: 8px;
  252. cursor: pointer;
  253. height: 32px;
  254. width: 32px;
  255. }
  256. #header .avatardiv img {
  257. opacity: 1;
  258. cursor: pointer;
  259. }
  260. #settings {
  261. float: right;
  262. color: #bbb;
  263. cursor: pointer;
  264. }
  265. #expand {
  266. display: block;
  267. padding: 7px 30px 6px 22px;
  268. cursor: pointer;
  269. }
  270. #expand * {
  271. cursor: pointer;
  272. }
  273. #expand:hover,
  274. #expand:focus,
  275. #expand:active {
  276. color: #fff;
  277. }
  278. #expand img {
  279. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  280. opacity: .7;
  281. margin-bottom: -2px;
  282. }
  283. #expand:hover img,
  284. #expand:focus img,
  285. #expand:active img {
  286. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  287. opacity: 1;
  288. }
  289. #expanddiv {
  290. position: absolute;
  291. right: 10px;
  292. top: 45px;
  293. z-index: 2000;
  294. display: none;
  295. background-color: rgba(0, 0, 0, .97);
  296. box-shadow: 0 1px 10px rgba(50, 50, 50, .7);
  297. border-radius: 3px;
  298. border-top-left-radius: 0;
  299. border-top-right-radius: 0;
  300. -moz-box-sizing: border-box; box-sizing: border-box;
  301. }
  302. #expanddiv a {
  303. display: block;
  304. height: 40px;
  305. color: #fff;
  306. padding: 4px 12px 0;
  307. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  308. opacity: .7;
  309. -moz-box-sizing: border-box;
  310. box-sizing: border-box;
  311. }
  312. #expanddiv a img {
  313. margin-bottom: -3px;
  314. margin-right: 6px;
  315. }
  316. #expanddiv a:hover,
  317. #expanddiv a:focus,
  318. #expanddiv a:active,
  319. #expanddiv a.active {
  320. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  321. opacity: 1;
  322. }