apps.scss 27 KB

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