theme.green.styl 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  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=Roboto:100,300,400,700")
  11. WHITE = white
  12. /* -------------------------- THEME -------------------------- */
  13. CONTENT = #f4f5f5
  14. COLOR_secondary = #BFBFBF
  15. COLOR_cancel = #EE6557
  16. COLOR_accept = #3FB58E
  17. DARK = #222
  18. DARK_light = lighten(DARK, 25%)
  19. DARK_dark = darken(DARK, 15%)
  20. DARK_darkest = darken(DARK, 30%)
  21. FORM_radius = 1px
  22. LIST_color = #333
  23. LIST_color_2nd = lighten(LIST_color, 35%)
  24. LIST_border = lighten(LIST_color, 90%)
  25. NAV_LINK = #888
  26. NAV_LINK_ACTIVE = WHITE
  27. THEME = COLOR_accept
  28. THEME_light = lighten(THEME, 15%)
  29. THEME_dark = darken(THEME, 15%)
  30. //?
  31. COLOR = #484a49
  32. body
  33. background-color: DARK
  34. font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif
  35. font-weight: 400
  36. font-size: 13px
  37. line-height: 1.3em
  38. letter-spacing: -0.05em
  39. .theme
  40. &, li&, a&
  41. background-color: THEME-light
  42. &:active
  43. background-color: THEME
  44. [data-control="pull"]
  45. color: #666
  46. text-shadow: 0 1px 0 white
  47. /* -------------------------- LAYOUT COLORS -------------------------- */
  48. section
  49. & > header
  50. background-color: THEME
  51. box-shadow 0 1px 3px rgba(0,0,0,0.25), inset 0 1px 0 THEME_light, inset 0 -1px 0 THEME_dark
  52. color: #fff
  53. & > footer, & nav.groupbar
  54. background-color: DARK
  55. box-shadow inset 0 3px 0 DARK_dark
  56. & > article, & > [data-control="pull"]
  57. background-color: CONTENT
  58. &.splash
  59. background: THEME
  60. color: #fff
  61. &.aside
  62. box-shadow -1px 0 2px rgba(0,0,0,0.2)
  63. &.right
  64. box-shadow 1px 0 2px rgba(0,0,0,0.2)
  65. DARKEST = darken(DARK_darkest, 15%)
  66. aside
  67. background-color: DARK_dark
  68. color: #fff
  69. & > header, > footer
  70. background-color: DARK_darkest
  71. & > header
  72. box-shadow 0 1px 3px rgba(0,0,0,0.25), inset 0 1px 0 DARK, inset 0 -1px 0 DARKEST
  73. /* -------------------------- NAVIGATION -------------------------- */
  74. nav
  75. section > header > &
  76. & a
  77. color: #fff
  78. &.box
  79. &:not(.right) a
  80. box-shadow 1px 0 0 THEME_light, inset -1px 0 0 THEME_dark
  81. &.right a
  82. box-shadow -1px 0 0 THEME_light, inset 1px 0 0 THEME_dark
  83. & a:active
  84. background: THEME_dark
  85. section > &.groupbar > a.active
  86. box-shadow inset 0 -3px 0 THEME
  87. section > footer > & > a, &.groupbar > a
  88. color: NAV_LINK
  89. &.active
  90. color: NAV_LINK_ACTIVE
  91. section > footer > & > a
  92. box-shadow 1px 0 0 DARK_dark
  93. &.active
  94. color: NAV_LINK_ACTIVE
  95. background-color: DARK_dark
  96. box-shadow inset 0 3px 0 THEME
  97. aside &
  98. & a
  99. &.active .icon
  100. color: white
  101. &:not(.active) .icon
  102. color: NAV_LINK
  103. &.box
  104. &:not(.right) a
  105. box-shadow 1px 0 0 DARK, inset -1px 0 0 DARKEST
  106. &.right a
  107. box-shadow -1px 0 0 DARK, inset 1px 0 0 DARKEST
  108. & a:active
  109. background: DARKEST
  110. /* -------------------------- LISTS -------------------------- */
  111. .list
  112. section & li
  113. background: #fff
  114. &:not(.anchor)
  115. border-bottom: inset 1px LIST_border
  116. &.secondary
  117. box-shadow: inset 4px 0px 0px COLOR_secondary
  118. &.accept
  119. box-shadow: inset 4px 0px 0px COLOR_accept
  120. &.cancel
  121. box-shadow: inset 4px 0px 0px COLOR_cancel
  122. &, & a
  123. color: LIST_color
  124. &.anchor
  125. background: DARK
  126. &.dark
  127. background: DARK_light
  128. &.selectable:active, &.theme, &.active
  129. background: THEME_light
  130. &.light
  131. background: LIST_border
  132. color: LIST_color_2nd
  133. &.dark, &.selectable:active, &.theme, &.anchor
  134. &, small, & .right:not(.tag)
  135. color: #fff
  136. & small, & .right:not(.tag)
  137. color: LIST_color_2nd
  138. &:not(.indented) li
  139. &.dark, &.theme, &.light
  140. border-bottom-color: rgba(0,0,0,0.1)
  141. aside & li
  142. background: none
  143. &:not(:first-child)
  144. border-top: solid 1px DARK
  145. &:not(:last-child)
  146. border-bottom: solid 1px DARKEST
  147. &.active
  148. background: THEME
  149. border-color: transparent
  150. & strong, & small, & .icon
  151. color: #fff
  152. & strong
  153. color: #999
  154. & small, .icon
  155. color: #666
  156. /* -------------------------- TAG -------------------------- */
  157. .tag:not(.icon)
  158. color: #fff
  159. border-radius 2px
  160. font-weight: 700 !important
  161. &.count
  162. background-color: THEME
  163. header .count
  164. background-color: THEME-dark !important
  165. footer &
  166. box-shadow inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.5)
  167. /* -------------------------- NOTIFICATION -------------------------- */
  168. .notification
  169. color: #fff
  170. & .window
  171. &.growl
  172. background: rgba(0,0,0,0.8)
  173. &:not(.growl)
  174. background: #e6e6e6
  175. color: #222
  176. box-shadow(0 0 8px #000)
  177. & button, .button
  178. background: #fff !important
  179. box-shadow: none !important
  180. color: THEME_dark !important
  181. border-radius 0px !important
  182. border: none !important
  183. margin-bottom: 1px
  184. &.error
  185. background: darken(COLOR_cancel, 25%)
  186. color: #fff
  187. &.success
  188. background: darken(COLOR_accept, 25%)
  189. color: #fff
  190. /* -------------------------- BUTTONS -------------------------- */
  191. a.button, button
  192. border-radius(FORM-border-radius)
  193. color: white
  194. border-radius 2px
  195. box-shadow inset 0 1px 0 rgba(255,255,255,0.2)
  196. border: solid 1px rgba(0,0,0,0.1)
  197. &:active
  198. box-shadow inset 0 0 128px rgba(0,0,0,0.25)
  199. border-color: none
  200. &.secondary
  201. color: #666 !important
  202. &[disabled]
  203. background-color: black
  204. button, .button, .tag:not(.icon)
  205. &
  206. background-color: THEME_dark
  207. &.secondary
  208. background-color: COLOR_secondary
  209. &.accept
  210. background-color: COLOR_accept
  211. &.cancel
  212. background-color: COLOR_cancel
  213. /* -------------------------- BUTTONS -------------------------- */
  214. FORM_shadow_form = 'inset 0 1px 2px rgba(0,0,0,0.1)'
  215. 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'
  216. FORM_border_color = #D0D4C6
  217. form, .form
  218. & label
  219. color: #aaa
  220. font-weight: 300
  221. & fieldset
  222. background: #fff
  223. border-bottom: solid 1px #eee
  224. & .icon
  225. color: #ccc
  226. & 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
  227. background-color: white
  228. color: rgba(0, 0, 0, 0.75)
  229. border: 1px solid #ddd
  230. box-shadow inset 0 1px 2px rgba(0, 0, 0, 0.1)
  231. border-radius (0px)
  232. &.error, &:required
  233. border-color: color_alert
  234. color: color_alert
  235. background-color: rgba(198, 15, 19, 0.1)
  236. &:focus
  237. background: #FAFAFA;
  238. border-color: THEME;
  239. color: rgba(0, 0, 0, 0.75)
  240. &[disabled]
  241. background: #eee
  242. border-color: #aaa
  243. color: #999
  244. & .select:after
  245. background: FORM_border_color
  246. color: white
  247. border-top-right-radius: FORM_radius
  248. border-bottom-right-radius: FORM_radius
  249. & input[type=range]
  250. box-shadow FORM_shadow_form
  251. &:not(.checkbox)
  252. background-color: #ddd
  253. &:active
  254. background-color: THEME_light
  255. &.checkbox
  256. background-color: #aaa
  257. color: rgba(255,255,255,0.6)
  258. &.active
  259. color: #fff
  260. background-color: THEME_light
  261. &::-webkit-slider-thumb
  262. border-radius: 2px
  263. background: #eee
  264. background-color: lighten(FORM_border_color, 50%)
  265. border: solid 1px FORM_border_color
  266. &::-webkit-slider-thumb::after
  267. background: FORM_border_color
  268. & .progress
  269. & .bar
  270. background-color: #ddd
  271. & .value
  272. background-color: THEME_light