main.styl 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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-right: 1px solid darken(white, 17%)
  13. border-left: 1px solid darken(white, 4%)
  14. padding: 12px 7px 5px
  15. overflow-y: auto
  16. &:first-child
  17. margin-left: 5px
  18. border-left: none
  19. &:last-child
  20. margin-right: 5px
  21. border-right: none
  22. &.editable
  23. cursor: grab
  24. .list-wrapper
  25. cursor: default
  26. &.add-list
  27. &.fade
  28. opacity: 0
  29. .list-name-input
  30. background: rgba(0, 0, 0, .05)
  31. border-color: #aaa
  32. box-shadow: inset 0 1px 8px rgba(0, 0, 0, .15)
  33. display: block
  34. margin: 0
  35. transition: margin 85ms ease-in,
  36. background 85ms ease-in
  37. width: 100%
  38. .edit-controls
  39. height: 32px
  40. transition: margin 85ms ease-in,
  41. height 85ms ease-in
  42. overflow: hidden
  43. margin: 4px 0 0
  44. input[type=submit]
  45. margin-top: 0
  46. min-height: 30px
  47. height: 30px
  48. .list-header
  49. flex: 0 0 auto
  50. padding: 10px 26px 4px 6px
  51. position: relative
  52. min-height: 20px
  53. .list-header-name
  54. display: inline
  55. font-size: 16px
  56. line-height: 17px
  57. margin: 0
  58. font-weight: bold
  59. min-height: 9px
  60. min-width: 30px
  61. overflow: hidden
  62. text-overflow: ellipsis
  63. word-wrap: break-word
  64. .list-header-menu-icon
  65. background-clip: content-box
  66. background-origin: content-box
  67. padding: 6px 8px
  68. position: absolute
  69. top: 3px
  70. right: -5px
  71. color: #a6a6a6
  72. .list-header-num-cards
  73. color: #8c8c8c
  74. margin: 0
  75. .minicards
  76. // flex: 1 1 auto
  77. overflow-y: auto
  78. overflow-x: hidden
  79. padding: 4px 4px 1px
  80. z-index: 1
  81. height: 100%
  82. &::-webkit-scrollbar-button
  83. display: block
  84. height: 4px
  85. .open-card-composer
  86. border-top-left-radius: 0
  87. border-top-right-radius: 0
  88. border-bottom-right-radius: 3px
  89. border-bottom-left-radius: 3px
  90. color: #8c8c8c
  91. display: block
  92. // flex: 0 0 auto
  93. margin: 2px -3px -3px
  94. padding: 7px 10px
  95. position: relative
  96. text-decoration: none
  97. &:hover
  98. background: #c3c3c3
  99. color: #222
  100. text-decoration: underline
  101. &::selection
  102. background: transparent
  103. .list.placeholder
  104. background-color: rgba(0, 0, 0, .2)
  105. border-color: transparent
  106. box-shadow: none
  107. height: 100px
  108. .list.ui-sortable-helper
  109. cursor: grabbing
  110. box-shadow: -2px 2px 8px rgba(0, 0, 0, .3), 0 0 1px rgba(0, 0, 0, .5)
  111. transform: rotate(4deg)
  112. .list.ui-sortable-helper .list-header-menu-icon
  113. display: none