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. .bubble
  46. display: inline-block
  47. padding: 2px 3px
  48. min-width: 12px
  49. font-size: 0.75em
  50. font-weight: bold
  51. line-height: 13px
  52. text-align: center
  53. /* ================================ TEXT ================================ */
  54. .text
  55. &.thin
  56. font-weight: 200
  57. &.book
  58. font-weight: 300
  59. &.normal
  60. font-weight: 400
  61. &.bold
  62. font-weight: 700
  63. &.italic
  64. font-style: italic
  65. &.underline
  66. text-decoration: underline
  67. &.line-through
  68. text-decoration: line-through
  69. &.align_left
  70. text-align: left
  71. &.align_right
  72. text-align: right
  73. &.align_center
  74. text-align: center
  75. &.align_justify
  76. text-align: justify
  77. &.small
  78. font-size: 0.9em
  79. &.big
  80. font-size: 1.1em