@@ -34,23 +34,27 @@ button {
3434.btn , .btn-default {
3535 @apply text-gray-800 dark:text-dark-150 shadow-button;
3636 background : linear-gradient (180deg , # fff, # f9fafb );
37+ background-clip : padding-box;
3738 border : 1px solid # D3DDE7 ;
3839 border-bottom : 1px solid # c4cdd6 ;
3940 box-shadow : inset 0 1px 0 0 # fff, 0 1px 0 0 rgba (0 , 0 , 0 , .05 ), 0 2px 1px 0 theme (colors.gray.600 / .15 ), 0 0 0 0 transparent;
4041
4142 .dark & {
4243 background : linear-gradient (180deg , theme (colors.dark.550), theme (colors.dark.600));
44+ background-clip : padding-box;
4345 border-color : theme (colors.dark.700);
4446 box-shadow : inset 0 1px 0 0 theme (colors.dark.300), 0 1px 0 0 rgba (200 , 200 , 200 , .05 ), 0 2px 1px 0 theme (colors.dark.900 / .15 ), 0 0 0 0 transparent;
4547 }
4648
4749 & : hover : not (: disabled ), & : active : not (: disabled ) {
4850 @apply text-gray-800 dark:text-dark-150;
4951 background : linear-gradient (180deg , # f9fafb, # f4f6f8 );
52+ background-clip : padding-box;
5053 border-bottom : 1px solid # BFC7D0 ;
5154
5255 .dark & {
5356 background : linear-gradient (180deg , theme (colors.dark.600), theme (colors.dark.700));
57+ background-clip : padding-box;
5458 border-color : theme (colors.dark.800);
5559 }
5660 }
@@ -78,7 +82,7 @@ button {
7882
7983/* Primary action button */
8084.btn-primary {
81- @apply text-white bg-gradient-to-b from-blue-500 to-blue-600 dark:from-dark-blue-100 dark:to-dark-blue-150 border border-blue-700 dark:border-blue-900 border-b-blue-800 dark:border-b-dark-blue-200 !important ;
85+ @apply text-white bg-gradient-to-b from-blue-500 to-blue-600 dark:from-dark-blue-100 dark:to-dark-blue-150 bg-clip-padding border border-blue-700 dark:border-blue-900 border-b-blue-800 dark:border-b-dark-blue-200 !important ;
8286 box-shadow : inset 0 1px 0 0 theme ('colors.blue.400' ), 0 1px 0 0 rgba (25 , 30 , 35 , .05 ), 0 3px 2px -1px theme (colors.blue.900 / .15 ), 0 0 0 0 transparent;
8387
8488 & : hover : not (: disabled ), : active : not (: disabled ) {
@@ -93,11 +97,11 @@ button {
9397
9498/* Danger/delete button */
9599.btn-danger {
96- @apply text-white bg-gradient-to-b from-red-500 to-red-600 border border-red-600 border-b-red-900;
100+ @apply text-white bg-gradient-to-b from-red-500 to-red-600 bg-clip-padding border border-red-600 border-b-red-900;
97101 box-shadow : inset 0 1px 0 0 theme ('colors.red.400' ), 0 1px 0 0 rgba (0 , 0 , 0 , .05 ), 0 3px 2px -1px theme (colors.red.900 / .15 ), 0 0 0 0 transparent;
98102
99103 & : hover : not (: disabled ), & : active : not (: disabled ) {
100- @apply bg-gradient-to-b from-red-600 to-red-700 border border-red-700 border-b-red-900;
104+ @apply bg-gradient-to-b from-red-600 to-red-700 bg-clip-padding border border-red-700 border-b-red-900;
101105 }
102106
103107 & : disabled {
@@ -159,22 +163,26 @@ button {
159163.btn-round {
160164 @apply rounded-full flex items-center text-center p-0;
161165 background : linear-gradient (180deg , # fff, # f9fafb );
166+ background-clip : padding-box;
162167 border : 1px solid # c4cdd6 ;
163168 box-shadow : 0 1px 0 0 rgba (25 , 30 , 35 , .05 );
164169 height : 32px ;
165170 width : 32px ;
166171
167172 .dark & {
168173 background : linear-gradient (180deg , theme (colors.dark.500), theme (colors.dark.550));
174+ background-clip : padding-box;
169175 border-color : theme (colors.dark.400);
170176 }
171177
172178 & : hover : not (: disabled ), & : active : not (: disabled ) {
173179 background : linear-gradient (180deg , # f9fafb, # f4f6f8 );
180+ background-clip : padding-box;
174181 border-color : # c4cdd5 ;
175182
176183 .dark & {
177184 background : linear-gradient (180deg , theme (colors.dark.550), theme (colors.dark.600));
185+ background-clip : padding-box;
178186 border-color : theme (colors.dark.500);
179187 }
180188 }
0 commit comments