You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apps.scss 27KB

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