Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

_mixins.scss 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @mixin desktop {
  2. @media (min-width: 1280px) {
  3. @content;
  4. }
  5. }
  6. @mixin desktop-lg {
  7. @media (min-width: 1480px) {
  8. @content;
  9. }
  10. }
  11. @mixin tablet {
  12. @media (max-width: 1024px) {
  13. @content;
  14. }
  15. }
  16. @mixin media-up($media) {
  17. @media only screen and (min-width: $media) {
  18. @content;
  19. }
  20. }
  21. @mixin media-below($media) {
  22. @media only screen and (max-width: #{$media - 0.02px}) {
  23. @content;
  24. }
  25. }
  26. @mixin media-between($mediaMin, $mediaMax) {
  27. @media screen and (min-width: $mediaMin) and (max-width: #{$mediaMax - 0.02px}) {
  28. @content;
  29. }
  30. }
  31. @mixin flex-center {
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. }
  36. @mixin flex-column {
  37. display: flex;
  38. flex-direction: column;
  39. }
  40. @mixin button-clear {
  41. border: none;
  42. padding: 0;
  43. background-color: transparent;
  44. }
  45. @mixin outline-none {
  46. &,
  47. &:active,
  48. &:focus {
  49. outline: none;
  50. }
  51. }
  52. @mixin reset-position {
  53. position: relative;
  54. top: initial;
  55. left: initial;
  56. right: initial;
  57. bottom: initial;
  58. }
  59. @mixin text-ellipsis {
  60. white-space: nowrap;
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. }
  64. @mixin line-clamp($lines) {
  65. display: -webkit-box;
  66. -webkit-line-clamp: $lines;
  67. -webkit-box-orient: vertical;
  68. overflow: hidden;
  69. }