1
0

apps.scss 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444
  1. /**
  2. * @copyright Copyright (c) 2016-2017, John Molakvoæ <skjnldsv@protonmail.com>
  3. * @copyright Copyright (c) 2016, Julius Haertl <jus@bitgrid.net>
  4. * @copyright Copyright (c) 2016, Morris Jobke <hey@morrisjobke.de>
  5. * @copyright Copyright (c) 2016, pgys <info@pexlab.space>
  6. * @copyright Copyright (c) 2016, Lukas Reschke <lukas@statuscode.ch>
  7. * @copyright Copyright (c) 2016, Stefan Weil <sw@weilnetz.de>
  8. * @copyright Copyright (c) 2016, Roeland Jago Douma <rullzer@owncloud.com>
  9. * @copyright Copyright (c) 2016, jowi <sjw@gmx.ch>
  10. * @copyright Copyright (c) 2015, Hendrik Leppelsack <hendrik@leppelsack.de>
  11. * @copyright Copyright (c) 2015, Thomas Müller <thomas.mueller@tmit.eu>
  12. * @copyright Copyright (c) 2015, Vincent Petry <pvince81@owncloud.com>
  13. * @copyright Copyright (c) 2014-2017, Jan-Christoph Borchardt <hey@jancborchardt.net>
  14. *
  15. * @license GNU AGPL version 3 or any later version
  16. *
  17. */
  18. @use 'variables';
  19. @use 'sass:math';
  20. @import 'functions';
  21. :root {
  22. /* - 2px is required for making it look nice */
  23. --border-radius-rounded: calc(var(--default-clickable-area) / 2 + var(--default-grid-baseline) * 2 - 2px);
  24. --body-container-radius: var(--border-radius-rounded);
  25. --body-container-margin: calc(var(--default-grid-baseline) * 2);
  26. --body-height: calc(100% - env(safe-area-inset-bottom) - 50px - var(--body-container-margin));
  27. }
  28. @media screen and (max-width: variables.$breakpoint-mobile) {
  29. :root {
  30. --body-container-margin: 0px;
  31. --body-container-radius: 0px;
  32. }
  33. }
  34. html {
  35. width: 100%;
  36. height: 100%;
  37. position: absolute;
  38. // color-background-plain should always be defined. It is the primary user colour
  39. background-color: var(--color-background-plain, var(--color-main-background));
  40. }
  41. body {
  42. // color-background-plain should always be defined. It is the primary user colour
  43. background-color: var(--color-background-plain, var(--color-main-background));
  44. // user background, or plain colour and finally default admin background
  45. background-image: var(--image-background, var(--image-background-plain, var(--image-background-default)));
  46. background-size: cover;
  47. background-position: center;
  48. position: fixed;
  49. width: 100%;
  50. height: calc(100vh - env(safe-area-inset-bottom));
  51. }
  52. /* BASE STYLING ------------------------------------------------------------ */
  53. // no h1 allowed since h1 = logo
  54. h2 {
  55. font-weight: bold;
  56. font-size: 20px;
  57. margin-bottom: 12px;
  58. line-height: 30px;
  59. color: var(--color-text-light);
  60. }
  61. h3 {
  62. font-size: 16px;
  63. margin: 12px 0;
  64. color: var(--color-text-light);
  65. }
  66. h4 {
  67. font-size: 14px;
  68. }
  69. /* do not use italic typeface style, instead lighter color */
  70. em {
  71. font-style: normal;
  72. color: var(--color-text-lighter);
  73. }
  74. dl {
  75. padding: 12px 0;
  76. }
  77. dt,
  78. dd {
  79. display: inline-block;
  80. padding: 12px;
  81. padding-left: 0;
  82. }
  83. dt {
  84. width: 130px;
  85. white-space: nowrap;
  86. text-align: right;
  87. }
  88. kbd {
  89. padding: 4px 10px;
  90. border: 1px solid #ccc;
  91. box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
  92. border-radius: var(--border-radius);
  93. display: inline-block;
  94. white-space: nowrap;
  95. }
  96. /* APP STYLING ------------------------------------------------------------ */
  97. #content[class*='app-'] * {
  98. box-sizing: border-box;
  99. }
  100. /* APP-NAVIGATION ------------------------------------------------------------ */
  101. /* Navigation: folder like structure */
  102. #app-navigation:not(.vue) {
  103. // We use fixed variable for the pill style as we have larger containers around nested list entries
  104. --border-radius-pill: calc(var(--default-clickable-area) / 2);
  105. width: variables.$navigation-width;
  106. z-index: 500;
  107. overflow-y: auto;
  108. overflow-x: hidden;
  109. background-color: var(--color-main-background-blur);
  110. backdrop-filter: var(--filter-background-blur);
  111. -webkit-backdrop-filter: var(--filter-background-blur); -webkit-user-select: none;
  112. position: sticky;
  113. height: 100%;
  114. -moz-user-select: none;
  115. -ms-user-select: none;
  116. user-select: none;
  117. display: flex;
  118. flex-direction: column;
  119. flex-grow: 0;
  120. flex-shrink: 0;
  121. .app-navigation-caption {
  122. font-weight: bold;
  123. line-height: 44px;
  124. padding: 10px 44px 0 44px;
  125. white-space: nowrap;
  126. text-overflow: ellipsis;
  127. box-shadow: none !important;
  128. user-select: none;
  129. pointer-events:none;
  130. margin-left: 10px;
  131. }
  132. }
  133. .app-navigation-personal,
  134. .app-navigation-administration {
  135. /* 'New' button */
  136. .app-navigation-new {
  137. display: block;
  138. padding: calc(var(--default-grid-baseline) * 2);
  139. button {
  140. display: inline-block;
  141. width: 100%;
  142. padding: 10px;
  143. padding-left: 34px;
  144. background-position: 10px center;
  145. text-align: left;
  146. margin: 0;
  147. }
  148. }
  149. li {
  150. position: relative;
  151. }
  152. > ul {
  153. position: relative;
  154. height: 100%;
  155. width: 100%;
  156. overflow-x: hidden;
  157. overflow-y: auto;
  158. box-sizing: border-box;
  159. display: flex;
  160. flex-direction: column;
  161. padding: calc(var(--default-grid-baseline) * 2);
  162. padding-bottom: 0;
  163. &:last-child {
  164. padding-bottom: calc(var(--default-grid-baseline) * 2);
  165. }
  166. > li {
  167. display: inline-flex;
  168. flex-wrap: wrap;
  169. order: 1;
  170. flex-shrink: 0;
  171. margin: 0;
  172. margin-bottom: 3px;
  173. width: 100%;
  174. border-radius: var(--border-radius-pill);
  175. /* Pinned-to-bottom entries */
  176. &.pinned {
  177. order: 2;
  178. &.first-pinned {
  179. margin-top: auto !important;
  180. }
  181. }
  182. > .app-navigation-entry-deleted {
  183. /* Ugly hack for overriding the main entry link */
  184. padding-left: 44px !important;
  185. }
  186. > .app-navigation-entry-edit {
  187. /* Ugly hack for overriding the main entry link */
  188. /* align the input correctly with the link text
  189. 44px-6px padding for the input */
  190. padding-left: 38px !important;
  191. }
  192. a:hover,
  193. a:focus {
  194. &,
  195. > a {
  196. background-color: var(--color-background-hover);
  197. }
  198. }
  199. a:focus-visible {
  200. box-shadow: 0 0 0 4px var(--color-main-background);
  201. outline: 2px solid var(--color-main-text);
  202. }
  203. &.active,
  204. a:active,
  205. a.selected ,
  206. a.active {
  207. &,
  208. > a {
  209. background-color: var(--color-primary-element);
  210. color: var(--color-primary-element-text);
  211. &:first-child > img {
  212. filter: var(--primary-invert-if-dark);
  213. }
  214. }
  215. }
  216. /* align loader */
  217. &.icon-loading-small:after {
  218. left: 22px;
  219. top: 22px;
  220. }
  221. /* hide deletion/collapse of subitems */
  222. &.deleted,
  223. &.collapsible:not(.open) {
  224. > ul {
  225. // NO ANIMATE because if not really hidden, we can still tab through it
  226. display: none;
  227. }
  228. }
  229. /* Second level nesting for lists */
  230. > ul {
  231. flex: 0 1 auto;
  232. width: 100%;
  233. position: relative;
  234. > li {
  235. display: inline-flex;
  236. flex-wrap: wrap;
  237. padding-left: 44px;
  238. width: 100%;
  239. margin-bottom: 3px;
  240. &:hover,
  241. &:focus {
  242. &,
  243. > a {
  244. border-radius: var(--border-radius-pill);
  245. background-color: var(--color-background-hover);
  246. }
  247. }
  248. &.active,
  249. a.selected {
  250. &,
  251. > a {
  252. border-radius: var(--border-radius-pill);
  253. background-color: var(--color-primary-element-light);
  254. &:first-child > img {
  255. filter: var(--primary-invert-if-dark);
  256. }
  257. }
  258. }
  259. /* align loader */
  260. &.icon-loading-small:after {
  261. left: 22px; /* 44px / 2 */
  262. }
  263. > .app-navigation-entry-deleted {
  264. /* margin to keep active indicator visible */
  265. margin-left: 4px;
  266. padding-left: 84px;
  267. }
  268. > .app-navigation-entry-edit {
  269. /* margin to keep active indicator visible */
  270. margin-left: 4px;
  271. /* align the input correctly with the link text
  272. 44px+44px-4px-6px padding for the input */
  273. padding-left: 78px !important;
  274. }
  275. }
  276. }
  277. }
  278. /* Menu and submenu */
  279. > li,
  280. > li > ul > li {
  281. position: relative;
  282. box-sizing: border-box;
  283. /* hide icons if loading */
  284. &.icon-loading-small {
  285. > a,
  286. > .app-navigation-entry-bullet {
  287. /* hide icon or bullet if loading state*/
  288. background: transparent !important;
  289. }
  290. }
  291. /* Main entry link */
  292. > a {
  293. background-size: 16px 16px;
  294. background-position: 14px center;
  295. background-repeat: no-repeat;
  296. display: block;
  297. justify-content: space-between;
  298. line-height: 44px;
  299. min-height: 44px;
  300. padding: 0 12px 0 14px;
  301. overflow: hidden;
  302. box-sizing: border-box;
  303. white-space: nowrap;
  304. text-overflow: ellipsis;
  305. border-radius: var(--border-radius-pill);
  306. color: var(--color-main-text);
  307. flex: 1 1 0px;
  308. z-index: 100; /* above the bullet to allow click*/
  309. /* TODO: forbid using img as icon in menu? */
  310. &.svg {
  311. padding: 0 12px 0 44px;
  312. :focus-visible {
  313. padding: 0 8px 0 42px;
  314. }
  315. }
  316. &:first-child img {
  317. margin-right: 11px!important;
  318. width: 16px;
  319. height: 16px;
  320. // Legacy invert if bright background
  321. filter: var(--background-invert-if-dark);
  322. }
  323. /* counter can also be inside the link */
  324. > .app-navigation-entry-utils {
  325. display: inline-block;
  326. float: right;
  327. .app-navigation-entry-utils-counter {
  328. padding-right: 0 !important;
  329. }
  330. }
  331. }
  332. /* Bullet icon */
  333. > .app-navigation-entry-bullet {
  334. position: absolute;
  335. display: block;
  336. margin: 16px;
  337. width: 12px;
  338. height: 12px;
  339. border: none;
  340. border-radius: 50%;
  341. cursor: pointer;
  342. transition: background 100ms ease-in-out;
  343. + a {
  344. /* hide icon if bullet, can't have both */
  345. background: transparent !important;
  346. }
  347. }
  348. /* popover fix the flex positionning of the li parent */
  349. > .app-navigation-entry-menu {
  350. top: 44px;
  351. }
  352. /* show edit/undo field if editing/deleted */
  353. &.editing .app-navigation-entry-edit {
  354. opacity: 1;
  355. z-index: 250;
  356. }
  357. &.deleted .app-navigation-entry-deleted {
  358. transform: translateX(0);
  359. z-index: 250;
  360. }
  361. }
  362. }
  363. &.hidden {
  364. display: none;
  365. }
  366. /**
  367. * Button styling for menu, edit and undo
  368. */
  369. .app-navigation-entry-utils .app-navigation-entry-utils-menu-button > button,
  370. .app-navigation-entry-deleted .app-navigation-entry-deleted-button {
  371. border: 0;
  372. opacity: 0.5;
  373. background-color: transparent;
  374. background-repeat: no-repeat;
  375. background-position: center;
  376. &:hover,
  377. &:focus {
  378. background-color: transparent;
  379. opacity: 1;
  380. }
  381. }
  382. /**
  383. * Collapsible menus
  384. */
  385. .collapsible {
  386. /* Fallback for old collapse button.
  387. TODO: to be removed. Leaved here for retro compatibility */
  388. .collapse {
  389. opacity: 0;
  390. position: absolute;
  391. width: 44px;
  392. height: 44px;
  393. margin: 0;
  394. z-index: 110;
  395. /* Needed for IE11; otherwise the button appears to the right of the
  396. * link. */
  397. left: 0;
  398. &:focus-visible {
  399. opacity: 1;
  400. border-width: 0;
  401. box-shadow: inset 0 0 0 2px var(--color-primary-element);
  402. background: none;
  403. }
  404. }
  405. &:before {
  406. position: absolute;
  407. height: 44px;
  408. width: 44px;
  409. margin: 0;
  410. padding: 0;
  411. background: none;
  412. @include icon-color('triangle-s', 'actions', variables.$color-black, 1, true);
  413. background-size: 16px;
  414. background-repeat: no-repeat;
  415. background-position: center;
  416. border: none;
  417. border-radius: 0;
  418. outline: none !important;
  419. box-shadow: none;
  420. content: ' ';
  421. opacity: 0;
  422. -webkit-transform: rotate(-90deg);
  423. -ms-transform: rotate(-90deg);
  424. transform: rotate(-90deg);
  425. z-index: 105; // above a, under button
  426. border-radius: 50%;
  427. transition: opacity variables.$animation-quick ease-in-out;
  428. }
  429. /* force padding on link no matter if 'a' has an icon class */
  430. > a:first-child {
  431. padding-left: 44px;
  432. }
  433. &:hover,
  434. &:focus {
  435. &:before {
  436. opacity: 1;
  437. }
  438. > a {
  439. background-image: none;
  440. }
  441. > .app-navigation-entry-bullet {
  442. background: transparent !important;
  443. }
  444. }
  445. &.open {
  446. &:before {
  447. -webkit-transform: rotate(0);
  448. -ms-transform: rotate(0);
  449. transform: rotate(0);
  450. }
  451. }
  452. }
  453. /**
  454. * App navigation utils, buttons and counters for drop down menu
  455. */
  456. .app-navigation-entry-utils {
  457. flex: 0 1 auto;
  458. ul {
  459. display: flex !important;
  460. align-items: center;
  461. justify-content: flex-end;
  462. }
  463. li {
  464. width: 44px !important;
  465. height: 44px;
  466. }
  467. button {
  468. height: 100%;
  469. width: 100%;
  470. margin: 0;
  471. box-shadow: none;
  472. }
  473. .app-navigation-entry-utils-menu-button {
  474. /* Prevent bg img override if an icon class is set */
  475. button:not([class^='icon-']):not([class*=' icon-']) {
  476. @include icon-color('more', 'actions', variables.$color-black, 1, true);
  477. }
  478. &:hover button,
  479. &:focus button {
  480. background-color: transparent;
  481. opacity: 1;
  482. }
  483. }
  484. .app-navigation-entry-utils-counter {
  485. overflow: hidden;
  486. text-align: right;
  487. font-size: 9pt;
  488. line-height: 44px;
  489. padding: 0 12px; /* Same padding as all li > a in the app-navigation */
  490. &.highlighted {
  491. padding: 0;
  492. text-align: center;
  493. span {
  494. padding: 2px 5px;
  495. border-radius: 10px;
  496. background-color: var(--color-primary-element);
  497. color: var(--color-primary-element-text);
  498. }
  499. }
  500. }
  501. }
  502. /**
  503. * Editable entries
  504. */
  505. .app-navigation-entry-edit {
  506. padding-left: 5px;
  507. padding-right: 5px;
  508. display: block;
  509. width: calc(100% - 1px); /* Avoid border overlapping */
  510. transition: opacity 250ms ease-in-out;
  511. opacity: 0;
  512. position: absolute;
  513. background-color: var(--color-main-background);
  514. z-index: -1;
  515. form,
  516. div {
  517. display: inline-flex;
  518. width: 100%;
  519. }
  520. input {
  521. padding: 5px;
  522. margin-right: 0;
  523. height: 38px;
  524. &:hover,
  525. &:focus {
  526. /* overlapp borders */
  527. z-index: 1;
  528. }
  529. }
  530. input[type='text'] {
  531. width: 100%;
  532. min-width: 0; /* firefox hack: override auto */
  533. border-bottom-right-radius: 0;
  534. border-top-right-radius: 0;
  535. }
  536. button,
  537. input:not([type='text']) {
  538. width: 36px;
  539. height: 38px;
  540. flex: 0 0 36px;
  541. &:not(:last-child) {
  542. border-radius: 0 !important;
  543. }
  544. &:not(:first-child) {
  545. margin-left: -1px;
  546. }
  547. &:last-child {
  548. border-bottom-right-radius: var(--border-radius);
  549. border-top-right-radius: var(--border-radius);
  550. border-bottom-left-radius: 0;
  551. border-top-left-radius: 0;
  552. }
  553. }
  554. }
  555. /**
  556. * Deleted entries with undo button
  557. */
  558. .app-navigation-entry-deleted {
  559. display: inline-flex;
  560. padding-left: 44px;
  561. transform: translateX(#{variables.$navigation-width});
  562. .app-navigation-entry-deleted-description {
  563. position: relative;
  564. white-space: nowrap;
  565. text-overflow: ellipsis;
  566. overflow: hidden;
  567. flex: 1 1 0px;
  568. line-height: 44px;
  569. }
  570. .app-navigation-entry-deleted-button {
  571. margin: 0;
  572. height: 44px;
  573. width: 44px;
  574. line-height: 44px;
  575. &:hover,
  576. &:focus {
  577. opacity: 1;
  578. }
  579. }
  580. }
  581. /**
  582. * Common rules for animation of undo and edit entries
  583. */
  584. .app-navigation-entry-edit,
  585. .app-navigation-entry-deleted {
  586. width: calc(100% - 1px); /* Avoid border overlapping */
  587. transition: transform 250ms ease-in-out,
  588. opacity 250ms ease-in-out,
  589. z-index 250ms ease-in-out;
  590. position: absolute;
  591. left: 0;
  592. background-color: var(--color-main-background);
  593. box-sizing: border-box;
  594. }
  595. /**
  596. * drag and drop
  597. */
  598. .drag-and-drop {
  599. -webkit-transition: padding-bottom 500ms ease 0s;
  600. transition: padding-bottom 500ms ease 0s;
  601. padding-bottom: 40px;
  602. }
  603. .error {
  604. color: var(--color-error);
  605. }
  606. .app-navigation-entry-utils ul,
  607. .app-navigation-entry-menu ul {
  608. list-style-type: none;
  609. }
  610. }
  611. /* CONTENT --------------------------------------------------------- */
  612. #content {
  613. box-sizing: border-box;
  614. position: static;
  615. margin: var(--body-container-margin);
  616. margin-top: 50px;
  617. padding: 0;
  618. display: flex;
  619. width: calc(100% - var(--body-container-margin) * 2);
  620. height: var(--body-height);
  621. border-radius: var(--body-container-radius);
  622. overflow: clip;
  623. &:not(.with-sidebar--full) {
  624. position: fixed;
  625. }
  626. }
  627. @media only screen and (max-width: variables.$breakpoint-mobile) {
  628. #content {
  629. border-top-left-radius: var(--border-radius-large);
  630. border-top-right-radius: var(--border-radius-large);
  631. }
  632. #app-navigation {
  633. border-top-left-radius: var(--border-radius-large);
  634. }
  635. #app-sidebar {
  636. border-top-right-radius: var(--border-radius-large);
  637. }
  638. }
  639. /* APP-CONTENT AND WRAPPER ------------------------------------------ */
  640. /* Part where the content will be loaded into */
  641. /**
  642. * !Important. We are defining the minimum requirement we want for flex
  643. * Just before the mobile breakpoint we have variables.$breakpoint-mobile (1024px) - variables.$navigation-width
  644. * -> 468px. In that case we want 200px for the list and 268px for the content
  645. */
  646. $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width - variables.$list-min-width;
  647. #app-content {
  648. z-index: 1000;
  649. background-color: var(--color-main-background);
  650. flex-basis: 100vw;
  651. overflow: auto;
  652. position: initial;
  653. height: 100%;
  654. /* margin if navigation element is here */
  655. /* no top border for first settings item */
  656. > .section:first-child {
  657. border-top: none;
  658. }
  659. /* if app-content-list is present */
  660. #app-content-wrapper {
  661. display: flex;
  662. position: relative;
  663. align-items: stretch;
  664. /* make sure we have at least full height for loaders or such
  665. no need for list/details since we have a flex stretch */
  666. min-height: 100%;
  667. /* CONTENT DETAILS AFTER LIST*/
  668. .app-content-details {
  669. /* grow full width */
  670. flex: 1 1 $min-content-width;
  671. #app-navigation-toggle-back {
  672. display: none;
  673. }
  674. }
  675. }
  676. &::-webkit-scrollbar-button {
  677. height: var(--body-container-radius);
  678. }
  679. }
  680. /* APP-SIDEBAR ------------------------------------------------------------ */
  681. /*
  682. Sidebar: a sidebar to be used within #content
  683. #app-content will be shrinked properly
  684. */
  685. #app-sidebar {
  686. width: 27vw;
  687. min-width: variables.$sidebar-min-width;
  688. max-width: variables.$sidebar-max-width;
  689. display: block;
  690. position: -webkit-sticky;
  691. position: sticky;
  692. top: variables.$header-height;
  693. right:0;
  694. overflow-y: auto;
  695. overflow-x: hidden;
  696. z-index: 1500;
  697. opacity: 0.7px;
  698. height: calc(100vh - #{variables.$header-height});
  699. background: var(--color-main-background);
  700. border-left: 1px solid var(--color-border);
  701. flex-shrink: 0;
  702. // no animations possible, use OC.Apps.showAppSidebar
  703. &.disappear {
  704. display: none;
  705. }
  706. }
  707. /* APP-SETTINGS ------------------------------------------------------------ */
  708. /* settings area */
  709. #app-settings {
  710. // To the bottom w/ flex
  711. margin-top: auto;
  712. &.open,
  713. &.opened {
  714. #app-settings-content {
  715. display: block;
  716. }
  717. }
  718. }
  719. #app-settings-content {
  720. display: none;
  721. padding: calc(var(--default-grid-baseline) * 2);
  722. padding-top: 0;
  723. padding-left: calc(var(--default-grid-baseline) * 4);
  724. /* restrict height of settings and make scrollable */
  725. max-height: 300px;
  726. overflow-y: auto;
  727. box-sizing: border-box;
  728. /* display input fields at full width */
  729. input[type='text'] {
  730. width: 93%;
  731. }
  732. .info-text {
  733. padding: 5px 0 7px 22px;
  734. color: var(--color-text-lighter);
  735. }
  736. input {
  737. &[type='checkbox'],
  738. &[type='radio'] {
  739. &.radio,
  740. &.checkbox {
  741. + label {
  742. display: inline-block;
  743. width: 100%;
  744. padding: 5px 0;
  745. }
  746. }
  747. }
  748. }
  749. }
  750. #app-settings-header {
  751. box-sizing: border-box;
  752. background-color: transparent;
  753. overflow: hidden;
  754. border-radius: calc(var(--default-clickable-area) / 2);
  755. padding: calc(var(--default-grid-baseline) * 2);
  756. padding-top: 0;
  757. .settings-button {
  758. display: flex;
  759. align-items: center;
  760. height: 44px;
  761. width: 100%;
  762. padding: 0;
  763. margin: 0;
  764. background-color: transparent;
  765. box-shadow: none;
  766. border: 0;
  767. border-radius: calc(var(--default-clickable-area) / 2);
  768. text-align: left;
  769. font-weight: normal;
  770. font-size: 100%;
  771. opacity: 0.8;
  772. /* like app-navigation a */
  773. color: var(--color-main-text);
  774. &.opened {
  775. border-top: solid 1px var(--color-border);
  776. background-color: var(--color-main-background);
  777. margin-top: 8px;
  778. }
  779. &:hover,
  780. &:focus {
  781. background-color: var(--color-background-hover);
  782. }
  783. &::before {
  784. background-image: var(--icon-settings-dark);
  785. background-position: 14px center;
  786. background-repeat: no-repeat;
  787. content: '';
  788. width: 44px;
  789. height: 44px;
  790. top: 0;
  791. left: 0;
  792. display: block;
  793. }
  794. &:focus-visible {
  795. box-shadow: 0 0 0 2px inset var(--color-primary-element) !important;
  796. background-position: 12px center;
  797. }
  798. }
  799. }
  800. /* GENERAL SECTION ------------------------------------------------------------ */
  801. .section {
  802. display: block;
  803. padding: 30px;
  804. margin-bottom: 24px;
  805. &.hidden {
  806. display: none !important;
  807. }
  808. /* slight position correction of checkboxes and radio buttons */
  809. input {
  810. &[type='checkbox'],
  811. &[type='radio'] {
  812. vertical-align: -2px;
  813. margin-right: 4px;
  814. }
  815. }
  816. }
  817. .sub-section {
  818. position: relative;
  819. margin-top: 10px;
  820. margin-left: 27px;
  821. margin-bottom: 10px;
  822. }
  823. .appear {
  824. opacity: 1;
  825. -webkit-transition: opacity 500ms ease 0s;
  826. -moz-transition: opacity 500ms ease 0s;
  827. -ms-transition: opacity 500ms ease 0s;
  828. -o-transition: opacity 500ms ease 0s;
  829. transition: opacity 500ms ease 0s;
  830. &.transparent {
  831. opacity: 0;
  832. }
  833. }
  834. /* TABS ------------------------------------------------------------ */
  835. .tabHeaders {
  836. display: flex;
  837. margin-bottom: 16px;
  838. .tabHeader {
  839. display: flex;
  840. flex-direction: column;
  841. flex-grow: 1;
  842. text-align: center;
  843. white-space: nowrap;
  844. overflow: hidden;
  845. text-overflow: ellipsis;
  846. cursor: pointer;
  847. color: var(--color-text-lighter);
  848. margin-bottom: 1px;
  849. padding: 5px;
  850. &.hidden {
  851. display: none;
  852. }
  853. /* Use same amount as sidebar padding */
  854. &:first-child {
  855. padding-left: 15px;
  856. }
  857. &:last-child {
  858. padding-right: 15px;
  859. }
  860. .icon {
  861. display: inline-block;
  862. width: 100%;
  863. height: 16px;
  864. background-size: 16px;
  865. vertical-align: middle;
  866. margin-top: -2px;
  867. margin-right: 3px;
  868. opacity: .7;
  869. cursor: pointer;
  870. }
  871. a {
  872. color: var(--color-text-lighter);
  873. margin-bottom: 1px;
  874. overflow: hidden;
  875. text-overflow: ellipsis;
  876. }
  877. &.selected {
  878. font-weight: bold;
  879. }
  880. &.selected,
  881. &:hover,
  882. &:focus {
  883. margin-bottom: 0px;
  884. color: var(--color-main-text);
  885. border-bottom: 1px solid var(--color-text-lighter);
  886. }
  887. }
  888. }
  889. .tabsContainer {
  890. clear: left;
  891. .tab {
  892. padding: 0 15px 15px;
  893. }
  894. }
  895. /* POPOVER MENU ------------------------------------------------------------ */
  896. $popoveritem-height: 44px;
  897. $popovericon-size: 16px;
  898. $outter-margin: math.div($popoveritem-height - $popovericon-size, 2);
  899. .contact .popovermenu ul,
  900. .popover__menu {
  901. > li > a > img {
  902. filter: var(--background-invert-if-dark);
  903. // We do not want to invert the color of the user_status emoji:
  904. // https://github.com/nextcloud/nextcloud-vue/blob/8899087f8f8d45e0ed744bde9faa00b625a21905/src/components/NcAvatar/NcAvatar.vue#L495
  905. &[src^="data"] {
  906. filter: none;
  907. }
  908. }
  909. }
  910. .bubble,
  911. .app-navigation-entry-menu,
  912. .popovermenu {
  913. position: absolute;
  914. background-color: var(--color-main-background);
  915. color: var(--color-main-text);
  916. border-radius: var(--border-radius-large);
  917. padding: 3px;
  918. z-index: 110;
  919. margin: 5px;
  920. margin-top: -5px;
  921. right: 0;
  922. filter: drop-shadow(0 1px 3px var(--color-box-shadow));
  923. display: none;
  924. will-change: filter;
  925. &:after {
  926. bottom: 100%;
  927. // Required right-distance is half menu icon size + right padding
  928. // = 16px/2 + 14px = 22px
  929. // popover right margin is 5px, arrow width is 9px to center and border is 1px
  930. // 22px - 9px - 5px - 1px = 7px
  931. right: 7px;
  932. /* change this to adjust the arrow position */
  933. border: solid transparent;
  934. content: ' ';
  935. height: 0;
  936. width: 0;
  937. position: absolute;
  938. pointer-events: none;
  939. border-bottom-color: var(--color-main-background);
  940. border-width: 9px;
  941. }
  942. /* Center the popover */
  943. &.menu-center {
  944. transform: translateX(50%);
  945. right: 50%;
  946. margin-right: 0;
  947. &:after {
  948. right: 50%;
  949. transform: translateX(50%);
  950. }
  951. }
  952. /* Align the popover to the left */
  953. &.menu-left {
  954. right: auto;
  955. left: 0;
  956. margin-right: 0;
  957. &:after {
  958. left: 6px;
  959. right: auto;
  960. }
  961. }
  962. &.open {
  963. display: block;
  964. }
  965. &.contactsmenu-popover {
  966. margin: 0;
  967. }
  968. ul {
  969. /* Overwrite #app-navigation > ul ul */
  970. display: flex !important;
  971. flex-direction: column;
  972. }
  973. li {
  974. display: flex;
  975. flex: 0 0 auto;
  976. &.hidden {
  977. display: none;
  978. }
  979. > button,
  980. > a,
  981. > .menuitem {
  982. cursor: pointer;
  983. line-height: $popoveritem-height;
  984. border: 0;
  985. border-radius: var(--border-radius-large);
  986. background-color: transparent;
  987. display: flex;
  988. align-items: flex-start;
  989. height: auto;
  990. margin: 0;
  991. font-weight: normal;
  992. box-shadow: none;
  993. width: 100%;
  994. color: var(--color-main-text);
  995. white-space: nowrap;
  996. span[class^='icon-'],
  997. span[class*=' icon-'],
  998. &[class^='icon-'],
  999. &[class*=' icon-'] {
  1000. min-width: 0; /* Overwrite icons*/
  1001. min-height: 0;
  1002. background-position: #{math.div($popoveritem-height - $popovericon-size, 2)} center;
  1003. background-size: $popovericon-size;
  1004. }
  1005. span[class^='icon-'],
  1006. span[class*=' icon-'] {
  1007. /* Keep padding to define the width to
  1008. assure correct position of a possible text */
  1009. padding: #{math.div($popoveritem-height, 2)} 0 #{math.div($popoveritem-height, 2)} $popoveritem-height;
  1010. }
  1011. // If no icons set, force left margin to align
  1012. &:not([class^='icon-']):not([class*='icon-']) {
  1013. > span,
  1014. > input,
  1015. > form {
  1016. &:not([class^='icon-']):not([class*='icon-']):first-child {
  1017. margin-left: $popoveritem-height;
  1018. }
  1019. }
  1020. }
  1021. &[class^='icon-'],
  1022. &[class*=' icon-'] {
  1023. padding: 0 #{math.div($popoveritem-height - $popovericon-size, 2)} 0 $popoveritem-height !important;
  1024. }
  1025. &:hover,
  1026. &:focus {
  1027. background-color: var(--color-background-hover);
  1028. }
  1029. &:focus,
  1030. &:focus-visible {
  1031. box-shadow: 0 0 0 2px var(--color-primary-element);
  1032. }
  1033. &.active {
  1034. border-radius: var(--border-radius-pill);
  1035. background-color: var(--color-primary-element-light);
  1036. }
  1037. /* prevent .action class to break the design */
  1038. &.action {
  1039. padding: inherit !important;
  1040. }
  1041. > span {
  1042. cursor: pointer;
  1043. white-space: nowrap;
  1044. }
  1045. > p {
  1046. width: 150px;
  1047. line-height: 1.6em;
  1048. padding: 8px 0;
  1049. white-space: normal;
  1050. }
  1051. > select {
  1052. margin: 0;
  1053. margin-left: 6px;
  1054. }
  1055. /* Add padding if contains icon+text */
  1056. &:not(:empty) {
  1057. padding-right: $outter-margin !important;
  1058. }
  1059. /* DEPRECATED! old img in popover fallback
  1060. * TODO: to remove */
  1061. > img {
  1062. width: $popovericon-size;
  1063. padding: #{math.div($popoveritem-height - $popovericon-size, 2)};
  1064. }
  1065. /* checkbox/radio fixes */
  1066. > input.radio + label,
  1067. > input.checkbox + label {
  1068. padding: 0 !important;
  1069. width: 100%;
  1070. }
  1071. > input.checkbox + label::before {
  1072. margin: -2px 13px 0;
  1073. }
  1074. > input.radio + label::before {
  1075. margin: -2px 12px 0;
  1076. }
  1077. > input:not([type=radio]):not([type=checkbox]):not([type=image]) {
  1078. width: 150px;
  1079. }
  1080. form {
  1081. display: flex;
  1082. flex: 1 1 auto;
  1083. /* put a small space between text and form
  1084. if there is an element before */
  1085. align-items: center;
  1086. &:not(:first-child) {
  1087. margin-left: 5px;
  1088. }
  1089. }
  1090. /* no margin if hidden span before */
  1091. > span.hidden + form,
  1092. > span[style*='display:none'] + form {
  1093. margin-left: 0;
  1094. }
  1095. /* Inputs inside popover supports text, submit & reset */
  1096. input {
  1097. min-width: $popoveritem-height;
  1098. max-height: #{$popoveritem-height - 4px}; /* twice the element margin-y */
  1099. margin: 2px 0;
  1100. flex: 1 1 auto;
  1101. // space between inline inputs
  1102. &:not(:first-child) {
  1103. margin-left: 5px;
  1104. }
  1105. }
  1106. }
  1107. /* css hack, only first not hidden */
  1108. &:not(.hidden):not([style*='display:none']) {
  1109. &:first-of-type {
  1110. > button, > a, > .menuitem {
  1111. > form, > input {
  1112. margin-top: $outter-margin - 2px; // minus the input margin
  1113. }
  1114. }
  1115. }
  1116. &:last-of-type {
  1117. > button, > a, > .menuitem {
  1118. > form, > input {
  1119. margin-bottom: 0px;
  1120. }
  1121. }
  1122. }
  1123. }
  1124. > button {
  1125. padding: 0;
  1126. span {
  1127. opacity: 1;
  1128. }
  1129. }
  1130. }
  1131. }
  1132. .popovermenu {
  1133. li {
  1134. > button,
  1135. > a,
  1136. > .menuitem {
  1137. /* DEPRECATED! old img in popover fallback
  1138. * TODO: to remove */
  1139. > img {
  1140. width: $popoveritem-height;
  1141. height: $popoveritem-height;
  1142. }
  1143. }
  1144. }
  1145. }
  1146. #contactsmenu .contact .popovermenu {
  1147. li {
  1148. > a {
  1149. > img {
  1150. width: 16px;
  1151. height: 16px;
  1152. }
  1153. }
  1154. }
  1155. }
  1156. /* CONTENT LIST ------------------------------------------------------------ */
  1157. .app-content-list {
  1158. position: -webkit-sticky;
  1159. position: relative;
  1160. top: 0;
  1161. border-right: 1px solid var(--color-border);
  1162. display: flex;
  1163. flex-direction: column;
  1164. transition: transform 250ms ease-in-out;
  1165. min-height: 100%;
  1166. max-height: 100%;
  1167. overflow-y: auto;
  1168. overflow-x: hidden;
  1169. flex: 1 1 variables.$list-min-width;
  1170. min-width: variables.$list-min-width;
  1171. max-width: variables.$list-max-width;
  1172. /* Default item */
  1173. .app-content-list-item {
  1174. position: relative;
  1175. height: 68px;
  1176. cursor: pointer;
  1177. padding: 10px 7px;
  1178. display: flex;
  1179. flex-wrap: wrap;
  1180. align-items: center;
  1181. flex: 0 0 auto;
  1182. /* Icon fixes */
  1183. &,
  1184. > .app-content-list-item-menu {
  1185. > [class^='icon-'],
  1186. > [class*=' icon-'] {
  1187. order: 4;
  1188. width: 24px;
  1189. height: 24px;
  1190. margin: -7px; // right padding of item
  1191. padding: 22px;
  1192. opacity: .3;
  1193. cursor: pointer;
  1194. &:hover,
  1195. &:focus {
  1196. opacity: .7;
  1197. }
  1198. &[class^='icon-star'],
  1199. &[class*=' icon-star'] {
  1200. opacity: .7;
  1201. &:hover,
  1202. &:focus {
  1203. opacity: 1 ;
  1204. }
  1205. }
  1206. &.icon-starred {
  1207. opacity: 1 ;
  1208. }
  1209. }
  1210. }
  1211. &:hover,
  1212. &:focus,
  1213. &.active {
  1214. background-color: var(--color-background-dark);
  1215. // display checkbox on hover/focus/active
  1216. .app-content-list-item-checkbox.checkbox + label {
  1217. display: flex;
  1218. }
  1219. }
  1220. .app-content-list-item-checkbox.checkbox + label,
  1221. .app-content-list-item-star {
  1222. position: absolute;
  1223. height: 40px;
  1224. width: 40px;
  1225. z-index: 50;
  1226. }
  1227. .app-content-list-item-checkbox.checkbox {
  1228. &:checked,
  1229. &:hover,
  1230. &:focus,
  1231. &.active {
  1232. + label {
  1233. // display checkbox if checked
  1234. display: flex;
  1235. // if checked, lower the opacity of the avatar
  1236. + .app-content-list-item-icon {
  1237. opacity: .7;
  1238. }
  1239. }
  1240. }
  1241. + label {
  1242. top: 14px;
  1243. left: 7px;
  1244. // hidden by default, only chown on hover-focus or if checked
  1245. display: none;
  1246. &::before {
  1247. margin: 0;
  1248. }
  1249. /* Hide the star, priority to the checkbox */
  1250. ~ .app-content-list-item-star {
  1251. display: none;
  1252. }
  1253. }
  1254. }
  1255. .app-content-list-item-star {
  1256. display: flex;
  1257. top: 10px;
  1258. left: 32px;
  1259. background-size: 16px;
  1260. height: 20px;
  1261. width: 20px;
  1262. margin: 0;
  1263. padding: 0;
  1264. }
  1265. .app-content-list-item-icon {
  1266. position: absolute;
  1267. display: inline-block;
  1268. height: 40px;
  1269. width: 40px;
  1270. line-height: 40px;
  1271. border-radius: 50%;
  1272. vertical-align: middle;
  1273. margin-right: 10px;
  1274. color: #fff;
  1275. text-align: center;
  1276. font-size: 1.5em;
  1277. text-transform: capitalize;
  1278. object-fit: cover;
  1279. user-select: none;
  1280. cursor: pointer;
  1281. top: 50%;
  1282. margin-top: -20px;
  1283. }
  1284. .app-content-list-item-line-one,
  1285. .app-content-list-item-line-two {
  1286. display: block;
  1287. padding-left: 50px;
  1288. white-space: nowrap;
  1289. overflow: hidden;
  1290. text-overflow: ellipsis;
  1291. order: 1;
  1292. flex: 1 1 0px;
  1293. padding-right: 10px;
  1294. cursor: pointer;
  1295. }
  1296. .app-content-list-item-line-two {
  1297. opacity: .5;
  1298. order: 3;
  1299. flex: 1 0;
  1300. flex-basis: calc(100% - 44px);
  1301. }
  1302. .app-content-list-item-details {
  1303. order: 2;
  1304. white-space: nowrap;
  1305. overflow: hidden;
  1306. text-overflow: ellipsis;
  1307. max-width: 100px;
  1308. opacity: .5;
  1309. font-size: 80%;
  1310. user-select: none;
  1311. }
  1312. .app-content-list-item-menu {
  1313. order: 4;
  1314. position: relative;
  1315. .popovermenu {
  1316. margin: 0;
  1317. // action icon have -7px margin
  1318. // default popover is normally 5px
  1319. right: -2px;
  1320. }
  1321. }
  1322. }
  1323. &.selection .app-content-list-item-checkbox.checkbox + label {
  1324. display: flex;
  1325. }
  1326. }
  1327. .button.primary.skip-navigation:focus-visible {
  1328. box-shadow: 0 0 0 4px var(--color-main-background) !important;
  1329. outline: 2px solid var(--color-main-text) !important;
  1330. }