Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

_utils.scss 893B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. * resets default button styles,
  24. * mostly intended to be used on interactive elements that
  25. * differ from their default styles (e.g. <a>) or have custom styles
  26. */
  27. .invisible-button {
  28. background: none;
  29. border: none;
  30. color: inherit;
  31. cursor: pointer;
  32. padding: 0;
  33. }
  34. /**
  35. * style an element the same as an <a>
  36. * useful on some cases where we visually have a link but it's actually a <button>
  37. */
  38. .as-link {
  39. @extend .invisible-button;
  40. display: inline;
  41. color: #44A5FF;
  42. text-decoration: none;
  43. font-weight: bold;
  44. &:focus,
  45. &:hover,
  46. &:active {
  47. text-decoration: underline;
  48. }
  49. }