lungo.widgets.button.styl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Widgets
  5. * @class Button
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.styl"
  10. .button, button
  11. display: inline-block
  12. border: none
  13. cursor: pointer
  14. font-family: inherit
  15. font-size: 1.15em
  16. text-align: center
  17. text-decoration: none
  18. outline: none
  19. article &
  20. height: H = 40px
  21. line-height: (H - 2)
  22. padding: 0 14px
  23. & .icon + abbr
  24. margin-left: 6px
  25. &:not(.anchor) .icon
  26. line-height: (H / 2)
  27. &.anchor
  28. display: block
  29. // width: inherit
  30. width: 100%
  31. position: relative
  32. & .icon
  33. position: absolute
  34. left: 14px
  35. &.large
  36. height: H = 52px
  37. padding: 0 20px
  38. font-size: 1.4em
  39. line-height: (H - 2)
  40. & .icon + abbr
  41. margin-left: 10px
  42. &.small
  43. height: H = 30px
  44. padding: 0 10px
  45. font-size: FONT_SIZE_SMALL
  46. line-height: (H - 2)
  47. & .icon + abbr
  48. margin-left: 4px
  49. &.tiny
  50. height: H = 22px
  51. padding: 0 6px
  52. font-size: FONT_SIZE_TINY
  53. line-height: (H - 2)
  54. & .icon + abbr
  55. margin-left: 2px