1
0
mirror of synced 2025-12-09 07:08:22 +08:00
Files
vxe-table/styles/toolbar.scss
2024-04-21 13:22:57 +08:00

103 lines
2.2 KiB
SCSS

/**Variable**/
@import './helpers/mixin.scss';
/*toolbar*/
.vxe-toolbar {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
padding: 0.6em 0;
color: var(--vxe-font-color);
font-family: var(--vxe-font-family);
background-color: var(--vxe-toolbar-background-color);
&:after {
content: "";
display: block;
clear: both;
height: 0;
overflow: hidden;
visibility: hidden;
}
&.is--perfect {
border: 1px solid var(--vxe-table-border-color);
border-bottom-width: 0;
background-color: var(--vxe-table-header-background-color);
}
&.is--loading {
&:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: var(--vxe-loading-z-index);
user-select: none;
background-color: var(--vxe-loading-background-color);
}
}
.vxe-buttons--wrapper {
flex-grow: 1;
& > .vxe-button+.vxe-button--item,
& > .vxe-button--item+.vxe-button,
& > .vxe-button--item+.vxe-button--item {
margin-left: 0.8em;
}
& > .vxe-button--item {
display: inline-block;
}
}
.vxe-tools--wrapper {
& > .vxe-button+.vxe-tool--item,
& > .vxe-tool--item+.vxe-button,
& > .vxe-tool--item+.vxe-tool--item {
margin-left: 0.8em;
}
& > .vxe-tool--item {
display: inline-block;
}
}
.vxe-tools--wrapper {
& > .vxe-button {
display: flex;
align-items: center;
justify-content: center;
}
}
.vxe-buttons--wrapper,
.vxe-tools--wrapper,
.vxe-tools--operate {
display: flex;
align-items: center;
}
.vxe-buttons--wrapper,
.vxe-tools--wrapper {
flex-wrap: wrap;
}
.vxe-tools--operate {
flex-shrink: 0;
}
.vxe-custom--wrapper {
position: relative;
&.is--active {
& > .vxe-button {
background-color: var(--vxe-toolbar-custom-active-background-color);
border-radius: 50%;
}
}
}
}
.vxe-toolbar {
font-size: var(--vxe-font-size);
&.size--medium {
font-size: var(--vxe-font-size-medium);
}
&.size--small {
font-size: var(--vxe-font-size-small);
}
&.size--mini {
font-size: var(--vxe-font-size-mini);
}
}