minicard.css 12 KB

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