style.styl 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /// DEVICE: SEQUENCER
  2. .sequencer-piano
  3. width 100%
  4. background #111
  5. margin 3px 0 6px
  6. display flex
  7. flex-direction row
  8. overflow-y auto
  9. border 1px solid black
  10. &-body
  11. overflow-x auto
  12. display flex
  13. flex-direction column-reverse
  14. flex-grow 1
  15. &-note
  16. position absolute
  17. width 6.25%
  18. height 12px
  19. background orangered
  20. background linear-gradient(to bottom, orangered, red)
  21. cursor pointer
  22. z-index 1
  23. border-left 2px solid orangered
  24. &-keys
  25. width 30px
  26. display flex
  27. flex-direction column-reverse
  28. &-key
  29. color white
  30. flex-shrink 1
  31. padding 0 3px
  32. border-bottom 1px solid rgba(0,0,0,0.2)
  33. line-height 11px
  34. font-size 10px
  35. cursor pointer
  36. font-weight bold
  37. color #ddd
  38. height 12px
  39. &.white
  40. background #333
  41. &:hover
  42. background #555
  43. &.black
  44. background #080808
  45. &:hover
  46. background #181818
  47. &-lane, &-grid-lane
  48. width 100%
  49. height 12px
  50. border-top 1px dotted black
  51. &-grid
  52. &, &-bar, &-beat
  53. position absolute
  54. top 0
  55. bottom 0
  56. width 0px
  57. cursor crosshair
  58. &-bar
  59. border-left 1px solid black
  60. &-beat
  61. border-left 1px solid rgba(0,0,0,0.2)
  62. margin-left -1px
  63. display flex
  64. flex-direction column-reverse
  65. &-lane
  66. border-top none
  67. cursor crosshair
  68. &:hover
  69. background rgba(255,255,255,0.025)
  70. .sequencer-steps
  71. display flex
  72. flex-direction row
  73. .sequencer-step
  74. width 24px
  75. height 24px
  76. background rgba(0,0,0,0.5)
  77. margin 0 2px 0 0
  78. &.current
  79. border-bottom 3px solid orangered
  80. height 27px
  81. &:hover
  82. background rgba(0,0,0,0.2)
  83. &.active
  84. background linear-gradient(to bottom, orangered, red)
  85. &:hover
  86. opacity 0.5