theme.lungo.styl 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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 = #52bb93
  18. DARK = #222
  19. DARK_light = lighten(DARK, 25%)
  20. DARK_dark = darken(DARK, 15%)
  21. DARK_darkest = darken(DARK, 30%)
  22. LIST_color = lighten(COLOR, 5%)
  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. FORM_color = #e5e5e5
  31. BORDER_radius = 2px
  32. /* -------------------------- DEFAULTS -------------------------- */
  33. body
  34. background-color: #000
  35. color: COLOR
  36. font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif
  37. font-weight: 400
  38. font-size: 13px
  39. line-height: 1.3em
  40. letter-spacing: -0.05em
  41. & .theme
  42. background-color: THEME-light
  43. &:active
  44. background-color: THEME
  45. /* -------------------------- LAYOUT COLORS -------------------------- */
  46. body > section
  47. background-color: DARK
  48. & > header
  49. background-color: THEME
  50. box-shadow 0 2px 0 rgba(0,0,0,0.15), inset 0 1px 0 THEME_light, inset 0 -1px 0 THEME_dark
  51. color: #fff
  52. border-radius (BORDER_radius * 2) (BORDER_radius * 2) 0 0
  53. & > footer, & nav[data-control=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. body > 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:not(.button)
  77. color: darken(THEME, 35%)
  78. text-shadow 0 1px 0 lighten(THEME, 25%)
  79. &:active
  80. color: darken(THEME, 50%)
  81. section > &[data-control=groupbar] > a.active
  82. box-shadow inset 0 -3px 0 THEME
  83. section > footer > & > a, &[data-control=groupbar] > a
  84. color: NAV_LINK
  85. &.active
  86. color: NAV_LINK_ACTIVE
  87. section > footer > & > a
  88. box-shadow 1px 0 0 DARK_dark
  89. &.active
  90. color: NAV_LINK_ACTIVE
  91. background-color: DARK_dark
  92. box-shadow inset 0 3px 0 THEME
  93. aside & a
  94. color: lighten(DARK, 20%)
  95. &:active
  96. color: lighten(DARK, 50%)
  97. &[data-control=menu]
  98. COLOR = DARK
  99. background: COLOR
  100. box-shadow 0 2px 0 rgba(0,0,0,0.15)
  101. &.icons
  102. background: rgba(0,0,0,0.8)
  103. & > a
  104. color: lighten(COLOR, 35%)
  105. &:active > .icon
  106. text-shadow: 0 0 32px #fff
  107. & > .icon
  108. color: #fff
  109. &:not(.icons)
  110. & > a
  111. color: #fff
  112. text-shadow 0 1px 0 #111
  113. border-bottom: 1px solid darken(COLOR, 40%)
  114. border-top: 1px solid lighten(COLOR, 5%)
  115. &:active
  116. background: #111
  117. border-color: transparent
  118. & > .icon
  119. color: lighten(COLOR, 25%)
  120. & > a
  121. font-weight: 700
  122. /* -------------------------- LISTS -------------------------- */
  123. .list
  124. section & li
  125. background: #fff
  126. &:not(.anchor)
  127. border-bottom: inset 1px LIST_border
  128. &.secondary
  129. box-shadow: inset 4px 0px 0px COLOR_secondary
  130. &.accept
  131. box-shadow: inset 4px 0px 0px COLOR_accept
  132. &.cancel
  133. box-shadow: inset 4px 0px 0px COLOR_cancel
  134. &.arrow::after
  135. border-color: COLOR_secondary
  136. &, a
  137. color: LIST_color
  138. &.anchor
  139. background: DARK
  140. &.dark
  141. background: DARK_light
  142. &.selectable:active, &.theme, &.active
  143. background: THEME_light
  144. &.light
  145. background: LIST_border
  146. color: LIST_color_2nd
  147. &.dark, &.selectable:active, &.theme, &.anchor
  148. &, small, & .right:not(.tag), strong, .arrow::after
  149. color: #fff
  150. &.arrow::after
  151. border-color: #fff
  152. & small, & .right:not(.tag)
  153. color: LIST_color_2nd
  154. &:not(.indented) li
  155. &.dark, &.theme, &.light
  156. border-bottom-color: rgba(0,0,0,0.1)
  157. aside & li
  158. background: none
  159. &:not(:first-child)
  160. border-top: solid 1px DARK
  161. &:not(:last-child)
  162. border-bottom: solid 1px DARKEST
  163. &:active
  164. background: DARK_darkest
  165. &.active
  166. background: THEME
  167. &.active, &:active
  168. border-color: transparent
  169. & strong, & small, & .icon
  170. color: #fff
  171. & strong
  172. color: #999
  173. & small, .icon
  174. color: #666
  175. /* -------------------------- TAG -------------------------- */
  176. .tag:not(.icon)
  177. color: #fff
  178. border-radius BORDER_radius
  179. font-weight: 700 !important
  180. &.count
  181. background-color: THEME
  182. header .count
  183. background-color: THEME-dark !important
  184. footer &
  185. box-shadow inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.5)
  186. [data-control="pull"]
  187. text-shadow: 0 1px 0 #fff
  188. /* -------------------------- NOTIFICATION -------------------------- */
  189. .notification
  190. color: #fff
  191. &:not(.push)
  192. background-color: rgba(0,0,0,0.6)
  193. & .window
  194. &.growl
  195. background: rgba(0,0,0,0.75)
  196. &:not(.growl)
  197. box-shadow(0 0 8px #444)
  198. & button, .button
  199. background: #fff
  200. color: THEME_dark
  201. &.confirm, &.html
  202. background: #e6e6e6
  203. color: #222
  204. &.error
  205. background: COLOR_cancel
  206. &.success
  207. background: COLOR_accept
  208. &.error, &.success
  209. color: #fff
  210. & small
  211. opacity: 0.75
  212. font-weight: 100
  213. &.html
  214. & .title
  215. background: THEME
  216. color: #fff
  217. &.push
  218. background: rgba(0,0,0,0.65)
  219. /* -------------------------- BUTTONS -------------------------- */
  220. header
  221. & .button, button
  222. color: #fff
  223. background-color: THEME_dark
  224. box-shadow 0 1px 0 lighten(THEME, 15%), inset 0 1px 0 darken(THEME, 35%)
  225. border-radius (BORDER_radius * 2)
  226. &:active
  227. background-color: darken(THEME, 40%)
  228. article
  229. & .button, button
  230. color: #fff !important
  231. border-radius BORDER_radius
  232. box-shadow inset 0 1px 0 rgba(255,255,255,0.2)
  233. border: solid 1px rgba(0,0,0,0.1)
  234. &:active
  235. box-shadow inset 0 0 128px rgba(0,0,0,0.25)
  236. border-color: none
  237. &.secondary
  238. color: #666 !important
  239. &[disabled], :disabled, &.disabled
  240. background: rgba(255,255,255,0.2)
  241. color: #999 !important
  242. box-shadow: none !important
  243. &, abbr
  244. font-weight: 700
  245. & .icon
  246. opacity: 0.65
  247. text-shadow: 0 -1px 0 rgba(0,0,0,0.25)
  248. & button, .button, .tag:not(.icon)
  249. &
  250. background-color: THEME_dark
  251. &.secondary
  252. background-color: COLOR_secondary
  253. &.accept
  254. background-color: COLOR_accept
  255. &.cancel
  256. background-color: COLOR_cancel
  257. /* -------------------------- FORMS -------------------------- */
  258. .splash fieldset
  259. &:first-child
  260. border-radius BORDER_radius BORDER_radius 0px 0px
  261. &:last-child
  262. border-radius 0px 0px BORDER_radius BORDER_radius
  263. form, .form
  264. & label
  265. color: #aaa
  266. font-weight: 300
  267. & fieldset
  268. background: #fff
  269. border-bottom: solid 1px #eee
  270. & .icon
  271. color: #ccc
  272. & 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
  273. background-color: white
  274. color: rgba(0, 0, 0, 0.75)
  275. &.error, &:required
  276. color: COLOR_cancel
  277. background-color: lighten(COLOR_cancel, 75%)
  278. font-weight: 700
  279. &:focus, &:active, &:hover
  280. color: THEME_dark
  281. &[disabled]
  282. background: darken(FORM_color, 10%)
  283. color: #999
  284. &.large
  285. font-weight: 700
  286. & .select:after
  287. background: darken(FORM_color, 10%)
  288. color: #fff
  289. & input[type=range]
  290. border-radius 0px
  291. &:not(.checkbox)
  292. background-color: #ddd
  293. &:active
  294. background-color: THEME_light
  295. &.checkbox
  296. background-color: #aaa
  297. color: rgba(255,255,255,0.6)
  298. &.active
  299. color: #fff
  300. background-color: THEME_light
  301. &::-webkit-slider-thumb
  302. border-radius BORDER_radius
  303. background-color: lighten(FORM_color, 50%)
  304. border: solid 1px FORM_color
  305. &::-webkit-slider-thumb::after
  306. background: FORM_color
  307. & .progress .bar
  308. background-color: #ddd
  309. & .value
  310. background-color: THEME_light