Advertisement
cahnory

LessPHP crossbrowser functions

Nov 9th, 2011
2,243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. @clear(@side:left) {
  2. *zoom: 1;
  3. :after {
  4. content: '';
  5. display: block;
  6. clear: @side;
  7. }
  8. }
  9. @minHeight(@height) {
  10. min-height: @height;
  11. _height: @height;
  12. }
  13. @inlineBlock(@moz: -moz-inline-box) {
  14. display: @moz;
  15. display: inline-block;
  16. *display: inline;
  17. *zoom: 1;
  18. }
  19. @collapse() {
  20. :after {
  21. content: '';
  22. display: block;
  23. height: 1px;
  24. margin-top: -1px;
  25. }
  26. :before {
  27. content: '';
  28. display: block;
  29. height: 1px;
  30. margin-bottom: -1px;
  31. }
  32. }
  33. @overflowX(@y: hidden) {
  34. overflow: @y;
  35. overflow-x: auto;
  36. overflow-y: @y;
  37. overflow: -moz-scrollbars-horizontal;
  38. }
  39. @overflowY(@x: hidden) {
  40. overflow: @x;
  41. overflow-y: auto;
  42. overflow-x: @x;
  43. overflow: -moz-scrollbars-vertical;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement