feat: support link css from shadow dom (#12526)

This commit is contained in:
Amumu 2023-12-25 10:25:14 +08:00 committed by GitHub
parent a3180c3aaf
commit 562184dfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
86 changed files with 172 additions and 86 deletions

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
// colors // colors
--van-doc-black: #000; --van-doc-black: #000;
--van-doc-white: #fff; --van-doc-white: #fff;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-action-bar-button-height: 40px; --van-action-bar-button-height: 40px;
--van-action-bar-button-warning-color: var(--van-gradient-orange); --van-action-bar-button-warning-color: var(--van-gradient-orange);
--van-action-bar-button-danger-color: var(--van-gradient-red); --van-action-bar-button-danger-color: var(--van-gradient-red);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-action-bar-icon-width: 48px; --van-action-bar-icon-width: 48px;
--van-action-bar-icon-height: 100%; --van-action-bar-icon-height: 100%;
--van-action-bar-icon-color: var(--van-text-color); --van-action-bar-icon-color: var(--van-text-color);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-action-bar-background: var(--van-background-2); --van-action-bar-background: var(--van-background-2);
--van-action-bar-height: 50px; --van-action-bar-height: 50px;
} }

View File

@ -1,6 +1,7 @@
@import '../style/mixins/hairline'; @import '../style/mixins/hairline';
:root { :root,
:host {
--van-action-sheet-max-height: 80%; --van-action-sheet-max-height: 80%;
--van-action-sheet-header-height: 48px; --van-action-sheet-header-height: 48px;
--van-action-sheet-header-font-size: var(--van-font-size-lg); --van-action-sheet-header-font-size: var(--van-font-size-lg);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-address-edit-padding: var(--van-padding-sm); --van-address-edit-padding: var(--van-padding-sm);
--van-address-edit-buttons-padding: var(--van-padding-xl) --van-address-edit-buttons-padding: var(--van-padding-xl)
var(--van-padding-base); var(--van-padding-base);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-address-list-padding: var(--van-padding-sm) var(--van-padding-sm) 80px; --van-address-list-padding: var(--van-padding-sm) var(--van-padding-sm) 80px;
--van-address-list-disabled-text-color: var(--van-text-color-2); --van-address-list-disabled-text-color: var(--van-text-color-2);
--van-address-list-disabled-text-padding: calc(var(--van-padding-base) * 5) 0; --van-address-list-disabled-text-padding: calc(var(--van-padding-base) * 5) 0;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-back-top-size: 40px; --van-back-top-size: 40px;
--van-back-top-right: 30px; --van-back-top-right: 30px;
--van-back-top-bottom: 40px; --van-back-top-bottom: 40px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-badge-size: 16px; --van-badge-size: 16px;
--van-badge-color: var(--van-white); --van-badge-color: var(--van-white);
--van-badge-padding: 0 3px; --van-badge-padding: 0 3px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-barrage-font-size: 16px; --van-barrage-font-size: 16px;
--van-barrage-space: 10px; --van-barrage-space: 10px;
--van-barrage-font: inherit; --van-barrage-font: inherit;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-button-mini-height: 24px; --van-button-mini-height: 24px;
--van-button-mini-padding: 0 var(--van-padding-base); --van-button-mini-padding: 0 var(--van-padding-base);
--van-button-mini-font-size: var(--van-font-size-xs); --van-button-mini-font-size: var(--van-font-size-xs);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-calendar-background: var(--van-background-2); --van-calendar-background: var(--van-background-2);
--van-calendar-popup-height: 80%; --van-calendar-popup-height: 80%;
--van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, 0.16); --van-calendar-header-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-card-padding: var(--van-padding-xs) var(--van-padding-md); --van-card-padding: var(--van-padding-xs) var(--van-padding-md);
--van-card-font-size: var(--van-font-size-sm); --van-card-font-size: var(--van-font-size-sm);
--van-card-text-color: var(--van-text-color); --van-card-text-color: var(--van-text-color);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-cascader-header-height: 48px; --van-cascader-header-height: 48px;
--van-cascader-header-padding: 0 var(--van-padding-md); --van-cascader-header-padding: 0 var(--van-padding-md);
--van-cascader-title-font-size: var(--van-font-size-lg); --van-cascader-title-font-size: var(--van-font-size-lg);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-cell-group-background: var(--van-background-2); --van-cell-group-background: var(--van-background-2);
--van-cell-group-title-color: var(--van-text-color-2); --van-cell-group-title-color: var(--van-text-color-2);
--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md); --van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);

