header.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. @charset "UTF-8";
  2. /**
  3. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)
  4. *
  5. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  6. *
  7. * @license GNU AGPL version 3 or any later version
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License as
  11. * published by the Free Software Foundation, either version 3 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. /**
  24. * @copyright Copyright (c) 2016, John Molakvoæ <skjnldsv@protonmail.com>
  25. * @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
  26. * @copyright Copyright (c) 2016, Lukas Reschke <lukas@statuscode.ch>
  27. * @copyright Copyright (c) 2016, Jos Poortvliet <jos@opensuse.org>
  28. * @copyright Copyright (c) 2016, Erik Pellikka <erik@pellikka.org>
  29. * @copyright Copyright (c) 2016, jowi <sjw@gmx.ch>
  30. * @copyright Copyright (c) 2015, Hendrik Leppelsack <hendrik@leppelsack.de>
  31. * @copyright Copyright (c) 2015, Volker E <volker.e@temporaer.net>
  32. * @copyright Copyright (c) 2014-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
  33. *
  34. * @license GNU AGPL version 3 or any later version
  35. *
  36. */
  37. /* prevent ugly selection effect on accidental selection */
  38. #header,
  39. #expanddiv {
  40. -webkit-user-select: none;
  41. -moz-user-select: none;
  42. -ms-user-select: none;
  43. }
  44. #header a:not(.button):focus-visible, #header button:not(.button-vue):focus-visible, #header div[role=button]:focus-visible,
  45. #expanddiv a:not(.button):focus-visible,
  46. #expanddiv button:not(.button-vue):focus-visible,
  47. #expanddiv div[role=button]:focus-visible {
  48. outline: none;
  49. }
  50. #header a:not(.button):focus-visible::after, #header .button-vue:focus-visible::after, #header div[role=button]:focus-visible::after,
  51. #expanddiv a:not(.button):focus-visible::after,
  52. #expanddiv .button-vue:focus-visible::after,
  53. #expanddiv div[role=button]:focus-visible::after {
  54. content: " ";
  55. position: absolute;
  56. transform: translateX(-50%);
  57. width: 12px;
  58. height: 2px;
  59. border-radius: 3px;
  60. background-color: var(--color-primary-text);
  61. left: 50%;
  62. opacity: 1;
  63. }
  64. #header a:not(.button):focus-visible::after, #header .button-vue:focus-visible::after,
  65. #expanddiv a:not(.button):focus-visible::after,
  66. #expanddiv .button-vue:focus-visible::after {
  67. bottom: 2px;
  68. }
  69. #header .header-right a:not(.button):focus-visible::after, #header .header-right div[role=button]:focus-visible::after,
  70. #expanddiv .header-right a:not(.button):focus-visible::after,
  71. #expanddiv .header-right div[role=button]:focus-visible::after {
  72. bottom: 4px;
  73. }
  74. #header .header-right #expand.menutoggle:focus-visible::after,
  75. #expanddiv .header-right #expand.menutoggle:focus-visible::after {
  76. left: 40%;
  77. }
  78. /* HEADERS ------------------------------------------------------------------ */
  79. #body-user #header,
  80. #body-settings #header,
  81. #body-public #header {
  82. display: inline-flex;
  83. position: absolute;
  84. top: 0;
  85. width: 100%;
  86. z-index: 2000;
  87. height: 50px;
  88. box-sizing: border-box;
  89. justify-content: space-between;
  90. }
  91. /* LOGO and APP NAME -------------------------------------------------------- */
  92. #nextcloud {
  93. padding: 5px 0;
  94. padding-left: 86px;
  95. position: relative;
  96. height: calc(100% - 4px);
  97. box-sizing: border-box;
  98. opacity: 1;
  99. align-items: center;
  100. display: flex;
  101. flex-wrap: wrap;
  102. overflow: hidden;
  103. margin: 2px;
  104. }
  105. #nextcloud:hover, #nextcloud:active {
  106. opacity: 1;
  107. }
  108. #header {
  109. /* Header menu */
  110. /* Right header standard */
  111. }
  112. #header .header-right > div > .menu {
  113. background-color: var(--color-main-background);
  114. filter: drop-shadow(0 1px 5px var(--color-box-shadow));
  115. border-radius: var(--border-radius-large);
  116. box-sizing: border-box;
  117. z-index: 2000;
  118. position: absolute;
  119. max-width: 350px;
  120. min-height: 66px;
  121. max-height: calc(100vh - 50px - 8px);
  122. right: 8px;
  123. top: 50px;
  124. margin: 0;
  125. overflow-y: auto;
  126. /* Dropdown arrow */
  127. }
  128. #header .header-right > div > .menu:not(.popovermenu) {
  129. display: none;
  130. }
  131. #header .header-right > div > .menu:after {
  132. border: 10px solid transparent;
  133. border-bottom-color: var(--color-main-background);
  134. bottom: 100%;
  135. content: " ";
  136. height: 0;
  137. width: 0;
  138. position: absolute;
  139. pointer-events: none;
  140. right: 10px;
  141. }
  142. #header .header-right > div > .menu > div, #header .header-right > div > .menu > ul {
  143. -webkit-overflow-scrolling: touch;
  144. min-height: 66px;
  145. max-height: calc(100vh - 50px - 8px);
  146. }
  147. #header .logo {
  148. display: inline-flex;
  149. background-image: var(--image-logoheader, var(--image-logo, url("../img/logo/logo.svg")));
  150. background-repeat: no-repeat;
  151. background-size: contain;
  152. background-position: center;
  153. width: 62px;
  154. position: absolute;
  155. left: 12px;
  156. top: 1px;
  157. bottom: 1px;
  158. filter: var(--image-logoheader-custom, var(--background-image-invert-if-bright));
  159. }
  160. #header .header-appname-container {
  161. display: none;
  162. padding-right: 10px;
  163. flex-shrink: 0;
  164. }
  165. #header #header-left, #header .header-left,
  166. #header #header-right, #header .header-right {
  167. display: inline-flex;
  168. align-items: center;
  169. }
  170. #header #header-left, #header .header-left {
  171. flex: 1 0;
  172. white-space: nowrap;
  173. min-width: 0;
  174. }
  175. #header #header-right, #header .header-right {
  176. justify-content: flex-end;
  177. flex-shrink: 1;
  178. }
  179. #header .header-right > div,
  180. #header .header-right > form {
  181. height: 100%;
  182. position: relative;
  183. }
  184. #header .header-right > div > .menutoggle,
  185. #header .header-right > form > .menutoggle {
  186. display: flex;
  187. justify-content: center;
  188. align-items: center;
  189. width: 50px;
  190. height: 44px;
  191. cursor: pointer;
  192. opacity: 0.85;
  193. padding: 0;
  194. margin: 2px 0;
  195. }
  196. #header .header-right > div > .menutoggle:focus,
  197. #header .header-right > form > .menutoggle:focus {
  198. opacity: 1;
  199. }
  200. #header .header-right > div > .menutoggle:focus-visible,
  201. #header .header-right > form > .menutoggle:focus-visible {
  202. outline: none;
  203. }
  204. /* hover effect for app switcher label */
  205. .header-appname-container .header-appname {
  206. opacity: 0.75;
  207. }
  208. /* TODO: move into minimal css file for public shared template */
  209. /* only used for public share pages now as we have the app icons when logged in */
  210. .header-appname {
  211. color: var(--color-primary-text);
  212. font-size: 16px;
  213. font-weight: bold;
  214. margin: 0;
  215. padding: 0;
  216. padding-right: 5px;
  217. overflow: hidden;
  218. text-overflow: ellipsis;
  219. flex: 1 1 100%;
  220. }
  221. .header-shared-by {
  222. color: var(--color-primary-text);
  223. position: relative;
  224. font-weight: 300;
  225. font-size: 11px;
  226. line-height: 11px;
  227. overflow: hidden;
  228. text-overflow: ellipsis;
  229. }
  230. /* Skip navigation links – show only on keyboard focus */
  231. #skip-actions {
  232. position: absolute;
  233. overflow: hidden;
  234. z-index: 9999;
  235. top: -999px;
  236. left: 3px;
  237. height: 50px;
  238. padding: 11px;
  239. }
  240. #skip-actions:focus-within {
  241. top: 50px;
  242. }
  243. /* Empty content messages in the header e.g. notifications, contacts menu, … */
  244. header #emptycontent h2,
  245. header .emptycontent h2 {
  246. font-weight: normal;
  247. font-size: 16px;
  248. }
  249. header #emptycontent [class^=icon-],
  250. header #emptycontent [class*=icon-],
  251. header .emptycontent [class^=icon-],
  252. header .emptycontent [class*=icon-] {
  253. background-size: 48px;
  254. height: 48px;
  255. width: 48px;
  256. }
  257. /*# sourceMappingURL=header.css.map */