Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ls:
.d.ts: kebab-case

ignore:
# 内部维护笔记,命名不受 kebab-case 约束(如 README.md)
- docs-notes
# ccui
- packages/ccui/node_modules
- packages/docs
Expand Down
14 changes: 7 additions & 7 deletions packages/ccui/ui/auto-complete/src/auto-complete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
width: 100%;
height: 32px;
padding: 0 11px;
border: 1px solid #d9d9d9;
border: 1px solid $ccui-form-control-line;
border-radius: 6px;
background: #fff;
background: $ccui-color-bg-container;
box-sizing: border-box;
cursor: text;
transition:
Expand All @@ -34,7 +34,7 @@
}

&.is-disabled {
background: #f5f5f5;
background: $ccui-list-item-hover-bg;
cursor: not-allowed;

input {
Expand All @@ -50,10 +50,10 @@
}

&--status-error {
border-color: #ff4d4f;
border-color: $ccui-color-error;
}
&--status-warning {
border-color: #faad14;
border-color: $ccui-color-warning;
}
}

Expand Down Expand Up @@ -93,8 +93,8 @@
}

&__panel {
background: #fff;
border: 1px solid #f0f0f0;
background: $ccui-base-bg;
border: 1px solid $ccui-dividing-line;
border-radius: 6px;
box-shadow:
0 6px 16px rgba(0, 0, 0, 0.08),
Expand Down
4 changes: 2 additions & 2 deletions packages/ccui/ui/button-3d/src/button-3d.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use '../../style-var/index.scss' as *;

$button-3d-info-color: #909399;
$button-3d-info-active-color: #73767a;
$button-3d-info-color: $ccui-button-info;
$button-3d-info-active-color: $ccui-button-info-active;

.#{$cls-prefix}-button-3d {
position: relative;
Expand Down
10 changes: 5 additions & 5 deletions packages/ccui/ui/button/src/button.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use '../../style-var/index.scss' as *;

$button-info-color: #909399;
$button-info-hover-color: #a6a9ad;
$button-info-active-color: #73767a;
$button-info-plain-bg: #f4f4f5;
$button-info-plain-border: #dcdfe6;
$button-info-color: $ccui-button-info;
$button-info-hover-color: $ccui-button-info-hover;
$button-info-active-color: $ccui-button-info-active;
$button-info-plain-bg: $ccui-button-info-plain-bg;
$button-info-plain-border: $ccui-button-info-plain-border;

.#{$cls-prefix}-button {
box-sizing: border-box;
Expand Down
34 changes: 19 additions & 15 deletions packages/ccui/ui/color-picker/src/color-picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
align-items: center;
gap: 6px;
padding: 4px 6px;
border: 1px solid #d9d9d9;
border: 1px solid $ccui-form-control-line;
border-radius: 6px;
background: #fff;
background: $ccui-color-bg-container;
cursor: pointer;
line-height: 1;
transition:
Expand All @@ -36,8 +36,8 @@
}

