list.styl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. &:first-child
  15. margin-left: 5px
  16. border-left: none
  17. .card-details + &
  18. border-left: none
  19. &.ui-sortable-helper
  20. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3),
  21. 0 0 1px rgba(0, 0, 0, .5)
  22. transform: rotate(4deg)
  23. cursor: grabbing
  24. .list-header.ui-sortable-handle
  25. cursor: grabbing
  26. &.placeholder
  27. background-color: rgba(0, 0, 0, .2)
  28. border-color: transparent
  29. box-shadow: none
  30. height: 100px
  31. &.list-composer, & list-composer
  32. padding: 17px
  33. form
  34. margin-top: -5px
  35. .list-name-input
  36. background: rgba(255, 255, 255, .4)
  37. border-color: #aaa
  38. display: block
  39. margin: 0
  40. transition: margin 85ms ease-in,
  41. background 85ms ease-in
  42. width: 100%
  43. .edit-controls
  44. height: 32px
  45. transition: margin 85ms ease-in,
  46. height 85ms ease-in
  47. overflow: hidden
  48. margin: 4px 0 0
  49. .list-header
  50. flex: 0 0 auto
  51. margin: 20px 12px 4px
  52. position: relative
  53. min-height: 20px
  54. &.ui-sortable-handle
  55. cursor: grab
  56. .list-header-name
  57. display: inline
  58. font-size: 16px
  59. line-height: 17px
  60. margin: 0
  61. font-weight: bold
  62. min-height: 9px
  63. min-width: 30px
  64. overflow: hidden
  65. text-overflow: ellipsis
  66. word-wrap: break-word
  67. .list-header-menu-icon
  68. position: absolute
  69. padding: 7px
  70. margin-top: 1px
  71. top: -@padding
  72. right: -@padding
  73. .list-body
  74. flex: 1
  75. display: flex
  76. overflow-y: auto
  77. padding: 5px 11px
  78. .minicards
  79. flex: 1
  80. form
  81. margin-bottom: 9px
  82. .ps-scrollbar-y-rail
  83. transform: translateX(2px)
  84. .open-minicard-composer
  85. border-radius: 2px
  86. color: #8c8c8c
  87. display: block
  88. padding: 7px 10px
  89. position: relative
  90. text-decoration: none
  91. animation: fadeIn 0.3s
  92. i.fa
  93. margin-right: 7px
  94. &:hover
  95. background: #fafafa
  96. color: #222
  97. box-shadow: 0 1px 2px rgba(0,0,0,.2)