logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

mixins.less (1361B)


  1. /*
  2. * searx, A privacy-respecting, hackable metasearch engine
  3. */
  4. // Mixins
  5. .text-size-adjust (@property: 100%) {
  6. -webkit-text-size-adjust: @property;
  7. -ms-text-size-adjust: @property;
  8. -moz-text-size-adjust: @property;
  9. text-size-adjust: @property;
  10. }
  11. .rounded-corners (@radius: 4px) {
  12. -webkit-border-radius: @radius;
  13. -moz-border-radius: @radius;
  14. border-radius: @radius;
  15. }
  16. // disable user selection
  17. .disable-user-select () {
  18. -webkit-touch-callout: none;
  19. -webkit-user-select: none;
  20. -khtml-user-select: none;
  21. -moz-user-select: none;
  22. -ms-user-select: none;
  23. user-select: none;
  24. }
  25. // select all on focus
  26. .select-all-on-focus() {
  27. -webkit-user-select: all;
  28. -moz-user-select: all;
  29. -ms-user-select: element;
  30. user-select: all;
  31. }
  32. // see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Advanced_layouts_with_flexbox
  33. .flexbox() {
  34. display: -webkit-box;
  35. display: -moz-box;
  36. display: -webkit-flex;
  37. display: -ms-flexbox;
  38. display: flex;
  39. }
  40. .inline-flex() {
  41. display: -webkit-inline-box;
  42. display: -moz-inline-box;
  43. display: -webkit-inline-flex;
  44. display: -ms-inline-flexbox;
  45. display: inline-flex;
  46. }
  47. .flex-direction-row() {
  48. -webkit-box-direction: normal;
  49. -webkit-box-orient: horizontal;
  50. -moz-box-direction: normal;
  51. -moz-box-orient: horizontal;
  52. -webkit-flex-direction: row;
  53. -ms-flex-direction: row;
  54. flex-direction: row;
  55. }