&.is-disabled {
border-color: #d9d9d9;
background: #f5f5f5;
border-color: $ccui-form-control-line;
background: $ccui-list-item-hover-bg;
cursor: not-allowed;
pointer-events: none;
}
Expand Down Expand Up @@ -65,8 +65,10 @@
border-radius: 4px;
overflow: hidden;
background-image:
linear-gradient(45deg, #ddd 25%, transparent 25%), linear-gradient(-45deg, #ddd 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #ddd 75%), linear-gradient(-45deg, transparent 75%, #ddd 75%);
linear-gradient(45deg, $ccui-color-picker-alpha-checker 25%, transparent 25%),
linear-gradient(-45deg, $ccui-color-picker-alpha-checker 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, $ccui-color-picker-alpha-checker 75%),
linear-gradient(-45deg, transparent 75%, $ccui-color-picker-alpha-checker 75%);
background-size: 8px 8px;
background-position:
0 0,
Expand Down Expand Up @@ -98,8 +100,8 @@
&__panel {
width: 240px;
padding: 12px;
background: #fff;
border: 1px solid #f0f0f0;
background: $ccui-color-bg-elevated;
border: 1px solid $ccui-dividing-line;
border-radius: 8px;
box-shadow:
0 6px 16px rgba(0, 0, 0, 0.08),
Expand Down Expand Up @@ -169,8 +171,10 @@

&__alpha {
background-image:
linear-gradient(45deg, #ddd 25%, transparent 25%), linear-gradient(-45deg, #ddd 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #ddd 75%), linear-gradient(-45deg, transparent 75%, #ddd 75%);
linear-gradient(45deg, $ccui-color-picker-alpha-checker 25%, transparent 25%),
linear-gradient(-45deg, $ccui-color-picker-alpha-checker 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, $ccui-color-picker-alpha-checker 75%),
linear-gradient(-45deg, transparent 75%, $ccui-color-picker-alpha-checker 75%);
background-size: 8px 8px;
background-position:
0 0,
Expand Down Expand Up @@ -211,9 +215,9 @@
align-items: center;
padding: 0 8px;
height: 28px;
border: 1px solid #d9d9d9;
border: 1px solid $ccui-form-control-line;
border-radius: 4px;
background: #fff;
background: $ccui-color-bg-container;
transition: border-color 0.2s;

&:focus-within {
Expand Down Expand Up @@ -245,9 +249,9 @@
width: 64px;
height: 28px;
padding: 0 8px;
border: 1px solid #d9d9d9;
border: 1px solid $ccui-form-control-line;
border-radius: 4px;
background: #fff;
background: $ccui-color-bg-container;

&:focus-within {
border-color: $ccui-color-primary;
Expand Down Expand Up @@ -324,7 +328,7 @@
&__footer {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #f0f0f0;
border-top: 1px solid $ccui-dividing-line;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export type ComponentSize = 'small' | 'middle' | 'large'
export interface ThemeConfig {
token?: Record<string, string | number>
algorithm?: 'default' | 'dark' | 'compact'
cssVar?: boolean
}

export interface ModalLocale {
Expand Down
10 changes: 5 additions & 5 deletions packages/ccui/ui/mentions/src/mentions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
&__textarea {
width: 100%;
padding: 6px 12px;
border: 1px solid #d9d9d9;
border: 1px solid $ccui-form-control-line;
border-radius: 6px;
background: #fff;
background: $ccui-color-bg-container;
color: rgba(0, 0, 0, 0.88);
font-size: 14px;
line-height: 1.5;
Expand All @@ -74,7 +74,7 @@
}

&:disabled {
background: #f5f5f5;
background: $ccui-list-item-hover-bg;
color: rgba(0, 0, 0, 0.4);
cursor: not-allowed;
}
Expand All @@ -86,8 +86,8 @@
z-index: 1050;
min-width: 160px;
max-width: 320px;
background: #fff;
border: 1px solid #f0f0f0;
background: $ccui-base-bg;
border: 1px solid $ccui-dividing-line;
border-radius: 6px;
box-shadow:
0 6px 16px rgba(0, 0, 0, 0.08),
Expand Down
18 changes: 10 additions & 8 deletions packages/ccui/ui/popover/src/popover.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '../../style-var/index.scss' as *;

.ccui-popover {
position: relative;
display: inline-block;
Expand All @@ -19,16 +21,16 @@
box-sizing: border-box;

&--dark {
background: #303133;
color: #fff;
border: 1px solid #303133;
background: $ccui-feedback-overlay-bg;
color: $ccui-light-text;
border: 1px solid $ccui-feedback-overlay-bg;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

&--light {
background: #fff;
color: #606266;
border: 1px solid #e4e7ed;
background: $ccui-base-bg;
color: $ccui-aide-text-stress;
border: 1px solid $ccui-color-border;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}
}
Expand All @@ -37,11 +39,11 @@
padding: 0 0 8px 0;
font-weight: 500;
font-size: 16px;
color: #303133;
color: $ccui-text;
border-radius: inherit;

.ccui-popover__popper--dark & {
color: #fff;
color: $ccui-light-text;
}
}

Expand Down
14 changes: 8 additions & 6 deletions packages/ccui/ui/tooltip/src/tooltip.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use '../../style-var/index.scss' as *;

.ccui-tooltip {
position: relative;
display: inline-block;
Expand All @@ -15,16 +17,16 @@
word-wrap: break-word;

&--dark {
background: #303133;
color: #fff;
border: 1px solid #303133;
background: $ccui-feedback-overlay-bg;
color: $ccui-light-text;
border: 1px solid $ccui-feedback-overlay-bg;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

&--light {
background: #fff;
color: #606266;
border: 1px solid #e4e7ed;
background: $ccui-base-bg;
color: $ccui-aide-text-stress;
border: 1px solid $ccui-color-border;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}
}
Expand Down
20 changes: 10 additions & 10 deletions packages/ccui/ui/transfer/src/transfer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
flex-direction: column;
width: 200px;
max-height: 320px;
border: 1px solid #e8e8e8;
border: 1px solid $ccui-color-border;
border-radius: 6px;
background: #fff;
background: $ccui-color-bg-container;
overflow: hidden;
}

Expand All @@ -26,10 +26,10 @@
align-items: center;
gap: 8px;
padding: 8px 12px;
border-bottom: 1px solid #f0f0f0;
border-bottom: 1px solid $ccui-dividing-line;
color: rgba(0, 0, 0, 0.85);
font-size: 13px;
background: #fafafa;
background: $ccui-area;
}

&__header-checkbox {
Expand Down Expand Up @@ -58,16 +58,16 @@

&__search {
padding: 8px 12px;
border-bottom: 1px solid #f0f0f0;
border-bottom: 1px solid $ccui-dividing-line;
}

&__search-input {
width: 100%;
height: 28px;
padding: 0 8px;
border: 1px solid #d9d9d9;
border: 1px solid $ccui-form-control-line;
border-radius: 4px;
background: #fff;
background: $ccui-color-bg-container;
color: rgba(0, 0, 0, 0.88);
font-size: 13px;
outline: 0;
Expand Down Expand Up @@ -153,9 +153,9 @@
min-width: 32px;
height: 28px;
padding: 0 8px;
border: 1px solid #d9d9d9;
border: 1px solid $ccui-color-border;
border-radius: 4px;
background: #fff;
background: $ccui-color-bg-container;
color: rgba(0, 0, 0, 0.88);
font-size: 14px;
line-height: 1;
Expand All @@ -172,7 +172,7 @@

&:disabled {
color: rgba(0, 0, 0, 0.25);
background: #f5f5f5;
background: $ccui-list-item-hover-bg;
cursor: not-allowed;
}
}
Expand Down
Loading
Loading