forked from opentiny/tiny-vue
feat(grid): [grid] add XDesign theme (#1518)
This commit is contained in:
parent
25b7be8903
commit
059742e49d
|
@ -69,10 +69,11 @@
|
|||
}
|
||||
|
||||
&.type__button {
|
||||
padding: 0 12px;
|
||||
line-height: 28px;
|
||||
border: 1px solid var(--ti-grid-border-color);
|
||||
border-radius: 2px;
|
||||
padding: 0 var(--ti-grid-toolbar-btn-padding-horizontal);
|
||||
line-height: var(--ti-grid-toolbar-btn-line-height);
|
||||
border: 1px solid var(--ti-grid-toolbar-btn-border-color);
|
||||
border-radius: var(--ti-grid-toolbar-btn-border-radius);
|
||||
min-width: var(--ti-grid-toolbar-btn-min-width);
|
||||
|
||||
&.theme__primary {
|
||||
color: var(--ti-grid-light-color);
|
||||
|
@ -95,7 +96,8 @@
|
|||
&:not(.theme__primary) {
|
||||
&:not(.is__disabled) {
|
||||
&:hover {
|
||||
.ButtonHover(var(--ti-grid-primary-color));
|
||||
color: var(--ti-grid-primary-color);
|
||||
border-color: var(--ti-grid-toolbar-btn-hover-border-color);
|
||||
}
|
||||
|
||||
&:active {
|
||||
|
@ -156,7 +158,8 @@
|
|||
|
||||
&:not(.is__disabled) {
|
||||
&:not(.theme__primary) {
|
||||
.ButtonHover(var(--ti-grid-primary-color));
|
||||
color: var(--ti-grid-primary-color);
|
||||
border-color: var(--ti-grid-toolbar-btn-hover-border-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,8 +20,14 @@ export const tinyGridSmbTheme = {
|
|||
'ti-grid-checkbox-icon-size': 'var(--ti-common-font-size-2)',
|
||||
'ti-grid-checkbox-bg-color-checked': '#1476FF',
|
||||
'ti-grid-radio-bg-color-checked': '#1476FF',
|
||||
'ti-grid-toolbar-btn-height': 'var(--ti-common-size-8x, 32px)',
|
||||
'ti-grid-toolbar-btn-width': 'var(--ti-common-size-8x, 32px)',
|
||||
'ti-grid-toolbar-btn-border-color': 'var(--ti-common-color-line-normal, #c2c2c2)',
|
||||
'ti-grid-toolbar-btn-border-radius': 'calc(var(--ti-common-size-base, 4px) + 2px)'
|
||||
'ti-grid-toolbar-icon-btn-height': 'var(--ti-common-size-8x)',
|
||||
'ti-grid-toolbar-icon-btn-width': 'var(--ti-common-size-8x)',
|
||||
'ti-grid-toolbar-icon-btn-border-color': 'var(--ti-common-color-line-normal)',
|
||||
'ti-grid-toolbar-icon-btn-border-radius': 'calc(var(--ti-common-size-base) + 2px)',
|
||||
'ti-grid-toolbar-btn-min-width': 'calc(var(--ti-common-size-base) * 24)',
|
||||
'ti-grid-toolbar-btn-padding-horizontal': 'var(--ti-common-space-6x)',
|
||||
'ti-grid-toolbar-btn-line-height': '30px',
|
||||
'ti-grid-toolbar-btn-border-color': '#595959', // 缺少#595959的边框公共变量
|
||||
'ti-grid-toolbar-btn-hover-border-color': 'var(--ti-common-color-line-normal)', // 缺少#595959的边框公共变量
|
||||
'ti-grid-toolbar-btn-border-radius': 'var(--ti-common-size-4x)'
|
||||
}
|
||||
|
|
|
@ -84,11 +84,11 @@
|
|||
.@{grid-refresh-prefix-cls}__wrapper,
|
||||
.@{grid-custom-prefix-cls}__wrapper {
|
||||
float: right;
|
||||
width: var(--ti-grid-toolbar-btn-width);
|
||||
height: var(--ti-grid-toolbar-btn-height);
|
||||
line-height: var(--ti-grid-toolbar-btn-height);
|
||||
border: solid 1px var(--ti-grid-toolbar-btn-border-color);
|
||||
border-radius: var(--ti-grid-toolbar-btn-border-radius);
|
||||
width: var(--ti-grid-toolbar-icon-btn-width);
|
||||
height: var(--ti-grid-toolbar-icon-btn-height);
|
||||
line-height: var(--ti-grid-toolbar-icon-btn-height);
|
||||
border: solid 1px var(--ti-grid-toolbar-icon-btn-border-color);
|
||||
border-radius: var(--ti-grid-toolbar-icon-btn-border-radius);
|
||||
text-align: center;
|
||||
margin: 0 4px;
|
||||
display: flex;
|
||||
|
|
|
@ -162,14 +162,27 @@
|
|||
// 表格无数据背景图片
|
||||
--ti-table-nodata-td-bg-img-url: url('data:image/png;base64,iVBOR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ppsc1QgvmRU1MSWKpTqSMHUhzQ7ayi8wqCtyTOx06B4w/c+LB0Yxl2xpqeTugG1mdw69rg4lPYXot2Z/NdJeYvTQ1IqBDWO6e0ARYxOQSBR6lbWw0+fC5FL6d2iRu7BjDMrWipH+Rqd+bHGkcm/7/6bZaBMJnWPb8bbmG85t/2ZRz1U2kKJ8bhdTnqbTNeQ0bartsW0EelW8PnCe8zVmwtyCt3CeZVsG9g+URCM796dvBgAAAABJRU5ErkJggg==');
|
||||
|
||||
// 工具栏按钮高度
|
||||
--ti-grid-toolbar-btn-height: calc(var(--ti-common-size-7x, 28px) + 2px);
|
||||
// 工具栏按钮宽度
|
||||
--ti-grid-toolbar-btn-width: calc(var(--ti-common-size-7x, 28px) + 2px);
|
||||
// 工具栏按钮边框色
|
||||
// 工具栏按钮水平内边距
|
||||
--ti-grid-toolbar-btn-padding-horizontal: var(--ti-common-space-3x, 12px);
|
||||
// 工具栏按钮行高
|
||||
--ti-grid-toolbar-btn-line-height: var(--ti-common-space-7x, 28px);
|
||||
// 工具栏按钮边框颜色
|
||||
--ti-grid-toolbar-btn-border-color: var(--ti-common-color-line-dividing, #dfe1e6);
|
||||
// 工具栏按钮边框圆角
|
||||
--ti-grid-toolbar-btn-border-radius: calc(var(--ti-common-size-base, 4px) - 1px);
|
||||
--ti-grid-toolbar-btn-border-radius: calc(var(--ti-common-size-base, 4px) - 2px);
|
||||
// 工具栏按钮最小宽度
|
||||
--ti-grid-toolbar-btn-min-width: none;
|
||||
// 工具栏按钮悬浮边框颜色
|
||||
--ti-grid-toolbar-btn-hover-border-color: var(--ti-common-color-primary-normal, #5e7ce0);
|
||||
|
||||
// 工具栏图标按钮高度
|
||||
--ti-grid-toolbar-icon-btn-height: calc(var(--ti-common-size-7x, 28px) + 2px);
|
||||
// 工具栏图标按钮宽度
|
||||
--ti-grid-toolbar-icon-btn-width: calc(var(--ti-common-size-7x, 28px) + 2px);
|
||||
// 工具栏图标按钮边框色
|
||||
--ti-grid-toolbar-icon-btn-border-color: var(--ti-common-color-line-dividing, #dfe1e6);
|
||||
// 工具栏图标按钮边框圆角
|
||||
--ti-grid-toolbar-icon-btn-border-radius: calc(var(--ti-common-size-base, 4px) - 1px);
|
||||
// 排序按钮定位方式
|
||||
--ti-grid-sort-icon-position: static;
|
||||
// 排序按钮右侧定位
|
||||
|
|
|
@ -7,7 +7,6 @@ export const tinyTooltipSmbTheme = {
|
|||
'ti-tooltip-popper-border-radius': '8px',
|
||||
'ti-tooltip-popper-info-bg-color': '#1476FF',
|
||||
'ti-tooltip-popper-info-border-color': '#1476FF',
|
||||
'ti-tooltip-popper-error-text-color': 'var(--ti-common-color-text-primary)',
|
||||
'ti-tooltip-popper-dark-bg-color': '#191919',
|
||||
'ti-tooltip-popper-dark-text-color': '#fff',
|
||||
'ti-tooltip-popper-border-color': '#191919',
|
||||
|
|
Loading…
Reference in New Issue