main.styl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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, 10%)
  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-detail + &
  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
  30. padding: 17px
  31. .list-name-input
  32. background: rgba(0, 0, 0, .05)
  33. border-color: #aaa
  34. box-shadow: inset 0 1px 8px rgba(0, 0, 0, .15)
  35. display: block
  36. margin: 0
  37. transition: margin 85ms ease-in,
  38. background 85ms ease-in
  39. width: 100%
  40. .edit-controls
  41. height: 32px
  42. transition: margin 85ms ease-in,
  43. height 85ms ease-in
  44. overflow: hidden
  45. margin: 4px 0 0
  46. input[type=submit]
  47. margin-top: 0
  48. min-height: 30px
  49. height: 30px
  50. .list-header
  51. flex: 0 0 auto
  52. margin: 20px 15px 4px
  53. position: relative
  54. min-height: 20px
  55. .list-header-name
  56. display: inline
  57. font-size: 16px
  58. line-height: 17px
  59. margin: 0
  60. font-weight: bold
  61. min-height: 9px
  62. min-width: 30px
  63. overflow: hidden
  64. text-overflow: ellipsis
  65. word-wrap: break-word
  66. .list-header-menu-icon
  67. background-clip: content-box
  68. background-origin: content-box
  69. // padding: 6px 8px
  70. position: absolute
  71. top: 0
  72. right: 0
  73. color: #a6a6a6
  74. .list-header-num-cards
  75. color: #8c8c8c
  76. margin: 0
  77. .list-body
  78. flex: 1
  79. overflow-y: auto
  80. padding: 5px 11px
  81. .ps-scrollbar-y-rail
  82. transform: translateX(2px)
  83. .open-card-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: white
  95. color: #222
  96. box-shadow: 0 1px 2px rgba(0,0,0,.2)
  97. &::selection
  98. background: transparent
  99. @keyframes fadeIn
  100. from
  101. opacity: 0
  102. to
  103. opacity: 1