首页 > 其他分享 >react18-学习笔记45-添加button样式

react18-学习笔记45-添加button样式

时间:2023-02-12 11:32:28浏览次数:43  
标签:box none btn button 45 react18 shadow font border


react18-学习笔记45-添加button样式_ci

.btn {
position: relative;
display: inline-block;
font-weight: $btn-font-weight;
line-height: $btn-line-height;
color: $body-color;
white-space: nowrap;
text-align: center;
vertical-align: middle;
background-image: none;
border: $btn-border-width solid transparent;
@include button-size( $btn-padding-y, $btn-padding-x, $btn-font-size, $border-radius);
box-shadow: $btn-box-shadow;
cursor: pointer;
transition: $btn-transition;
&.disabled,
&[disabled] {
cursor: not-allowed;
opacity: $btn-disabled-opacity;
box-shadow: none;
> * {
pointer-events: none;
}
}
}

标签:box,none,btn,button,45,react18,shadow,font,border
From: https://blog.51cto.com/u_15460007/6052015

相关文章