theme.lungo.styl 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Theme
  5. * @class Default
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "theme.lungo.colour.styl"
  10. /* -------------------------- DEFAULTS -------------------------- */
  11. body
  12. background-color: #000
  13. color: COLOR
  14. font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif
  15. font-weight: 400
  16. font-size: 13px
  17. line-height: 1.3em
  18. letter-spacing: -0.05em
  19. & .theme
  20. background-color: THEME-light
  21. &:active
  22. background-color: THEME
  23. /* -------------------------- LAYOUT COLORS -------------------------- */
  24. body > section
  25. background-color: DARK
  26. & > header
  27. background-color: THEME
  28. box-shadow 0 2px 0 rgba(0,0,0,0.15), inset 0 1px 0 THEME_light, inset 0 -1px 0 THEME_dark
  29. color: #fff
  30. border-radius (BORDER_radius * 2.5) (BORDER_radius * 2.5) 0 0
  31. & > footer, & nav[data-control=groupbar]
  32. background-color: DARK
  33. box-shadow inset 0 3px 0 DARK_dark
  34. & > article, & > [data-control="pull"]
  35. background-color: CONTENT
  36. &.splash
  37. background: THEME
  38. color: #fff
  39. &.aside
  40. box-shadow -1px 0 2px rgba(0,0,0,0.2)
  41. &.right
  42. box-shadow 1px 0 2px rgba(0,0,0,0.2)
  43. DARKEST = darken(DARK_darkest, 15%)
  44. body > aside
  45. background-color: DARK_dark
  46. color: #fff
  47. & > header, > footer
  48. background-color: DARK_darkest
  49. & > header
  50. box-shadow 0 1px 3px rgba(0,0,0,0.25), inset 0 1px 0 DARK, inset 0 -1px 0 DARKEST
  51. /* -------------------------- NAVIGATION -------------------------- */
  52. nav
  53. section > header > &
  54. & a:not(.button)
  55. color: darken(THEME, 35%)
  56. text-shadow 0 1px 0 lighten(THEME, 25%)
  57. &:active
  58. color: darken(THEME, 50%)
  59. section > &[data-control=groupbar] > a.active
  60. box-shadow inset 0 -3px 0 THEME
  61. section > footer > & > a, &[data-control=groupbar] > a
  62. color: NAV_LINK
  63. &.active
  64. color: NAV_LINK_ACTIVE
  65. section > footer > & > a
  66. box-shadow 1px 0 0 DARK_dark
  67. &.active
  68. color: NAV_LINK_ACTIVE
  69. background-color: DARK_dark
  70. box-shadow inset 0 3px 0 THEME
  71. aside & a
  72. color: lighten(DARK, 20%)
  73. &:active
  74. color: lighten(DARK, 50%)
  75. &[data-control=menu]
  76. COLOR = DARK
  77. background: COLOR
  78. box-shadow 0 2px 0 rgba(0,0,0,0.15)
  79. &.icons
  80. background: rgba(0,0,0,0.8)
  81. & > a
  82. color: lighten(COLOR, 35%)
  83. &:active > .icon
  84. text-shadow: 0 0 32px #fff
  85. & > .icon
  86. color: #fff
  87. &:not(.icons)
  88. & > a
  89. color: #fff
  90. text-shadow 0 1px 0 #111
  91. border-bottom: 1px solid darken(COLOR, 40%)
  92. border-top: 1px solid lighten(COLOR, 5%)
  93. &:active
  94. background: #111
  95. border-color: transparent
  96. & > .icon
  97. color: lighten(COLOR, 25%)
  98. & > a
  99. font-weight: 700
  100. /* -------------------------- LISTS -------------------------- */
  101. .list
  102. section & li
  103. background: #fff
  104. &:not(.anchor)
  105. border-bottom: inset 1px LIST_border
  106. &.secondary
  107. box-shadow: inset 4px 0px 0px COLOR_secondary
  108. &.accept
  109. box-shadow: inset 4px 0px 0px COLOR_success
  110. &.cancel
  111. box-shadow: inset 4px 0px 0px COLOR_cancel
  112. &.arrow::after
  113. border-color: COLOR_secondary
  114. &, a
  115. color: LIST_color
  116. &.anchor
  117. background: DARK
  118. &.dark
  119. background: DARK_light
  120. &.selectable:active, &.theme, &.active
  121. background: THEME_light
  122. &.light
  123. background: LIST_border
  124. color: LIST_color_2nd
  125. &.dark, &.selectable:active, &.theme, &.anchor
  126. &, small, & .right:not(.tag), strong, .arrow::after
  127. color: #fff
  128. &.arrow::after
  129. border-color: #fff
  130. & small, & .right:not(.tag)
  131. color: LIST_color_2nd
  132. &:not(.indented) li
  133. &.dark, &.theme, &.light
  134. border-bottom-color: rgba(0,0,0,0.1)
  135. aside & li
  136. background: none
  137. &:not(:first-child)
  138. border-top: solid 1px DARK
  139. &:not(:last-child)
  140. border-bottom: solid 1px DARKEST
  141. &:active
  142. background: DARK_darkest
  143. &.active
  144. background: THEME
  145. &.active, &:active
  146. border-color: transparent
  147. & strong, & small, & .icon
  148. color: #fff
  149. & strong
  150. color: #999
  151. & small, .icon
  152. color: #666
  153. /* -------------------------- PULL -------------------------- */
  154. [data-control="pull"]
  155. text-shadow: 0 1px 0 #fff
  156. /* -------------------------- TAG -------------------------- */
  157. .tag:not(.icon)
  158. color: #fff
  159. border-radius BORDER_radius
  160. font-weight: 700 !important
  161. &.count
  162. background-color: THEME
  163. header .count
  164. background-color: THEME-dark !important
  165. footer &
  166. box-shadow inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.5)
  167. /* -------------------------- NOTIFICATION -------------------------- */
  168. .notification
  169. color: #fff
  170. &:not(.push)
  171. background-color: rgba(0,0,0,0.6)
  172. & .window
  173. &.growl
  174. background: rgba(0,0,0,0.75)
  175. &:not(.growl)
  176. box-shadow(0 0 8px #444)
  177. & button, .button
  178. background: #fff
  179. color: THEME_dark
  180. &.confirm, &.html
  181. background: #e6e6e6
  182. color: #222
  183. &.error
  184. background: COLOR_cancel
  185. &.success
  186. background: COLOR_success
  187. &.error, &.success
  188. color: #fff
  189. & small
  190. opacity: 0.75
  191. font-weight: 100
  192. &.html
  193. & .title
  194. background: THEME
  195. color: #fff
  196. &.push
  197. background: rgba(0,0,0,0.65)
  198. /* -------------------------- BUTTONS -------------------------- */
  199. header
  200. & .button, button
  201. color: #fff
  202. background-color: THEME_dark
  203. box-shadow 0 1px 0 lighten(THEME, 15%), inset 0 1px 0 darken(THEME, 35%)
  204. border-radius (BORDER_radius * 2)
  205. &:active
  206. background-color: darken(THEME, 40%)
  207. article
  208. & .button, button
  209. color: #fff !important
  210. border-radius (BORDER_radius * 2)
  211. box-shadow inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 1px rgba(0,0,0,0.15)
  212. // border: solid 1px rgba(0,0,0,0.1)
  213. &:active
  214. box-shadow inset 0 0 128px rgba(0,0,0,0.25)
  215. border-color: none
  216. &, abbr
  217. font-weight: 400
  218. & .icon
  219. opacity: 0.65
  220. text-shadow: 0 -1px 0 rgba(0,0,0,0.25)
  221. & button, .button, .tag:not(.icon)
  222. &
  223. background-color: THEME_dark
  224. &.secondary
  225. background-color: COLOR_secondary
  226. &.accept
  227. background-color: COLOR_success
  228. &.cancel
  229. background-color: COLOR_cancel
  230. &[disabled], :disabled, &.disabled
  231. background: FORM_color
  232. color: #999 !important
  233. box-shadow: none !important
  234. /* -------------------------- FORMS -------------------------- */
  235. form, .form
  236. & label
  237. color: #aaa
  238. font-weight: 300
  239. & fieldset
  240. background: #fff
  241. border-bottom: 1px solid CONTENT
  242. & .icon
  243. color: #ccc
  244. &.radius-top
  245. border-radius (BORDER_radius * 2) (BORDER_radius * 2) 0 0
  246. &.radius-bottom
  247. border-radius 0 0 (BORDER_radius * 2) (BORDER_radius * 2)
  248. &.radius
  249. border-radius (BORDER_radius * 2)
  250. &.shadow
  251. border-bottom: 1px solid rgba(0,0,0,0.1)
  252. & 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, label.select
  253. background-color: white
  254. color: rgba(0, 0, 0, 0.75)
  255. &.border
  256. border: FORM_border solid FORM_color
  257. border-radius: FORM_border_radius
  258. &.error, &:required
  259. color: COLOR_cancel !important
  260. border-color: COLOR_cancel !important
  261. &.success
  262. color: COLOR_success !important
  263. border-color: COLOR_success !important
  264. &:focus, &:active, &:hover
  265. color: THEME_dark
  266. border-color: THEME
  267. &:after
  268. background-color: THEME
  269. &[disabled]
  270. background: FORM_color
  271. border-color: FORM_color
  272. color: darken(FORM_color, 25%)
  273. & .select:after
  274. background: FORM_color
  275. color: #fff
  276. & input[type=range]
  277. background-color: FORM_color
  278. color: darken(FORM_color, 25%)
  279. border-radius: (FORM_border_radius * 4)
  280. &:active
  281. background-color: THEME_light !important
  282. color: #fff
  283. &::-webkit-slider-thumb
  284. background-color: darken(THEME, 25%) !important
  285. &::-webkit-slider-thumb
  286. border-radius (FORM_border_radius * 4)
  287. background-color: darken(FORM_color, 25%)
  288. & [data-progress]
  289. background-color: #ddd
  290. & .value
  291. background-color: THEME_light
  292. &, & .value
  293. border-radius (FORM_border_radius * 3)
  294. & [data-control-checkbox]
  295. background: FORM_color
  296. color: darken(FORM_color, 25%)
  297. font-weight: 700
  298. border-radius: (FORM_border_radius * 4)
  299. box-shadow: inset 0px 1px 2px rgba(0,0,0,0.25), 0px 1px 0px rgba(255,255,255,0.25)
  300. & label
  301. border-radius: (FORM_border_radius * 4)
  302. background: darken(FORM_color, 25%)
  303. &.checked
  304. background-color: THEME_light
  305. color: #fff !important
  306. & label
  307. background-color: darken(THEME, 25%)
  308. // Expand
  309. &.twitter
  310. font-family:'lungojsicon'
  311. font-size: 1.3em
  312. line-height: 1.4em
  313. &:before
  314. content: "\f099"
  315. &:after
  316. content: "\f099"
  317. text-shadow: 0 1px 0 #fff
  318. &.ok
  319. font-family:'lungojsicon'
  320. font-size: 1.3em
  321. line-height: 1.4em
  322. &.checked
  323. background-color: COLOR_success
  324. & label
  325. background-color: darken(COLOR_success, 25%)
  326. &:before
  327. content: "\f00c"
  328. &:after
  329. content: "\f00d"