Lungo.theme.default.styl 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Theme
  5. * @class Default
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "import/vendor.styl"
  10. @import url("http://fonts.googleapis.com/css?family=Titillium+Web:200,400,700");
  11. @import url("http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,700")
  12. THEME = #0093D5
  13. THEME_light = #39ABE1
  14. THEME = #2A95D3
  15. THEME_light = #25AEEB
  16. THEME_dark = #222
  17. THEME_dark_current = #111
  18. THEME_dark_nav = #888
  19. THEME_dark_nav_active = #fff
  20. THEME_contrast = #444
  21. ASIDE_COLOR = #191919
  22. COLOR = #484a49
  23. NOTIFICATION_error = #e33100
  24. NOTIFICATION_alert = #ffb515
  25. NOTIFICATION_success = #009600
  26. FORM_border_radius = 1px
  27. body
  28. background: #000
  29. font-family: "Source Sans Pro", "Titillium Web", Helvetica, Arial, sans-serif
  30. font-weight: 300
  31. font-size: 16px
  32. line-height: 1.3em
  33. .theme
  34. &, li&, a&
  35. background:
  36. THEME-light
  37. &:active
  38. background: THEME
  39. [data-control="pull"]
  40. color: #666
  41. text-shadow: 0 1px 0 white
  42. section
  43. & > header
  44. background-color: THEME
  45. box-shadow inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.5)
  46. & .title
  47. color: #fff
  48. & .subtitle
  49. color: #fff
  50. opacity: 0.7
  51. & > footer
  52. background-color: THEME-dark
  53. box-shadow inset 0 3px 0 #333
  54. & > nav a
  55. box-shadow 1px 0 0 #151515
  56. &.current
  57. color: THEME_dark_nav_active
  58. background: THEME_dark_current
  59. box-shadow -1px 0 0 #252525, 1px 0 0 #252525, inset 0 3px 0 #2A95D3
  60. & > article, & > [data-control="pull"]
  61. background: #f4f5f5
  62. &.aside
  63. box-shadow -1px 0 0 rgba(0,0,0,0.2)
  64. &.right
  65. box-shadow 4px 0 8px rgba(0,0,0,0.5)
  66. aside
  67. color: #fff
  68. background: ASIDE_COLOR
  69. & header, footer
  70. background: THEME_dark_current
  71. text-shadow: none
  72. & header
  73. box-shadow inset 0 -1px 0 rgba(0,0,0,0.2)
  74. & article
  75. background: none
  76. & nav a
  77. &.current .icon
  78. color: white
  79. &:not(.current) .icon
  80. color: THEME_dark_nav
  81. & .list li
  82. background: none
  83. border-bottom-color: THEME_dark !important
  84. &.current
  85. background: THEME
  86. border-bottom-color: THEME
  87. & strong, & small, & .icon
  88. color: #fff
  89. & strong, small, .icon
  90. color: THEME_dark_nav
  91. header nav
  92. & a
  93. color: #fff
  94. &.box
  95. &:not(.right) a
  96. box-shadow 1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.2)
  97. &.right a
  98. box-shadow -1px 0 0 rgba(255,255,255,0.2), inset 1px 0 0 rgba(0,0,0,0.2)
  99. & a:active
  100. background: rgba(0,0,0,0.1)
  101. &.button a
  102. border-radius: FORM-border-radius
  103. // linear-gradient( top, ','rgba(0,0,0,0.0), ','rgba(0,0,0,0.1) )
  104. box-shadow 0 1px 0 rgba(255,255,255,0.2), inset 0 0 3px rgba(0,0,0,0.3), inset 0 1px 1px rgba(0, 0, 0, .5)
  105. &:active
  106. background: rgba(0,0,0,0.2)
  107. section > nav.groupbar
  108. background-color: THEME-dark
  109. & > a.current
  110. box-shadow inset 0 -3px 0 THEME
  111. footer > nav > a, nav.groupbar > a
  112. color: THEME_dark_nav
  113. &.current
  114. color: THEME_dark_nav_active
  115. LIST-border = #ddd
  116. LIST-color = #333
  117. .list
  118. & li
  119. background: #fff
  120. border-bottom: inset 1px LIST-border
  121. &, & a
  122. color: LIST-color
  123. &.dark
  124. background: THEME_contrast
  125. &, & a
  126. color: #fff
  127. &.selectable:active, &.theme
  128. background: THEME_light
  129. &, & a
  130. color: #fff
  131. &.light
  132. background: LIST-border
  133. text-shadow: 0 1px 0 #eee
  134. &, & a
  135. color: THEME_dark_nav
  136. &.anchor
  137. background: THEME_dark
  138. border-bottom: none
  139. &, & a
  140. color: #fff !important
  141. & small, & .right:not(.bubble)
  142. opacity: 0.8
  143. &:not(.indented) li
  144. &.dark, &.theme, &.light
  145. border-bottom-color: rgba(0,0,0,0.1)
  146. .splash
  147. background: THEME-dark
  148. color: #fff
  149. text-shadow: 0 1px 0px rgba(0,0,0,0.2)
  150. /* ____________________ BUTTONS ____________________ */
  151. .button, button
  152. border-radius(FORM-border-radius)
  153. color: white
  154. border-radius 1px
  155. box-shadow inset 0 1px 0 rgba(255,255,255,0.2)
  156. border: solid 1px rgba(0,0,0,0.1)
  157. &:active
  158. box-shadow inset 0 0 128px rgba(0,0,0,0.25)
  159. border-color: none
  160. FORM_shadow_form = 'inset 0 1px 2px rgba(0,0,0,0.1)'
  161. FORM_shadow_form_active = 'inset 0 1px 1px rgba(0,0,0,0.1), 3px 0 #f0eeef, 0 3px #f0eeef, -3px 0 #f0eeef, 0 -3px #f0eeef'
  162. FORM_border_color = #D0D4C6
  163. form, .form
  164. & label
  165. color: #999
  166. & input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], select, textarea
  167. background-color: white
  168. color: rgba(0, 0, 0, 0.75)
  169. border: 1px solid #ddd
  170. box-shadow inset 0 1px 2px rgba(0, 0, 0, 0.1)
  171. border-radius (0px)
  172. &.error, &:required
  173. border-color: color_alert
  174. color: color_alert
  175. background-color: rgba(198, 15, 19, 0.1)
  176. &:focus
  177. background: #FAFAFA;
  178. border-color: THEME;
  179. color: rgba(0, 0, 0, 0.75)
  180. &[disabled]
  181. background: #eee
  182. border-color: #aaa
  183. color: #999
  184. & .select:after
  185. background: FORM_border_color
  186. color: white
  187. border-top-right-radius: FORM_border_radius
  188. border-bottom-right-radius: FORM_border_radius
  189. & input[type=range]
  190. box-shadow FORM_shadow_form
  191. border-radius FORM_border_radius
  192. &:not(.checkbox)
  193. background-color: #c7c7c7
  194. &:active
  195. background-color: THEME_light
  196. &.checkbox
  197. background-color: #aaaaaa
  198. color: rgba(255,255,255,0.6)
  199. &.active
  200. background-color: THEME_light
  201. &::-webkit-slider-thumb
  202. border-radius: FORM-border-radius
  203. background: #fff
  204. &::-webkit-slider-thumb::after
  205. background: #ddd
  206. & .progress
  207. .labels
  208. font-size: 12px
  209. line-height: 18px
  210. color: #858585
  211. & .bar
  212. background: #c7c7c7
  213. & .value
  214. background-color: THEME-light
  215. & .label
  216. float: right
  217. margin-right: 3px
  218. color: rgba(0,0,0,0.6)
  219. text-shadow: 0 1px 0 rgba(255,255,255,0.2) !important
  220. font-size: 12px
  221. .bubble
  222. color: #fff
  223. border-radius 2px
  224. &.count
  225. background: THEME
  226. header .count
  227. background: THEME-dark !important
  228. footer .bubble
  229. box-shadow inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.5)
  230. article .list .bubble
  231. box-shadow inset 1px 0 0 rgba(0,0,0,0.3), inset 0 1px 0 rgba(0,0,0,0.3), inset -1px 0 0 rgba(0,0,0,0.3), inset 0 -1px 0 rgba(0,0,0,0.3)
  232. aside
  233. .list .bubble
  234. background: rgba(0,0,0,0.25)
  235. .notification
  236. color: #fff
  237. & .window
  238. &.confirm
  239. background: #333
  240. &.notify
  241. text-shadow: 0 1px 0px rgba(0,0,0,0.1)
  242. .box-shadow( inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.2), 0px 1px 2px rgba(0,0,0,0.25) )
  243. &.error
  244. background: NOTIFICATION-error
  245. &.alert
  246. background: NOTIFICATION-alert
  247. &.success
  248. background: NOTIFICATION-success
  249. &.url
  250. & .close
  251. background: #000
  252. border: solid 2px #fff
  253. box-shadow: 0 0 4px black