style.sass 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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. .help
  34. position: relative
  35. cursor: pointer
  36. .popup
  37. cursor: default
  38. background-color: white
  39. border-radius: 6px
  40. padding: 0 15px
  41. font: 12px/18px Helvetica
  42. position: absolute
  43. left: 8px
  44. top: 39px
  45. color: #333
  46. width: 300px
  47. display: none
  48. ul
  49. padding-left: 15px
  50. // Arrow up (from Twitter Bootstrap)
  51. background-color: white
  52. border: 1px solid #ccc
  53. border: 1px solid rgba(0, 0, 0, 0.2)
  54. border-right-width: 2px
  55. border-bottom-width: 2px
  56. border-radius: 6px
  57. box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2)
  58. background-clip: padding-box
  59. &:before
  60. position: absolute
  61. top: -7px
  62. left: 9px
  63. display: inline-block
  64. border-right: 7px solid transparent
  65. border-bottom: 7px solid #ccc
  66. border-left: 7px solid transparent
  67. border-bottom-color: rgba(0, 0, 0, 0.2)
  68. content: ''
  69. &:after
  70. position: absolute
  71. top: -6px
  72. left: 10px
  73. display: inline-block
  74. border-right: 6px solid transparent
  75. border-bottom: 6px solid #ffffff
  76. border-left: 6px solid transparent
  77. content: ''
  78. .guide
  79. width: 100%
  80. max-height: 100%
  81. overflow-x: scroll
  82. position: relative
  83. -webkit-overflow-scrolling: touch
  84. .scroll-wrapper
  85. width: 100%
  86. height: 100%
  87. position: relative
  88. .timeline-bg
  89. width: 100%
  90. height: 21px
  91. top: 38px
  92. position: fixed
  93. position: fixed
  94. background-color: #fdfdfd
  95. .timeline
  96. width: ($hours-before + 24 + $hours-after) * $hour-width
  97. height: 26px
  98. position: absolute
  99. top: 38px
  100. background-color: #fdfdfd
  101. margin-left: $channel-label-width - 1px
  102. .hour
  103. font: normal 13px Helvetica
  104. float: left
  105. width: $hour-width - 7px
  106. border-left: 1px solid #444
  107. padding: 5px 0 0 6px
  108. height: 20px
  109. //.label
  110. // width: 50px
  111. // margin-left: -25px
  112. // text-align: center
  113. .channels
  114. margin: $header-height 0 0 ($channel-label-width - 1px)
  115. width: ($hours-before + 24 + $hours-after) * $hour-width
  116. overflow: hidden
  117. .channel
  118. position: relative
  119. height: $channel-height
  120. .program
  121. position: absolute
  122. white-space: nowrap
  123. height: $channel-height - 10px
  124. padding: 8px 0 0 8px
  125. border-left: 1px solid white
  126. border-right: 1px solid white
  127. background-color: #eee
  128. font: normal 13px/15px Helvetica
  129. overflow: hidden
  130. color: #555
  131. &.past
  132. background-color: #ececec
  133. color: #aaa
  134. &.current
  135. background-color: #ddd
  136. color: #444
  137. .favlink
  138. position: absolute
  139. right: 10px
  140. top: 10px
  141. visibility: hidden
  142. color: #fff
  143. cursor: pointer
  144. &:hover
  145. color: #bcbcbc
  146. &:hover .favlink
  147. visibility: visible
  148. &.favourite
  149. background-color: rgb(250, 218, 160)
  150. .favlink
  151. color: orange
  152. visibility: visible
  153. &.past
  154. background-color: rgba(250, 218, 160, 0.5)
  155. color: rgb(131, 131, 131)
  156. .favlink
  157. color: rgba(255, 165, 0, 0.5)
  158. .indicator
  159. position: absolute
  160. width: 1px
  161. height: 100%
  162. top: $header-height
  163. background-color: $indicator-color
  164. .channel-labels
  165. position: absolute
  166. top: $header-height
  167. left: 0
  168. width: $channel-label-width - 2px
  169. padding-right: 2px
  170. background-color: #fff
  171. .label
  172. width: $channel-label-width - 13px
  173. background-color: #e5e5e5
  174. color: #666
  175. font: bold 13px/15px Helvetica
  176. padding: 8px 10px 0 0
  177. text-align: right
  178. height: $channel-height - 10px
  179. margin-bottom: 2px
  180. border-right: 1px solid #bbb
  181. .select-channels
  182. margin-top: 38px
  183. label
  184. padding: 5px
  185. margin: 4px 4px 0 0
  186. display: inline-block
  187. background-color: #f1f1f1
  188. &.disabled
  189. opacity: 0.5
  190. button
  191. margin: 6px 0 6px 6px
  192. $loader-size: 66px
  193. .loading-screen, .program-details
  194. display: none
  195. position: fixed
  196. width: 100%
  197. height: 100%
  198. top: 0
  199. left: 0
  200. .bg
  201. width: 100%
  202. height: 100%
  203. background-color: #000
  204. opacity: 0.8
  205. .loading-screen .loader
  206. position: absolute
  207. width: $loader-size
  208. height: $loader-size
  209. top: 50%
  210. left: 50%
  211. margin: (-$loader-size / 2) 0 0 (-$loader-size / 2)
  212. background: url("loading.gif") no-repeat left top
  213. $details-width: 500px
  214. $details-initial-offset: 150px
  215. .program-details .content
  216. position: absolute
  217. background: white
  218. top: 50%
  219. left: 50%
  220. width: $details-width
  221. margin: -$details-initial-offset 0 0 (-$details-width / 2)
  222. border-radius: 6px
  223. padding: 12px 15px 0
  224. font: 12px/18px Helvetica
  225. box-shadow: 0 0 7px 5px #0f0f0f
  226. overflow-x: hidden
  227. overflow-y: auto
  228. *
  229. max-width: $details-width
  230. .properties
  231. padding-left: 15px
  232. margin-top: 1px
  233. strong
  234. display: inline-block
  235. width: 70px
  236. .select-label
  237. margin-left: 10px
  238. font: 13px/17px Arial
  239. .copyright
  240. margin: 10px 0 0 12px
  241. font: 13px/17px Arial
  242. color: #646464