apps.scss 27 KB

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