minicard.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. .minicard-wrapper {
  2. cursor: pointer;
  3. position: relative;
  4. display: flex;
  5. align-items: center;
  6. margin-bottom: 9px;
  7. }
  8. .minicard-wrapper.placeholder {
  9. background: #ccc;
  10. border-radius: 9px;
  11. }
  12. .minicard-wrapper.ui-sortable-helper {
  13. cursor: grabbing;
  14. transform: rotate(4deg);
  15. display: block !important;
  16. }
  17. .minicard-wrapper.ui-sortable-helper .and-n-other {
  18. width: 100%;
  19. height: 16px;
  20. padding: 4px;
  21. background-color: #f2f2f2;
  22. text-align: center;
  23. border-radius: 3px;
  24. }
  25. .minicard-wrapper.ui-sortable-helper .multi-selection-checkbox {
  26. display: none;
  27. }
  28. .minicard-wrapper .multi-selection-checkbox + .minicard {
  29. margin-left: 8px;
  30. }
  31. @media only screen {
  32. .minicard {
  33. padding: 6px 8px 2px;
  34. position: relative;
  35. flex: 1;
  36. flex-wrap: wrap;
  37. background-color: #fff;
  38. min-height: 20px;
  39. box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  40. border-radius: 2px;
  41. color: #4d4d4d;
  42. overflow: hidden;
  43. transition: transform 0.2s, border-radius 0.2s;
  44. }
  45. }
  46. .minicard-details-menu-with-handle {
  47. float: right;
  48. font-size: 18px;
  49. padding-right: 30px;
  50. }
  51. .minicard-details-menu {
  52. float: right;
  53. font-size: 18px;
  54. }
  55. @media print {
  56. .minicard-details-menu,
  57. .minicard-details-menu-with-handle {
  58. display: none;
  59. }
  60. }
  61. .minicard.linked-board .linked-icon,
  62. .minicard.linked-card .linked-icon {
  63. display: inline-block;
  64. margin-right: 11px;
  65. vertical-align: baseline;
  66. font-size: 0.9em;
  67. }
  68. .minicard.linked-board .linked-archived,
  69. .minicard.linked-card .linked-archived {
  70. color: #937760;
  71. }
  72. .is-selected .minicard {
  73. transform: translateX(11px);
  74. border-bottom-right-radius: 0;
  75. border-top-right-radius: 0;
  76. z-index: 25;
  77. box-shadow: -2px 1px 2px rgba(0,0,0,0.2);
  78. }
  79. .minicard:hover:not(.minicard-composer),
  80. .is-selected .minicard,
  81. .draggable-hover-card .minicard {
  82. background: #f7f7f7;
  83. }
  84. .draggable-hover-card .minicard {
  85. background: #ededed;
  86. }
  87. .minicard .minicard-cover {
  88. background-position: center;
  89. background-repeat: no-repeat;
  90. background-size: contain;
  91. height: 145px;
  92. user-select: none;
  93. margin: -6px -8px 6px -8px;
  94. border-radius: top 2px;
  95. }
  96. .minicard .minicard-labels {
  97. float: none;
  98. }
  99. .minicard .minicard-labels .minicard-label {
  100. width: 11px;
  101. height: 11px;
  102. border-radius: 2px;
  103. margin-right: 3px;
  104. margin-bottom: 3px;
  105. }
  106. .minicard .minicard-labels-no-text {
  107. display: flex;
  108. flex-wrap: wrap;
  109. }
  110. .minicard .minicard-custom-fields {
  111. display: block;
  112. }
  113. .minicard .minicard-custom-field {
  114. display: flex;
  115. }
  116. .minicard .minicard-custom-field-item {
  117. flex-grow: 1;
  118. display: block;
  119. word-wrap: break-word;
  120. max-width: 100px;
  121. margin-right: 4px;
  122. }
  123. .minicard .handle {
  124. width: 20px;
  125. height: 20px;
  126. position: absolute;
  127. right: 5px;
  128. top: 5px;
  129. display: none;
  130. }
  131. @media only screen {
  132. .minicard .handle {
  133. display: block;
  134. }
  135. }
  136. .minicard .handle .fa-arrows {
  137. font-size: 20px;
  138. color: #ccc;
  139. }
  140. .minicard .minicard-title .card-number {
  141. color: #b3b3b3;
  142. display: inline-block;
  143. margin-right: 5px;
  144. }
  145. @media only screen {
  146. .minicard .minicard-title p:last-child {
  147. margin-bottom: 0;
  148. }
  149. .minicard .minicard-title .viewer {
  150. display: block;
  151. word-wrap: break-word;
  152. max-width: 230px;
  153. }
  154. }
  155. .minicard .dates {
  156. display: flex;
  157. flex-direction: row;
  158. flex-wrap: wrap;
  159. }
  160. .minicard .date {
  161. margin-right: 3px;
  162. }
  163. .minicard .badges {
  164. float: left;
  165. margin-top: 7px;
  166. color: #808080;
  167. }
  168. .minicard .badges:empty {
  169. display: none;
  170. }
  171. .minicard .badges .badge {
  172. float: left;
  173. margin-right: 11px;
  174. margin-bottom: 3px;
  175. font-size: 0.9em;
  176. }
  177. .minicard .badges .badge.is-finished {
  178. background: #3cb500;
  179. padding: 0px 3px;
  180. border-radius: 3px;
  181. color: #fff;
  182. }
  183. .minicard .badges .badge:last-of-type {
  184. margin-right: 0;
  185. }
  186. .minicard .badges .badge .badge-icon,
  187. .minicard .badges .badge .badge-text {
  188. vertical-align: middle;
  189. }
  190. .minicard .badges .badge .badge-icon.badge-comment,
  191. .minicard .badges .badge .badge-text.badge-comment {
  192. margin-bottom: 0.1rem;
  193. }
  194. .minicard .badges .badge .badge-text {
  195. font-size: 0.9em;
  196. padding-left: 2px;
  197. line-height: 14px;
  198. }
  199. .minicard .badges .badge .check-list-text {
  200. padding-left: 0px;
  201. line-height: 12px;
  202. }
  203. .minicard .minicard-members,
  204. .minicard .minicard-assignees,
  205. .minicard .minicard-creator {
  206. float: right;
  207. margin-left: 5px;
  208. margin-bottom: 4px;
  209. }
  210. .minicard .minicard-members .member,
  211. .minicard .minicard-assignees .member,
  212. .minicard .minicard-creator .member {
  213. float: right;
  214. border-radius: 50%;
  215. height: 28px;
  216. width: 28px;
  217. margin-bottom: 4px;
  218. }
  219. .minicard .minicard-members .assignee,
  220. .minicard .minicard-assignees .assignee,
  221. .minicard .minicard-creator .assignee {
  222. float: right;
  223. border-radius: 50%;
  224. height: 28px;
  225. width: 28px;
  226. }
  227. .minicard .minicard-members + .badges,
  228. .minicard .minicard-assignees + .badges,
  229. .minicard .minicard-creator + .badges {
  230. margin-top: 5px;
  231. }
  232. .minicard .minicard-assignees {
  233. border-bottom: 1px solid #f00;
  234. }
  235. .minicard .minicard-creator {
  236. border-bottom: 1px solid #008000;
  237. }
  238. .minicard .minicard-members:empty,
  239. .minicard .minicard-assignees:empty {
  240. display: none;
  241. }
  242. .minicard .minicard-description {
  243. padding: 6px 0 0 8px;
  244. background-color: #eee;
  245. width: 100%;
  246. margin-bottom: 2px;
  247. margin-left: -4px;
  248. border-radius: 3px;
  249. overflow: hidden;
  250. text-overflow: ellipsis;
  251. display: -webkit-box;
  252. -webkit-line-clamp: 3;
  253. -webkit-box-orient: vertical;
  254. }
  255. .minicard.minicard-composer {
  256. margin-bottom: 10px;
  257. }
  258. .minicard.minicard-composer textarea.minicard-composer-textarea,
  259. .minicard.minicard-composer textarea.minicard-composer-textarea:focus {
  260. resize: none;
  261. background: none;
  262. border: none;
  263. box-shadow: none;
  264. height: auto;
  265. margin: 0;
  266. padding: 0;
  267. max-height: 162px;
  268. min-height: 36px;
  269. margin-bottom: 20px;
  270. overflow-y: auto;
  271. }
  272. .parent-prefix {
  273. color: #b3b3b3;
  274. font-size: 0.9em;
  275. }
  276. .parent-subtext {
  277. color: #b3b3b3;
  278. font-size: 0.9em;
  279. }
  280. @media screen and (max-width: 800px) {
  281. .is-selected .minicard {
  282. transform: translateX(0px);
  283. border-bottom-right-radius: 0;
  284. border-top-right-radius: 0;
  285. z-index: 15;
  286. box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  287. }
  288. }
  289. /* https://github.com/wekan/wekan/issues/4254#issuecomment-1037192960 */
  290. .minicard-green {
  291. background-color: #3cb500 !important;
  292. color: #fff !important;
  293. }
  294. .minicard-green:hover:not(.minicard-composer),
  295. .is-selected .minicard-green,
  296. .draggable-hover-card .minicard-green {
  297. background: #3ab000;
  298. }
  299. .draggable-hover-card .minicard-green {
  300. background: #38a800;
  301. }
  302. .minicard-yellow {
  303. background-color: #fad900 !important;
  304. }
  305. .minicard-yellow:hover:not(.minicard-composer),
  306. .is-selected .minicard-yellow,
  307. .draggable-hover-card .minicard-yellow {
  308. background: #f3d200;
  309. }
  310. .draggable-hover-card .minicard-yellow {
  311. background: #e9ca00;
  312. }
  313. .minicard-orange {
  314. background-color: #ff9f19 !important;
  315. }
  316. .minicard-orange:hover:not(.minicard-composer),
  317. .is-selected .minicard-orange,
  318. .draggable-hover-card .minicard-orange {
  319. background: #ff9b11;
  320. }
  321. .draggable-hover-card .minicard-orange {
  322. background: #ff9705;
  323. }
  324. .minicard-red {
  325. background-color: #eb4646 !important;
  326. color: #fff !important;
  327. }
  328. .minicard-red:hover:not(.minicard-composer),
  329. .is-selected .minicard-red,
  330. .draggable-hover-card .minicard-red {
  331. background: #ea3e3e;
  332. }
  333. .draggable-hover-card .minicard-red {
  334. background: #e93333;
  335. }
  336. .minicard-purple {
  337. background-color: #a632db !important;
  338. color: #fff !important;
  339. }
  340. .minicard-purple:hover:not(.minicard-composer),
  341. .is-selected .minicard-purple,
  342. .draggable-hover-card .minicard-purple {
  343. background: #a32bda;
  344. }
  345. .draggable-hover-card .minicard-purple {
  346. background: #9e25d5;
  347. }
  348. .minicard-blue {
  349. background-color: #0079bf !important;
  350. color: #fff !important;
  351. }
  352. .minicard-blue:hover:not(.minicard-composer),
  353. .is-selected .minicard-blue,
  354. .draggable-hover-card .minicard-blue {
  355. background: #0075b9;
  356. }
  357. .draggable-hover-card .minicard-blue {
  358. background: #0071b2;
  359. }
  360. .minicard-pink {
  361. background-color: #ff78cb !important;
  362. }
  363. .minicard-pink:hover:not(.minicard-composer),
  364. .is-selected .minicard-pink,
  365. .draggable-hover-card .minicard-pink {
  366. background: #ff6dc7;
  367. }
  368. .draggable-hover-card .minicard-pink {
  369. background: #ff5ec1;
  370. }
  371. .minicard-sky {
  372. background-color: #00c2e0 !important;
  373. color: #fff !important;
  374. }
  375. .minicard-sky:hover:not(.minicard-composer),
  376. .is-selected .minicard-sky,
  377. .draggable-hover-card .minicard-sky {
  378. background: #00bcd9;
  379. }
  380. .draggable-hover-card .minicard-sky {
  381. background: #00b4d0;
  382. }
  383. .minicard-black {
  384. background-color: #4d4d4d !important;
  385. color: #fff !important;
  386. }
  387. .minicard-black:hover:not(.minicard-composer),
  388. .is-selected .minicard-black,
  389. .draggable-hover-card .minicard-black {
  390. background: #4b4b4b;
  391. }
  392. .draggable-hover-card .minicard-black {
  393. background: #484848;
  394. }
  395. .minicard-lime {
  396. background-color: #51e898 !important;
  397. }
  398. .minicard-lime:hover:not(.minicard-composer),
  399. .is-selected .minicard-lime,
  400. .draggable-hover-card .minicard-lime {
  401. background: #49e793;
  402. }
  403. .draggable-hover-card .minicard-lime {
  404. background: #3ee58d;
  405. }
  406. .minicard-silver {
  407. background-color: #c0c0c0 !important;
  408. }
  409. .minicard-silver:hover:not(.minicard-composer),
  410. .is-selected .minicard-silver,
  411. .draggable-hover-card .minicard-silver {
  412. background: #bababa;
  413. }
  414. .draggable-hover-card .minicard-silver {
  415. background: #b3b3b3;
  416. }
  417. .minicard-peachpuff {
  418. background-color: #ffdab9 !important;
  419. }
  420. .minicard-peachpuff:hover:not(.minicard-composer),
  421. .is-selected .minicard-peachpuff,
  422. .draggable-hover-card .minicard-peachpuff {
  423. background: #ffd3ac;
  424. }
  425. .draggable-hover-card .minicard-peachpuff {
  426. background: #ffca9a;
  427. }
  428. .minicard-crimson {
  429. background-color: #dc143c !important;
  430. color: #fff !important;
  431. }
  432. .minicard-crimson:hover:not(.minicard-composer),
  433. .is-selected .minicard-crimson,
  434. .draggable-hover-card .minicard-crimson {
  435. background: #d5133a;
  436. }
  437. .draggable-hover-card .minicard-crimson {
  438. background: #cd1338;
  439. }
  440. .minicard-plum {
  441. background-color: #dda0dd !important;
  442. }
  443. .minicard-plum:hover:not(.minicard-composer),
  444. .is-selected .minicard-plum,
  445. .draggable-hover-card .minicard-plum {
  446. background: #da98da;
  447. }
  448. .draggable-hover-card .minicard-plum {
  449. background: #d68cd6;
  450. }
  451. .minicard-darkgreen {
  452. background-color: #006400 !important;
  453. color: #fff !important;
  454. }
  455. .minicard-darkgreen:hover:not(.minicard-composer),
  456. .is-selected .minicard-darkgreen,
  457. .draggable-hover-card .minicard-darkgreen {
  458. background: #006100;
  459. }
  460. .draggable-hover-card .minicard-darkgreen {
  461. background: #005d00;
  462. }
  463. .minicard-slateblue {
  464. background-color: #6a5acd !important;
  465. color: #fff !important;
  466. }
  467. .minicard-slateblue:hover:not(.minicard-composer),
  468. .is-selected .minicard-slateblue,
  469. .draggable-hover-card .minicard-slateblue {
  470. background: #6453cb;
  471. }
  472. .draggable-hover-card .minicard-slateblue {
  473. background: #5c4ac8;
  474. }
  475. .minicard-magenta {
  476. background-color: #f0f !important;
  477. color: #fff !important;
  478. }
  479. .minicard-magenta:hover:not(.minicard-composer),
  480. .is-selected .minicard-magenta,
  481. .draggable-hover-card .minicard-magenta {
  482. background: #f700f7;
  483. }
  484. .draggable-hover-card .minicard-magenta {
  485. background: #ed00ed;
  486. }
  487. .minicard-gold {
  488. background-color: #ffd700 !important;
  489. }
  490. .minicard-gold:hover:not(.minicard-composer),
  491. .is-selected .minicard-gold,
  492. .draggable-hover-card .minicard-gold {
  493. background: #f7d100;
  494. }
  495. .draggable-hover-card .minicard-gold {
  496. background: #edc800;
  497. }
  498. .minicard-navy {
  499. background-color: #000080 !important;
  500. color: #fff !important;
  501. }
  502. .minicard-navy:hover:not(.minicard-composer),
  503. .is-selected .minicard-navy,
  504. .draggable-hover-card .minicard-navy {
  505. background: #00007c;
  506. }
  507. .draggable-hover-card .minicard-navy {
  508. background: #007;
  509. }
  510. .minicard-gray {
  511. background-color: #808080 !important;
  512. color: #fff !important;
  513. }
  514. .minicard-gray:hover:not(.minicard-composer),
  515. .is-selected .minicard-gray,
  516. .draggable-hover-card .minicard-gray {
  517. background: #7c7c7c;
  518. }
  519. .draggable-hover-card .minicard-gray {
  520. background: #777;
  521. }
  522. .minicard-saddlebrown {
  523. background-color: #8b4513 !important;
  524. color: #fff !important;
  525. }
  526. .minicard-saddlebrown:hover:not(.minicard-composer),
  527. .is-selected .minicard-saddlebrown,
  528. .draggable-hover-card .minicard-saddlebrown {
  529. background: #874312;
  530. }
  531. .draggable-hover-card .minicard-saddlebrown {
  532. background: #814012;
  533. }
  534. .minicard-paleturquoise {
  535. background-color: #afeeee !important;
  536. }
  537. .minicard-paleturquoise:hover:not(.minicard-composer),
  538. .is-selected .minicard-paleturquoise,
  539. .draggable-hover-card .minicard-paleturquoise {
  540. background: #a5ecec;
  541. }
  542. .draggable-hover-card .minicard-paleturquoise {
  543. background: #97e9e9;
  544. }
  545. .minicard-mistyrose {
  546. background-color: #ffe4e1 !important;
  547. }
  548. .minicard-mistyrose:hover:not(.minicard-composer),
  549. .is-selected .minicard-mistyrose,
  550. .draggable-hover-card .minicard-mistyrose {
  551. background: #ffd7d3;
  552. }
  553. .draggable-hover-card .minicard-mistyrose {
  554. background: #ffc6bf;
  555. }
  556. .minicard-indigo {
  557. background-color: #4b0082 !important;
  558. color: #fff !important;
  559. }
  560. .minicard-indigo:hover:not(.minicard-composer),
  561. .is-selected .minicard-indigo,
  562. .draggable-hover-card .minicard-indigo {
  563. background: #49007e;
  564. }
  565. .draggable-hover-card .minicard-indigo {
  566. background: #460079;
  567. }
  568. .text-red {
  569. color: #f00;
  570. }
  571. .text-green {
  572. color: #008000;
  573. }