theme.lungo.styl 8.1 KB

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