cardDetails.styl 11 KB

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