1
0

apps.scss 27 KB

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