mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
121 lines
3.2 KiB
Plaintext
121 lines
3.2 KiB
Plaintext
// Color variables
|
|
@black: #000;
|
|
@white: #fff;
|
|
@red: #f44;
|
|
@blue: #1989fa;
|
|
@orange: #ff976a;
|
|
@orange-dark: #ed6a0c;
|
|
@orange-light: #fffbe8;
|
|
@green: #07c160;
|
|
@gray: #c9c9c9;
|
|
@gray-light: #e5e5e5;
|
|
@gray-darker: #7d7e80;
|
|
@gray-dark: #999;
|
|
|
|
// Default colors
|
|
@text-color: #333;
|
|
@border-color: #eee;
|
|
@active-color: #f2f3f5;
|
|
@background-color: #f8f8f8;
|
|
@background-color-light: #fafafa;
|
|
|
|
// Button
|
|
@button-default-color: @text-color;
|
|
@button-default-background-color: @white;
|
|
@button-default-border-color: @border-color;
|
|
@button-primary-color: @white;
|
|
@button-primary-background-color: @green;
|
|
@button-primary-border-color: @green;
|
|
@button-info-color: @white;
|
|
@button-info-background-color: @blue;
|
|
@button-info-border-color: @blue;
|
|
@button-danger-color: @white;
|
|
@button-danger-background-color: @red;
|
|
@button-danger-border-color: @red;
|
|
@button-warning-color: @white;
|
|
@button-warning-background-color: @orange;
|
|
@button-warning-border-color: @orange;
|
|
@button-bottom-action-default-color: @white;
|
|
@button-bottom-action-default-background-color: @orange;
|
|
@button-bottom-action-primary-color: @white;
|
|
@button-bottom-action-primary-background-color: @red;
|
|
|
|
// Checkbox
|
|
@checkbox-size: 20px;
|
|
@checkbox-border-color: @gray-light;
|
|
@checkbox-transition-duration: .2s;
|
|
@checkbox-label-margin: 10px;
|
|
@checkbox-label-color: @text-color;
|
|
@checkbox-checked-icon-color: @blue;
|
|
@checkbox-disabled-icon-color: @gray;
|
|
@checkbox-disabled-label-color: @gray;
|
|
@checkbox-disabled-background-color: @border-color;
|
|
|
|
// Collapse
|
|
@collapse-item-transition-duration: .3s;
|
|
@collapse-item-content-padding: 15px;
|
|
@collapse-item-content-font-size: 13px;
|
|
@collapse-item-content-line-height: 1.5;
|
|
@collapse-item-content-text-color: @gray-dark;
|
|
@collapse-item-content-background-color: @white;
|
|
@collapse-item-title-disabled-color: @gray;
|
|
|
|
// Info
|
|
@info-size: 16px;
|
|
@info-color: @white;
|
|
@info-padding: 0 3px;
|
|
@info-font-size: 12px;
|
|
@info-font-weight: 500;
|
|
@info-border-width: 1px;
|
|
@info-background-color: @red;
|
|
@info-font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
|
|
|
|
// Notify
|
|
@notify-padding: 6px 15px;
|
|
@notify-font-size: 14px;
|
|
@notify-line-height: 20px;
|
|
|
|
// Switch
|
|
@switch-width: 2em;
|
|
@switch-height: 1em;
|
|
@switch-node-size: 1em;
|
|
@switch-node-z-index: 1;
|
|
@switch-node-background-color: @white;
|
|
@switch-node-box-shadow: 0 3px 1px 0 rgba(0, 0, 0, .05), 0 2px 2px 0 rgba(0, 0, 0, .1), 0 3px 3px 0 rgba(0, 0, 0, .05);
|
|
@switch-background-color: @white;
|
|
@switch-on-background-color: @blue;
|
|
@switch-transition-duration: .3s;
|
|
@switch-disabled-opacity: .4;
|
|
@switch-border: 1px solid rgba(0, 0, 0, .1);
|
|
|
|
// SwitchCell
|
|
@switch-cell-padding-top: 9px;
|
|
@switch-cell-padding-bottom: 9px;
|
|
|
|
// Toast
|
|
@toast-max-width: 70%;
|
|
@toast-font-size: 14px;
|
|
@toast-text-color: @white;
|
|
@toast-line-height: 20px;
|
|
@toast-border-radius: 4px;
|
|
@toast-background-color: rgba(@text-color, .88);
|
|
@toast-icon-size: 48px;
|
|
@toast-text-min-width: 96px;
|
|
@toast-text-padding: 8px 12px;
|
|
@toast-default-padding: 15px;
|
|
@toast-default-width: 90px;
|
|
@toast-default-min-height: 90px;
|
|
|
|
// iPhoneX
|
|
@safe-area-inset-bottom: 34px;
|
|
|
|
// Search
|
|
@search-background-color: #f7f8fA;
|
|
|
|
// Stepper
|
|
@stepper-active-color: #e8e8e8;
|
|
@stepper-background-color: @active-color;
|
|
@stepper-button-disabled-color: #f7f8fa;
|
|
@stepper-input-disabled-color: @active-color;
|
|
@stepper-border-radius: 4px;
|