theme.lungo.styl 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. 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. 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. 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. background-color: rgba(0,0,0,0.75)
  192. & .window
  193. &.growl
  194. background: rgba(0,0,0,0.8)
  195. &:not(.growl)
  196. background: #e6e6e6
  197. color: #222
  198. box-shadow(0 0 8px #000)
  199. & button, .button
  200. background: #fff !important
  201. box-shadow: none !important
  202. color: THEME_dark !important
  203. border-radius 0px !important
  204. border: none !important
  205. margin-bottom: 1px
  206. &.error
  207. background: darken(COLOR_cancel, 25%)
  208. color: #fff
  209. &.success
  210. background: darken(COLOR_accept, 25%)
  211. color: #fff
  212. /* -------------------------- BUTTONS -------------------------- */
  213. header
  214. & .button, button
  215. color: #fff
  216. background-color: THEME_dark
  217. box-shadow 0 1px 0 lighten(THEME, 15%), inset 0 1px 0 darken(THEME, 35%)
  218. border-radius (BORDER_radius * 2)
  219. &:active
  220. background-color: darken(THEME, 40%)
  221. article
  222. & .button, button
  223. color: #fff !important
  224. border-radius BORDER_radius
  225. box-shadow inset 0 1px 0 rgba(255,255,255,0.2)
  226. border: solid 1px rgba(0,0,0,0.1)
  227. &:active
  228. box-shadow inset 0 0 128px rgba(0,0,0,0.25)
  229. border-color: none
  230. &.secondary
  231. color: #666 !important
  232. &[disabled], :disabled, &.disabled
  233. background: rgba(255,255,255,0.2)
  234. color: #999 !important
  235. box-shadow: none !important
  236. &, abbr
  237. font-weight: 700
  238. & .icon
  239. opacity: 0.65
  240. text-shadow: 0 -1px 0 rgba(0,0,0,0.25)
  241. & button, .button, .tag:not(.icon)
  242. &
  243. background-color: THEME_dark
  244. &.secondary
  245. background-color: COLOR_secondary
  246. &.accept
  247. background-color: COLOR_accept
  248. &.cancel
  249. background-color: COLOR_cancel
  250. /* -------------------------- FORMS -------------------------- */
  251. .splash fieldset
  252. &:first-child
  253. border-radius BORDER_radius BORDER_radius 0px 0px
  254. &:last-child
  255. border-radius 0px 0px BORDER_radius BORDER_radius
  256. form, .form
  257. & label
  258. color: #aaa
  259. font-weight: 300
  260. & fieldset
  261. background: #fff
  262. border-bottom: solid 1px #eee
  263. & .icon
  264. color: #ccc
  265. & 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
  266. background-color: white
  267. color: rgba(0, 0, 0, 0.75)
  268. &.error, &:required
  269. color: COLOR_cancel
  270. background-color: lighten(COLOR_cancel, 75%)
  271. font-weight: 700
  272. &:focus, &:active, &:hover
  273. color: THEME_dark
  274. &[disabled]
  275. background: darken(FORM_color, 10%)
  276. color: #999
  277. &.large
  278. font-weight: 700
  279. & .select:after
  280. background: darken(FORM_color, 10%)
  281. color: #fff
  282. & input[type=range]
  283. border-radius 0px
  284. &:not(.checkbox)
  285. background-color: #ddd
  286. &:active
  287. background-color: THEME_light
  288. &.checkbox
  289. background-color: #aaa
  290. color: rgba(255,255,255,0.6)
  291. &.active
  292. color: #fff
  293. background-color: THEME_light
  294. &::-webkit-slider-thumb
  295. border-radius BORDER_radius
  296. background-color: lighten(FORM_color, 50%)
  297. border: solid 1px FORM_color
  298. &::-webkit-slider-thumb::after
  299. background: FORM_color
  300. & .progress .bar
  301. background-color: #ddd
  302. & .value
  303. background-color: THEME_light