1- @use ' ../common/colors' ;
2- @use ' ../common/dark-mode' ;
3- @use ' ../common/effects' ;
4- @use ' ../common/icons' ;
5- @use ' ../common/sizing' ;
6- @use ' ../common/utils' ;
1+ @use ' ../common' ;
72
8- $btn-color : colors .$primary ;
9- $bn-hover-color : colors .$primary-600 ;
10- $btn-disabled-color : rgba (colors .$primary , 0.45 );
3+ $btn-color : common .$primary ;
4+ $bn-hover-color : common .$primary-600 ;
5+ $btn-disabled-color : rgba (common .$primary , 0.45 );
116
127.btn {
13- @include sizing .px (4 );
14- @include sizing .py (1 );
15- @include utils .no-underline ;
8+ @include common .px (4 );
9+ @include common .py (1 );
10+ @include common .no-underline ;
1611
17- border : sizing .$border-md-size solid transparent ;
18- border-radius : sizing .$border-sm-radius ;
12+ border : common .$border-md-size solid transparent ;
13+ border-radius : common .$border-sm-radius ;
1914 outline : none ;
2015
21- color : colors .$white ;
16+ color : common .$white ;
2217 background-color : $btn-color ;
2318 position : relative ;
2419
@@ -28,10 +23,10 @@ $btn-disabled-color: rgba(colors.$primary, 0.45);
2823 }
2924
3025 & :focus:not (:disabled ) {
31- @include effects .ring (colors .$primary-400 );
26+ @include common .ring (common .$primary-400 );
3227
33- @include dark-mode .dark {
34- @include effects .ring (colors .$primary-800 );
28+ @include common .dark {
29+ @include common .ring (common .$primary-800 );
3530 }
3631 }
3732
@@ -50,7 +45,7 @@ $btn-disabled-color: rgba(colors.$primary, 0.45);
5045 background-color : transparent ;
5146
5247 & :hover:not (:disabled ) {
53- color : colors .$white ;
48+ color : common .$white ;
5449 }
5550
5651 & :disabled {
@@ -60,22 +55,22 @@ $btn-disabled-color: rgba(colors.$primary, 0.45);
6055 }
6156
6257 & .btn--success {
63- color : colors .$success ;
64- border-color : colors .$success ;
58+ color : common .$success ;
59+ border-color : common .$success ;
6560
6661 & :hover:not (:disabled ) {
67- background-color : colors .$success ;
68- border-color : colors .$success ;
62+ background-color : common .$success ;
63+ border-color : common .$success ;
6964 }
7065 }
7166
7267 & .btn--error {
73- color : colors .$error ;
74- border-color : colors .$error ;
68+ color : common .$error ;
69+ border-color : common .$error ;
7570
7671 & :hover:not (:disabled ) {
77- background-color : colors .$error ;
78- border-color : colors .$error ;
72+ background-color : common .$error ;
73+ border-color : common .$error ;
7974 }
8075 }
8176}
@@ -85,17 +80,17 @@ $btn-disabled-color: rgba(colors.$primary, 0.45);
8580 flex-direction : row ;
8681 justify-content : end ;
8782 align-items : center ;
88- margin-top : sizing .size (4 );
83+ margin-top : common .size (4 );
8984
9085 > :not (:last-child ) {
91- margin-right : sizing .size (2 );
86+ margin-right : common .size (2 );
9287 }
9388}
9489
9590.btn--loading {
9691 position : absolute ;
9792 left : 50% ;
9893 top : 50% ;
99- @include icons .icon-xxl ;
94+ @include common .icon-xxl ;
10095 transform : translate (-50% , -50% );
10196}
0 commit comments