apps.scss 27 KB

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