lungo.widgets.button.styl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. header &
  20. height: H = 32px
  21. line-height: H
  22. padding: 0 8px
  23. & > .icon
  24. font-size: 1.3em
  25. display: block
  26. float: left
  27. & .icon + abbr
  28. margin-left: 4px
  29. float: right
  30. article &
  31. height: H = 40px
  32. line-height: (H - 2)
  33. padding: 0 14px
  34. & .icon + abbr
  35. margin-left: 6px
  36. &:not(.anchor) .icon
  37. line-height: (H / 2)
  38. &.anchor
  39. display: block
  40. // width: inherit
  41. width: 100%
  42. position: relative
  43. & .icon
  44. position: absolute
  45. left: 14px
  46. &.large
  47. height: H = 52px
  48. padding: 0 20px
  49. font-size: 1.4em
  50. line-height: (H - 2)
  51. & .icon + abbr
  52. margin-left: 10px
  53. &.small
  54. height: H = 30px
  55. padding: 0 10px
  56. font-size: FONT_SIZE_SMALL
  57. line-height: (H - 2)
  58. & .icon + abbr
  59. margin-left: 4px
  60. &.tiny
  61. height: H = 22px
  62. padding: 0 6px
  63. font-size: FONT_SIZE_TINY
  64. line-height: (H - 2)
  65. & .icon + abbr
  66. margin-left: 2px