list.styl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. top: -@padding
  71. right: -@padding
  72. .list-body
  73. flex: 1
  74. display: flex
  75. overflow-y: auto
  76. padding: 5px 11px
  77. .minicards
  78. flex: 1
  79. form
  80. margin-bottom: 9px
  81. .ps-scrollbar-y-rail
  82. transform: translateX(2px)
  83. .open-minicard-composer
  84. border-radius: 2px
  85. color: #8c8c8c
  86. display: block
  87. padding: 7px 10px
  88. position: relative
  89. text-decoration: none
  90. animation: fadeIn 0.3s
  91. i.fa
  92. margin-right: 7px
  93. &:hover
  94. background: #fafafa
  95. color: #222
  96. box-shadow: 0 1px 2px rgba(0,0,0,.2)