apps.scss 31 KB

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