cardDetails.styl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
  1. @import 'nib'
  2. // Assignee, code copied from wekan/client/users/userAvatar.styl
  3. avatar-radius = 50%
  4. .assignee
  5. border-radius: 3px
  6. display: block
  7. position: relative
  8. float: left
  9. height: 30px
  10. width: @height
  11. margin: 0 4px 4px 0
  12. cursor: pointer
  13. user-select: none
  14. z-index: 1
  15. text-decoration: none
  16. border-radius: avatar-radius
  17. .avatar
  18. overflow: hidden
  19. border-radius: avatar-radius
  20. &.avatar-assignee-initials
  21. height: 70%
  22. width: @height
  23. padding: 15%
  24. background-color: #dbdbdb
  25. color: #444444
  26. position: absolute
  27. &.avatar-image
  28. object-fit: cover;
  29. object-position: center;
  30. height: 100%
  31. width: @height
  32. .assignee-presence-status
  33. background-color: #b3b3b3
  34. border: 1px solid #fff
  35. border-radius: 50%
  36. height: 7px
  37. width: @height
  38. position: absolute
  39. right: -1px
  40. bottom: -1px
  41. border: 1px solid white
  42. z-index: 15
  43. &.active
  44. background: #64c464
  45. border-color: #daf1da
  46. &.idle
  47. background: #e4e467
  48. border-color: #f7f7d4
  49. &.disconnected
  50. background: #bdbdbd
  51. border-color: #ededed
  52. &.pending
  53. background: #e44242
  54. border-color: #f1dada
  55. &.add-assignee
  56. display: flex
  57. align-items: center
  58. justify-content: center
  59. box-shadow: 0 0 0 2px darken(white, 25%) inset
  60. &:hover, &.is-active
  61. box-shadow: 0 0 0 2px darken(white, 60%) inset
  62. // Other card details
  63. .copied-tooltip
  64. display: none
  65. padding: 0px 10px;
  66. background-color: #000000df;
  67. color: #fff;
  68. border-radius: 5px;
  69. .card-details
  70. padding: 0
  71. flex-shrink: 0
  72. flex-basis: 600px
  73. will-change: flex-basis
  74. overflow-y: scroll
  75. overflow-x: hidden
  76. background: darken(white, 3%)
  77. border-radius: bottom 3px
  78. z-index: 20 !important
  79. animation: flexGrowIn 0.1s
  80. box-shadow: 0 0 7px 0 darken(white, 30%)
  81. transition: flex-basis 0.1s
  82. box-sizing: border-box
  83. .mCustomScrollBox
  84. padding-left: 0
  85. .card-details-canvas
  86. width: auto
  87. padding: 0 20px
  88. .card-details-header
  89. margin: 0 -20px 5px
  90. padding: 7px 20px
  91. background: darken(white, 7%)
  92. border-bottom: 1px solid darken(white, 14%)
  93. .card-number {
  94. color: darken(white, 30%);
  95. display: inline-block;
  96. margin-right: 5px;
  97. }
  98. .close-card-details,
  99. .maximize-card-details,
  100. .minimize-card-details,
  101. .card-details-menu,
  102. .card-copy-button,
  103. .card-copy-mobile-button,
  104. .close-card-details-mobile-web,
  105. .card-details-menu-mobile-web,
  106. .copied-tooltip
  107. float: right
  108. .close-card-details,
  109. .maximize-card-details,
  110. .minimize-card-details
  111. font-size: 24px
  112. padding: 5px 10px 5px 10px
  113. margin-right: -8px
  114. .close-card-details-mobile-web
  115. font-size: 24px
  116. padding: 5px
  117. margin-right: 40px
  118. .card-copy-button
  119. font-size: 17px
  120. padding: 10px
  121. margin-right: 10px
  122. .card-copy-mobile-button
  123. font-size: 17px
  124. padding: 10px
  125. margin-right: 10px
  126. .card-details-menu
  127. font-size: 17px
  128. padding: 10px
  129. .card-details-menu-mobile-web
  130. font-size: 17px
  131. padding: 10px
  132. margin-right: 30px
  133. .card-details-watch
  134. font-size: 17px
  135. padding-left: 7px
  136. color: #a6a6a6
  137. .card-details-title
  138. font-weight: bold
  139. font-size: 1.33em
  140. margin: 7px 0 0
  141. padding: 0
  142. .linked-card-location
  143. font-style: italic
  144. font-size: 1em
  145. margin-bottom: 0
  146. & p
  147. margin-bottom: 0
  148. form.inlined-form
  149. margin-top: 5px
  150. margin-bottom: 10px
  151. .copied-tooltip
  152. padding: 0px 10px
  153. .card-details-list
  154. font-size: 0.85em
  155. margin-bottom: 3px
  156. a.card-details-list-title
  157. font-weight: bold
  158. &.is-editable
  159. display: inline-block
  160. background: darken(white, 10%)
  161. border-radius: 3px
  162. padding: 0px 5px
  163. .copied-tooltip
  164. margin-right: 10px
  165. padding: 10px;
  166. .card-description textarea
  167. min-height: 100px
  168. .card-details-items
  169. display: flex
  170. flex-wrap: wrap
  171. margin: 15px 0
  172. .card-details-item
  173. margin-right: 0.5em
  174. &:last-child
  175. margin-right: 0
  176. &.card-details-item-labels
  177. display: block
  178. word-wrap: break-word
  179. max-width: 95%
  180. flex-grow: 1
  181. &.card-details-item-members,
  182. &.card-details-item-assignees,
  183. &.card-details-item-customfield,
  184. &.card-details-item-name
  185. display: block
  186. word-wrap: break-word
  187. max-width: 36%
  188. flex-grow: 1
  189. &.card-details-item-creator,
  190. &.card-details-item-received,
  191. &.card-details-item-start,
  192. &.card-details-item-due,
  193. &.card-details-item-end
  194. display: block
  195. word-wrap: break-word
  196. max-width: 28%
  197. flex-grow: 1
  198. &.custom-fields
  199. padding-left: 10px
  200. .card-details-item-title
  201. font-size: 16px
  202. font-weight: bold
  203. color: #4d4d4d
  204. .activities
  205. padding-top: 10px
  206. @media screen and (min-width: 801px)
  207. .card-details-maximized
  208. padding: 0
  209. flex-shrink: 0
  210. flex-basis: calc(100% - 20px)
  211. will-change: flex-basis
  212. overflow-y: scroll
  213. overflow-x: scroll
  214. background: darken(white, 3%)
  215. border-radius: bottom 3px
  216. z-index: 1000 !important
  217. animation: flexGrowIn 0.1s
  218. box-shadow: 0 0 7px 0 darken(white, 30%)
  219. transition: flex-basis 0.1s
  220. box-sizing: border-box
  221. position: absolute
  222. top: 0
  223. left: 0
  224. height: calc(100% - 20px)
  225. width: calc(100% - 20px)
  226. float: left
  227. .card-details-left
  228. float: left
  229. top: 60px
  230. left: 20px
  231. width: 47%
  232. .card-details-right
  233. position: absolute
  234. float: right
  235. top: 20px
  236. left: 50%
  237. .card-details-header
  238. width: 47%
  239. input[type="text"].attachment-add-link-input
  240. float: left
  241. margin: 0 0 8px
  242. width: 80%
  243. input[type="submit"].attachment-add-link-submit
  244. float: left
  245. margin: 0 0 8px 4px
  246. padding: 6px 12px
  247. width: 18%
  248. @media screen and (max-width: 800px)
  249. .card-details
  250. width: calc(100% - 1px)
  251. padding: 0px 20px 0px 20px
  252. margin: 0px
  253. transition: none
  254. overflow-y: revert
  255. overflow-x: revert
  256. .card-details-canvas
  257. width: 100%
  258. padding-left: 0px
  259. .card-details-header
  260. .close-card-details
  261. margin-right: 0px
  262. .card-details-menu
  263. margin-right: 40px
  264. .maximize-card-details
  265. margin-right: 40px
  266. .minimize-card-details
  267. margin-right: 40px
  268. .card-details-popup
  269. padding: 0px 10px
  270. .pop-over > .content-wrapper > .popup-container-depth-0
  271. width: 100%
  272. & > .content
  273. width: calc(100% - 10px)
  274. & > .content > .card-details-popup hr
  275. margin: 15px 0px
  276. .card-details-header
  277. margin: 0
  278. card-details-color(background, color...)
  279. background: background !important
  280. if color
  281. color: color !important //overwrite text for better visibility
  282. .card-details-white
  283. card-details-color(unset, #000) //Black text for better visibility
  284. border: 1px solid #eee
  285. .card-details-green
  286. card-details-color(#3cb500, #ffffff) //White text for better visibility
  287. .card-details-yellow
  288. card-details-color(#fad900, #000) //Black text for better visibility
  289. .card-details-orange
  290. card-details-color(#ff9f19, #000) //Black text for better visibility
  291. .card-details-red
  292. card-details-color(#eb4646, #ffffff) //White text for better visibility
  293. .card-details-purple
  294. card-details-color(#a632db, #ffffff) //White text for better visibility
  295. .card-details-blue
  296. card-details-color(#0079bf, #ffffff) //White text for better visibility
  297. .card-details-pink
  298. card-details-color(#ff78cb, #000) //Black text for better visibility
  299. .card-details-sky
  300. card-details-color(#00c2e0, #ffffff) //White text for better visibility
  301. .card-details-black
  302. card-details-color(#4d4d4d, #ffffff) //White text for better visibility
  303. .card-details-lime
  304. card-details-color(#51e898, #000) //Black text for better visibility
  305. .card-details-silver
  306. card-details-color(#c0c0c0, #000) //Black text for better visibility
  307. .card-details-peachpuff
  308. card-details-color(#ffdab9, #000) //Black text for better visibility
  309. .card-details-crimson
  310. card-details-color(#dc143c, #ffffff) //White text for better visibility
  311. .card-details-plum
  312. card-details-color(#dda0dd, #000) //Black text for better visibility
  313. .card-details-darkgreen
  314. card-details-color(#006400, #ffffff) //White text for better visibility
  315. .card-details-slateblue
  316. card-details-color(#6a5acd, #ffffff) //White text for better visibility
  317. .card-details-magenta
  318. card-details-color(#ff00ff, #ffffff) //White text for better visibility
  319. .card-details-gold
  320. card-details-color(#ffd700, #000) //Black text for better visibility
  321. .card-details-navy
  322. card-details-color(#000080, #ffffff) //White text for better visibility
  323. .card-details-gray
  324. card-details-color(#808080, #ffffff) //White text for better visibility
  325. .card-details-saddlebrown
  326. card-details-color(#8b4513, #ffffff) //White text for better visibility
  327. .card-details-paleturquoise
  328. card-details-color(#afeeee, #000) //Black text for better visibility
  329. .card-details-mistyrose
  330. card-details-color(#ffe4e1, #000) //Black text for better visibility
  331. .card-details-indigo
  332. card-details-color(#4b0082, #ffffff) //White text for better visibility
  333. .voted
  334. opacity: .7
  335. .vote-title
  336. display: flex
  337. justify-content: space-between
  338. .js-edit-date
  339. align-self: baseline
  340. margin-left: 5px
  341. .vote-result
  342. display: flex
  343. .js-show-positive-votes
  344. cursor: pointer
  345. .poker-voted
  346. opacity: .7
  347. .poker-title
  348. display: flex
  349. justify-content: space-between
  350. .js-edit-date
  351. align-self: baseline
  352. margin-left: 5px
  353. .poker-result
  354. display: flex
  355. flex-flow: row wrap
  356. .js-show-positive-poker-votes
  357. cursor: pointer
  358. .poker-deck
  359. display: grid
  360. flex-direction: column
  361. text-align: center
  362. .poker-card-result
  363. width: 32px
  364. font-size: 1em
  365. font-weight: bold
  366. padding: 4px 2px 4px 2px
  367. cursor: default
  368. .winner
  369. font-weight: bold
  370. outline: #2d2d2d solid 2px
  371. .loser
  372. opacity: .5
  373. .responsive-table
  374. overflow-x: auto
  375. .poker-table
  376. display: table
  377. width: 100%
  378. padding-top: 10px
  379. .poker-table-row
  380. display: table-row
  381. .poker-table-heading
  382. background-color: #EEE
  383. display: table-header-group
  384. .poker-table-cell
  385. display: table-cell
  386. padding: 0 0 5px 2px
  387. border-bottom: 1px solid #d2d0d0
  388. text-align: center
  389. min-width: 45px
  390. .poker-table-cell-who
  391. width: 150px
  392. vertical-align: middle
  393. .poker-table-heading-left,
  394. .poker-table-heading-right
  395. display: table-header-group
  396. font-weight: bold
  397. border-top: 1px solid #808080
  398. @media (max-width: 400px)
  399. .poker-table-heading-right
  400. display: none
  401. .poker-table-body
  402. display: table-row-group
  403. .poker-table-side-left,
  404. .poker-table-side-right
  405. display: inline-block
  406. .poker-table-side-right
  407. padding-left: 10px
  408. @media (max-width: 400px)
  409. .poker-table-side-right
  410. padding-left: 0px
  411. .estimation-add
  412. display: block
  413. overflow: auto
  414. margin-top: 15px
  415. margin-bottom: 5px
  416. input
  417. display: inline-block
  418. float: right
  419. margin: auto
  420. margin-right: 10px
  421. width: 100px
  422. button
  423. display: inline-block
  424. float: right
  425. margin: auto
  426. .poker-card
  427. width:48px
  428. height:72px
  429. float:left
  430. background:#fff
  431. border-radius:5px
  432. display:table
  433. box-sizing:border-box
  434. padding:5px
  435. margin:3px
  436. font-size:20px
  437. font-weight: bold
  438. text-shadow: #2d2d2d 1px 1px 0
  439. box-shadow:0 0 5px #aaaaaa
  440. text-align:center
  441. position:relative
  442. cursor: pointer
  443. .inner
  444. display:table-cell
  445. vertical-align:middle
  446. border-radius:5px
  447. overflow:hidden
  448. background-color: #cecece