style.sass 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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. &.disabled
  29. color: #666
  30. cursor: default
  31. .guide
  32. width: 100%
  33. max-height: 100%
  34. overflow-x: scroll
  35. position: relative
  36. -webkit-overflow-scrolling: touch
  37. .scroll-wrapper
  38. width: 100%
  39. height: 100%
  40. position: relative
  41. .timeline-bg
  42. width: 100%
  43. height: 21px
  44. top: 38px
  45. position: fixed
  46. position: fixed
  47. background-color: #fdfdfd
  48. .timeline
  49. width: 24 * $hour-width
  50. height: 26px
  51. position: absolute
  52. top: 38px
  53. background-color: #fdfdfd
  54. margin-left: $channel-label-width - 1px
  55. .hour
  56. font: normal 13px Helvetica
  57. float: left
  58. width: $hour-width - 7px
  59. border-left: 1px solid #444
  60. padding: 5px 0 0 6px
  61. height: 20px
  62. //.label
  63. // width: 50px
  64. // margin-left: -25px
  65. // text-align: center
  66. .channels
  67. margin: $header-height 0 0 ($channel-label-width - 1px)
  68. width: 24 * $hour-width
  69. overflow: hidden
  70. .channel
  71. position: relative
  72. height: $channel-height
  73. .program
  74. position: absolute
  75. white-space: nowrap
  76. height: $channel-height - 10px
  77. padding: 8px 0 0 8px
  78. border-left: 1px solid white
  79. border-right: 1px solid white
  80. background-color: #eee
  81. font: normal 13px/15px Helvetica
  82. overflow: hidden
  83. color: #555
  84. &.past
  85. background-color: #ececec
  86. color: #aaa
  87. &.current
  88. background-color: #ddd
  89. color: #444
  90. .favlink
  91. position: absolute
  92. right: 10px
  93. top: 10px
  94. visibility: hidden
  95. color: #fff
  96. cursor: pointer
  97. &:hover
  98. color: #bcbcbc
  99. &:hover .favlink
  100. visibility: visible
  101. &.favourite
  102. background-color: rgb(250, 218, 160)
  103. .favlink
  104. color: orange
  105. visibility: visible
  106. &.past
  107. background-color: rgba(250, 218, 160, 0.5)
  108. color: rgb(131, 131, 131)
  109. .favlink
  110. color: rgba(255, 165, 0, 0.5)
  111. .indicator
  112. position: absolute
  113. width: 1px
  114. height: 100%
  115. top: $header-height
  116. background-color: $indicator-color
  117. .channel-labels
  118. width: $channel-label-width - 2px
  119. position: absolute
  120. top: $header-height
  121. left: 0
  122. border-right: 2px solid #fff
  123. .label
  124. width: $channel-label-width - 13px
  125. background-color: #e5e5e5
  126. color: #666
  127. font: bold 13px/15px Helvetica
  128. padding: 8px 10px 0 0
  129. text-align: right
  130. height: $channel-height - 10px
  131. margin-bottom: 2px
  132. border-right: 1px solid #bbb
  133. .select-channels
  134. margin-top: 38px
  135. label
  136. padding: 5px
  137. margin: 4px 4px 0 0
  138. display: inline-block
  139. background-color: #f1f1f1
  140. &.disabled
  141. opacity: 0.5
  142. button
  143. margin: 6px 0 6px 6px
  144. $loader-size: 66px
  145. .loading-screen, .program-details
  146. display: none
  147. position: fixed
  148. width: 100%
  149. height: 100%
  150. top: 0
  151. left: 0
  152. .bg
  153. width: 100%
  154. height: 100%
  155. background-color: #000
  156. opacity: 0.8
  157. .loading-screen .loader
  158. position: absolute
  159. width: $loader-size
  160. height: $loader-size
  161. top: 50%
  162. left: 50%
  163. margin: (-$loader-size / 2) 0 0 (-$loader-size / 2)
  164. background: url("loading.gif") no-repeat left top
  165. $details-width: 480px
  166. .program-details .content
  167. position: absolute
  168. background: white
  169. top: 50%
  170. left: 50%
  171. width: $details-width
  172. margin: -150px 0 0 (-$details-width / 2)
  173. border-radius: 6px
  174. padding: 10px 15px
  175. font: 12px/18px Helvetica
  176. box-shadow: 0 0 7px 5px #0f0f0f
  177. .properties
  178. padding-left: 15px
  179. margin-top: 1px
  180. strong
  181. display: inline-block
  182. width: 70px