list.styl 2.2 KB

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