lungo.widgets.styl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Layout
  5. * @class Widgets
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.styl"
  10. .overthrow-enabled .overthrow
  11. overflow: auto
  12. -webkit-overflow-scrolling: touch
  13. .scroll
  14. overflow-x: hidden
  15. overflow-y: scroll
  16. -webkit-overflow-scrolling: touch
  17. -webkit-box-flex: 1
  18. &.horizontal
  19. overflow-x: scroll
  20. overflow-y: hidden
  21. white-space: nowrap
  22. /* BUG (iOS) POSITION: relative childrens */
  23. & > *
  24. -webkit-transform: translate3d(0, 0, 0)
  25. :not(.icon)
  26. &.left
  27. float: left
  28. &.right
  29. float: right
  30. .hidden
  31. display: none
  32. .indented > *
  33. margin: 10px
  34. .margined
  35. margin: 3%
  36. .wrapper
  37. padding: 8px 8px
  38. .icon.small
  39. font-size: 1.3em
  40. .framed
  41. border: 2px solid #fff
  42. .round
  43. border-radius( 4px )
  44. .block
  45. display: block
  46. /* ================================ TAG ================================ */
  47. .tag
  48. display: inline-block
  49. padding: 0 3px
  50. font-size: FONT_SIZE_TINY !important
  51. line-height: 1.25em
  52. height: 1.35em
  53. text-align: center
  54. size = 5px
  55. .margin
  56. &.bottom
  57. margin-bottom: size
  58. /* ================================ CAROUSEL ================================ */
  59. [data-view-menu]
  60. &:after
  61. content: "▼"
  62. position: relative
  63. top: -5px
  64. left: 1px
  65. font-size: FONT_SIZE_TINY
  66. /* ================================ CAROUSEL ================================ */
  67. [data-control=carousel]
  68. overflow: hidden
  69. list-style: none
  70. margin: 0
  71. // article
  72. // display: block !important
  73. /* ================================ TEXT ================================ */
  74. .text
  75. &.thin
  76. font-weight: 300
  77. &.normal
  78. font-weight: 400
  79. &.bold
  80. font-weight: 600
  81. &.extra-bold
  82. font-weight: 700
  83. &.italic
  84. font-style: italic
  85. &.underline
  86. text-decoration: underline
  87. &.line-through
  88. text-decoration: line-through
  89. &.align_left
  90. text-align: left
  91. &.align_right
  92. text-align: right
  93. &.align_center
  94. text-align: center
  95. &.align_justify
  96. text-align: justify
  97. &.tiny
  98. font-size: 0.8em
  99. &.small
  100. font-size: FONT_SIZE_SMALL
  101. &.big
  102. font-size: FONT_SIZE_BIG
  103. &.opacity
  104. opacity: 0.5