apps.scss 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281
  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: 38px;
  777. $popovericon-size: 16px;
  778. .ie,
  779. .edge {
  780. .bubble, .bubble:after,
  781. .popovermenu, .popovermenu:after,
  782. #app-navigation .app-navigation-entry-menu,
  783. #app-navigation .app-navigation-entry-menu:after {
  784. border: 1px solid var(--color-border);
  785. }
  786. }
  787. .bubble,
  788. .app-navigation-entry-menu,
  789. .popovermenu {
  790. position: absolute;
  791. background-color: var(--color-main-background);
  792. color: var(--color-main-text);
  793. border-radius: var(--border-radius);
  794. border: 1px solid transparent;
  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. background-color: transparent;
  862. display: flex;
  863. align-items: flex-start;
  864. height: auto;
  865. margin: 0;
  866. font-weight: normal;
  867. box-shadow: none;
  868. width: 100%;
  869. color: var(--color-main-text);
  870. white-space: nowrap;
  871. /* Override the app-navigation li opacity */
  872. opacity: .7 !important;
  873. span[class^='icon-'],
  874. span[class*=' icon-'],
  875. &[class^='icon-'],
  876. &[class*=' icon-'] {
  877. min-width: 0; /* Overwrite icons*/
  878. min-height: 0;
  879. background-position: #{($popoveritem-height - $popovericon-size) / 2} center;
  880. background-size: $popovericon-size;
  881. }
  882. span[class^='icon-'],
  883. span[class*=' icon-'] {
  884. /* Keep padding to define the width to
  885. assure correct position of a possible text */
  886. padding: #{$popoveritem-height / 2} 0 #{$popoveritem-height / 2} $popoveritem-height;
  887. }
  888. // If no icons set, force left margin to align
  889. &:not([class^='icon-']):not([class*='icon-']) {
  890. > span,
  891. > input,
  892. > form {
  893. &:not([class^='icon-']):not([class*='icon-']):first-child {
  894. margin-left: $popoveritem-height;
  895. }
  896. }
  897. }
  898. &[class^='icon-'],
  899. &[class*=' icon-'] {
  900. padding: 0 #{($popoveritem-height - $popovericon-size) / 2} 0 $popoveritem-height !important;
  901. }
  902. &:hover,
  903. &:focus,
  904. &.active {
  905. opacity: 1 !important;
  906. }
  907. /* prevent .action class to break the design */
  908. &.action {
  909. padding: inherit !important;
  910. }
  911. > span {
  912. cursor: pointer;
  913. white-space: nowrap;
  914. }
  915. > p {
  916. width: 150px;
  917. line-height: 1.6em;
  918. padding: 8px 0;
  919. white-space: normal;
  920. }
  921. > select {
  922. margin: 0;
  923. margin-left: 6px;
  924. }
  925. /* Add padding if contains icon+text */
  926. &:not(:empty) {
  927. padding-right: 10px !important;
  928. }
  929. /* DEPRECATED! old img in popover fallback
  930. * TODO: to remove */
  931. > img {
  932. width: $popovericon-size;
  933. padding: #{($popoveritem-height - $popovericon-size) / 2};
  934. }
  935. /* checkbox/radio fixes */
  936. > input.radio + label,
  937. > input.checkbox + label {
  938. padding: 0 !important;
  939. width: 100%;
  940. }
  941. > input.checkbox + label::before {
  942. margin: -2px 13px 0;
  943. }
  944. > input.radio + label::before {
  945. margin: -2px 12px 0;
  946. }
  947. > input:not([type=radio]):not([type=checkbox]):not([type=image]) {
  948. width: 150px;
  949. }
  950. form {
  951. display: flex;
  952. flex: 1 1 auto;
  953. /* put a small space between text and form
  954. if there is an element before */
  955. &:not(:first-child) {
  956. margin-left: 5px;
  957. }
  958. }
  959. /* no margin if hidden span before */
  960. > span.hidden + form,
  961. > span[style*='display:none'] + form {
  962. margin-left: 0;
  963. }
  964. /* Inputs inside popover supports text, submit & reset */
  965. input {
  966. min-width: #{$popoveritem-height - 4px}; /* twice the margin */
  967. max-height: #{$popoveritem-height - 4px}; /* twice the margin */
  968. margin: 2px 0;
  969. flex: 1 1 auto;
  970. &:not(:first-child) {
  971. margin-left: 5px;
  972. }
  973. }
  974. }
  975. /* css hack, only first not hidden*/
  976. &:not(.hidden):not([style*='display:none']) {
  977. &:first-of-type {
  978. > button, > a, > .menuitem {
  979. > form, > input {
  980. margin-top: 10px;
  981. }
  982. }
  983. }
  984. &:last-of-type {
  985. > button, > a, > .menuitem {
  986. > form, > input {
  987. margin-bottom: 10px;
  988. }
  989. }
  990. }
  991. }
  992. > button {
  993. padding: 0;
  994. span {
  995. opacity: 1;
  996. }
  997. }
  998. }
  999. }
  1000. /* "app-*" descendants use border-box sizing, so the height of the icon must be
  1001. * set to the height of the item (as well as its width to make it squared). */
  1002. #content[class*='app-'] {
  1003. .bubble,
  1004. .app-navigation-entry-menu,
  1005. .popovermenu {
  1006. li {
  1007. > button,
  1008. > a,
  1009. > .menuitem {
  1010. /* DEPRECATED! old img in popover fallback
  1011. * TODO: to remove */
  1012. > img {
  1013. width: $popoveritem-height;
  1014. height: $popoveritem-height;
  1015. }
  1016. }
  1017. }
  1018. }
  1019. }
  1020. /* CONTENT LIST ------------------------------------------------------------ */
  1021. .app-content-list {
  1022. @include position('sticky');
  1023. top: $header-height;
  1024. border-right: 1px solid var(--color-border);
  1025. display: flex;
  1026. flex-direction: column;
  1027. transition: transform 250ms ease-in-out;
  1028. min-height: calc(100vh - #{$header-height});
  1029. max-height: calc(100vh - #{$header-height});
  1030. overflow-y: auto;
  1031. overflow-x: hidden;
  1032. flex: 1 1 $list-min-width;
  1033. min-width: $list-min-width;
  1034. max-width: $list-max-width;
  1035. /* Default item */
  1036. .app-content-list-item {
  1037. position: relative;
  1038. height: 68px;
  1039. border-top: 1px solid var(--color-border);
  1040. cursor: pointer;
  1041. padding: 10px 7px;
  1042. display: flex;
  1043. flex-wrap: wrap;
  1044. align-items: center;
  1045. flex: 0 0 auto;
  1046. /* Icon fixes */
  1047. &,
  1048. > .app-content-list-item-menu {
  1049. > [class^='icon-'],
  1050. > [class*=' icon-'] {
  1051. order: 4;
  1052. width: 24px;
  1053. height: 24px;
  1054. margin: -7px; // right padding of item
  1055. padding: 22px;
  1056. opacity: .3;
  1057. cursor: pointer;
  1058. &:hover,
  1059. &:focus {
  1060. opacity: .7;
  1061. }
  1062. &[class^='icon-star'],
  1063. &[class*=' icon-star'] {
  1064. opacity: .7;
  1065. &:hover,
  1066. &:focus {
  1067. opacity: 1 ;
  1068. }
  1069. }
  1070. &.icon-starred {
  1071. opacity: 1 ;
  1072. }
  1073. }
  1074. }
  1075. &:hover,
  1076. &:focus,
  1077. &.active {
  1078. background-color: var(--color-background-dark);
  1079. // display checkbox on hover/focus/active
  1080. .app-content-list-item-checkbox.checkbox + label {
  1081. display: flex;
  1082. }
  1083. }
  1084. .app-content-list-item-checkbox.checkbox + label,
  1085. .app-content-list-item-star {
  1086. position: absolute;
  1087. height: 40px;
  1088. width: 40px;
  1089. z-index: 50;
  1090. }
  1091. .app-content-list-item-checkbox.checkbox {
  1092. &:checked,
  1093. &:hover,
  1094. &:focus,
  1095. &.active {
  1096. + label {
  1097. // display checkbox if checked
  1098. display: flex;
  1099. // if checked, lower the opacity of the avatar
  1100. + .app-content-list-item-icon {
  1101. opacity: .7;
  1102. }
  1103. }
  1104. }
  1105. + label {
  1106. top: 14px;
  1107. left: 7px;
  1108. // hidden by default, only chown on hover-focus or if checked
  1109. display: none;
  1110. &::before {
  1111. margin: 0;
  1112. }
  1113. /* Hide the star, priority to the checkbox */
  1114. ~ .app-content-list-item-star {
  1115. display: none;
  1116. }
  1117. }
  1118. }
  1119. .app-content-list-item-star {
  1120. display: flex;
  1121. top: 10px;
  1122. left: 32px;
  1123. background-size: 16px;
  1124. height: 20px;
  1125. width: 20px;
  1126. margin: 0;
  1127. padding: 0;
  1128. }
  1129. .app-content-list-item-icon {
  1130. position: absolute;
  1131. display: inline-block;
  1132. height: 40px;
  1133. width: 40px;
  1134. line-height: 40px;
  1135. border-radius: 50%;
  1136. vertical-align: middle;
  1137. margin-right: 10px;
  1138. color: #fff;
  1139. text-align: center;
  1140. font-size: 1.5em;
  1141. text-transform: capitalize;
  1142. object-fit: cover;
  1143. user-select: none;
  1144. cursor: pointer;
  1145. top: 50%;
  1146. margin-top: -20px;
  1147. }
  1148. .app-content-list-item-line-one,
  1149. .app-content-list-item-line-two {
  1150. display: block;
  1151. padding-left: 50px;
  1152. white-space: nowrap;
  1153. overflow: hidden;
  1154. text-overflow: ellipsis;
  1155. order: 1;
  1156. flex: 1 1 0px;
  1157. padding-right: 10px;
  1158. cursor: pointer;
  1159. }
  1160. .app-content-list-item-line-two {
  1161. opacity: .5;
  1162. order: 3;
  1163. flex: 1 0;
  1164. flex-basis: calc(100% - 44px);
  1165. }
  1166. .app-content-list-item-details {
  1167. order: 2;
  1168. white-space: nowrap;
  1169. overflow: hidden;
  1170. text-overflow: ellipsis;
  1171. max-width: 100px;
  1172. opacity: .5;
  1173. font-size: 80%;
  1174. user-select: none;
  1175. }
  1176. .app-content-list-item-menu {
  1177. order: 4;
  1178. position: relative;
  1179. .popovermenu {
  1180. margin: 0;
  1181. // action icon have -7px margin
  1182. // default popover is normally 5px
  1183. right: -2px;
  1184. }
  1185. }
  1186. }
  1187. &.selection .app-content-list-item-checkbox.checkbox + label {
  1188. display: flex;
  1189. }
  1190. }