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