cloud-ui.vusion
Version:
Vusion Cloud UI
77 lines (67 loc) • 1.39 kB
CSS
.root {
cursor: pointer;
display: inline-block;
position: relative;
z-index: 1;
height: 30px;
line-height: 28px;
font-size: $font-size-base;
text-align: center;
padding: 0 16px;
margin-right: -1px;
background: white;
color: #666;
border: 1px solid $brand-primary;
}
.root:first-child {
border-top-left-radius: $border-radius-base;
border-bottom-left-radius: $border-radius-base;
}
.root:last-child {
border-top-right-radius: $border-radius-base;
border-bottom-right-radius: $border-radius-base;
}
.root[selected] {
position: relative;
background: $brand-primary;
color: white;
}
.root[flag]::after {
content: '';
position: absolute;
top: 0;
right: 0;
border: 5px solid;
border-color: #fc7272 #fc7272 transparent transparent;
}
.label {
position: absolute;
top: -8px;
left: 50%;
transform: translate(-50%);
color: white;
background: #fc7272;
font-size: 12px;
height: 13px;
line-height: 14px;
padding: 0 2px;
white-space: nowrap;
}
.label:empty {
display: none;
}
.root[disabled] {
position: relative;
z-index: 0;
color: #d6d6d6;
border-color: #c2ddfb;
cursor: not-allowed;
}
.root[selected][disabled] {
background: #c2ddfb;
color: white;
}
.root[size="small"] {
width: 50px;
padding: 0;
}