popup.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  1. .pop-over {
  2. background: #fff;
  3. border-radius: 0.4vw;
  4. border: 1px solid #dbdbdb;
  5. border-bottom-color: #c2c2c2;
  6. box-shadow: 0 0.2vh 0.8vh rgba(0,0,0,0.3);
  7. position: absolute;
  8. /* Wider default to fit full color palette */
  9. width: min(380px, 55vw);
  10. z-index: 99999;
  11. margin-top: 0.7vh;
  12. }
  13. .pop-over hr {
  14. margin: 0.5vh 0px;
  15. }
  16. .pop-over p,
  17. .pop-over textarea,
  18. .pop-over input[type="text"],
  19. .pop-over input[type="email"],
  20. .pop-over input[type="password"],
  21. .pop-over input[type="file"] {
  22. width: 100%;
  23. }
  24. .pop-over select {
  25. width: 100%;
  26. margin-bottom: 1.8vh;
  27. }
  28. .pop-over textarea {
  29. height: 9vh;
  30. }
  31. .pop-over form a span {
  32. padding: 0 0.7vw;
  33. }
  34. .pop-over .header {
  35. height: 4.5vh;
  36. position: relative;
  37. margin-bottom: 1vh;
  38. background: #f7f7f7;
  39. border-bottom: 1px solid #dcdcdc;
  40. color: #666;
  41. }
  42. .pop-over .header .header-title {
  43. display: block;
  44. line-height: 4vh;
  45. padding-top: 0.5vh;
  46. margin: 0 1.3vw;
  47. font-weight: bold;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. white-space: nowrap;
  51. }
  52. .pop-over .header .back-btn {
  53. float: left;
  54. overflow: hidden;
  55. width: 4vw;
  56. transition: width 0.2s;
  57. }
  58. .pop-over .header .back-btn i.fa {
  59. margin: 1.3vw;
  60. margin-top: 1.5vh;
  61. }
  62. .pop-over .header .back-btn.is-hidden {
  63. width: 0;
  64. }
  65. .pop-over .header .close-btn {
  66. padding: 1.3vh 1.3vw 1.3vh 0.5vw;
  67. position: absolute;
  68. top: 0;
  69. right: 0;
  70. }
  71. .pop-over.no-title .header {
  72. background: none;
  73. }
  74. .pop-over .content-wrapper {
  75. width: 100%;
  76. max-height: calc(70vh + 20px);
  77. overflow-y: auto;
  78. overflow-x: hidden;
  79. }
  80. /* Allow dynamic max-height to override default constraint */
  81. .pop-over[style*="max-height"] .content-wrapper {
  82. max-height: inherit;
  83. }
  84. .pop-over .content-container {
  85. width: 100%;
  86. max-height: calc(70vh + 20px);
  87. transition: transform 0.2s;
  88. }
  89. /* Allow dynamic max-height to override default constraint for content-container */
  90. .pop-over[style*="max-height"] .content-container {
  91. max-height: inherit;
  92. }
  93. /* Ensure language popup list can scroll properly */
  94. .pop-over .pop-over-list {
  95. max-height: none;
  96. overflow: visible;
  97. }
  98. /* Specific styling for language popup list */
  99. .pop-over[data-popup="changeLanguage"] .pop-over-list {
  100. max-height: none;
  101. overflow: visible;
  102. height: auto;
  103. flex: 1;
  104. }
  105. /* Ensure content div in language popup contains all items */
  106. .pop-over[data-popup="changeLanguage"] .content {
  107. height: auto;
  108. min-height: 100%;
  109. display: flex;
  110. flex-direction: column;
  111. }
  112. /* Allow dynamic height for Change Language popup */
  113. .pop-over[data-popup="changeLanguage"] .content-wrapper {
  114. max-height: inherit; /* Use dynamic height from JavaScript */
  115. }
  116. .pop-over[data-popup="changeLanguage"] .content-container {
  117. max-height: inherit; /* Use dynamic height from JavaScript */
  118. }
  119. /* Make language popup extend to bottom of browser window */
  120. .pop-over[data-popup="changeLanguage"] {
  121. height: calc(100vh - 30px);
  122. min-height: 300px;
  123. /* Adjust positioning to move popup 30px higher */
  124. transform: translateY(-30px);
  125. }
  126. .pop-over[data-popup="changeLanguage"] .content-wrapper {
  127. height: calc(100% - 50px); /* Subtract header height more precisely */
  128. min-height: 250px;
  129. overflow-y: auto;
  130. max-height: none; /* Remove any max-height constraints */
  131. display: flex;
  132. flex-direction: column;
  133. }
  134. .pop-over[data-popup="changeLanguage"] .content-container {
  135. height: auto; /* Let content determine height */
  136. min-height: 250px;
  137. max-height: none; /* Remove any max-height constraints */
  138. flex: 1;
  139. display: flex;
  140. flex-direction: column;
  141. }
  142. /* Date popup sizing for native HTML inputs */
  143. .pop-over[data-popup="editCardReceivedDatePopup"],
  144. .pop-over[data-popup="editCardStartDatePopup"],
  145. .pop-over[data-popup="editCardDueDatePopup"],
  146. .pop-over[data-popup="editCardEndDatePopup"],
  147. .pop-over[data-popup*="Date"] {
  148. width: min(400px, 90vw) !important; /* Smaller width for native inputs */
  149. min-width: 350px !important;
  150. max-height: 80vh !important;
  151. }
  152. .pop-over[data-popup="editCardReceivedDatePopup"] .content-wrapper,
  153. .pop-over[data-popup="editCardStartDatePopup"] .content-wrapper,
  154. .pop-over[data-popup="editCardDueDatePopup"] .content-wrapper,
  155. .pop-over[data-popup="editCardEndDatePopup"] .content-wrapper,
  156. .pop-over[data-popup*="Date"] .content-wrapper {
  157. max-height: 60vh !important;
  158. overflow-y: auto !important;
  159. }
  160. .pop-over[data-popup="editCardReceivedDatePopup"] .content-container,
  161. .pop-over[data-popup="editCardStartDatePopup"] .content-container,
  162. .pop-over[data-popup="editCardDueDatePopup"] .content-container,
  163. .pop-over[data-popup="editCardEndDatePopup"] .content-container,
  164. .pop-over[data-popup*="Date"] .content-container {
  165. max-height: 60vh !important;
  166. }
  167. /* Native HTML input styling */
  168. .pop-over[data-popup*="Date"] .datepicker-container {
  169. width: 100% !important;
  170. padding: 15px !important;
  171. }
  172. .pop-over[data-popup*="Date"] .datepicker-container .fields {
  173. display: flex !important;
  174. gap: 15px !important;
  175. margin-bottom: 15px !important;
  176. }
  177. .pop-over[data-popup*="Date"] .datepicker-container .fields .left,
  178. .pop-over[data-popup*="Date"] .datepicker-container .fields .right {
  179. flex: 1 !important;
  180. width: auto !important;
  181. }
  182. .pop-over[data-popup*="Date"] .datepicker-container label {
  183. display: block !important;
  184. margin-bottom: 5px !important;
  185. font-weight: bold !important;
  186. }
  187. .pop-over[data-popup*="Date"] .datepicker-container input[type="date"],
  188. .pop-over[data-popup*="Date"] .datepicker-container input[type="time"] {
  189. width: 100% !important;
  190. padding: 8px !important;
  191. border: 1px solid #ccc !important;
  192. border-radius: 4px !important;
  193. font-size: 14px !important;
  194. box-sizing: border-box !important;
  195. }
  196. .pop-over[data-popup*="Date"] .datepicker-container input[type="date"]:focus,
  197. .pop-over[data-popup*="Date"] .datepicker-container input[type="time"]:focus {
  198. outline: none !important;
  199. border-color: #007cba !important;
  200. box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2) !important;
  201. }
  202. /* Ensure date popup buttons stay within popup boundaries */
  203. .pop-over[data-popup="editCardReceivedDatePopup"] .content,
  204. .pop-over[data-popup="editCardStartDatePopup"] .content,
  205. .pop-over[data-popup="editCardDueDatePopup"] .content,
  206. .pop-over[data-popup="editCardEndDatePopup"] .content,
  207. .pop-over[data-popup*="Date"] .content {
  208. max-height: 60vh !important; /* Leave space for buttons */
  209. overflow-y: auto !important;
  210. padding-bottom: 100px !important; /* More space for buttons */
  211. margin-bottom: 0 !important;
  212. }
  213. .pop-over[data-popup="editCardReceivedDatePopup"] .datepicker-container,
  214. .pop-over[data-popup="editCardStartDatePopup"] .datepicker-container,
  215. .pop-over[data-popup="editCardDueDatePopup"] .datepicker-container,
  216. .pop-over[data-popup="editCardEndDatePopup"] .datepicker-container,
  217. .pop-over[data-popup*="Date"] .datepicker-container {
  218. max-height: 50vh !important; /* Limit calendar height */
  219. overflow-y: auto !important;
  220. margin-bottom: 20px !important; /* Space before buttons */
  221. }
  222. /* Ensure buttons are properly positioned */
  223. .pop-over[data-popup="editCardReceivedDatePopup"] .edit-date,
  224. .pop-over[data-popup="editCardStartDatePopup"] .edit-date,
  225. .pop-over[data-popup="editCardDueDatePopup"] .edit-date,
  226. .pop-over[data-popup="editCardEndDatePopup"] .edit-date,
  227. .pop-over[data-popup*="Date"] .edit-date {
  228. display: flex !important;
  229. flex-direction: column !important;
  230. height: 100% !important;
  231. }
  232. .pop-over[data-popup="editCardReceivedDatePopup"] .edit-date .fields,
  233. .pop-over[data-popup="editCardStartDatePopup"] .edit-date .fields,
  234. .pop-over[data-popup="editCardDueDatePopup"] .edit-date .fields,
  235. .pop-over[data-popup="editCardEndDatePopup"] .edit-date .fields,
  236. .pop-over[data-popup*="Date"] .edit-date .fields {
  237. flex-shrink: 0 !important;
  238. margin-bottom: 15px !important;
  239. }
  240. .pop-over[data-popup="editCardReceivedDatePopup"] .edit-date .js-datepicker,
  241. .pop-over[data-popup="editCardStartDatePopup"] .edit-date .js-datepicker,
  242. .pop-over[data-popup="editCardDueDatePopup"] .edit-date .js-datepicker,
  243. .pop-over[data-popup="editCardEndDatePopup"] .edit-date .js-datepicker,
  244. .pop-over[data-popup*="Date"] .edit-date .js-datepicker {
  245. flex: 1 !important;
  246. overflow-y: auto !important;
  247. }
  248. .pop-over[data-popup="editCardReceivedDatePopup"] .edit-date button,
  249. .pop-over[data-popup="editCardStartDatePopup"] .edit-date button,
  250. .pop-over[data-popup="editCardDueDatePopup"] .edit-date button,
  251. .pop-over[data-popup="editCardEndDatePopup"] .edit-date button,
  252. .pop-over[data-popup*="Date"] .edit-date button {
  253. flex-shrink: 0 !important;
  254. margin-top: 15px !important;
  255. position: relative !important;
  256. z-index: 10 !important;
  257. }
  258. .pop-over .content-container .content {
  259. /* Match wider popover, leave padding */
  260. width: 100%;
  261. padding: 0 1.3vw 1.3vh;
  262. box-sizing: border-box;
  263. /* Ensure content is not shifted left */
  264. margin-left: 0 !important;
  265. transform: none !important;
  266. }
  267. /* Utility: remove left gutter inside specific popups */
  268. .pop-over .content .flush-left {
  269. margin-left: 0;
  270. padding-left: 0;
  271. width: 100%;
  272. }
  273. /* Swimlane popups: remove left gutter, align content fully left */
  274. .pop-over .content form.swimlane-color-popup,
  275. .pop-over .content .swimlane-height-popup {
  276. margin-left: 0;
  277. padding-left: 0;
  278. width: 100%;
  279. }
  280. /* Color selection popups: ensure proper alignment */
  281. .pop-over .content form.swimlane-color-popup .palette-colors,
  282. .pop-over .content form.edit-label .palette-colors,
  283. .pop-over .content form.create-label .palette-colors {
  284. margin-left: 0;
  285. padding-left: 0;
  286. width: 100%;
  287. }
  288. /* Color palette items: ensure proper positioning */
  289. .pop-over .content .palette-colors .palette-color {
  290. margin-left: 0;
  291. margin-right: 2px;
  292. margin-bottom: 2px;
  293. }
  294. /* Global fix for all popup content to prevent left shifting */
  295. .pop-over .content * {
  296. margin-left: 0 !important;
  297. transform: none !important;
  298. }
  299. /* Override any potential left shifting for specific elements */
  300. .pop-over .content form,
  301. .pop-over .content .palette-colors,
  302. .pop-over .content .pop-over-list,
  303. .pop-over .content .flush-left {
  304. margin-left: 0 !important;
  305. padding-left: 0 !important;
  306. transform: none !important;
  307. }
  308. /* Fix popup depth containers that cause left shifting */
  309. .pop-over .popup-container-depth-1,
  310. .pop-over .popup-container-depth-2,
  311. .pop-over .popup-container-depth-3,
  312. .pop-over .popup-container-depth-4,
  313. .pop-over .popup-container-depth-5,
  314. .pop-over .popup-container-depth-6 {
  315. transform: none !important;
  316. margin-left: 0 !important;
  317. padding-left: 0 !important;
  318. }
  319. /* Ensure buttons don’t reserve left space; align to flow */
  320. .pop-over .content form.swimlane-color-popup .primary.confirm,
  321. .pop-over .content form.swimlane-color-popup .negate.wide.right,
  322. .pop-over .content .swimlane-height-popup .primary.confirm,
  323. .pop-over .content .swimlane-height-popup .negate.wide.right {
  324. float: none;
  325. margin-left: 0;
  326. }
  327. .pop-over .content-container .content.no-height {
  328. height: 0;
  329. overflow: hidden;
  330. padding: 0;
  331. margin: 0;
  332. visibility: hidden;
  333. }
  334. .pop-over .quiet {
  335. /* padding: 6px 6px 4px;*/
  336. }
  337. .pop-over.search-over {
  338. background: #f0f0f0;
  339. min-height: 14vh;
  340. }
  341. .pop-over.search-over .header {
  342. display: none;
  343. }
  344. .pop-over.search-over .content {
  345. padding: 8px 4px 8px 10px;
  346. margin-right: 8px;
  347. }
  348. .pop-over .at-form .at-error,
  349. .pop-over .at-form .at-result {
  350. padding: 8px 12px;
  351. margin: 0 0 10px 0;
  352. }
  353. .pop-over .at-form .at-error {
  354. background: #ef9a9a;
  355. }
  356. .pop-over .at-form .at-result {
  357. background: #b2dfdb;
  358. }
  359. .pop-over .sk-spinner {
  360. margin: 40px auto;
  361. }
  362. .pop-over .popup-container-depth-1 {
  363. transform: translateX(-300px);
  364. }
  365. .pop-over .popup-container-depth-2 {
  366. transform: translateX(-600px);
  367. }
  368. .pop-over .popup-container-depth-3 {
  369. transform: translateX(-900px);
  370. }
  371. .pop-over .popup-container-depth-4 {
  372. transform: translateX(-1200px);
  373. }
  374. .pop-over .popup-container-depth-5 {
  375. transform: translateX(-1500px);
  376. }
  377. .pop-over .popup-container-depth-6 {
  378. transform: translateX(-1800px);
  379. }
  380. .select-members-list,
  381. .select-avatars-list {
  382. margin-bottom: 8px;
  383. }
  384. .pop-over-list li {
  385. display: block;
  386. clear: both;
  387. }
  388. .pop-over-list li > a {
  389. clear: both;
  390. cursor: pointer;
  391. display: block;
  392. font-weight: 700;
  393. padding: 1.5px 10px;
  394. position: relative;
  395. margin: 0;
  396. text-decoration: none;
  397. overflow: hidden;
  398. line-height: 33px;
  399. display:flex;
  400. /* flex-wrap:wrap;*/
  401. gap:5px;
  402. align-items: center;
  403. }
  404. .pop-over-list li > a > .member{
  405. align-self: flex-start;
  406. flex:0 0 auto;
  407. }
  408. .pop-over-list li > a .item-name {
  409. display: block;
  410. width: auto;
  411. padding-right: 22px;
  412. }
  413. .pop-over-list li > a:not(.disabled):hover {
  414. background-color: #005377;
  415. color: #fff;
  416. }
  417. .pop-over-list li > a:not(.disabled):hover .sub-name,
  418. .pop-over-list li > a:not(.disabled):hover .quiet {
  419. color: #eee;
  420. }
  421. .pop-over-list li > a:not(.disabled):hover .unread-indicator {
  422. background: #fff;
  423. }
  424. .pop-over-list li > a .sub-name {
  425. color: #8c8c8c;
  426. display: block;
  427. font-size: 12px;
  428. font-weight: 400;
  429. line-height: 15px;
  430. }
  431. .pop-over-list li > a.current {
  432. background-color: #e2e6e9;
  433. }
  434. .pop-over-list li > a:active {
  435. background-color: #2e85b8;
  436. }
  437. .pop-over-list li > a.disabled {
  438. color: #8c8c8c;
  439. cursor: default;
  440. }
  441. .pop-over-list li > a.disabled .vis-icon {
  442. opacity: 0.35;
  443. }
  444. .pop-over-list li > a.disabled:hover {
  445. background: none;
  446. }
  447. .pop-over-list li > a.disabled:hover .sub-name,
  448. .pop-over-list li > a.disabled:hover .quiet {
  449. color: #8c8c8c;
  450. }
  451. .pop-over-list li > a.disabled:active {
  452. background: none;
  453. }
  454. .pop-over-list.inset li > a {
  455. border-radius: 3px;
  456. margin: 0;
  457. }
  458. .pop-over-list .pop-over-list.checkable .fa-check {
  459. display: none;
  460. position: absolute;
  461. top: 6px;
  462. right: 12px;
  463. }
  464. .pop-over-list .pop-over-list.checkable li.active a {
  465. padding-right: 28px;
  466. }
  467. .pop-over-list .pop-over-list.checkable li.active a .fa-check {
  468. display: block;
  469. }
  470. .pop-over.miniprofile .header {
  471. border-bottom-color: transparent;
  472. height: 30px;
  473. position: absolute;
  474. right: 0;
  475. top: 0;
  476. width: 60px;
  477. z-index: 1;
  478. }
  479. .pop-over.miniprofile .header-title {
  480. display: none;
  481. }
  482. .pop-over.miniprofile .pop-over-list {
  483. padding-top: 8px;
  484. }
  485. .pop-over.miniprofile .miniprofile-header {
  486. margin-top: 8px;
  487. min-height: 56px;
  488. position: relative;
  489. }
  490. .pop-over.miniprofile .miniprofile-header .member,
  491. .pop-over.miniprofile .miniprofile-header .avatar {
  492. position: absolute;
  493. top: 2px;
  494. left: 2px;
  495. height: 50px;
  496. width: 50px;
  497. }
  498. .pop-over.miniprofile .miniprofile-header .info {
  499. margin: 0 0 0 64px;
  500. word-wrap: break-word;
  501. }
  502. .pop-over.miniprofile .miniprofile-header .info h3 a {
  503. text-decoration: none;
  504. }
  505. .pop-over.miniprofile .miniprofile-header .info h3 a:hover {
  506. text-decoration: underline;
  507. }
  508. @media screen and (max-width: 800px) {
  509. .pop-over {
  510. width: 100%;
  511. height: 100%;
  512. overflow: hidden;
  513. margin-top: 0px;
  514. border: 0px solid #dbdbdb;
  515. }
  516. .pop-over .header {
  517. color: #fff;
  518. background: #2980b9;
  519. height: 48px;
  520. padding: 0px 0px;
  521. border: 0px;
  522. margin: 0px 0px;
  523. width: 100%;
  524. position: absolute;
  525. top: 0px;
  526. }
  527. .pop-over .header .header-title {
  528. font-size: 20px;
  529. font-weight: normal;
  530. padding-top: 8px;
  531. }
  532. .pop-over .header .back-btn {
  533. width: 30px;
  534. padding: 8px 12px 8px 12px;
  535. }
  536. .pop-over .header .back-btn i.fa {
  537. color: #fff;
  538. }
  539. .pop-over .header .close-btn {
  540. padding: 10px 12px;
  541. }
  542. .pop-over .header .close-btn i.fa {
  543. font-size: 24px;
  544. color: #fff;
  545. }
  546. .pop-over .content-wrapper {
  547. width: 100%;
  548. height: calc(100% - 48px);
  549. overflow-y: scroll;
  550. overflow-x: hidden;
  551. margin: 48px 0px 0px 0px;
  552. }
  553. .pop-over .content-container {
  554. width: 100%;
  555. height: 100%;
  556. max-height: 100%;
  557. }
  558. .pop-over .content-container .content {
  559. width: calc(100% - 20px);
  560. height: calc(100% - 20px);
  561. padding: 10px;
  562. }
  563. .pop-over .content-container .content form {
  564. margin: 10px 10px;
  565. width: calc(100% - 20px);
  566. }
  567. .pop-over .content-container .content p,
  568. .pop-over .content-container .content textarea,
  569. .pop-over .content-container .content input[type="text"],
  570. .pop-over .content-container .content input[type="email"],
  571. .pop-over .content-container .content input[type="password"],
  572. .pop-over .content-container .content input[type="file"] {
  573. width: 100%;
  574. box-sizing: border-box;
  575. }
  576. .pop-over .pop-over-list li > a {
  577. width: calc(100% - 20px);
  578. margin: 0px 0px;
  579. }
  580. .pop-over .popup-container-depth-1 {
  581. transform: none !important;
  582. }
  583. .pop-over .popup-container-depth-2 {
  584. transform: none !important;
  585. }
  586. .pop-over .popup-container-depth-3 {
  587. transform: none !important;
  588. }
  589. .pop-over .popup-container-depth-4 {
  590. transform: none !important;
  591. }
  592. .pop-over .popup-container-depth-5 {
  593. transform: none !important;
  594. }
  595. .pop-over .popup-container-depth-6 {
  596. transform: none !important;
  597. }
  598. }