header.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. /* HEADERS ------------------------------------------------------------------ */
  10. #body-user #header,
  11. #body-settings #header,
  12. #body-public #header {
  13. position: fixed;
  14. top: 0;
  15. left: 0;
  16. right: 0;
  17. z-index: 100;
  18. height: 45px;
  19. line-height: 2.5em;
  20. background-color: #1d2d44;
  21. -moz-box-sizing: border-box;
  22. box-sizing: border-box;
  23. }
  24. /* LOGO and APP NAME -------------------------------------------------------- */
  25. #owncloud {
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. padding: 5px;
  30. padding-bottom: 0;
  31. height: 45px; /* header height */
  32. -moz-box-sizing: border-box;
  33. box-sizing: border-box;
  34. }
  35. #header .logo {
  36. background-image: url(../img/logo.svg);
  37. background-repeat: no-repeat;
  38. width: 252px;
  39. height: 120px;
  40. margin: 0 auto;
  41. }
  42. #header .logo-wide {
  43. background-image: url(../img/logo-wide.svg);
  44. background-repeat: no-repeat;
  45. width: 150px;
  46. height: 34px;
  47. }
  48. #header .logo-icon {
  49. /* display logo so appname can be shown next to it */
  50. display: inline-block;
  51. background-image: url(../img/logo-icon.svg);
  52. background-repeat: no-repeat;
  53. width: 62px;
  54. height: 34px;
  55. }
  56. #header .menutoggle {
  57. display: inline-block;
  58. position: absolute;
  59. left: 70px;
  60. height: 27px;
  61. padding-top: 18px;
  62. padding-right: 10px;
  63. }
  64. /* hover effect for app switcher label */
  65. .menutoggle .header-appname,
  66. .menutoggle .icon-caret {
  67. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
  68. filter: alpha(opacity=75);
  69. opacity: .75;
  70. }
  71. .menutoggle:hover .header-appname,
  72. .menutoggle:hover .icon-caret,
  73. .menutoggle:focus .header-appname
  74. .menutoggle:focus .icon-caret
  75. .menutoggle.active .header-appname
  76. .menutoggle.active .icon-caret {
  77. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  78. filter: alpha(opacity=100);
  79. opacity: 1;
  80. }
  81. /* show appname next to logo */
  82. .header-appname {
  83. display: inline-block;
  84. position: relative;
  85. color: #fff;
  86. font-size: 16px;
  87. margin: 0;
  88. margin-top: -24px;
  89. padding: 7px 0 7px 5px;
  90. vertical-align: middle;
  91. }
  92. /* show caret indicator next to logo to make clear it is tappable */
  93. #header .icon-caret {
  94. display: inline-block;
  95. width: 12px;
  96. height: 12px;
  97. margin: 0;
  98. margin-top: -21px;
  99. padding: 0;
  100. vertical-align: middle;
  101. }
  102. /* do not show menu toggle on public share links as there is no menu */
  103. #body-public #header .icon-caret {
  104. display: none;
  105. }
  106. /* NAVIGATION --------------------------------------------------------------- */
  107. #navigation {
  108. position: fixed;
  109. top: 45px;
  110. width: 265px;
  111. max-height: 85%;
  112. margin-top: 0;
  113. padding-bottom: 10px;
  114. background-color: rgba(36, 40, 47, .97);
  115. border-bottom-right-radius: 7px;
  116. box-shadow: 0 0 7px rgba(29,45,68,.97);
  117. display: none;
  118. overflow-y: auto;
  119. overflow-x: hidden;
  120. z-index: 150;
  121. }
  122. #navigation, #navigation * {
  123. -moz-box-sizing:border-box;
  124. box-sizing:border-box;
  125. }
  126. #navigation li {
  127. display: inline-block;
  128. }
  129. #navigation a {
  130. position: relative;
  131. width: 80px;
  132. height: 80px;
  133. display: inline-block;
  134. text-align: center;
  135. padding: 20px 0;
  136. }
  137. #navigation a span {
  138. display: inline-block;
  139. font-size: 13px;
  140. padding-bottom: 0;
  141. padding-left: 0;
  142. width: 80px;
  143. text-align: center;
  144. color: #fff;
  145. white-space:nowrap;
  146. overflow:hidden;
  147. text-overflow:ellipsis;
  148. }
  149. /* icon opacity and hover effect */
  150. #navigation a img,
  151. #navigation a span {
  152. /* 50% opacity when inactive */
  153. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  154. filter: alpha(opacity=50);
  155. opacity: .5;
  156. }
  157. #navigation a:hover img, #navigation a:focus img,
  158. #navigation a:hover span, #navigation a:focus span {
  159. /* 80% opacity when hovered or focused */
  160. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
  161. filter: alpha(opacity=80);
  162. opacity: .8;
  163. }
  164. #navigation a.active img,
  165. #navigation a.active span {
  166. /* full opacity for the active app */
  167. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  168. filter: alpha(opacity=100);
  169. opacity: 1;
  170. }
  171. #navigation .app-icon {
  172. margin: 0 auto;
  173. padding: 0;
  174. max-height: 32px;
  175. max-width: 32px;
  176. }
  177. /* Apps management */
  178. #apps-management {
  179. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
  180. filter: alpha(opacity=60);
  181. opacity: .6;
  182. min-height: initial;
  183. height: initial;
  184. margin: 0;
  185. }
  186. /* loading feedback for apps */
  187. #navigation .app-loading .icon-loading-dark {
  188. display: inline !important;
  189. position: absolute;
  190. top: 20px;
  191. left: 24px;
  192. width: 32px;
  193. height: 32px;
  194. }
  195. #navigation .app-loading .app-icon {
  196. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
  197. filter: alpha(opacity=10);
  198. opacity: .1;
  199. }
  200. /* USER MENU -----------------------------------------------------------------*/
  201. /* info part on the right, used e.g. for info on who shared something */
  202. .header-right {
  203. position: absolute;
  204. right: 0;
  205. padding: 7px 5px;
  206. color: #fff;
  207. height: 100%;
  208. max-width: 80%;
  209. white-space: nowrap;
  210. -moz-box-sizing: border-box;
  211. box-sizing: border-box;
  212. }
  213. /* Profile picture in header */
  214. #header .avatardiv {
  215. float: left;
  216. display: inline-block;
  217. margin-right: 5px;
  218. cursor: pointer;
  219. }
  220. #header .avatardiv img {
  221. opacity: 1;
  222. cursor: pointer;
  223. }
  224. #settings {
  225. float: right;
  226. color: #bbb;
  227. cursor: pointer;
  228. }
  229. #expand {
  230. display: block;
  231. padding: 7px 12px 6px 7px;
  232. cursor: pointer;
  233. }
  234. #expand * {
  235. cursor: pointer;
  236. }
  237. #expand:hover, #expand:focus, #expand:active { color:#fff; }
  238. #expand img { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"; filter:alpha(opacity=70); opacity:.7; margin-bottom:-2px; }
  239. #expand:hover img, #expand:focus img, #expand:active img { -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; filter:alpha(opacity=100); opacity:1; }
  240. #expanddiv {
  241. position: absolute;
  242. right: 0;
  243. top: 45px;
  244. z-index: 150;
  245. display: none;
  246. background-color: #383c43;
  247. border-bottom-left-radius:7px; border-bottom:1px #333 solid; border-left:1px #333 solid;
  248. box-shadow:0 0 7px rgb(29,45,68);
  249. -moz-box-sizing: border-box; box-sizing: border-box;
  250. }
  251. #expanddiv a {
  252. display: block;
  253. height: 40px;
  254. color: #fff;
  255. padding: 4px 12px 0;
  256. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
  257. filter: alpha(opacity=70);
  258. opacity: .7;
  259. -moz-box-sizing: border-box;
  260. box-sizing: border-box;
  261. }
  262. #expanddiv a img {
  263. margin-bottom: -3px;
  264. margin-right: 6px;
  265. }
  266. #expanddiv a:hover, #expanddiv a:focus, #expanddiv a:active {
  267. -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  268. filter: alpha(opacity=100);
  269. opacity: 1;
  270. }