Lungo.widgets.less 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo
  5. * @class Widgets
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.less";
  10. @import "mixins.less";
  11. .scroll {
  12. // overflow: scroll;
  13. // overflow-x: hidden;
  14. // overflow-y: scroll;
  15. overflow-y: scroll;
  16. -webkit-overflow-scrolling: touch;
  17. -webkit-box-flex: 1;
  18. &.horizontal {
  19. overflow-x: scroll;
  20. overflow-y: hidden !important;
  21. & > * {
  22. min-width: 4096px;
  23. & > * { float: left; }
  24. }
  25. }
  26. // FIXES: position: relative childrens
  27. & > * { -webkit-transform: translate3d(0, 0, 0); }
  28. }
  29. .left { float: left; }
  30. .right { float: right;}
  31. .hidden { display: none; }
  32. .indented > * {
  33. margin: 10px;
  34. }
  35. .wrapper {
  36. padding: 8px 8px;
  37. }
  38. .icon {
  39. &.small {
  40. font-size: 1.3em;
  41. }
  42. }
  43. .framed { border: 2px solid #fff;}
  44. .round { .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. }
  53. & strong {
  54. font-size: 1.15em;
  55. }
  56. & small {
  57. display: block;
  58. overflow: hidden;
  59. white-space: nowrap;
  60. text-overflow: ellipsis;
  61. font-size: 0.8em;
  62. }