You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

apps.scss 25KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205
  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. h2 {
  20. font-size: 20px;
  21. font-weight: 300;
  22. margin-bottom: 12px;
  23. line-height: 140%;
  24. }
  25. h3 {
  26. font-size: 15px;
  27. font-weight: 300;
  28. margin: 12px 0;
  29. }
  30. /* do not use italic typeface style, instead lighter color */
  31. em {
  32. font-style: normal;
  33. opacity: .5;
  34. }
  35. dl {
  36. padding: 12px 0;
  37. }
  38. dt,
  39. dd {
  40. display: inline-block;
  41. padding: 12px;
  42. padding-left: 0;
  43. }
  44. dt {
  45. width: 130px;
  46. white-space: nowrap;
  47. text-align: right;
  48. }
  49. kbd {
  50. padding: 4px 10px;
  51. border: 1px solid #ccc;
  52. box-shadow: 0 1px 0 rgba(0, 0, 0, .2);
  53. border-radius: var(--border-radius);
  54. display: inline-block;
  55. white-space: nowrap;
  56. }
  57. /* APP STYLING ------------------------------------------------------------ */
  58. #content[class*='app-'] * {
  59. box-sizing: border-box;
  60. }
  61. /* APP-NAVIGATION ------------------------------------------------------------ */
  62. /* Navigation: folder like structure */
  63. #app-navigation {
  64. width: $navigation-width;
  65. position: fixed;
  66. top: $header-height;
  67. left: 0;
  68. z-index: 500;
  69. overflow-y: auto;
  70. overflow-x: hidden;
  71. // Do not use vh because of mobile headers
  72. // are included in the calculation
  73. height: calc(100% - #{$header-height});
  74. box-sizing: border-box;
  75. background-color: var(--color-main-background);
  76. -webkit-user-select: none;
  77. -moz-user-select: none;
  78. -ms-user-select: none;
  79. user-select: none;
  80. border-right: 1px solid var(--color-border);
  81. display: flex;
  82. flex-direction: column;
  83. flex-grow: 0;
  84. flex-shrink: 0;
  85. /* 'New' button */
  86. .app-navigation-new {
  87. display: block;
  88. padding: 10px;
  89. button {
  90. display: inline-block;
  91. width: 100%;
  92. padding: 10px;
  93. padding-left: 34px;
  94. background-position: 10px center;
  95. text-align: left;
  96. margin: 0;
  97. }
  98. }
  99. li {
  100. position: relative;
  101. }
  102. > ul {
  103. position: relative;
  104. height: 100%;
  105. width: inherit;
  106. overflow-x: hidden;
  107. overflow-y: auto;
  108. box-sizing: border-box;
  109. display: flex;
  110. flex-direction: column;
  111. > li {
  112. display: inline-flex;
  113. flex-wrap: wrap;
  114. order: 1;
  115. flex-shrink: 0;
  116. /* Pinned-to-bottom entries */
  117. &.pinned {
  118. order: 2;
  119. &.first-pinned {
  120. margin-top: auto !important;
  121. }
  122. }
  123. > .app-navigation-entry-deleted {
  124. /* Ugly hack for overriding the main entry link */
  125. padding-left: 44px !important;
  126. }
  127. > .app-navigation-entry-edit {
  128. /* Ugly hack for overriding the main entry link */
  129. /* align the input correctly with the link text
  130. 44px-6px padding for the input */
  131. padding-left: 38px !important;
  132. }
  133. &.active,
  134. a:hover,
  135. a:focus,
  136. a:active,
  137. a.selected ,
  138. a.active {
  139. &,
  140. > a {
  141. opacity: 1;
  142. box-shadow: inset 4px 0 var(--color-primary);
  143. }
  144. }
  145. /* align loader */
  146. &.icon-loading-small:after {
  147. left: 22px;
  148. top: 22px;
  149. }
  150. /* hide and animate deletion/collapse of subitems */
  151. &.deleted,
  152. &.collapsible:not(.open) {
  153. > ul {
  154. opacity: 0;
  155. max-height: 0;
  156. overflow-y: hidden;
  157. /* bezier override the hide/slow effect due to the 2000 max-height */
  158. transition: max-height 1000ms cubic-bezier(0, 1, 0, 1),
  159. opacity 250ms ease-in-out;
  160. }
  161. }
  162. &.app-navigation-caption {
  163. font-weight: bold;
  164. line-height: 44px;
  165. padding: 0 44px;
  166. white-space: nowrap;
  167. text-overflow: ellipsis;
  168. // !important to overwrite specific hover and focus
  169. opacity: .7;
  170. box-shadow: none !important;
  171. user-select: none;
  172. pointer-events:none;
  173. &:not(:first-child) {
  174. margin-top: 22px;
  175. }
  176. }
  177. /* Second level nesting for lists */
  178. > ul {
  179. flex: 0 1 auto;
  180. width: 100%;
  181. transition: max-height 2000ms ease-in-out,
  182. opacity 250ms ease-in-out;
  183. max-height: 9999px;
  184. opacity: 1;
  185. position: relative;
  186. > li {
  187. display: inline-flex;
  188. flex-wrap: wrap;
  189. padding-left: 44px;
  190. &:hover,
  191. &:focus,
  192. &.active,
  193. a.selected {
  194. &,
  195. > a {
  196. opacity: 1;
  197. }
  198. }
  199. &.active {
  200. box-shadow: inset 4px 0 var(--color-primary);
  201. }
  202. /* align loader */
  203. &.icon-loading-small:after {
  204. left: 22px; /* 44px / 2 */
  205. }
  206. > .app-navigation-entry-deleted {
  207. /* margin to keep active indicator visible */
  208. margin-left: 4px;
  209. padding-left: 84px;
  210. }
  211. > .app-navigation-entry-edit {
  212. /* margin to keep active indicator visible */
  213. margin-left: 4px;
  214. /* align the input correctly with the link text
  215. 44px+44px-4px-6px padding for the input */
  216. padding-left: 78px !important;
  217. }
  218. }
  219. }
  220. }
  221. /* Menu and submenu */
  222. > li,
  223. > li > ul > li {
  224. position: relative;
  225. width: 100%;
  226. box-sizing: border-box;
  227. /* hide icons if loading */
  228. &.icon-loading-small {
  229. > a,
  230. > .app-navigation-entry-bullet {
  231. /* hide icon or bullet if loading state*/
  232. background: transparent !important;
  233. }
  234. }
  235. /* Main entry link */
  236. > a {
  237. background-size: 16px 16px;
  238. background-position: 14px center;
  239. background-repeat: no-repeat;
  240. display: block;
  241. justify-content: space-between;
  242. line-height: 44px;
  243. min-height: 44px;
  244. padding: 0 12px 0 44px;
  245. overflow: hidden;
  246. box-sizing: border-box;
  247. white-space: nowrap;
  248. text-overflow: ellipsis;
  249. color: var(--color-main-text);
  250. opacity: .57;
  251. flex: 1 1 0px;
  252. z-index: 100; /* above the bullet to allow click*/
  253. /* TODO: forbid using img as icon in menu? */
  254. &:first-child img {
  255. margin-right: 11px;
  256. width: 16px;
  257. height: 16px;
  258. margin-left: -30px;
  259. }
  260. /* counter can also be inside the link */
  261. > .app-navigation-entry-utils {
  262. display: inline-block;
  263. float: right;
  264. .app-navigation-entry-utils-counter {
  265. padding-right: 0 !important;
  266. }
  267. }
  268. }
  269. /* Bullet icon */
  270. > .app-navigation-entry-bullet {
  271. position: absolute;
  272. display: block;
  273. margin: 16px;
  274. width: 12px;
  275. height: 12px;
  276. border: none;
  277. border-radius: 50%;
  278. cursor: pointer;
  279. transition: background 100ms ease-in-out;
  280. + a {
  281. /* hide icon if bullet, can't have both */
  282. background: transparent !important;
  283. }
  284. }
  285. /* popover fix the flex positionning of the li parent */
  286. > .app-navigation-entry-menu {
  287. top: 44px;
  288. }
  289. /* show edit/undo field if editing/deleted */
  290. &.editing .app-navigation-entry-edit {
  291. opacity: 1;
  292. z-index: 250;
  293. }
  294. &.deleted .app-navigation-entry-deleted {
  295. transform: translateX(0);
  296. z-index: 250;
  297. }
  298. }
  299. }
  300. &.hidden {
  301. display: none;
  302. }
  303. /**
  304. * Button styling for menu, edit and undo
  305. */
  306. .app-navigation-entry-utils .app-navigation-entry-utils-menu-button > button,
  307. .app-navigation-entry-deleted .app-navigation-entry-deleted-button {
  308. border: 0;
  309. opacity: 0.5;
  310. background-color: transparent;
  311. background-repeat: no-repeat;
  312. background-position: center;
  313. &:hover,
  314. &:focus {
  315. background-color: transparent;
  316. opacity: 1;
  317. }
  318. }
  319. /**
  320. * Collapsible menus
  321. */
  322. .collapsible {
  323. /* Fallback for old collapse button.
  324. TODO: to be removed. Leaved here for retro compatibility */
  325. .collapse {
  326. opacity: 0;
  327. position: absolute;
  328. width: 44px;
  329. height: 44px;
  330. margin: 0;
  331. z-index: 110;
  332. }
  333. &:before {
  334. position: absolute;
  335. height: 44px;
  336. width: 44px;
  337. margin: 0;
  338. padding: 0;
  339. background: none;
  340. background-image: url('../img/actions/triangle-s.svg?v=1');
  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: 50;
  354. }
  355. /* force padding on link no matter if 'a' has an icon class */
  356. > a:first-child {
  357. padding-left: 44px;
  358. }
  359. &:before,
  360. > a {
  361. transition: background-position 100ms ease-in-out,
  362. transform 250ms ease-in-out,
  363. opacity 100ms ease-in-out;
  364. }
  365. &:hover > a,
  366. &:focus > a {
  367. background-position-x: -50px;
  368. }
  369. &:hover,
  370. &:focus {
  371. &:before {
  372. opacity: 1;
  373. }
  374. .app-navigation-entry-bullet {
  375. background: transparent !important;
  376. }
  377. }
  378. &.open {
  379. &:before {
  380. -webkit-transform: rotate(0);
  381. -ms-transform: rotate(0);
  382. transform: rotate(0);
  383. }
  384. }
  385. }
  386. /**
  387. * App navigation utils, buttons and counters for drop down menu
  388. */
  389. .app-navigation-entry-utils {
  390. flex: 0 1 auto;
  391. ul {
  392. display: flex !important;
  393. align-items: center;
  394. justify-content: flex-end;
  395. }
  396. li {
  397. width: 44px !important;
  398. height: 44px;
  399. }
  400. button {
  401. height: 100%;
  402. width: 100%;
  403. margin: 0;
  404. box-shadow: none;
  405. }
  406. .app-navigation-entry-utils-menu-button {
  407. /* Prevent bg img override if an icon class is set */
  408. button:not([class^='icon-']):not([class*=' icon-']) {
  409. background-image: url('../img/actions/more.svg?v=1');
  410. }
  411. &:hover button,
  412. &:focus button {
  413. background-color: transparent;
  414. opacity: 1;
  415. }
  416. }
  417. .app-navigation-entry-utils-counter {
  418. overflow: hidden;
  419. text-align: right;
  420. font-size: 9pt;
  421. line-height: 44px;
  422. padding: 0 12px; /* Same padding as all li > a in the app-navigation */
  423. &.highlighted {
  424. padding: 0;
  425. text-align: center;
  426. span {
  427. padding: 2px 5px;
  428. border-radius: 10px;
  429. background-color: var(--color-primary);
  430. color: var(--color-primary-text);
  431. }
  432. }
  433. }
  434. }
  435. /**
  436. * Editable entries
  437. */
  438. .app-navigation-entry-edit {
  439. padding-left: 5px;
  440. padding-right: 5px;
  441. display: block;
  442. width: calc(100% - 1px); /* Avoid border overlapping */
  443. transition: opacity 250ms ease-in-out;
  444. opacity: 0;
  445. position: absolute;
  446. background-color: var(--color-main-background);
  447. z-index: -1;
  448. form,
  449. div {
  450. display: inline-flex;
  451. width: 100%;
  452. }
  453. input {
  454. padding: 5px;
  455. margin-right: 0;
  456. height: 38px;
  457. &:hover,
  458. &:focus {
  459. /* overlapp borders */
  460. z-index: 1;
  461. }
  462. }
  463. input[type='text'] {
  464. width: 100%;
  465. min-width: 0; /* firefox hack: override auto */
  466. border-bottom-right-radius: 0;
  467. border-top-right-radius: 0;
  468. }
  469. button,
  470. input:not([type='text']) {
  471. width: 36px;
  472. height: 38px;
  473. flex: 0 0 36px;
  474. &:not(:last-child) {
  475. border-radius: 0 !important;
  476. }
  477. &:not(:first-child) {
  478. margin-left: -1px;
  479. }
  480. &:last-child {
  481. border-bottom-left-radius: 0;
  482. border-top-left-radius: 0;
  483. }
  484. }
  485. }
  486. /**
  487. * Deleted entries with undo button
  488. */
  489. .app-navigation-entry-deleted {
  490. display: inline-flex;
  491. padding-left: 44px;
  492. transform: translateX(#{$navigation-width});
  493. .app-navigation-entry-deleted-description {
  494. position: relative;
  495. white-space: nowrap;
  496. text-overflow: ellipsis;
  497. overflow: hidden;
  498. flex: 1 1 0px;
  499. line-height: 44px;
  500. }
  501. .app-navigation-entry-deleted-button {
  502. margin: 0;
  503. height: 44px;
  504. width: 44px;
  505. line-height: 44px;
  506. &:hover,
  507. &:focus {
  508. opacity: 1;
  509. }
  510. }
  511. }
  512. /**
  513. * Common rules for animation of undo and edit entries
  514. */
  515. .app-navigation-entry-edit,
  516. .app-navigation-entry-deleted {
  517. width: calc(100% - 1px); /* Avoid border overlapping */
  518. transition: transform 250ms ease-in-out,
  519. opacity 250ms ease-in-out,
  520. z-index 250ms ease-in-out;
  521. position: absolute;
  522. left: 0;
  523. background-color: var(--color-main-background);
  524. box-sizing: border-box;
  525. }
  526. /**
  527. * drag and drop
  528. */
  529. .drag-and-drop {
  530. -webkit-transition: padding-bottom 500ms ease 0s;
  531. transition: padding-bottom 500ms ease 0s;
  532. padding-bottom: 40px;
  533. }
  534. .error {
  535. color: var(--color-error);
  536. }
  537. .app-navigation-entry-utils ul,
  538. .app-navigation-entry-menu ul {
  539. list-style-type: none;
  540. }
  541. }
  542. /* CONTENT --------------------------------------------------------- */
  543. #content-wrapper {
  544. // everything not related to content but needs to be on the window
  545. // goes here (popups, tooltips...)
  546. position: relative;
  547. min-height: 100%;
  548. display: unset;
  549. }
  550. #content {
  551. box-sizing: border-box;
  552. position: relative;
  553. display: flex;
  554. margin-top: $header-height;
  555. min-height: 100%;
  556. }
  557. /* APP-CONTENT AND WRAPPER ------------------------------------------ */
  558. /* Part where the content will be loaded into */
  559. #app-content {
  560. z-index: 1000;
  561. background-color: var(--color-main-background);
  562. position: relative;
  563. min-height: 100%;
  564. flex-basis: 100vw;
  565. /* margin if navigation element is here */
  566. #app-navigation + & {
  567. margin-left: $navigation-width;
  568. }
  569. /* no top border for first settings item */
  570. > .section:first-child {
  571. border-top: none;
  572. }
  573. /* if app-content-list is present */
  574. #app-content-wrapper {
  575. display: flex;
  576. position: relative;
  577. align-items: start;
  578. .app-content-list,
  579. .app-content-detail {
  580. min-height: calc(100vh - #{$header-height});
  581. max-height: calc(100vh - #{$header-height});
  582. overflow-x: hidden;
  583. overflow-y: auto;
  584. }
  585. /* CONTENT DETAILS AFTER LIST*/
  586. .app-content-detail {
  587. /* grow full width */
  588. flex-grow: 1;
  589. #app-navigation-toggle-back {
  590. display: none;
  591. }
  592. }
  593. }
  594. }
  595. /* APP-SIDEBAR ------------------------------------------------------------ */
  596. /*
  597. Sidebar: a sidebar to be used within #content
  598. #app-content will be shrinked properly
  599. */
  600. #app-sidebar {
  601. width: 27vw;
  602. min-width: $sidebar-min-width;
  603. max-width: $sidebar-max-width;
  604. display: block;
  605. position: sticky;
  606. top: $header-height;
  607. right:0;
  608. overflow-y: auto;
  609. overflow-x: hidden;
  610. z-index: 1500;
  611. height: calc(100vh - #{$header-height});
  612. background: var(--color-main-background);
  613. border-left: 1px solid var(--color-border);
  614. flex-shrink: 0;
  615. // no animations possible, use OC.Apps.showAppSidebar
  616. &.disappear {
  617. display: none;
  618. }
  619. }
  620. /* APP-SETTINGS ------------------------------------------------------------ */
  621. /* settings area */
  622. #app-settings {
  623. // To the bottom w/ flex
  624. margin-top: auto;
  625. &.open,
  626. &.opened {
  627. #app-settings-content {
  628. display: block;
  629. }
  630. }
  631. }
  632. #app-settings-content {
  633. display: none;
  634. padding: 10px;
  635. background-color: var(--color-main-background);
  636. /* restrict height of settings and make scrollable */
  637. max-height: 300px;
  638. overflow-y: auto;
  639. box-sizing: border-box;
  640. /* display input fields at full width */
  641. input[type='text'] {
  642. width: 93%;
  643. }
  644. .info-text {
  645. padding: 5px 0 7px 22px;
  646. color: var(--color-text-lighter);
  647. }
  648. input {
  649. &[type='checkbox'],
  650. &[type='radio'] {
  651. &.radio,
  652. &.checkbox {
  653. + label {
  654. display: inline-block;
  655. width: 100%;
  656. padding: 5px 0;
  657. }
  658. }
  659. }
  660. }
  661. }
  662. #app-settings-header {
  663. box-sizing: border-box;
  664. background-color: var(--color-main-background);
  665. }
  666. .settings-button {
  667. display: block;
  668. height: 44px;
  669. width: 100%;
  670. padding: 0;
  671. margin: 0;
  672. background-color: var(--color-main-background);
  673. @include icon-color('settings-dark', 'actions', $color-black, 1, true);
  674. background-position: 14px center;
  675. background-repeat: no-repeat;
  676. box-shadow: none;
  677. border: 0;
  678. border-radius: 0;
  679. text-align: left;
  680. padding-left: 42px;
  681. font-weight: 400;
  682. /* like app-navigation a */
  683. color: var(--color-main-text);
  684. opacity: .57;
  685. &.opened,
  686. &:hover,
  687. &:focus {
  688. background-color: var(--color-main-background);
  689. opacity: 1;
  690. box-shadow: inset 4px 0 var(--color-primary);
  691. }
  692. }
  693. /* GENERAL SECTION ------------------------------------------------------------ */
  694. .section {
  695. display: block;
  696. padding: 30px;
  697. color: var(--color-text-lighter);
  698. margin-bottom: 24px;
  699. &.hidden {
  700. display: none !important;
  701. }
  702. /* slight position correction of checkboxes and radio buttons */
  703. input {
  704. &[type='checkbox'],
  705. &[type='radio'] {
  706. vertical-align: -2px;
  707. margin-right: 4px;
  708. }
  709. }
  710. }
  711. .sub-section {
  712. position: relative;
  713. margin-top: 10px;
  714. margin-left: 27px;
  715. margin-bottom: 10px;
  716. }
  717. .appear {
  718. opacity: 1;
  719. -webkit-transition: opacity 500ms ease 0s;
  720. -moz-transition: opacity 500ms ease 0s;
  721. -ms-transition: opacity 500ms ease 0s;
  722. -o-transition: opacity 500ms ease 0s;
  723. transition: opacity 500ms ease 0s;
  724. &.transparent {
  725. opacity: 0;
  726. }
  727. }
  728. /* TABS ------------------------------------------------------------ */
  729. .tabHeaders {
  730. display: inline-block;
  731. margin: 15px;
  732. .tabHeader {
  733. float: left;
  734. padding: 12px;
  735. cursor: pointer;
  736. color: var(--color-text-lighter);
  737. margin-bottom: 1px;
  738. a {
  739. color: var(--color-text-lighter);
  740. margin-bottom: 1px;
  741. }
  742. &.selected {
  743. font-weight: 600;
  744. }
  745. &.selected,
  746. &:hover,
  747. &:focus {
  748. margin-bottom: 0px;
  749. color: var(--color-main-text);
  750. border-bottom: 1px solid var(--color-text-lighter);
  751. }
  752. }
  753. }
  754. .tabsContainer {
  755. clear: left;
  756. .tab {
  757. padding: 0 15px 15px;
  758. }
  759. }
  760. /* POPOVER MENU ------------------------------------------------------------ */
  761. $popoveritem-height: 38px;
  762. $popovericon-size: 16px;
  763. .ie,
  764. .edge {
  765. .bubble, .bubble:after,
  766. .popovermenu, .popovermenu:after,
  767. #app-navigation .app-navigation-entry-menu,
  768. #app-navigation .app-navigation-entry-menu:after {
  769. border: 1px solid var(--color-border);
  770. }
  771. }
  772. .bubble,
  773. .app-navigation-entry-menu,
  774. .popovermenu {
  775. position: absolute;
  776. background-color: var(--color-main-background);
  777. color: var(--color-main-text);
  778. border-radius: var(--border-radius);
  779. z-index: 110;
  780. margin: 5px;
  781. margin-top: -5px;
  782. right: 0;
  783. filter: drop-shadow(0 1px 3px var(--color-box-shadow));
  784. display: none;
  785. &:after {
  786. bottom: 100%;
  787. /* Min-width of popover is 36px and arrow width is 20px
  788. wich leaves us 8px right and 8px left */
  789. right: 8px;
  790. /* change this to adjust the arrow position */
  791. border: solid transparent;
  792. content: ' ';
  793. height: 0;
  794. width: 0;
  795. position: absolute;
  796. pointer-events: none;
  797. border-bottom-color: var(--color-main-background);
  798. border-width: 10px;
  799. }
  800. /* Center the popover */
  801. &.menu-center {
  802. transform: translateX(50%);
  803. right: 50%;
  804. margin-right: 0;
  805. &:after {
  806. right: 50%;
  807. transform: translateX(50%);
  808. }
  809. }
  810. /* Align the popover to the left */
  811. &.menu-left {
  812. right: auto;
  813. left: 0;
  814. margin-right: 0;
  815. &:after {
  816. left: 6px;
  817. right: auto;
  818. }
  819. }
  820. &.open {
  821. display: block;
  822. }
  823. ul {
  824. /* Overwrite #app-navigation > ul ul */
  825. display: flex !important;
  826. flex-direction: column;
  827. }
  828. li {
  829. display: flex;
  830. flex: 0 0 auto;
  831. &.hidden {
  832. display: none;
  833. }
  834. > button,
  835. > a,
  836. > .menuitem {
  837. cursor: pointer;
  838. line-height: $popoveritem-height;
  839. border: 0;
  840. background-color: transparent;
  841. display: flex;
  842. align-items: flex-start;
  843. height: auto;
  844. margin: 0;
  845. font-weight: 300;
  846. box-shadow: none;
  847. width: 100%;
  848. color: var(--color-main-text);
  849. white-space: nowrap;
  850. /* Override the app-navigation li opacity */
  851. opacity: .7 !important;
  852. span[class^='icon-'],
  853. span[class*=' icon-'],
  854. &[class^='icon-'],
  855. &[class*=' icon-'] {
  856. min-width: 0; /* Overwrite icons*/
  857. min-height: 0;
  858. background-position: #{($popoveritem-height - $popovericon-size) / 2} center;
  859. background-size: $popovericon-size;
  860. }
  861. span[class^='icon-'],
  862. span[class*=' icon-'] {
  863. /* Keep padding to define the width to
  864. assure correct position of a possible text */
  865. padding: #{$popoveritem-height / 2} 0 #{$popoveritem-height / 2} $popoveritem-height;
  866. }
  867. // If no icons set, force left margin to align
  868. &:not([class^='icon-']):not([class*='icon-']) {
  869. > span,
  870. > input,
  871. > form {
  872. &:not([class^='icon-']):not([class*='icon-']):first-child {
  873. margin-left: $popoveritem-height;
  874. }
  875. }
  876. }
  877. &[class^='icon-'],
  878. &[class*=' icon-'] {
  879. padding: 0 #{($popoveritem-height - $popovericon-size) / 2} 0 $popoveritem-height !important;
  880. }
  881. &:hover,
  882. &:focus,
  883. &.active {
  884. opacity: 1 !important;
  885. }
  886. /* prevent .action class to break the design */
  887. &.action {
  888. padding: inherit !important;
  889. }
  890. > span {
  891. cursor: pointer;
  892. white-space: nowrap;
  893. }
  894. > p {
  895. width: 150px;
  896. line-height: 1.6em;
  897. padding: 8px 0;
  898. white-space: normal;
  899. }
  900. > select {
  901. margin: 0;
  902. margin-left: 6px;
  903. }
  904. /* Add padding if contains icon+text */
  905. &:not(:empty) {
  906. padding-right: 10px !important;
  907. }
  908. /* DEPRECATED! old img in popover fallback
  909. * TODO: to remove */
  910. > img {
  911. width: $popovericon-size;
  912. padding: #{($popoveritem-height - $popovericon-size) / 2};
  913. }
  914. /* checkbox/radio fixes */
  915. > input.radio + label,
  916. > input.checkbox + label {
  917. padding: 0 !important;
  918. width: 100%;
  919. }
  920. > input.checkbox + label::before {
  921. margin: -2px 13px 0;
  922. }
  923. > input.radio + label::before {
  924. margin: -2px 12px 0;
  925. }
  926. > input:not([type=radio]):not([type=checkbox]):not([type=image]) {
  927. width: 150px;
  928. }
  929. form {
  930. display: flex;
  931. flex: 1 1 auto;
  932. /* put a small space between text and form
  933. if there is an element before */
  934. &:not(:first-child) {
  935. margin-left: 5px;
  936. }
  937. }
  938. /* no margin if hidden span before */
  939. > span.hidden + form,
  940. > span[style*='display:none'] + form {
  941. margin-left: 0;
  942. }
  943. /* Inputs inside popover supports text, submit & reset */
  944. input {
  945. min-width: #{$popoveritem-height - 4px}; /* twice the margin */
  946. max-height: #{$popoveritem-height - 4px}; /* twice the margin */
  947. margin: 2px 0;
  948. flex: 1 1 auto;
  949. &:not(:first-child) {
  950. margin-left: 5px;
  951. }
  952. }
  953. }
  954. /* css hack, only first not hidden*/
  955. &:not(.hidden):not([style*='display:none']) {
  956. &:first-of-type {
  957. > button, > a, > .menuitem {
  958. > form, > input {
  959. margin-top: 10px;
  960. }
  961. }
  962. }
  963. &:last-of-type {
  964. > button, > a, > .menuitem {
  965. > form, > input {
  966. margin-bottom: 10px;
  967. }
  968. }
  969. }
  970. }
  971. > button {
  972. padding: 0;
  973. span {
  974. opacity: 1;
  975. }
  976. }
  977. }
  978. }
  979. /* CONTENT LIST ------------------------------------------------------------ */
  980. .app-content-list {
  981. width: 300px;
  982. border-right: 1px solid var(--color-border);
  983. display: flex;
  984. flex-direction: column;
  985. transition: transform 250ms ease-in-out;
  986. /* Default item */
  987. .app-content-list-item {
  988. position: relative;
  989. height: 68px;
  990. border-top: 1px solid var(--color-border);
  991. cursor: pointer;
  992. padding: 10px 7px;
  993. display: flex;
  994. flex-wrap: wrap;
  995. align-items: center;
  996. flex: 0 0 auto;
  997. /* Icon fixes */
  998. &,
  999. > .app-content-list-item-menu {
  1000. > [class^='icon-'],
  1001. > [class*=' icon-'] {
  1002. order: 4;
  1003. width: 24px;
  1004. height: 24px;
  1005. margin: -10px;
  1006. padding: 22px;
  1007. opacity: .3;
  1008. cursor: pointer;
  1009. &:hover,
  1010. &:focus {
  1011. opacity: .7;
  1012. }
  1013. &[class^='icon-star'],
  1014. &[class*=' icon-star'] {
  1015. opacity: .7;
  1016. &:hover,
  1017. &:focus {
  1018. opacity: 1 ;
  1019. }
  1020. }
  1021. &.icon-starred {
  1022. opacity: 1 ;
  1023. }
  1024. }
  1025. }
  1026. &:hover,
  1027. &:focus,
  1028. &.active {
  1029. background-color: var(--color-background-dark);
  1030. }
  1031. .app-content-list-item-checkbox.checkbox + label,
  1032. .app-content-list-item-star {
  1033. position: absolute;
  1034. height: 40px;
  1035. width: 40px;
  1036. display: flex;
  1037. z-index: 50;
  1038. }
  1039. .app-content-list-item-checkbox.checkbox {
  1040. &:checked {
  1041. // if checked, lower the opacity of the avatar
  1042. + label + .app-content-list-item-icon {
  1043. opacity: .7;
  1044. }
  1045. }
  1046. + label {
  1047. top: 14px;
  1048. left: 7px;
  1049. &::before {
  1050. margin: 0;
  1051. }
  1052. /* Hide the star, priority to the checkbox */
  1053. ~ .app-content-list-item-star {
  1054. display: none;
  1055. }
  1056. }
  1057. }
  1058. .app-content-list-item-star {
  1059. top: 10px;
  1060. left: 32px;
  1061. background-size: 16px;
  1062. height: 20px;
  1063. width: 20px;
  1064. margin: 0;
  1065. padding: 0;
  1066. }
  1067. .app-content-list-item-icon {
  1068. position: absolute;
  1069. display: inline-block;
  1070. height: 40px;
  1071. width: 40px;
  1072. line-height: 40px;
  1073. border-radius: 50%;
  1074. vertical-align: middle;
  1075. margin-right: 10px;
  1076. color: #fff;
  1077. text-align: center;
  1078. font-size: 1.5em;
  1079. text-transform: capitalize;
  1080. object-fit: cover;
  1081. user-select: none;
  1082. cursor: pointer;
  1083. top: 50%;
  1084. margin-top: -20px;
  1085. }
  1086. .app-content-list-item-line-one,
  1087. .app-content-list-item-line-two {
  1088. display: block;
  1089. padding-left: 50px;
  1090. white-space: nowrap;
  1091. overflow: hidden;
  1092. text-overflow: ellipsis;
  1093. order: 1;
  1094. flex: 1 1 0px;
  1095. padding-right: 10px;
  1096. cursor: pointer;
  1097. }
  1098. .app-content-list-item-line-two {
  1099. opacity: .5;
  1100. order: 3;
  1101. flex: 1 0;
  1102. flex-basis: calc(100% - 24px);
  1103. }
  1104. .app-content-list-item-details {
  1105. order: 2;
  1106. white-space: nowrap;
  1107. overflow: hidden;
  1108. text-overflow: ellipsis;
  1109. max-width: 100px;
  1110. opacity: .5;
  1111. font-size: 80%;
  1112. user-select: none;
  1113. }
  1114. .app-content-list-item-menu {
  1115. order: 4;
  1116. position: relative;
  1117. .popovermenu {
  1118. margin: 0;
  1119. right: -5px;
  1120. }
  1121. }
  1122. }
  1123. }