Lungo.theme.default.styl 7.4 KB

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