Lungo.theme.default.styl 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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,700")
  12. THEME = #0093D5
  13. THEME_light = #39ABE1
  14. THEME_dark = #222
  15. THEME_dark_current = #111
  16. THEME_dark_nav = #888
  17. THEME_dark_nav_active = #fff
  18. THEME_contrast = #444
  19. ASIDE_COLOR = #191919
  20. COLOR = #484a49
  21. NOTIFICATION_error = #e33100
  22. NOTIFICATION_alert = #ffb515
  23. NOTIFICATION_success = #009600
  24. FORM_border_radius = 1px
  25. /* COLORS */
  26. COLOR_SECONDARY = #ccc
  27. COLOR_CANCEL = #e33100
  28. COLOR_ACCEPT = #009600
  29. COLOR_THEME = #237fd7
  30. body
  31. background: #000
  32. font-family: "Open Sans", "Titillium Web", Helvetica, Arial, sans-serif
  33. font-weight: 400
  34. font-size: 13px
  35. line-height: 1.3em
  36. letter-spacing: -0.05em
  37. .theme
  38. &, li&, a&
  39. background:
  40. THEME-light
  41. &:active
  42. background: THEME
  43. [data-control="pull"]
  44. color: #666
  45. text-shadow: 0 1px 0 white
  46. section
  47. & > header
  48. background-color: THEME
  49. box-shadow 0 1px 2px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.1)
  50. & .title
  51. color: #fff
  52. & > footer
  53. background-color: THEME-dark
  54. box-shadow inset 0 3px 0 #333
  55. & > nav a
  56. box-shadow 1px 0 0 #151515
  57. &.current
  58. color: THEME_dark_nav_active
  59. background: THEME_dark_current
  60. box-shadow -1px 0 0 #252525, 1px 0 0 #252525, inset 0 3px 0 THEME
  61. & > article, & > [data-control="pull"]
  62. background: #f4f5f5
  63. // background-color: #ddd
  64. &.aside
  65. box-shadow -1px 0 0 rgba(0,0,0,0.2)
  66. &.right
  67. box-shadow 4px 0 8px rgba(0,0,0,0.5)
  68. aside
  69. color: #fff
  70. background: ASIDE_COLOR
  71. & header, footer
  72. background: THEME_dark_current
  73. text-shadow: none
  74. & header
  75. box-shadow inset 0 -1px 0 rgba(0,0,0,0.2)
  76. & article
  77. background: none
  78. & nav a
  79. &.current .icon
  80. color: white
  81. &:not(.current) .icon
  82. color: THEME_dark_nav
  83. & .list li
  84. background: none
  85. border-bottom-color: THEME_dark !important
  86. &.current
  87. background: THEME
  88. border-bottom-color: THEME
  89. & strong, & small, & .icon
  90. color: #fff
  91. & strong
  92. color: #999
  93. & small, .icon
  94. color: #666
  95. header nav
  96. & a
  97. color: #fff
  98. &.box
  99. &:not(.right) a
  100. box-shadow 1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.2)
  101. &.right a
  102. box-shadow -1px 0 0 rgba(255,255,255,0.2), inset 1px 0 0 rgba(0,0,0,0.2)
  103. & a:active
  104. background: rgba(0,0,0,0.1)
  105. &.button a
  106. border-radius: FORM-border-radius
  107. // linear-gradient( top, ','rgba(0,0,0,0.0), ','rgba(0,0,0,0.1) )
  108. box-shadow 0 1px 0 rgba(255,255,255,0.2), inset 0 0 3px rgba(0,0,0,0.3), inset 0 1px 1px rgba(0, 0, 0, .5)
  109. &:active
  110. background: rgba(0,0,0,0.2)
  111. section > nav.groupbar
  112. background-color: THEME_dark
  113. & > a.current
  114. box-shadow inset 0 -3px 0 THEME
  115. footer > nav > a, nav.groupbar > a
  116. color: THEME_dark_nav
  117. &.current
  118. color: THEME_dark_nav_active
  119. LIST-border = #e5e5e5
  120. LIST-color = #111
  121. LIST-color-secondary = #555
  122. .list
  123. & li
  124. background: #fff
  125. border-bottom: inset 1px LIST-border
  126. &.secondary
  127. box-shadow: inset 4px 0px 0px COLOR_SECONDARY
  128. &.accept
  129. box-shadow: inset 4px 0px 0px COLOR_ACCEPT
  130. &.cancel
  131. box-shadow: inset 4px 0px 0px COLOR_CANCEL
  132. &, & a
  133. color: LIST-color
  134. &.dark
  135. background: THEME_contrast
  136. &, & a
  137. color: #fff
  138. &.selectable:active, &.theme
  139. background: THEME_light
  140. &, & a
  141. color: #fff
  142. &.light
  143. background: LIST-border
  144. text-shadow: 0 1px 0 #eee
  145. &, & a
  146. color: THEME_dark_nav
  147. &.anchor
  148. background: THEME_dark
  149. border-bottom: none
  150. &, & a
  151. color: #fff !important
  152. & small, & .right:not(.tag)
  153. color: LIST-color-secondary
  154. &:not(.indented) li
  155. &.dark, &.theme, &.light
  156. border-bottom-color: rgba(0,0,0,0.1)
  157. .splash
  158. background: THEME-dark
  159. color: #fff
  160. text-shadow: 0 1px 0px rgba(0,0,0,0.2)
  161. /* ____________________ BUTTONS ____________________ */
  162. .button, button
  163. border-radius(FORM-border-radius)
  164. color: white
  165. border-radius 2px
  166. box-shadow inset 0 1px 0 rgba(255,255,255,0.2)
  167. border: solid 1px rgba(0,0,0,0.1)
  168. &:active
  169. box-shadow inset 0 0 128px rgba(0,0,0,0.25)
  170. border-color: none
  171. &
  172. background-color: THEME
  173. &.secondary
  174. color: #666 !important
  175. background-color: COLOR_SECONDARY
  176. &.accept
  177. background-color: COLOR_ACCEPT
  178. &.cancel
  179. background-color: COLOR_CANCEL
  180. &[disabled]
  181. background-color: black
  182. button, .button, .tag
  183. &.theme
  184. background-color: THEME
  185. &.secondary
  186. background-color: COLOR_SECONDARY
  187. &.accept
  188. background-color: COLOR_ACCEPT
  189. &.cancel
  190. background-color: COLOR_CANCEL
  191. FORM_shadow_form = 'inset 0 1px 2px rgba(0,0,0,0.1)'
  192. 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'
  193. FORM_border_color = #D0D4C6
  194. form, .form
  195. & label
  196. color: #999
  197. & 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
  198. background-color: white
  199. color: rgba(0, 0, 0, 0.75)
  200. border: 1px solid #ddd
  201. box-shadow inset 0 1px 2px rgba(0, 0, 0, 0.1)
  202. border-radius (0px)
  203. &.error, &:required
  204. border-color: color_alert
  205. color: color_alert
  206. background-color: rgba(198, 15, 19, 0.1)
  207. &:focus
  208. background: #FAFAFA;
  209. border-color: THEME;
  210. color: rgba(0, 0, 0, 0.75)
  211. &[disabled]
  212. background: #eee
  213. border-color: #aaa
  214. color: #999
  215. & .select:after
  216. background: FORM_border_color
  217. color: white
  218. border-top-right-radius: FORM_border_radius
  219. border-bottom-right-radius: FORM_border_radius
  220. & input[type=range]
  221. box-shadow FORM_shadow_form
  222. border-radius FORM_border_radius
  223. &:not(.checkbox)
  224. background-color: #c7c7c7
  225. &:active
  226. background-color: THEME_light
  227. &.checkbox
  228. background-color: #aaaaaa
  229. color: rgba(255,255,255,0.6)
  230. &.active
  231. background-color: THEME_light
  232. &::-webkit-slider-thumb
  233. border-radius: FORM-border-radius
  234. background: #fff
  235. &::-webkit-slider-thumb::after
  236. background: #ddd
  237. & .progress
  238. .labels
  239. font-size: 12px
  240. line-height: 18px
  241. color: #858585
  242. & .bar
  243. background: #c7c7c7
  244. & .value
  245. background-color: THEME-light
  246. & .label
  247. float: right
  248. margin-right: 3px
  249. color: rgba(0,0,0,0.6)
  250. text-shadow: 0 1px 0 rgba(255,255,255,0.2) !important
  251. font-size: 12px
  252. .tag
  253. color: #fff
  254. border-radius 2px
  255. font-weight: 400 !important
  256. &.count
  257. background: THEME
  258. header .count
  259. background: THEME-dark !important
  260. footer &
  261. box-shadow inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.5)
  262. article .list &
  263. box-shadow inset 1px 0 0 rgba(0,0,0,0.3), inset 0 1px 0 rgba(0,0,0,0.3), inset -1px 0 0 rgba(0,0,0,0.3), inset 0 -1px 0 rgba(0,0,0,0.3)
  264. .notification
  265. color: #fff
  266. & .window
  267. &.confirm
  268. background: #333
  269. &.notify
  270. text-shadow: 0 1px 0px rgba(0,0,0,0.1)
  271. .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) )
  272. &.error
  273. background: NOTIFICATION-error
  274. &.alert
  275. background: NOTIFICATION-alert
  276. &.success
  277. background: NOTIFICATION-success
  278. &.url
  279. & .close
  280. background: #000
  281. border: solid 2px #fff
  282. box-shadow: 0 0 4px black