Lungo.widgets.styl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class Widgets
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "import/constants.styl"
  10. @import "import/vendor.styl"
  11. .overthrow-enabled .overthrow
  12. overflow: auto
  13. -webkit-overflow-scrolling: touch
  14. .scroll
  15. overflow-x: hidden
  16. overflow-y: scroll
  17. -webkit-overflow-scrolling: touch
  18. -webkit-box-flex: 1
  19. &.horizontal
  20. overflow-x: scroll
  21. overflow-y: hidden
  22. white-space: nowrap
  23. /* BUG (iOS) POSITION: relative childrens */
  24. & > *
  25. -webkit-transform: translate3d(0, 0, 0)
  26. :not(.icon)
  27. &.left
  28. float: left
  29. &.right
  30. float: right
  31. .hidden
  32. display: none
  33. .indented > *
  34. margin: 10px
  35. .margined
  36. margin: 3%
  37. .wrapper
  38. padding: 8px 8px
  39. .icon.small
  40. font-size: 1.3em
  41. .framed
  42. border: 2px solid #fff
  43. .round
  44. border-radius( 4px )
  45. .tag
  46. display: inline-block
  47. font-size: FONT_SIZE_SMALL
  48. line-height: FONT_SIZE_BIG
  49. text-align: center
  50. size = 5px
  51. .margin
  52. &.bottom
  53. margin-bottom: size
  54. /* ================================ TEXT ================================ */
  55. .text
  56. &.thin
  57. font-weight: 300
  58. &.normal
  59. font-weight: 400
  60. &.bold
  61. font-weight: 700
  62. &.italic
  63. font-style: italic
  64. &.underline
  65. text-decoration: underline
  66. &.line-through
  67. text-decoration: line-through
  68. &.align_left
  69. text-align: left
  70. &.align_right
  71. text-align: right
  72. &.align_center
  73. text-align: center
  74. &.align_justify
  75. text-align: justify
  76. &.small
  77. font-size: FONT_SIZE_SMALL
  78. &.big
  79. font-size: FONT_SIZE_BIG