Lungo.theme.default.styl 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Theme
  5. * @class Default
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "import/vendor.styl"
  10. // @import url("http://fonts.googleapis.com/css?family=Titillium+Web:200,400,700")
  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: "Helvetica Neue", "Open Sans", "Titillium Web", 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. & > header
  51. background-color: THEME
  52. box-shadow 0 1px 3px rgba(0,0,0,0.25), inset 0 1px 0 THEME_light, inset 0 -1px 0 THEME_dark
  53. color: #fff
  54. & > footer, & nav.groupbar
  55. background-color: DARK
  56. box-shadow inset 0 3px 0 DARK_dark
  57. & > article, & > [data-control="pull"]
  58. background-color: CONTENT
  59. &.splash
  60. background: THEME
  61. color: #fff
  62. &.aside
  63. box-shadow -1px 0 2px rgba(0,0,0,0.2)
  64. &.right
  65. box-shadow 1px 0 2px rgba(0,0,0,0.2)
  66. DARKEST = darken(DARK_darkest, 15%)
  67. aside
  68. background-color: DARK_dark
  69. color: #fff
  70. & > header, > footer
  71. background-color: DARK_darkest
  72. & > header
  73. box-shadow 0 1px 3px rgba(0,0,0,0.25), inset 0 1px 0 DARK, inset 0 -1px 0 DARKEST
  74. /* -------------------------- NAVIGATION -------------------------- */
  75. nav
  76. section > header > &
  77. & a
  78. color: #fff
  79. &.box
  80. &:not(.right) a
  81. box-shadow 1px 0 0 THEME_light, inset -1px 0 0 THEME_dark
  82. &.right a
  83. box-shadow -1px 0 0 THEME_light, inset 1px 0 0 THEME_dark
  84. & a:active
  85. background: THEME_dark
  86. section > &.groupbar > a.current
  87. box-shadow inset 0 -3px 0 THEME
  88. section > footer > & > a, &.groupbar > a
  89. color: NAV_LINK
  90. &.current
  91. color: NAV_LINK_ACTIVE
  92. section > footer > & > a
  93. box-shadow 1px 0 0 DARK_dark
  94. &.current
  95. color: NAV_LINK_ACTIVE
  96. background-color: DARK_dark
  97. box-shadow inset 0 3px 0 THEME
  98. aside &
  99. & a
  100. &.current .icon
  101. color: white
  102. &:not(.current) .icon
  103. color: NAV_LINK
  104. &.box
  105. &:not(.right) a
  106. box-shadow 1px 0 0 DARK, inset -1px 0 0 DARKEST
  107. &.right a
  108. box-shadow -1px 0 0 DARK, inset 1px 0 0 DARKEST
  109. & a:active
  110. background: DARKEST
  111. /* -------------------------- LISTS -------------------------- */
  112. .list
  113. section & li
  114. background: #fff
  115. &:not(.anchor)
  116. border-bottom: inset 1px LIST_border
  117. &.secondary
  118. box-shadow: inset 4px 0px 0px COLOR_secondary
  119. &.accept
  120. box-shadow: inset 4px 0px 0px COLOR_accept
  121. &.cancel
  122. box-shadow: inset 4px 0px 0px COLOR_cancel
  123. &, & a
  124. color: LIST_color
  125. &.anchor
  126. background: DARK
  127. &.dark
  128. background: DARK_light
  129. &.selectable:active, &.theme, &.active
  130. background: THEME_light
  131. &.light
  132. background: LIST_border
  133. color: LIST_color_2nd
  134. &.dark, &.selectable:active, &.theme, &.anchor
  135. &, small, & .right:not(.tag)
  136. color: #fff
  137. & small, & .right:not(.tag)
  138. color: LIST_color_2nd
  139. &:not(.indented) li
  140. &.dark, &.theme, &.light
  141. border-bottom-color: rgba(0,0,0,0.1)
  142. aside & li
  143. background: none
  144. &:not(:first-child)
  145. border-top: solid 1px DARK
  146. &:not(:last-child)
  147. border-bottom: solid 1px DARKEST
  148. &.current
  149. background: THEME
  150. border-color: transparent
  151. & strong, & small, & .icon
  152. color: #fff
  153. & strong
  154. color: #999
  155. & small, .icon
  156. color: #666
  157. /* -------------------------- TAG -------------------------- */
  158. .tag
  159. color: #fff
  160. border-radius 2px
  161. font-weight: 700 !important
  162. &.count
  163. background-color: THEME
  164. header .count
  165. background-color: THEME-dark !important
  166. footer &
  167. box-shadow inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.5)
  168. /* -------------------------- NOTIFICATION -------------------------- */
  169. .notification
  170. color: #fff
  171. & .window
  172. &.confirm
  173. background: #333
  174. &.notify
  175. text-shadow: 0 1px 0px rgba(0,0,0,0.1)
  176. .box-shadow( inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.2), 0px 1px 2px rgba(0,0,0,0.25) )
  177. &.error
  178. background: COLOR_cancel
  179. &.alert
  180. background: COLOR_secondary
  181. &.success
  182. background: COLOR_accept
  183. &.url
  184. & .close
  185. background: #000
  186. border: solid 2px #fff
  187. box-shadow: 0 0 4px black
  188. /* -------------------------- BUTTONS -------------------------- */
  189. a.button, button
  190. border-radius(FORM-border-radius)
  191. color: white
  192. border-radius 2px
  193. box-shadow inset 0 1px 0 rgba(255,255,255,0.2)
  194. border: solid 1px rgba(0,0,0,0.1)
  195. &:active
  196. box-shadow inset 0 0 128px rgba(0,0,0,0.25)
  197. border-color: none
  198. &.secondary
  199. color: #666 !important
  200. &[disabled]
  201. background-color: black
  202. button, .button, .tag
  203. &
  204. background-color: THEME_dark
  205. &.secondary
  206. background-color: COLOR_secondary
  207. &.accept
  208. background-color: COLOR_accept
  209. &.cancel
  210. background-color: COLOR_cancel
  211. /* -------------------------- BUTTONS -------------------------- */
  212. FORM_shadow_form = 'inset 0 1px 2px rgba(0,0,0,0.1)'
  213. 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'
  214. FORM_border_color = #D0D4C6
  215. form, .form
  216. & label
  217. color: #999
  218. & 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
  219. background-color: white
  220. color: rgba(0, 0, 0, 0.75)
  221. border: 1px solid #ddd
  222. box-shadow inset 0 1px 2px rgba(0, 0, 0, 0.1)
  223. border-radius (0px)
  224. &.error, &:required
  225. border-color: color_alert
  226. color: color_alert
  227. background-color: rgba(198, 15, 19, 0.1)
  228. &:focus
  229. background: #FAFAFA;
  230. border-color: THEME;
  231. color: rgba(0, 0, 0, 0.75)
  232. &[disabled]
  233. background: #eee
  234. border-color: #aaa
  235. color: #999
  236. & .select:after
  237. background: FORM_border_color
  238. color: white
  239. border-top-right-radius: FORM_radius
  240. border-bottom-right-radius: FORM_radius
  241. & input[type=range]
  242. box-shadow FORM_shadow_form
  243. border-radius FORM_radius
  244. &:not(.checkbox)
  245. background-color: #c7c7c7
  246. &:active
  247. background-color: THEME_light
  248. &.checkbox
  249. background-color: #aaaaaa
  250. color: rgba(255,255,255,0.6)
  251. &.active
  252. background-color: THEME_light
  253. &::-webkit-slider-thumb
  254. border-radius: FORM-border-radius
  255. background: #fff
  256. &::-webkit-slider-thumb::after
  257. background: #ddd
  258. & .progress
  259. .labels
  260. font-size: 12px
  261. line-height: 18px
  262. color: #858585
  263. & .bar
  264. background: #c7c7c7
  265. & .value
  266. background-color: THEME-light
  267. & .label
  268. float: right
  269. margin-right: 3px
  270. color: rgba(0,0,0,0.6)
  271. text-shadow: 0 1px 0 rgba(255,255,255,0.2) !important
  272. font-size: 12px