apps.scss 31 KB

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