@antv/dumi-theme-antv
Version:
AntV website theme based on dumi2.
290 lines (244 loc) • 4.93 kB
text/less
.datasetSelectorModalWrapper {
display: flex;
align-items: center;
:global {
.ant-modal-header {
padding: 16px;
.ant-modal-title {
font-size: 16px;
font-weight: 500;
display: flex;
align-items: center;
}
}
}
}
.typeSwitcher {
position: relative;
display: flex;
flex-direction: row;
gap: 6px;
backdrop-filter: blur(12px);
padding: 4px;
border-radius: 26px;
box-shadow: inset 1px -1px 0 0 rgba(255, 255, 255, 89%);
&::before {
border-radius: 26px;
display: block;
content: ' ';
position: absolute;
z-index: -1;
left: 0;
right: 0;
top: 0;
bottom: 0;
opacity: 0.75;
background-image: linear-gradient(
90deg,
rgba(255, 255, 255, 2%) 0%,
rgba(217, 217, 217, 6%) 50%,
rgba(29, 33, 41, 0%) 100%
);
box-shadow: inset 1px -1px 0 0 rgba(255, 255, 255, 89%);
background: rgba(255, 255, 255, 50%);
}
.switchBtn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 120px;
height: 38px;
cursor: pointer;
border-radius: 20px;
border: 1px solid transparent;
color: #1d2129cb;
span[role='img'] {
display: flex;
}
&.active {
color: #1d2129;
font-weight: 500;
background: #fff;
border-color: #eeeef0;
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 8%);
}
}
}
.datasetSelectorModal {
top: 0;
padding-bottom: 0;
.listItemContent {
cursor: pointer;
border: none;
line-height: 22px;
&.disabled {
color: #86909c;
cursor: not-allowed;
}
&:hover {
background: #1677ff1a;
}
&:not(.disabled):hover {
color: #1677ff;
}
padding: 7px 16px 7px 7px;
&--multiline {
padding: 4px 16px 4px 7px;
}
}
.selected {
background: #1677ff1a;
font-weight: 500;
color: #1677ff;
}
.nameWrapper {
flex: 1 1;
min-width: 0;
.name {
font-size: 14px;
line-height: 22px;
width: 100%;
display: flex;
align-items: center;
.nameText {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
}
.desc {
font-size: 12px;
color: #86909ccc;
line-height: 22px;
}
}
.list {
background: #ffffffdb;
padding: 10px 18px 18px;
:global {
.ant-input-affix-wrapper {
margin-bottom: 8px;
border-radius: 6px;
color: #5a607f65;
.ant-input-prefix {
margin-right: 8px;
}
}
}
}
:global {
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn,
.ant-alert-info .ant-alert-icon {
color: #1677ff;
}
.ant-modal-footer {
button {
box-shadow: none;
&.ant-btn-primary {
color: white;
background: #1677ff;
}
background: none;
border: none;
border-radius: 6px;
font-size: 14px;
width: 60px;
height: 32px;
color: #4e5969e6;
&:disabled {
background: #4e59693c;
color: white;
}
}
}
.ant-modal-close-x {
display: none;
}
.ant-modal-body {
padding: 0;
}
.ant-modal-header {
border-radius: 8px 8px 0 0;
}
.ant-modal-content {
border-radius: 8px;
}
.ant-modal-content {
background-color: rgb(251, 252, 253);
}
.ant-tabs-nav {
padding-left: 18px;
padding-right: 18px;
margin-bottom: 0;
}
.ant-tabs-tab {
font-size: 14px;
padding: 14px 0 13px;
}
.ant-alert {
padding: 4px 15px;
}
}
}
.datasetSelector {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16px;
> div:not(:last-child) {
margin-right: 16px;
}
.result {
flex: 1 1;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
font-size: 14px;
color: #5a607fe0;
}
&.compact {
justify-content: flex-start;
margin-bottom: 8px;
> div:not(:last-child) {
margin-right: 8px;
}
.switchBtn {
width: 100px;
border-radius: 12px;
background: #fff;
border: 1px solid #5a607fe0;
opacity: 0.4;
box-shadow: 0 3px 12px 0 #0000000a;
font-size: 14px;
color: #86909c;
line-height: 24px;
height: 24px;
&.active {
background: #fff;
border: 1px solid #2d84ff;
color: #1677ff;
opacity: 1;
}
}
}
}
.error {
color: #f21818;
}
.datasetLabel {
display: inline-block;
font-size: 12px;
line-height: 20px;
padding: 0 8px;
border-radius: 4px;
margin-left: 8px;
flex-shrink: 0;
color: #86909c;
background: rgba(0, 0, 0, 4%);
&.primary {
color: #f68b02;
background: rgba(246, 144, 61, 10%);
}
}