popup.css 15 KB

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