theme.lungo.styl 8.3 KB

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