apps.scss 27 KB

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