Files
mini-programs/src/components/Bubble/bubbleItem.module.scss
2025-08-18 00:36:57 +08:00

92 lines
1.4 KiB
SCSS

.bubbleOption {
position: relative;
border: 1px solid #e5e5e5;
outline: none; // 移除浏览器默认的outline
background: #ffffff;
color: #333333;
font-weight: 400;
text-align: center;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
white-space: nowrap;
font-size: 12px;
border-radius: 28px;
margin: 0;
width: 116px;
height: 28px;
// 移除浏览器默认样式
&:focus {
outline: none;
border: none;
}
&::after {
outline: none;
border: none;
}
&:active {
outline: none;
border: none;
}
// 尺寸变体
&.small {
font-size: 12px;
}
&.medium {
padding: 12px 16px;
min-height: 44px;
font-size: 14px;
}
&.large {
padding: 16px 20px;
min-height: 56px;
font-size: 16px;
}
&.selected {
background: #000000;
color: #ffffff;
}
&.disabled {
background: #f5f5f5;
color: #999999;
cursor: not-allowed;
&:hover {
background: #f5f5f5;
}
}
// 图标样式
.bubbleIcon {
display: flex;
align-items: center;
justify-content: center;
svg {
width: 16px;
height: 16px;
}
}
// 标签样式
.bubbleLabel {
font-weight: 500;
}
// 描述样式
.bubbleDescription {
font-size: 12px;
opacity: 0.7;
font-weight: 400;
}
}