minicard.css 13 KB

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