View File

@ -1,6 +1,7 @@
@import '../style/mixins/hairline'; @import '../style/mixins/hairline';
:root { :root,
:host {
--van-cell-font-size: var(--van-font-size-md); --van-cell-font-size: var(--van-font-size-md);
--van-cell-line-height: 24px; --van-cell-line-height: 24px;
--van-cell-vertical-padding: 10px; --van-cell-vertical-padding: 10px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-checkbox-size: 20px; --van-checkbox-size: 20px;
--van-checkbox-border-color: var(--van-gray-5); --van-checkbox-border-color: var(--van-gray-5);
--van-checkbox-duration: var(--van-duration-fast); --van-checkbox-duration: var(--van-duration-fast);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-circle-size: 100px; --van-circle-size: 100px;
--van-circle-color: var(--van-primary-color); --van-circle-color: var(--van-primary-color);
--van-circle-layer-color: var(--van-white); --van-circle-layer-color: var(--van-white);

View File

@ -1,6 +1,7 @@
@import '../style/mixins/hairline'; @import '../style/mixins/hairline';
:root { :root,
:host {
--van-collapse-item-duration: var(--van-duration-base); --van-collapse-item-duration: var(--van-duration-base);
--van-collapse-item-content-padding: var(--van-padding-sm) --van-collapse-item-content-padding: var(--van-padding-sm)
var(--van-padding-md); var(--van-padding-md);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-contact-card-padding: var(--van-padding-md); --van-contact-card-padding: var(--van-padding-md);
--van-contact-card-add-icon-size: 40px; --van-contact-card-add-icon-size: 40px;
--van-contact-card-add-icon-color: var(--van-primary-color); --van-contact-card-add-icon-color: var(--van-primary-color);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-contact-edit-padding: var(--van-padding-md); --van-contact-edit-padding: var(--van-padding-md);
--van-contact-edit-fields-radius: var(--van-radius-md); --van-contact-edit-fields-radius: var(--van-radius-md);
--van-contact-edit-buttons-padding: var(--van-padding-xl) 0; --van-contact-edit-buttons-padding: var(--van-padding-xl) 0;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-contact-list-padding: var(--van-padding-sm) var(--van-padding-sm) 80px; --van-contact-list-padding: var(--van-padding-sm) var(--van-padding-sm) 80px;
--van-contact-list-edit-icon-size: 16px; --van-contact-list-edit-icon-size: 16px;
--van-contact-list-add-button-z-index: 999; --van-contact-list-add-button-z-index: 999;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-count-down-text-color: var(--van-text-color); --van-count-down-text-color: var(--van-text-color);
--van-count-down-font-size: var(--van-font-size-md); --van-count-down-font-size: var(--van-font-size-md);
--van-count-down-line-height: var(--van-line-height-md); --van-count-down-line-height: var(--van-line-height-md);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-coupon-cell-selected-text-color: var(--van-text-color); --van-coupon-cell-selected-text-color: var(--van-text-color);
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-coupon-list-background: var(--van-background); --van-coupon-list-background: var(--van-background);
--van-coupon-list-field-padding: 5px 0 5px var(--van-padding-md); --van-coupon-list-field-padding: 5px 0 5px var(--van-padding-md);
--van-coupon-list-exchange-button-height: 32px; --van-coupon-list-exchange-button-height: 32px;

View File

@ -1,6 +1,7 @@
@import '../style/mixins/ellipsis'; @import '../style/mixins/ellipsis';
:root { :root,
:host {
--van-coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm); --van-coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);
--van-coupon-content-height: 84px; --van-coupon-content-height: 84px;
--van-coupon-content-padding: 14px 0; --van-coupon-content-padding: 14px 0;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-dialog-width: 320px; --van-dialog-width: 320px;
--van-dialog-small-screen-width: 90%; --van-dialog-small-screen-width: 90%;
--van-dialog-font-size: var(--van-font-size-lg); --van-dialog-font-size: var(--van-font-size-lg);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-divider-margin: var(--van-padding-md) 0; --van-divider-margin: var(--van-padding-md) 0;
--van-divider-vertical-margin: 0 var(--van-padding-xs); --van-divider-vertical-margin: 0 var(--van-padding-xs);
--van-divider-text-color: var(--van-text-color-2); --van-divider-text-color: var(--van-text-color-2);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-dropdown-item-z-index: 10; --van-dropdown-item-z-index: 10;
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-dropdown-menu-height: 48px; --van-dropdown-menu-height: 48px;
--van-dropdown-menu-background: var(--van-background-2); --van-dropdown-menu-background: var(--van-background-2);
--van-dropdown-menu-shadow: 0 2px 12px rgba(100, 101, 102, 0.12); --van-dropdown-menu-shadow: 0 2px 12px rgba(100, 101, 102, 0.12);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-empty-padding: var(--van-padding-xl) 0; --van-empty-padding: var(--van-padding-xl) 0;
--van-empty-image-size: 160px; --van-empty-image-size: 160px;
--van-empty-description-margin-top: var(--van-padding-md); --van-empty-description-margin-top: var(--van-padding-md);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-field-label-width: 6.2em; --van-field-label-width: 6.2em;
--van-field-label-color: var(--van-text-color); --van-field-label-color: var(--van-text-color);
--van-field-label-margin-right: var(--van-padding-sm); --van-field-label-margin-right: var(--van-padding-sm);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-floating-bubble-size: 48px; --van-floating-bubble-size: 48px;
--van-floating-bubble-initial-gap: 24px; --van-floating-bubble-initial-gap: 24px;
--van-floating-bubble-icon-size: 28px; --van-floating-bubble-icon-size: 28px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-floating-panel-border-radius: 16px; --van-floating-panel-border-radius: 16px;
--van-floating-panel-header-height: 30px; --van-floating-panel-header-height: 30px;
--van-floating-panel-z-index: 999; --van-floating-panel-z-index: 999;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs); --van-grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs);
--van-grid-item-content-background: var(--van-background-2); --van-grid-item-content-background: var(--van-background-2);
--van-grid-item-content-active-color: var(--van-active-color); --van-grid-item-content-active-color: var(--van-active-color);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-highlight-tag-color: var(--van-primary-color); --van-highlight-tag-color: var(--van-primary-color);
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-image-preview-index-text-color: var(--van-white); --van-image-preview-index-text-color: var(--van-white);
--van-image-preview-index-font-size: var(--van-font-size-md); --van-image-preview-index-font-size: var(--van-font-size-md);
--van-image-preview-index-line-height: var(--van-line-height-md); --van-image-preview-index-line-height: var(--van-line-height-md);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-image-placeholder-text-color: var(--van-text-color-2); --van-image-placeholder-text-color: var(--van-text-color-2);
--van-image-placeholder-font-size: var(--van-font-size-md); --van-image-placeholder-font-size: var(--van-font-size-md);
--van-image-placeholder-background: var(--van-background); --van-image-placeholder-background: var(--van-background);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-index-anchor-z-index: 1; --van-index-anchor-z-index: 1;
--van-index-anchor-padding: 0 var(--van-padding-md); --van-index-anchor-padding: 0 var(--van-padding-md);
--van-index-anchor-text-color: var(--van-text-color); --van-index-anchor-text-color: var(--van-text-color);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-index-bar-sidebar-z-index: 2; --van-index-bar-sidebar-z-index: 2;
--van-index-bar-index-font-size: var(--van-font-size-xs); --van-index-bar-index-font-size: var(--van-font-size-xs);
--van-index-bar-index-line-height: var(--van-line-height-xs); --van-index-bar-index-line-height: var(--van-line-height-xs);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-list-text-color: var(--van-text-color-2); --van-list-text-color: var(--van-text-color-2);
--van-list-text-font-size: var(--van-font-size-md); --van-list-text-font-size: var(--van-font-size-md);
--van-list-text-line-height: 50px; --van-list-text-line-height: 50px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-loading-text-color: var(--van-text-color-2); --van-loading-text-color: var(--van-text-color-2);
--van-loading-text-font-size: var(--van-font-size-md); --van-loading-text-font-size: var(--van-font-size-md);
--van-loading-spinner-color: var(--van-gray-5); --van-loading-spinner-color: var(--van-gray-5);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-nav-bar-height: 46px; --van-nav-bar-height: 46px;
--van-nav-bar-background: var(--van-background-2); --van-nav-bar-background: var(--van-background-2);
--van-nav-bar-arrow-size: 16px; --van-nav-bar-arrow-size: 16px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-notice-bar-height: 40px; --van-notice-bar-height: 40px;
--van-notice-bar-padding: 0 var(--van-padding-md); --van-notice-bar-padding: 0 var(--van-padding-md);
--van-notice-bar-wrapable-padding: var(--van-padding-xs) var(--van-padding-md); --van-notice-bar-wrapable-padding: var(--van-padding-xs) var(--van-padding-md);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-notify-text-color: var(--van-white); --van-notify-text-color: var(--van-white);
--van-notify-padding: var(--van-padding-xs) var(--van-padding-md); --van-notify-padding: var(--van-padding-xs) var(--van-padding-md);
--van-notify-font-size: var(--van-font-size-md); --van-notify-font-size: var(--van-font-size-md);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-number-keyboard-background: var(--van-gray-2); --van-number-keyboard-background: var(--van-gray-2);
--van-number-keyboard-key-height: 48px; --van-number-keyboard-key-height: 48px;
--van-number-keyboard-key-font-size: 28px; --van-number-keyboard-key-font-size: 28px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-overlay-z-index: 1; --van-overlay-z-index: 1;
--van-overlay-background: rgba(0, 0, 0, 0.7); --van-overlay-background: rgba(0, 0, 0, 0.7);
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-pagination-height: 40px; --van-pagination-height: 40px;
--van-pagination-font-size: var(--van-font-size-md); --van-pagination-font-size: var(--van-font-size-md);
--van-pagination-item-width: 36px; --van-pagination-item-width: 36px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-password-input-height: 50px; --van-password-input-height: 50px;
--van-password-input-margin: 0 var(--van-padding-md); --van-password-input-margin: 0 var(--van-padding-md);
--van-password-input-font-size: 20px; --van-password-input-font-size: 20px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-picker-group-background: var(--van-background-2); --van-picker-group-background: var(--van-background-2);
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-picker-background: var(--van-background-2); --van-picker-background: var(--van-background-2);
--van-picker-toolbar-height: 44px; --van-picker-toolbar-height: 44px;
--van-picker-title-font-size: var(--van-font-size-lg); --van-picker-title-font-size: var(--van-font-size-lg);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-popover-arrow-size: 6px; --van-popover-arrow-size: 6px;
--van-popover-radius: var(--van-radius-lg); --van-popover-radius: var(--van-radius-lg);
--van-popover-action-width: 128px; --van-popover-action-width: 128px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-popup-background: var(--van-background-2); --van-popup-background: var(--van-background-2);
--van-popup-transition: transform var(--van-duration-base); --van-popup-transition: transform var(--van-duration-base);
--van-popup-round-radius: 16px; --van-popup-round-radius: 16px;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-progress-height: 4px; --van-progress-height: 4px;
--van-progress-color: var(--van-primary-color); --van-progress-color: var(--van-primary-color);
--van-progress-inactive-color: var(--van-gray-5); --van-progress-inactive-color: var(--van-gray-5);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-pull-refresh-head-height: 50px; --van-pull-refresh-head-height: 50px;
--van-pull-refresh-head-font-size: var(--van-font-size-md); --van-pull-refresh-head-font-size: var(--van-font-size-md);
--van-pull-refresh-head-text-color: var(--van-text-color-2); --van-pull-refresh-head-text-color: var(--van-text-color-2);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-radio-size: 20px; --van-radio-size: 20px;
--van-radio-dot-size: 8px; --van-radio-dot-size: 8px;
--van-radio-border-color: var(--van-gray-5); --van-radio-border-color: var(--van-gray-5);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-rate-icon-size: 20px; --van-rate-icon-size: 20px;
--van-rate-icon-gutter: var(--van-padding-base); --van-rate-icon-gutter: var(--van-padding-base);
--van-rate-icon-void-color: var(--van-gray-5); --van-rate-icon-void-color: var(--van-gray-5);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-rolling-text-background: inherit; --van-rolling-text-background: inherit;
--van-rolling-text-color: var(--van-text-color); --van-rolling-text-color: var(--van-text-color);
--van-rolling-text-font-size: var(--van-font-size-md); --van-rolling-text-font-size: var(--van-font-size-md);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-search-padding: 10px var(--van-padding-sm); --van-search-padding: 10px var(--van-padding-sm);
--van-search-background: var(--van-background-2); --van-search-background: var(--van-background-2);
--van-search-content-background: var(--van-background); --van-search-content-background: var(--van-background);

View File

@ -1,6 +1,7 @@
@import '../style/mixins/hairline'; @import '../style/mixins/hairline';
:root { :root,
:host {
--van-share-sheet-header-padding: var(--van-padding-sm) var(--van-padding-md); --van-share-sheet-header-padding: var(--van-padding-sm) var(--van-padding-md);
--van-share-sheet-title-color: var(--van-text-color); --van-share-sheet-title-color: var(--van-text-color);
--van-share-sheet-title-font-size: var(--van-font-size-md); --van-share-sheet-title-font-size: var(--van-font-size-md);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-sidebar-font-size: var(--van-font-size-md); --van-sidebar-font-size: var(--van-font-size-md);
--van-sidebar-line-height: var(--van-line-height-md); --van-sidebar-line-height: var(--van-line-height-md);
--van-sidebar-text-color: var(--van-text-color); --van-sidebar-text-color: var(--van-text-color);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-sidebar-width: 80px; --van-sidebar-width: 80px;
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-signature-padding: var(--van-padding-xs); --van-signature-padding: var(--van-padding-xs);
--van-signature-content-height: 200px; --van-signature-content-height: 200px;
--van-signature-content-background: var(--van-background-2); --van-signature-content-background: var(--van-background-2);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-skeleton-avatar-size: 32px; --van-skeleton-avatar-size: 32px;
--van-skeleton-avatar-background: var(--van-active-color); --van-skeleton-avatar-background: var(--van-active-color);
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-skeleton-image-size: 96px; --van-skeleton-image-size: 96px;
--van-skeleton-image-radius: 24px; --van-skeleton-image-radius: 24px;
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-skeleton-paragraph-height: 16px; --van-skeleton-paragraph-height: 16px;
--van-skeleton-paragraph-background: var(--van-active-color); --van-skeleton-paragraph-background: var(--van-active-color);
--van-skeleton-paragraph-margin-top: var(--van-padding-sm); --van-skeleton-paragraph-margin-top: var(--van-padding-sm);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-skeleton-title-width: 40%; --van-skeleton-title-width: 40%;
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-skeleton-duration: 1.2s; --van-skeleton-duration: 1.2s;
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-slider-active-background: var(--van-primary-color); --van-slider-active-background: var(--van-primary-color);
--van-slider-inactive-background: var(--van-gray-3); --van-slider-inactive-background: var(--van-gray-3);
--van-slider-disabled-opacity: var(--van-disabled-opacity); --van-slider-disabled-opacity: var(--van-disabled-opacity);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-step-text-color: var(--van-text-color-2); --van-step-text-color: var(--van-text-color-2);
--van-step-active-color: var(--van-primary-color); --van-step-active-color: var(--van-primary-color);
--van-step-process-text-color: var(--van-text-color); --van-step-process-text-color: var(--van-text-color);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-stepper-background: var(--van-active-color); --van-stepper-background: var(--van-active-color);
--van-stepper-button-icon-color: var(--van-text-color); --van-stepper-button-icon-color: var(--van-text-color);
--van-stepper-button-disabled-color: var(--van-background); --van-stepper-button-disabled-color: var(--van-background);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-steps-background: var(--van-background-2); --van-steps-background: var(--van-background-2);
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-sticky-z-index: 99; --van-sticky-z-index: 99;
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
// Color Palette // Color Palette
--van-black: #000; --van-black: #000;
--van-white: #fff; --van-white: #fff;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-submit-bar-height: 50px; --van-submit-bar-height: 50px;
--van-submit-bar-z-index: 100; --van-submit-bar-z-index: 100;
--van-submit-bar-background: var(--van-background-2); --van-submit-bar-background: var(--van-background-2);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-swipe-indicator-size: 6px; --van-swipe-indicator-size: 6px;
--van-swipe-indicator-margin: var(--van-padding-sm); --van-swipe-indicator-margin: var(--van-padding-sm);
--van-swipe-indicator-active-opacity: 1; --van-swipe-indicator-active-opacity: 1;

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-switch-size: 26px; --van-switch-size: 26px;
--van-switch-width: calc(1.8em + 4px); --van-switch-width: calc(1.8em + 4px);
--van-switch-height: calc(1em + 4px); --van-switch-height: calc(1em + 4px);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-tabbar-item-font-size: var(--van-font-size-sm); --van-tabbar-item-font-size: var(--van-font-size-sm);
--van-tabbar-item-text-color: var(--van-text-color); --van-tabbar-item-text-color: var(--van-text-color);
--van-tabbar-item-active-color: var(--van-primary-color); --van-tabbar-item-active-color: var(--van-primary-color);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-tabbar-height: 50px; --van-tabbar-height: 50px;
--van-tabbar-z-index: 1; --van-tabbar-z-index: 1;
--van-tabbar-background: var(--van-background-2); --van-tabbar-background: var(--van-background-2);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-tab-text-color: var(--van-gray-7); --van-tab-text-color: var(--van-gray-7);
--van-tab-active-text-color: var(--van-text-color); --van-tab-active-text-color: var(--van-text-color);
--van-tab-disabled-text-color: var(--van-text-color-3); --van-tab-disabled-text-color: var(--van-text-color-3);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-tag-padding: 0 var(--van-padding-base); --van-tag-padding: 0 var(--van-padding-base);
--van-tag-text-color: var(--van-white); --van-tag-text-color: var(--van-white);
--van-tag-font-size: var(--van-font-size-sm); --van-tag-font-size: var(--van-font-size-sm);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-text-ellipsis-line-height: 1.6; --van-text-ellipsis-line-height: 1.6;
--van-text-ellipsis-action-color: var(--van-blue); --van-text-ellipsis-action-color: var(--van-blue);
} }

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-toast-max-width: 70%; --van-toast-max-width: 70%;
--van-toast-font-size: var(--van-font-size-md); --van-toast-font-size: var(--van-font-size-md);
--van-toast-text-color: var(--van-white); --van-toast-text-color: var(--van-white);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-tree-select-font-size: var(--van-font-size-md); --van-tree-select-font-size: var(--van-font-size-md);
--van-tree-select-nav-background: var(--van-background); --van-tree-select-nav-background: var(--van-background);
--van-tree-select-content-background: var(--van-background-2); --van-tree-select-content-background: var(--van-background-2);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-uploader-size: 80px; --van-uploader-size: 80px;
--van-uploader-icon-size: 24px; --van-uploader-icon-size: 24px;
--van-uploader-icon-color: var(--van-gray-4); --van-uploader-icon-color: var(--van-gray-4);

View File

@ -1,4 +1,5 @@
:root { :root,
:host {
--van-watermark-z-index: 100; --van-watermark-z-index: 100;
} }