style.sass 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. $indicator-color: red
  2. $hour-width: 200px
  3. $channel-height: 34px
  4. $header-height: 64px
  5. $channel-label-width: 180px
  6. html, body
  7. width: 100%
  8. height: 100%
  9. overflow: hidden
  10. margin: 0
  11. padding: 0
  12. .navbar
  13. background-color: #232323
  14. width: 100%
  15. position: fixed
  16. top: 0
  17. .navitem
  18. color: #9a9a9a
  19. text-decoration: none
  20. font: normal 13px/18px Helvetica
  21. display: inline-block
  22. padding: 10px 20px
  23. &:hover
  24. color: #bcbcbc
  25. &.active
  26. color: #fff
  27. background-color: #1a1a1a
  28. .guide
  29. width: 100%
  30. height: 100%
  31. overflow-x: scroll
  32. position: relative
  33. .timeline-bg
  34. width: 100%
  35. height: 21px
  36. top: 38px
  37. position: fixed
  38. position: fixed
  39. background-color: #fdfdfd
  40. .timeline
  41. width: 24 * $hour-width
  42. height: 26px
  43. position: absolute
  44. top: 38px
  45. background-color: #fdfdfd
  46. margin-left: $channel-label-width - 1px
  47. .hour
  48. font: normal 13px Helvetica
  49. float: left
  50. width: $hour-width - 7px
  51. border-left: 1px solid #444
  52. padding: 5px 0 0 6px
  53. height: 20px
  54. //.label
  55. // width: 50px
  56. // margin-left: -25px
  57. // text-align: center
  58. .channels
  59. margin: $header-height 0 0 ($channel-label-width - 1px)
  60. width: 24 * $hour-width
  61. overflow: hidden
  62. .channel
  63. position: relative
  64. height: $channel-height
  65. .program
  66. position: absolute
  67. white-space: nowrap
  68. height: $channel-height - 10px
  69. padding: 8px 0 0 8px
  70. border-left: 1px solid white
  71. border-right: 1px solid white
  72. background-color: #eee
  73. font: normal 13px/15px Helvetica
  74. overflow: hidden
  75. color: #555
  76. &.past
  77. background-color: #ececec
  78. color: #aaa
  79. &.current
  80. background-color: #ddd
  81. color: #444
  82. .indicator
  83. position: absolute
  84. width: 1px
  85. height: 100%
  86. top: $header-height
  87. background-color: $indicator-color
  88. .channel-labels
  89. width: $channel-label-width - 2px
  90. position: fixed
  91. top: $header-height
  92. left: 0
  93. border-right: 2px solid #fff
  94. .label
  95. width: $channel-label-width - 13px
  96. background-color: #e5e5e5
  97. color: #666
  98. font: bold 13px/15px Helvetica
  99. padding: 8px 10px 0 0
  100. text-align: right
  101. height: $channel-height - 10px
  102. margin-bottom: 2px
  103. border-right: 1px solid #bbb