list.styl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. @import 'nib'
  2. .list
  3. box-sizing: border-box
  4. display: flex
  5. flex-direction: column
  6. flex: 0 0 270px
  7. position: relative
  8. // Even if this background color is the same as the body we can't leave it
  9. // transparent, because that won't work during a list drag.
  10. background: darken(white, 13%)
  11. height: 100%
  12. border-left: 1px solid darken(white, 20%)
  13. padding: 0
  14. float: left
  15. &:first-child
  16. margin-left: 5px
  17. border-left: none
  18. .card-details + &
  19. border-left: none
  20. &.ui-sortable-helper
  21. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  22. 0 0 1px rgba(0, 0, 0, .5)
  23. transform: rotate(4deg)
  24. cursor: grabbing
  25. .list-header.ui-sortable-handle
  26. cursor: grabbing
  27. &.placeholder
  28. background-color: rgba(0, 0, 0, .2)
  29. border-color: transparent
  30. box-shadow: none
  31. height: 100px
  32. &.list-composer, & .list-composer
  33. .open-list-composer
  34. color: #8c8c8c
  35. .list-name-input
  36. background: white
  37. margin: -3px 0 8px
  38. .list-header
  39. flex: 0 0 auto
  40. margin: 20px 12px 4px
  41. position: relative
  42. min-height: 20px
  43. &.ui-sortable-handle
  44. cursor: grab
  45. .list-header-name
  46. display: inline
  47. font-size: 16px
  48. line-height: 17px
  49. margin: 0
  50. font-weight: bold
  51. min-height: 9px
  52. min-width: 30px
  53. overflow: hidden
  54. text-overflow: ellipsis
  55. word-wrap: break-word
  56. .list-header-watch-icon
  57. padding-left: 10px
  58. color: #a6a6a6
  59. .list-header-menu-icon
  60. position: absolute
  61. padding: 7px
  62. margin-top: 1px
  63. top: -@padding
  64. right: -@padding
  65. .list-body
  66. flex: 1
  67. display: flex
  68. overflow-y: auto
  69. padding: 5px 11px
  70. .minicards
  71. flex: 1
  72. form
  73. margin-bottom: 9px
  74. .ps-scrollbar-y-rail
  75. transform: translateX(2px)
  76. .open-minicard-composer
  77. border-radius: 2px
  78. color: #8c8c8c
  79. display: block
  80. padding: 7px 10px
  81. position: relative
  82. text-decoration: none
  83. animation: fadeIn 0.3s
  84. i.fa
  85. margin-right: 7px
  86. &:hover
  87. background: #fafafa
  88. color: #222
  89. box-shadow: 0 1px 2px rgba(0,0,0,.2)