header.css 7.0 KB

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