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