123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- @mixin desktop {
- @media (min-width: 1280px) {
- @content;
- }
- }
-
- @mixin desktop-lg {
- @media (min-width: 1480px) {
- @content;
- }
- }
-
- @mixin tablet {
- @media (max-width: 1024px) {
- @content;
- }
- }
-
- @mixin media-up($media) {
- @media only screen and (min-width: $media) {
- @content;
- }
- }
-
- @mixin media-below($media) {
- @media only screen and (max-width: #{$media - 0.02px}) {
- @content;
- }
- }
-
- @mixin media-between($mediaMin, $mediaMax) {
- @media screen and (min-width: $mediaMin) and (max-width: #{$mediaMax - 0.02px}) {
- @content;
- }
- }
-
- @mixin flex-center {
- display: flex;
- justify-content: center;
- align-items: center;
- }
-
- @mixin flex-column {
- display: flex;
- flex-direction: column;
- }
-
- @mixin button-clear {
- border: none;
- padding: 0;
- background-color: transparent;
- }
-
- @mixin outline-none {
- &,
- &:active,
- &:focus {
- outline: none;
- }
- }
-
- @mixin reset-position {
- position: relative;
- top: initial;
- left: initial;
- right: initial;
- bottom: initial;
- }
-
- @mixin text-ellipsis {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- @mixin line-clamp($lines) {
- display: -webkit-box;
- -webkit-line-clamp: $lines;
- -webkit-box-orient: vertical;
- overflow: hidden;
- }
|