style.sass 4.7 KB

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