| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- // MEDIA
- @mixin media-max ($size) {
- @media only screen and (max-width: #{$size}px) {
- @content
- }
- }
- @mixin media-min ($size) {
- @media only screen and (min-width: #{$size}px) {
- @content
- }
- }
- @mixin media-min-h ($size) {
- @media screen and (min-height: #{$size}px) {
- @content
- }
- }
- @mixin media-max-h ($size) {
- @media screen and (max-height: #{$size}px) {
- @content
- }
- }
- @mixin center {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- -webkit-transform: translate(-50%, -50%);
- }
- @mixin flex($justify: null, $align: null, $flow: null, $gap: null) {
- display: flex;
- @if $justify {
- justify-content: $justify;
- }
- @if $align {
- align-items: $align;
- }
- @if $flow {
- flex-flow: $flow;
- }
- @if $gap {
- gap: $gap;
- }
- }
- @mixin absolute($left: null, $top: null, $right: null, $bottom: null) {
- position: absolute;
- @if $left {
- left: $left;
- }
- @if $top {
- top: $top;
- }
- @if $right {
- right: $right;
- }
- @if $bottom {
- bottom: $bottom;
- }
- }
- @mixin desktop { @media (min-width: 1200px) { @content; } }
- @mixin tablet { @media (max-width: 1199px) { @content; } }
- @mixin mobile{ @media (max-width: 768px) { @content; } }
- @mixin mobile-sm{ @media (max-width: 575px) { @content; } }
- @mixin fz($size) {
- @if $size == l {
- font-size: var(--l);
- }
- @if $size == m {
- font-size: var(--m);
- }
- @if $size == s {
- font-size: var(--s);
- }
- }
- @mixin ai($width, $height) {
- &:after {
- content:'';
- display: block;
- padding-bottom: calc($height/$width*100%);
- }
- }
- @mixin effectBox{
- border-radius: var(--border-radius-main);
- border: 1px solid rgba(120, 88, 173, 0.20);
- background: rgba(147, 122, 189, 0.10);
- backdrop-filter: blur(32px);
- overflow:hidden;
- position:relative;
- &:before{
- content:'';
- width: 335px;
- height: 141px;
- position: absolute;
- right: -25px;
- top: -146px;
- border-radius: 335px;
- background: radial-gradient(178.52% 78.07% at 41.32% 26.64%, #EBBFFB 0%, #C570E3 85%);
- filter: blur(60px);
- transition: 0.3s ease-out;
- }
- &:after{
- content:'';
- width: 273px;
- height: 136px;
- position: absolute;
- left: 0;
- top: -110px;
- background:#937ABD;
- filter: blur(60px);
- border-radius: 335px;
- visibility: hidden;
- opacity: 0;
- transition: 0.6s ease-out;
- background: radial-gradient(178.52% 78.07% at 41.32% 26.64%, #EBBFFB 0%, #937ABD 85%);
- }
- &:hover{
- &:before{
- opacity:0;
- }
- &:after{
- content:'';
- left: -69px;
- top: -75px;
- opacity: 0.8;
- visibility: visible;
- }
- }
- }
- @mixin styleScrollH{
- &::-webkit-scrollbar {
- height: 3px;
- }
- &::-webkit-scrollbar-track {
- background:transparent;
- }
- &::-webkit-scrollbar-thumb {
- background-color: rgba(177, 163, 199, 0.5);
- border-radius:15px;
- background:transparent;
- }
- }
- @mixin styleScrollV{
- &::-webkit-scrollbar {
- width: 3px;
- }
- &::-webkit-scrollbar-track {
- background:transparent;
- }
- &::-webkit-scrollbar-thumb {
- background-color: rgba(177, 163, 199, 0.5);
- border-radius:15px;
- }
- }
|