You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_utils.scss 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .flip-x {
  2. transform: scaleX(-1);
  3. }
  4. .hidden {
  5. display: none;
  6. }
  7. /**
  8. * Hides an element.
  9. */
  10. .hide {
  11. display: none !important;
  12. }
  13. .invisible {
  14. visibility: hidden;
  15. }
  16. /**
  17. * Shows an element.
  18. */
  19. .show {
  20. display: block !important;
  21. }
  22. /**
  23. * Shows an inline element.
  24. */
  25. .show-inline {
  26. display: inline-block !important;
  27. }
  28. /**
  29. * Shows a flex element.
  30. */
  31. .show-flex {
  32. display: -webkit-box !important;
  33. display: -moz-box !important;
  34. display: -ms-flexbox !important;
  35. display: -webkit-flex !important;
  36. display: flex !important;
  37. }
  38. /**
  39. * resets default button styles,
  40. * mostly intended to be used on interactive elements that
  41. * differ from their default styles (e.g. <a>) or have custom styles
  42. */
  43. .invisible-button {
  44. background: none;
  45. border: none;
  46. color: inherit;
  47. cursor: pointer;
  48. padding: 0;
  49. }
  50. /**
  51. * style an element the same as an <a>
  52. * useful on some cases where we visually have a link but it's actually a <button>
  53. */
  54. .as-link {
  55. @extend .invisible-button;
  56. display: inline;
  57. color: #44A5FF;
  58. text-decoration: none;
  59. font-weight: bold;
  60. &:focus,
  61. &:hover,
  62. &:active {
  63. text-decoration: underline;
  64. }
  65. }