1
0

apps.scss 31 KB

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