apps.scss 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292
  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: 42px;
  676. font-weight: normal;
  677. /* like app-navigation a */
  678. color: var(--color-main-text);
  679. &.opened {
  680. border-top: solid 1px var(--color-border);
  681. background-color: var(--color-main-background);
  682. }
  683. &:hover,
  684. &:focus {
  685. background-color: var(--color-background-hover);
  686. }
  687. }
  688. /* GENERAL SECTION ------------------------------------------------------------ */
  689. .section {
  690. display: block;
  691. padding: 30px;
  692. margin-bottom: 24px;
  693. &.hidden {
  694. display: none !important;
  695. }
  696. /* slight position correction of checkboxes and radio buttons */
  697. input {
  698. &[type='checkbox'],
  699. &[type='radio'] {
  700. vertical-align: -2px;
  701. margin-right: 4px;
  702. }
  703. }
  704. }
  705. .sub-section {
  706. position: relative;
  707. margin-top: 10px;
  708. margin-left: 27px;
  709. margin-bottom: 10px;
  710. }
  711. .appear {
  712. opacity: 1;
  713. -webkit-transition: opacity 500ms ease 0s;
  714. -moz-transition: opacity 500ms ease 0s;
  715. -ms-transition: opacity 500ms ease 0s;
  716. -o-transition: opacity 500ms ease 0s;
  717. transition: opacity 500ms ease 0s;
  718. &.transparent {
  719. opacity: 0;
  720. }
  721. }
  722. /* TABS ------------------------------------------------------------ */
  723. .tabHeaders {
  724. display: flex;
  725. margin-bottom: 16px;
  726. .tabHeader {
  727. display: flex;
  728. flex-direction: column;
  729. flex-grow: 1;
  730. text-align: center;
  731. white-space: nowrap;
  732. overflow: hidden;
  733. text-overflow: ellipsis;
  734. cursor: pointer;
  735. color: var(--color-text-lighter);
  736. margin-bottom: 1px;
  737. padding: 5px;
  738. &.hidden {
  739. display: none;
  740. }
  741. /* Use same amount as sidebar padding */
  742. &:first-child {
  743. padding-left: 15px;
  744. }
  745. &:last-child {
  746. padding-right: 15px;
  747. }
  748. .icon {
  749. display: inline-block;
  750. width: 100%;
  751. height: 16px;
  752. background-size: 16px;
  753. vertical-align: middle;
  754. margin-top: -2px;
  755. margin-right: 3px;
  756. opacity: .7;
  757. cursor: pointer;
  758. }
  759. a {
  760. color: var(--color-text-lighter);
  761. margin-bottom: 1px;
  762. overflow: hidden;
  763. text-overflow: ellipsis;
  764. }
  765. &.selected {
  766. font-weight: bold;
  767. }
  768. &.selected,
  769. &:hover,
  770. &:focus {
  771. margin-bottom: 0px;
  772. color: var(--color-main-text);
  773. border-bottom: 1px solid var(--color-text-lighter);
  774. }
  775. }
  776. }
  777. .tabsContainer {
  778. clear: left;
  779. .tab {
  780. padding: 0 15px 15px;
  781. }
  782. }
  783. /* POPOVER MENU ------------------------------------------------------------ */
  784. $popoveritem-height: 44px;
  785. $popovericon-size: 16px;
  786. $outter-margin: ($popoveritem-height - $popovericon-size) / 2;
  787. .ie,
  788. .edge {
  789. .bubble, .bubble:after,
  790. .popovermenu, .popovermenu:after,
  791. #app-navigation .app-navigation-entry-menu,
  792. #app-navigation .app-navigation-entry-menu:after {
  793. border: 1px solid var(--color-border);
  794. }
  795. }
  796. .bubble,
  797. .app-navigation-entry-menu,
  798. .popovermenu {
  799. position: absolute;
  800. background-color: var(--color-main-background);
  801. color: var(--color-main-text);
  802. border-radius: var(--border-radius);
  803. z-index: 110;
  804. margin: 5px;
  805. margin-top: -5px;
  806. right: 0;
  807. filter: drop-shadow(0 1px 3px var(--color-box-shadow));
  808. display: none;
  809. will-change: filter;
  810. &:after {
  811. bottom: 100%;
  812. // Required right-distance is half menu icon size + right padding
  813. // = 16px/2 + 14px = 22px
  814. // popover right margin is 5px, arrow width is 9px to center and border is 1px
  815. // 22px - 9px - 5px - 1px = 7px
  816. right: 7px;
  817. /* change this to adjust the arrow position */
  818. border: solid transparent;
  819. content: ' ';
  820. height: 0;
  821. width: 0;
  822. position: absolute;
  823. pointer-events: none;
  824. border-bottom-color: var(--color-main-background);
  825. border-width: 9px;
  826. }
  827. /* Center the popover */
  828. &.menu-center {
  829. transform: translateX(50%);
  830. right: 50%;
  831. margin-right: 0;
  832. &:after {
  833. right: 50%;
  834. transform: translateX(50%);
  835. }
  836. }
  837. /* Align the popover to the left */
  838. &.menu-left {
  839. right: auto;
  840. left: 0;
  841. margin-right: 0;
  842. &:after {
  843. left: 6px;
  844. right: auto;
  845. }
  846. }
  847. &.open {
  848. display: block;
  849. }
  850. &.contactsmenu-popover {
  851. margin: 0;
  852. }
  853. ul {
  854. /* Overwrite #app-navigation > ul ul */
  855. display: flex !important;
  856. flex-direction: column;
  857. }
  858. li {
  859. display: flex;
  860. flex: 0 0 auto;
  861. &.hidden {
  862. display: none;
  863. }
  864. > button,
  865. > a,
  866. > .menuitem {
  867. cursor: pointer;
  868. line-height: $popoveritem-height;
  869. border: 0;
  870. border-radius: 0; // otherwise Safari will cut the border-radius area
  871. background-color: transparent;
  872. display: flex;
  873. align-items: flex-start;
  874. height: auto;
  875. margin: 0;
  876. font-weight: normal;
  877. box-shadow: none;
  878. width: 100%;
  879. color: var(--color-main-text);
  880. white-space: nowrap;
  881. span[class^='icon-'],
  882. span[class*=' icon-'],
  883. &[class^='icon-'],
  884. &[class*=' icon-'] {
  885. min-width: 0; /* Overwrite icons*/
  886. min-height: 0;
  887. background-position: #{($popoveritem-height - $popovericon-size) / 2} center;
  888. background-size: $popovericon-size;
  889. }
  890. span[class^='icon-'],
  891. span[class*=' icon-'] {
  892. /* Keep padding to define the width to
  893. assure correct position of a possible text */
  894. padding: #{$popoveritem-height / 2} 0 #{$popoveritem-height / 2} $popoveritem-height;
  895. }
  896. // If no icons set, force left margin to align
  897. &:not([class^='icon-']):not([class*='icon-']) {
  898. > span,
  899. > input,
  900. > form {
  901. &:not([class^='icon-']):not([class*='icon-']):first-child {
  902. margin-left: $popoveritem-height;
  903. }
  904. }
  905. }
  906. &[class^='icon-'],
  907. &[class*=' icon-'] {
  908. padding: 0 #{($popoveritem-height - $popovericon-size) / 2} 0 $popoveritem-height !important;
  909. }
  910. &:hover,
  911. &:focus {
  912. background-color: var(--color-background-hover);
  913. }
  914. &.active {
  915. background-color: var(--color-primary-light);
  916. }
  917. /* prevent .action class to break the design */
  918. &.action {
  919. padding: inherit !important;
  920. }
  921. > span {
  922. cursor: pointer;
  923. white-space: nowrap;
  924. }
  925. > p {
  926. width: 150px;
  927. line-height: 1.6em;
  928. padding: 8px 0;
  929. white-space: normal;
  930. }
  931. > select {
  932. margin: 0;
  933. margin-left: 6px;
  934. }
  935. /* Add padding if contains icon+text */
  936. &:not(:empty) {
  937. padding-right: $outter-margin !important;
  938. }
  939. /* DEPRECATED! old img in popover fallback
  940. * TODO: to remove */
  941. > img {
  942. width: $popovericon-size;
  943. padding: #{($popoveritem-height - $popovericon-size) / 2};
  944. }
  945. /* checkbox/radio fixes */
  946. > input.radio + label,
  947. > input.checkbox + label {
  948. padding: 0 !important;
  949. width: 100%;
  950. }
  951. > input.checkbox + label::before {
  952. margin: -2px 13px 0;
  953. }
  954. > input.radio + label::before {
  955. margin: -2px 12px 0;
  956. }
  957. > input:not([type=radio]):not([type=checkbox]):not([type=image]) {
  958. width: 150px;
  959. }
  960. form {
  961. display: flex;
  962. flex: 1 1 auto;
  963. /* put a small space between text and form
  964. if there is an element before */
  965. &:not(:first-child) {
  966. margin-left: 5px;
  967. }
  968. }
  969. /* no margin if hidden span before */
  970. > span.hidden + form,
  971. > span[style*='display:none'] + form {
  972. margin-left: 0;
  973. }
  974. /* Inputs inside popover supports text, submit & reset */
  975. input {
  976. min-width: $popoveritem-height;
  977. max-height: #{$popoveritem-height - 4px}; /* twice the element margin-y */
  978. margin: 2px 0;
  979. flex: 1 1 auto;
  980. // space between inline inputs
  981. &:not(:first-child) {
  982. margin-left: 5px;
  983. }
  984. }
  985. }
  986. /* css hack, only first not hidden */
  987. &:not(.hidden):not([style*='display:none']) {
  988. &:first-of-type {
  989. > button, > a, > .menuitem {
  990. > form, > input {
  991. margin-top: $outter-margin - 2px; // minus the input margin
  992. }
  993. }
  994. }
  995. &:last-of-type {
  996. > button, > a, > .menuitem {
  997. > form, > input {
  998. margin-bottom: $outter-margin - 2px; // minus the input margin
  999. }
  1000. }
  1001. }
  1002. }
  1003. > button {
  1004. padding: 0;
  1005. span {
  1006. opacity: 1;
  1007. }
  1008. }
  1009. }
  1010. }
  1011. /* "app-*" descendants use border-box sizing, so the height of the icon must be
  1012. * set to the height of the item (as well as its width to make it squared). */
  1013. #content[class*='app-'] {
  1014. .bubble,
  1015. .app-navigation-entry-menu,
  1016. .popovermenu {
  1017. li {
  1018. > button,
  1019. > a,
  1020. > .menuitem {
  1021. /* DEPRECATED! old img in popover fallback
  1022. * TODO: to remove */
  1023. > img {
  1024. width: $popoveritem-height;
  1025. height: $popoveritem-height;
  1026. }
  1027. }
  1028. }
  1029. }
  1030. }
  1031. /* CONTENT LIST ------------------------------------------------------------ */
  1032. .app-content-list {
  1033. @include position('sticky');
  1034. top: $header-height;
  1035. border-right: 1px solid var(--color-border);
  1036. display: flex;
  1037. flex-direction: column;
  1038. transition: transform 250ms ease-in-out;
  1039. min-height: calc(100vh - #{$header-height});
  1040. max-height: calc(100vh - #{$header-height});
  1041. overflow-y: auto;
  1042. overflow-x: hidden;
  1043. flex: 1 1 $list-min-width;
  1044. min-width: $list-min-width;
  1045. max-width: $list-max-width;
  1046. /* Default item */
  1047. .app-content-list-item {
  1048. position: relative;
  1049. height: 68px;
  1050. cursor: pointer;
  1051. padding: 10px 7px;
  1052. display: flex;
  1053. flex-wrap: wrap;
  1054. align-items: center;
  1055. flex: 0 0 auto;
  1056. /* Icon fixes */
  1057. &,
  1058. > .app-content-list-item-menu {
  1059. > [class^='icon-'],
  1060. > [class*=' icon-'] {
  1061. order: 4;
  1062. width: 24px;
  1063. height: 24px;
  1064. margin: -7px; // right padding of item
  1065. padding: 22px;
  1066. opacity: .3;
  1067. cursor: pointer;
  1068. &:hover,
  1069. &:focus {
  1070. opacity: .7;
  1071. }
  1072. &[class^='icon-star'],
  1073. &[class*=' icon-star'] {
  1074. opacity: .7;
  1075. &:hover,
  1076. &:focus {
  1077. opacity: 1 ;
  1078. }
  1079. }
  1080. &.icon-starred {
  1081. opacity: 1 ;
  1082. }
  1083. }
  1084. }
  1085. &:hover,
  1086. &:focus,
  1087. &.active {
  1088. background-color: var(--color-background-dark);
  1089. // display checkbox on hover/focus/active
  1090. .app-content-list-item-checkbox.checkbox + label {
  1091. display: flex;
  1092. }
  1093. }
  1094. .app-content-list-item-checkbox.checkbox + label,
  1095. .app-content-list-item-star {
  1096. position: absolute;
  1097. height: 40px;
  1098. width: 40px;
  1099. z-index: 50;
  1100. }
  1101. .app-content-list-item-checkbox.checkbox {
  1102. &:checked,
  1103. &:hover,
  1104. &:focus,
  1105. &.active {
  1106. + label {
  1107. // display checkbox if checked
  1108. display: flex;
  1109. // if checked, lower the opacity of the avatar
  1110. + .app-content-list-item-icon {
  1111. opacity: .7;
  1112. }
  1113. }
  1114. }
  1115. + label {
  1116. top: 14px;
  1117. left: 7px;
  1118. // hidden by default, only chown on hover-focus or if checked
  1119. display: none;
  1120. &::before {
  1121. margin: 0;
  1122. }
  1123. /* Hide the star, priority to the checkbox */
  1124. ~ .app-content-list-item-star {
  1125. display: none;
  1126. }
  1127. }
  1128. }
  1129. .app-content-list-item-star {
  1130. display: flex;
  1131. top: 10px;
  1132. left: 32px;
  1133. background-size: 16px;
  1134. height: 20px;
  1135. width: 20px;
  1136. margin: 0;
  1137. padding: 0;
  1138. }
  1139. .app-content-list-item-icon {
  1140. position: absolute;
  1141. display: inline-block;
  1142. height: 40px;
  1143. width: 40px;
  1144. line-height: 40px;
  1145. border-radius: 50%;
  1146. vertical-align: middle;
  1147. margin-right: 10px;
  1148. color: #fff;
  1149. text-align: center;
  1150. font-size: 1.5em;
  1151. text-transform: capitalize;
  1152. object-fit: cover;
  1153. user-select: none;
  1154. cursor: pointer;
  1155. top: 50%;
  1156. margin-top: -20px;
  1157. }
  1158. .app-content-list-item-line-one,
  1159. .app-content-list-item-line-two {
  1160. display: block;
  1161. padding-left: 50px;
  1162. white-space: nowrap;
  1163. overflow: hidden;
  1164. text-overflow: ellipsis;
  1165. order: 1;
  1166. flex: 1 1 0px;
  1167. padding-right: 10px;
  1168. cursor: pointer;
  1169. }
  1170. .app-content-list-item-line-two {
  1171. opacity: .5;
  1172. order: 3;
  1173. flex: 1 0;
  1174. flex-basis: calc(100% - 44px);
  1175. }
  1176. .app-content-list-item-details {
  1177. order: 2;
  1178. white-space: nowrap;
  1179. overflow: hidden;
  1180. text-overflow: ellipsis;
  1181. max-width: 100px;
  1182. opacity: .5;
  1183. font-size: 80%;
  1184. user-select: none;
  1185. }
  1186. .app-content-list-item-menu {
  1187. order: 4;
  1188. position: relative;
  1189. .popovermenu {
  1190. margin: 0;
  1191. // action icon have -7px margin
  1192. // default popover is normally 5px
  1193. right: -2px;
  1194. }
  1195. }
  1196. }
  1197. &.selection .app-content-list-item-checkbox.checkbox + label {
  1198. display: flex;
  1199. }
  1200. }