123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- /**Variable**/
- @import './base/checked.scss';
- /*toolbar*/
- .vxe-toolbar {
- position: relative;
- display: flex;
- flex-direction: row;
- align-items: center;
- color: $vxe-font-color;
- font-family: $vxe-font-family;
- background-color: $vxe-toolbar-background-color;
- &:after {
- content: "";
- display: block;
- clear: both;
- height: 0;
- overflow: hidden;
- visibility: hidden;
- }
- &.is--perfect {
- border: 1px solid $vxe-table-border-color;
- border-bottom-width: 0;
- background-color: $vxe-table-header-background-color;
- }
- &.is--loading {
- &:before {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: $vxe-loading-z-index;
- user-select: none;
- background-color: $vxe-loading-background-color;
- }
- }
- .vxe-button--wrapper {
- flex-grow: 1;
- text-align: left;
- & > .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 {
- display: flex;
- align-items: center;
- }
- }
- .vxe-tools--wrapper,
- .vxe-tools--operate {
- display: flex;
- flex-shrink: 0;
- align-items: center;
- }
- .vxe-custom--wrapper {
- position: relative;
- margin-left: 0.8em;
- &.is--active {
- & > .vxe-button {
- background-color: $vxe-toolbar-custom-active-background-color;
- border-radius: 50%;
- }
- .vxe-custom--option-wrapper {
- display: block;
- }
- }
- }
- .vxe-custom--option-wrapper {
- display: none;
- position: absolute;
- right: 2px;
- text-align: left;
- background-color: $vxe-toolbar-panel-background-color;
- z-index: 19;
- border: 1px solid $vxe-table-border-color;
- border-radius: $vxe-border-radius;
- box-shadow: 0 1px 6px rgba(0,0,0,.2);
- .vxe-custom--header {
- font-weight: 700;
- border-bottom: 1px solid $vxe-table-popup-border-color;
- }
- .vxe-custom--body {
- .vxe-custom--option {
- &:hover {
- background-color: $vxe-table-row-hover-background-color;
- }
- }
- }
- .vxe-custom--header,
- .vxe-custom--body {
- padding: 0.2em 0;
- max-height: 17.6em;
- & > li {
- max-width: 16em;
- min-width: 10em;
- padding: 0.2em 1em 0.2em 2.3em;
- @for $i from 2 through 8 {
- $interval: $i - 1 + 0.2;
- &.level--#{$i}{
- padding-left: #{$interval + 2.3}em;
- .vxe-checkbox--icon {
- left: #{$interval + 0.6}em;
- }
- }
- }
- }
- }
- .vxe-custom--footer {
- border-top: 1px solid $vxe-table-popup-border-color;
- padding: 0.45em 0.4em;
- text-align: right;
- button {
- background-color: transparent;
- width: 50%;
- border: 0;
- color: $vxe-font-color;
- text-align: center;
- cursor: pointer;
- &:focus {
- outline: none;
- }
- &:hover {
- color: $vxe-primary-color;
- }
- }
- }
- }
- }
- .vxe-custom--option-wrapper .vxe-custom--header,
- .vxe-custom--option-wrapper .vxe-custom--body {
- list-style-type: none;
- overflow-x: hidden;
- overflow-y: auto;
- margin: 0;
- padding: 0;
- user-select: none;
- & > li {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- .vxe-custom--option {
- @extend %XECheckbox;
- .vxe-checkbox--icon {
- left: 0.6em;
- top: 0.38em;
- }
- }
- .vxe-toolbar {
- font-size: $vxe-font-size;
- height: $vxe-toolbar-height-default;
- .vxe-custom--option {
- & > .vxe-checkbox--icon {
- font-size: $vxe-checkbox-font-size-default;
- }
- }
- &.size--medium {
- font-size: $vxe-font-size-medium;
- height: $vxe-toolbar-height-medium;
- .vxe-custom--option {
- & > .vxe-checkbox--icon {
- font-size: $vxe-checkbox-font-size-medium;
- }
- }
- }
- &.size--small {
- font-size: $vxe-font-size-small;
- height: $vxe-toolbar-height-small;
- .vxe-custom--option {
- & > .vxe-checkbox--icon {
- font-size: $vxe-checkbox-font-size-small;
- }
- }
- }
- &.size--mini {
- font-size: $vxe-font-size-mini;
- height: $vxe-toolbar-height-mini;
- .vxe-custom--option {
- & > .vxe-checkbox--icon {
- font-size: $vxe-checkbox-font-size-mini;
- }
- }
- }
- }
|