Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: integrate stylelint (#433)

白熱6e25d04fef21
diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml
index 5826421cc3..f95a8ef350 100644
--- a/.github/workflows/ci-lint.yml
+++ b/.github/workflows/ci-lint.yml
@@ -10,7 +10,7 @@ permissions:
contents: read
jobs:
- build:
+ eslint:
runs-on: ubuntu-latest
env:
@@ -57,8 +57,87 @@ jobs:
- name: Install dependencies
run: pnpm install
+ - name: 🌡️ Run ESLint
+ run: pnpm run lint
+
+ typecheck:
+ runs-on: ubuntu-latest
+
+ env:
+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+ TURBO_TEAM: ${{ vars.TURBO_TEAM }}
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Install Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: 16
+
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 8
+ run_install: false
+
+ - name: Get pnpm store directory
+ shell: bash
+ run: |
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
+
+ - name: Setup pnpm cache
+ uses: actions/cache@v3
+ with:
+ path: ${{ env.STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-store-
+
+ - name: Install dependencies
+ run: pnpm install
+
- name: 🧼 Type checking
run: npx tsc --noEmit
- - name: 🌡️ Run ESLint
- run: pnpm run lint
+ styelint:
+ runs-on: ubuntu-latest
+
+ env:
+ TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
+ TURBO_TEAM: ${{ vars.TURBO_TEAM }}
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: Install Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: 16
+
+ - name: Install pnpm
+ uses: pnpm/action-setup@v2
+ with:
+ version: 8
+ run_install: false
+
+ - name: Get pnpm store directory
+ shell: bash
+ run: |
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
+
+ - name: Setup pnpm cache
+ uses: actions/cache@v3
+ with:
+ path: ${{ env.STORE_PATH }}
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
+ restore-keys: |
+ ${{ runner.os }}-pnpm-store-
+
+ - name: Install dependencies
+ run: pnpm install
+
+ - name: 🎨 Run Stylelint
+ run: pnpm run lint:style
diff --git a/.stylelintrc.json b/.stylelintrc.json
new file mode 100644
index 0000000000..0ec205013e
--- /dev/null
+++ b/.stylelintrc.json
@@ -0,0 +1,13 @@
+{
+ "extends": ["stylelint-config-standard-less", "stylelint-config-prettier", "stylelint-config-clean-order"],
+ "rules": {
+ "selector-pseudo-class-no-unknown": [
+ true,
+ {
+ "ignorePseudoClasses": ["export"]
+ }
+ ],
+ "no-duplicate-selectors": null,
+ "no-descending-specificity": null
+ }
+}
diff --git a/package.json b/package.json
index cb7973f4be..420ba2e8ea 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"prepare": "husky install",
"pre-commit": "lint-staged",
"lint": "eslint --cache packages/**/src/**/*.{tsx,ts}",
+ "lint:style": "stylelint **/*.less",
"lint:fix": "eslint packages/**/src/**/*.{tsx,ts} --fix",
"storybook": "storybook dev -p 6006 --no-open",
"build:storybook": "storybook build"
@@ -60,6 +61,11 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.5.3",
+ "stylelint": "^15.11.0",
+ "stylelint-config-clean-order": "^5.2.0",
+ "stylelint-config-prettier": "^9.0.5",
+ "stylelint-config-standard": "^34.0.0",
+ "stylelint-config-standard-less": "^2.0.0",
"ts-node": "^10.9.1",
"turbo": "^1.10.16",
"typescript": "^5.2.2"
diff --git a/packages/base-ui/src/components/menu/index.module.less b/packages/base-ui/src/components/menu/index.module.less
index 750cec2cb6..71fe109e36 100644
--- a/packages/base-ui/src/components/menu/index.module.less
+++ b/packages/base-ui/src/components/menu/index.module.less
@@ -6,13 +6,13 @@
&-content {
display: inline-flex;
- align-items: center;
gap: var(--margin-xs);
+ align-items: center;
}
&-more-icon {
- color: rgb(var(--text-color));
font-size: var(--font-size-sm);
+ color: rgb(var(--text-color));
}
}
}
diff --git a/packages/base-ui/src/components/notification/index.module.less b/packages/base-ui/src/components/notification/index.module.less
index 50b2335918..68fe661303 100644
--- a/packages/base-ui/src/components/notification/index.module.less
+++ b/packages/base-ui/src/components/notification/index.module.less
@@ -2,23 +2,28 @@
.notification {
position: fixed;
+
display: flex;
- align-items: flex-end;
flex-direction: column;
- box-sizing: border-box;
+ align-items: flex-end;
justify-content: center;
+
+ box-sizing: border-box;
margin: var(--margin-xs) 0;
&-notice {
display: flex;
+ gap: var(--margin-xs);
justify-content: space-between;
+
+ width: @width;
padding: var(--padding-lg);
+
font-size: var(--font-size-lg);
+
background-color: rgb(var(--color-white));
border-radius: var(--border-radius-base);
box-shadow: var(--box-shadow-lg);
- gap: var(--margin-xs);
- width: @width;
&-wrapper {
margin: var(--margin-xs) var(--margin-base);
@@ -26,23 +31,28 @@
&-content {
display: inline-flex;
+ gap: var(--margin-xs);
align-items: center;
align-items: flex-start;
- gap: var(--margin-xs);
}
&-close {
- color: rgb(var(--text-color-secondary));
cursor: pointer;
- outline: none;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
width: fit-content;
height: fit-content;
padding: var(--padding-xs);
+
+ color: rgb(var(--text-color-secondary));
+
border-radius: var(--border-radius-base);
+ outline: none;
+
transition: background-color .2s;
- display: flex;
- align-items: center;
- justify-content: center;
&:hover {
background-color: rgb(var(--bg-color-hover));
@@ -71,11 +81,11 @@
}
&-content-container {
-
display: inline-flex;
- align-items: flex-start;
flex-direction: column;
gap: var(--margin-xs);
+ align-items: flex-start;
+
padding-top: var(--padding-xs);
}
@@ -87,11 +97,12 @@
color: rgb(var(--text-color-secondary));
&-ellipsis {
+ overflow: hidden;
// Omit beyond the specified number of lines
display: -webkit-box;
- -webkit-box-orient: vertical;
- overflow: hidden;
text-overflow: ellipsis;
+
+ -webkit-box-orient: vertical;
}
}
@@ -148,33 +159,36 @@
&-fade-leave {
.fade-effect();
+
animation-play-state: paused;
}
&-fade-appear&-fade-appear-active,
&-fade-enter&-fade-enter-active {
- animation-name: notificationFadeIn;
+ animation-name: notification-fade-in;
animation-play-state: running;
}
&-fade-leave&-fade-leave-active {
- animation-name: notificationFadeOut;
+ animation-name: notification-fade-out;
animation-play-state: running;
}
- @keyframes notificationFadeIn {
+ @keyframes notification-fade-in {
0% {
opacity: 0;
}
+
100% {
opacity: 1;
}
}
- @keyframes notificationFadeOut {
+ @keyframes notification-fade-out {
0% {
opacity: 1;
}
+
100% {
opacity: 0;
}
diff --git a/packages/base-ui/src/views/app.module.less b/packages/base-ui/src/views/app.module.less
index 3fe920acd0..b349e02898 100644
--- a/packages/base-ui/src/views/app.module.less
+++ b/packages/base-ui/src/views/app.module.less
@@ -1,10 +1,13 @@
.app {
&-layout {
- height: 100%;
- -webkit-font-smoothing: antialiased;
- background-color: rgb(var(--bg-color));
display: flex;
flex-direction: column;
+
+ height: 100%;
+
+ background-color: rgb(var(--bg-color));
+
+ -webkit-font-smoothing: antialiased;
}
&-header {
@@ -12,17 +15,18 @@
}
&-container {
- flex: 1;
display: grid;
grid-template-columns: 1fr auto;
+ flex: 1;
&-main {
- border-top: 1px solid rgb(var(--border-color));
- border-bottom: 1px solid rgb(var(--border-color));
overflow: hidden;
display: grid;
grid-template-rows: auto 1fr;
+ border-top: 1px solid rgb(var(--border-color));
+ border-bottom: 1px solid rgb(var(--border-color));
+
&&-collapsed {
border-right: 1px solid rgb(var(--border-color));
border-top-right-radius: var(--border-radius-lg);
diff --git a/packages/base-ui/src/views/components/doc-bars/Button/index.module.less b/packages/base-ui/src/views/components/doc-bars/Button/index.module.less
index 867e852c2a..e81c483573 100644
--- a/packages/base-ui/src/views/components/doc-bars/Button/index.module.less
+++ b/packages/base-ui/src/views/components/doc-bars/Button/index.module.less
@@ -1,27 +1,32 @@
@toolbar-btn-size: 24px;
.toolbar-btn {
+ cursor: pointer;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
width: @toolbar-btn-size;
height: @toolbar-btn-size;
padding: 0;
+
font-size: var(--font-size-base);
- background-color: transparent;
color: rgb(var(--text-color));
+
+ background-color: transparent;
border: none;
border-radius: var(--border-radius-base);
- display: flex;
- justify-content: center;
- align-items: center;
outline: none;
- cursor: pointer;
&:not([disabled]):hover {
background-color: rgb(var(--grey-100));
border-color: transparent;
}
+
&[disabled] {
- color: rgb(var(--grey-200));
cursor: not-allowed;
+ color: rgb(var(--grey-200));
}
&-active {
@@ -30,4 +35,3 @@
border-color: transparent;
}
}
-
diff --git a/packages/base-ui/src/views/components/doc-bars/index.module.less b/packages/base-ui/src/views/components/doc-bars/index.module.less
index 7c9288f714..acc4b63490 100644
--- a/packages/base-ui/src/views/components/doc-bars/index.module.less
+++ b/packages/base-ui/src/views/components/doc-bars/index.module.less
@@ -1,19 +1,25 @@
@toolbar-btn-size: 24px;
.menubar {
- height: 32px;
display: flex;
- justify-content: center;
- align-items: center;
gap: var(--margin-xs);
+ align-items: center;
+ justify-content: center;
+
+ height: 32px;
&-item {
+ cursor: pointer;
+
+ display: block;
+
padding: var(--padding-xs) var(--padding-sm);
+
font-size: var(--font-size-xs);
font-weight: 400;
+
border-radius: var(--border-radius-base);
- display: block;
- cursor: pointer;
+
transition: all 0.1s ease-in-out;
&:hover:not(&-active) {
@@ -29,53 +35,65 @@
.toolbar {
position: relative;
+
+ display: flex;
+ align-items: center;
+
+ box-sizing: border-box;
height: 32px;
padding: 0 var(--padding-xl);
- color: rgb(var(--text-color));
font-size: var(--font-size-base);
+ color: rgb(var(--text-color));
+
background-color: rgb(var(--bg-color-secondary));
- box-sizing: border-box;
- display: flex;
- align-items: center;
&-container {
- width: 100%;
- height: 100%;
display: flex;
+ gap: var(--margin-xs);
align-items: center;
justify-content: center;
- border-bottom: 1px solid rgb(var(--border-color));
+
box-sizing: border-box;
- gap: var(--margin-xs);
+ width: 100%;
+ height: 100%;
+
+ border-bottom: 1px solid rgb(var(--border-color));
}
&-group {
display: flex;
- align-items: center;
gap: var(--margin-xs);
+ align-items: center;
&:not(:last-child) {
&::after {
content: '';
+
+ display: block;
+
width: 1px;
height: 20px;
+
background-color: rgb(var(--border-color));
- display: block;
}
}
}
&-item {
&-select-button {
+ cursor: pointer;
+
position: relative;
+
+ display: flex;
+ gap: var(--margin-xs);
+ align-items: center;
+
height: @toolbar-btn-size;
padding: 0 var(--padding-xs);
+
border-radius: var(--border-radius-base);
- display: flex;
- align-items: center;
- cursor: pointer;
- gap: var(--margin-xs);
&:hover {
background-color: rgb(var(--grey-100));
@@ -83,11 +101,13 @@
}
&-arrow {
- height: 100%;
- color: rgb(var(--grey-400));
- font-size: 10px;
display: flex;
align-items: center;
+
+ height: 100%;
+
+ font-size: 10px;
+ color: rgb(var(--grey-400));
}
}
}
diff --git a/packages/base-ui/src/views/components/sidebar/index.module.less b/packages/base-ui/src/views/components/sidebar/index.module.less
index 03b2d67236..d850b55010 100644
--- a/packages/base-ui/src/views/components/sidebar/index.module.less
+++ b/packages/base-ui/src/views/components/sidebar/index.module.less
@@ -1,47 +1,56 @@
.sidebar {
position: relative;
+ transform: translateX(100%);
+
+ box-sizing: border-box;
width: 0;
height: 100%;
+
color: rgb(var(--text-color));
- box-sizing: border-box;
- transform: translateX(100%);
+
transition: all 0.15s;
&&-open {
+ transform: translateX(0);
width: 380px;
padding: 0 var(--margin-xs);
- transform: translateX(0);
}
&-container {
+ overflow-y: auto;
+ display: grid;
+ grid-template-rows: auto 1fr auto;
+
+ box-sizing: border-box;
width: 100%;
height: 0;
min-height: 100%;
margin: auto;
+
background-color: rgb(var(--bg-color-secondary));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-lg);
- box-sizing: border-box;
- overflow-y: auto;
- display: grid;
- grid-template-rows: auto 1fr auto;
}
&-header {
position: sticky;
top: 0;
+
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+
height: 44px;
padding: var(--padding-xl) var(--padding-xl) 0;
+
font-size: var(--font-size-lg);
font-weight: 500;
+
background: rgb(var(--bg-color-secondary));
- display: flex;
- justify-content: space-between;
- align-items: center;
&-close {
- color: rgb(var(--text-color-secondary));
cursor: pointer;
+ color: rgb(var(--text-color-secondary));
}
}
diff --git a/packages/design/src/components/avatar/index.module.less b/packages/design/src/components/avatar/index.module.less
index 62c17c6bd6..1c2e2e5f84 100644
--- a/packages/design/src/components/avatar/index.module.less
+++ b/packages/design/src/components/avatar/index.module.less
@@ -9,13 +9,16 @@
.avatar {
position: relative;
+
+ overflow: hidden;
+ display: inline-block;
+
color: rgb(var(--bg-color-secondary));
- white-space: nowrap;
text-align: center;
+ white-space: nowrap;
vertical-align: middle;
+
background: rgb(var(--grey-200));
- display: inline-block;
- overflow: hidden;
&-square {
border-radius: var(--border-radius-base);
@@ -37,9 +40,9 @@
background: transparent;
> img {
+ display: block;
width: 100%;
height: 100%;
- display: block;
}
}
}
diff --git a/packages/design/src/components/button/index.module.less b/packages/design/src/components/button/index.module.less
index 5a6b0edacb..4cc4d2b5ab 100644
--- a/packages/design/src/components/button/index.module.less
+++ b/packages/design/src/components/button/index.module.less
@@ -1,18 +1,23 @@
.button {
+ cursor: pointer;
+ user-select: none;
+
position: relative;
- white-space: nowrap;
- text-align: center;
+
+ display: inline-block;
+
line-height: 1;
+ text-align: center;
+ white-space: nowrap;
+
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-base);
- display: inline-block;
- cursor: pointer;
- user-select: none;
+
transition: all 0.15s;
&[disabled] {
- color: rgb(var(--grey-300));
cursor: not-allowed;
+ color: rgb(var(--grey-300));
}
/** type */
diff --git a/packages/design/src/components/checkbox/index.module.less b/packages/design/src/components/checkbox/index.module.less
index a78efe537b..08ee72b69b 100644
--- a/packages/design/src/components/checkbox/index.module.less
+++ b/packages/design/src/components/checkbox/index.module.less
@@ -1,13 +1,16 @@
@checkbox-size: 14px;
.checkbox {
- color: var(--text-color);
- font-size: var(--font-size-sm);
- box-sizing: border-box;
+ cursor: pointer;
+
display: inline-flex;
- align-items: center;
gap: var(--margin-xs);
- cursor: pointer;
+ align-items: center;
+
+ box-sizing: border-box;
+
+ font-size: var(--font-size-sm);
+ color: var(--text-color);
&:hover {
.checkbox-target-input {
@@ -22,8 +25,8 @@
}
&-disabled {
- color: rgb(var(--grey-300));
cursor: not-allowed;
+ color: rgb(var(--grey-300));
.checkbox-target-input {
&:checked + .checkbox-target-inner {
@@ -59,39 +62,48 @@
background-color: rgb(var(--primary-color));
&::after {
- border-color: rgb(var(--bg-color-secondary));
transform: rotate(45deg) scale(1);
opacity: 1;
+ border-color: rgb(var(--bg-color-secondary));
}
}
}
&-inner {
position: relative;
+
+ overflow: hidden;
+ display: block;
+
+ box-sizing: border-box;
width: @checkbox-size;
height: @checkbox-size;
+
border: 1px solid rgb(var(--primary-color));
border-radius: var(--border-radius-base);
- display: block;
- box-sizing: border-box;
- overflow: hidden;
+
transition: all .15s;
&::after {
content: "";
+
position: absolute;
top: calc(50% - 5.5px);
left: calc(50% - 2.5px);
+ transform-origin: center center;
+ transform: rotate(45deg) scale(0);
+
+ display: block;
+
+ box-sizing: border-box;
width: calc(@checkbox-size / 2.6);
height: calc(@checkbox-size / 1.5);
+
+ opacity: 0;
border: 2px solid transparent;
border-top: 0;
border-left: 0;
- transform: rotate(45deg) scale(0);
- transform-origin: center center;
- opacity: 0;
- display: block;
- box-sizing: border-box;
+
transition: all .15s;
}
}
diff --git a/packages/design/src/components/color-picker/index.module.less b/packages/design/src/components/color-picker/index.module.less
index bdb8102ff4..0470c893b6 100644
--- a/packages/design/src/components/color-picker/index.module.less
+++ b/packages/design/src/components/color-picker/index.module.less
@@ -6,9 +6,12 @@
.color-picker {
position: absolute;
z-index: 1;
+
display: block;
+
width: max-content;
min-width: 272px;
+
visibility: visible;
&-hidden {
@@ -18,9 +21,12 @@
&-panel {
display: flex;
flex-direction: column;
+
width: 272px;
+
background-color: #fff;
border-radius: @outer-border-radius;
+
&-disabled {
cursor: not-allowed;
}
@@ -30,9 +36,10 @@
margin-bottom: var(--margin-xs);
.color-picker-palette {
- min-height: 160px;
overflow: hidden;
+ min-height: 160px;
border-radius: @inner-border-radius;
+
& > .color-picker-gradient {
border-top-left-radius: 5px;
}
@@ -41,69 +48,78 @@
&-saturation {
position: absolute;
- border-radius: inherit;
inset: 0;
+ border-radius: inherit;
}
&-handler {
box-sizing: border-box;
width: @default-handler-size;
height: @default-handler-size;
+
border: @handler-border-size solid #fff;
border-radius: 50%;
- box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.06);
+ box-shadow: 0 0 1px 1px rgb(0 0 0 / 6%);
}
&-slider {
width: 100%;
+
.color-picker-palette {
height: 8px;
}
+
.color-picker-gradient {
border-radius: @inner-border-radius;
}
}
&-custom-btn {
- color: rgb(var(--text-color));
- font-size: var(--font-size-base);
cursor: pointer;
+ font-size: var(--font-size-base);
+ color: rgb(var(--text-color));
}
&-cancel-btn {
- color: rgb(var(--text-color));
- font-size: var(--font-size-base);
cursor: pointer;
+ font-size: var(--font-size-base);
+ color: rgb(var(--text-color));
}
&-color-blocks {
- margin-bottom: var(--margin-xs);
display: grid;
grid-template-columns: repeat(10, 1fr);
grid-template-rows: repeat(9, 1fr);
gap: var(--margin-xs);
+
+ margin-bottom: var(--margin-xs);
}
&-color-block {
+ cursor: pointer;
+
position: relative;
+
+ overflow: hidden;
+
width: 20px;
height: 20px;
- overflow: hidden;
+
border-radius: @inner-border-radius;
- cursor: pointer;
&-inner {
+ box-sizing: border-box;
width: 100%;
height: 100%;
+
border: 1px solid rgb(var(--grey-600));
border-radius: @inner-border-radius;
- box-sizing: border-box;
}
}
&-slider-container {
- margin-bottom: var(--margin-xs);
display: flex;
+ margin-bottom: var(--margin-xs);
.color-picker-slider-group {
flex: 1;
diff --git a/packages/design/src/components/confirm/index.module.less b/packages/design/src/components/confirm/index.module.less
index 5cb8d0c787..2c75edee3d 100644
--- a/packages/design/src/components/confirm/index.module.less
+++ b/packages/design/src/components/confirm/index.module.less
@@ -1,7 +1,7 @@
.confirm {
&-footer {
display: flex;
- justify-content: flex-end;
gap: var(--margin-sm);
+ justify-content: flex-end;
}
}
diff --git a/packages/design/src/components/design-token/index.module.less b/packages/design/src/components/design-token/index.module.less
index dbe7ed7e7b..ccd038bc1f 100644
--- a/packages/design/src/components/design-token/index.module.less
+++ b/packages/design/src/components/design-token/index.module.less
@@ -1,10 +1,12 @@
.palette {
table {
+ border-spacing: 0;
+ border-collapse: collapse;
+
width: 100%;
- color: rgb(var(--text-color));
+
font-size: var(--font-size-sm);
- border-collapse: collapse;
- border-spacing: 0;
+ color: rgb(var(--text-color));
th,
td {
diff --git a/packages/design/src/components/dialog/index.module.less b/packages/design/src/components/dialog/index.module.less
index cd31718483..cb30b75872 100644
--- a/packages/design/src/components/dialog/index.module.less
+++ b/packages/design/src/components/dialog/index.module.less
@@ -5,14 +5,14 @@
&-wrap {
position: fixed;
- overflow: auto;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
z-index: 1050;
- -webkit-overflow-scrolling: touch;
+ inset: 0;
+
+ overflow: auto;
+
outline: 0;
+
+ -webkit-overflow-scrolling: touch;
}
&-title {
@@ -23,7 +23,9 @@
&-content {
position: relative;
+
color: rgb(var(--text-color));
+
background-color: rgb(var(--bg-color-secondary));
background-clip: padding-box;
border: 1px solid rgb(var(--border-color));
@@ -32,19 +34,23 @@
}
&-close {
+ cursor: pointer;
+
position: absolute;
- right: 28px;
top: 24px;
+ right: 28px;
+
padding: 0;
+
font-size: var(--font-size-base);
font-weight: 500;
line-height: 1;
- text-decoration: none;
color: rgb(var(--text-color));
+ text-decoration: none;
+
+ opacity: .2;
background: transparent;
border: 0;
- opacity: .2;
- cursor: pointer;
&:hover {
text-decoration: none;
@@ -53,18 +59,18 @@
}
&-header {
- padding: 24px 28px 20px 28px;
+ box-sizing: border-box;
+ padding: 24px 28px 20px;
color: rgb(var(--text-color));
border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
- box-sizing: border-box;
}
&-body {
- padding: 0 28px 20px 28px;
+ padding: 0 28px 20px;
}
&-footer {
- padding: 0 28px 24px 28px;
+ padding: 0 28px 24px;
text-align: right;
border-radius: 0 0 5px 5px;
}
@@ -76,57 +82,59 @@
&-zoom-enter, &-zoom-appear {
opacity: 0;
- .effect();
- animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
+ .effect();
}
&-zoom-leave {
.effect();
- animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
+
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
}
&-zoom-enter&-zoom-enter-active, &-zoom-appear&-zoom-appear-active {
- animation-name: rcDialogZoomIn;
+ animation-name: dialog-zoom-in;
animation-play-state: running;
}
&-zoom-leave&-zoom-leave-active {
- animation-name: rcDialogZoomOut;
+ animation-name: dialog-zoom-out;
animation-play-state: running;
}
- @keyframes rcDialogZoomIn {
+ @keyframes dialog-zoom-in {
0% {
- opacity: 0;
transform: scale(0, 0);
+ opacity: 0;
}
+
100% {
- opacity: 1;
transform: scale(1, 1);
+ opacity: 1;
}
}
- @keyframes rcDialogZoomOut {
- 0% {
+ @keyframes dialog-zoom-out {
+ 0% {
transform: scale(1, 1);
}
+
100% {
- opacity: 0;
transform: scale(0, 0);
+ opacity: 0;
}
}
&-mask {
position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.5);
z-index: 1050;
+ inset: 0;
+
+ height: 100%;
+
+ background-color: rgb(0 0 0 / 50%);
&-hidden {
display: none;
@@ -135,44 +143,48 @@
.fade-effect() {
animation-duration: 0.3s;
- animation-fill-mode: both;
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
+ animation-fill-mode: both;
}
&-fade-enter,&-fade-appear {
opacity: 0;
.fade-effect();
+
animation-play-state: paused;
}
&-fade-leave {
.fade-effect();
+
animation-play-state: paused;
}
&-fade-enter&-fade-enter-active,&-fade-appear&-fade-appear-active {
- animation-name: rcDialogFadeIn;
+ animation-name: dialog-fade-in;
animation-play-state: running;
}
&-fade-leave&-fade-leave-active {
- animation-name: rcDialogFadeOut;
+ animation-name: dialog-fade-out;
animation-play-state: running;
}
- @keyframes rcDialogFadeIn {
+ @keyframes dialog-fade-in {
0% {
opacity: 0;
}
+
100% {
opacity: 1;
}
}
- @keyframes rcDialogFadeOut {
+ @keyframes dialog-fade-out {
0% {
opacity: 1;
}
+
100% {
opacity: 0;
}
diff --git a/packages/design/src/components/dropdown/index.module.less b/packages/design/src/components/dropdown/index.module.less
index 0efae07d71..2bbddefc9a 100644
--- a/packages/design/src/components/dropdown/index.module.less
+++ b/packages/design/src/components/dropdown/index.module.less
@@ -1,8 +1,9 @@
.dropdown {
position: absolute;
- left: -9999px;
- top: -9999px;
z-index: 1070;
+ top: -9999px;
+ left: -9999px;
+
display: block;
&-hidden {
@@ -10,24 +11,26 @@
}
.effect() {
- animation-duration: 0.15s;
- animation-fill-mode: both;
transform-origin: 0 0;
display: block !important;
+ animation-duration: 0.15s;
+ animation-fill-mode: both;
}
&-slide-up-enter,&-slide-up-appear {
.effect();
+
opacity: 0;
- animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
}
&-slide-up-leave {
.effect();
+
opacity: 1;
- animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
}
&-slide-up-enter&-slide-up-enter-active&-placement-bottomLeft,
@@ -36,7 +39,7 @@
&-slide-up-appear&-slide-up-appear-active&-placement-bottomCenter,
&-slide-up-enter&-slide-up-enter-active&-placement-bottomRight,
&-slide-up-appear&-slide-up-appear-active&-placement-bottomRight {
- animation-name: rcDropdownSlideUpIn;
+ animation-name: dropdown-slide-up-in;
animation-play-state: running;
}
@@ -46,71 +49,77 @@
&-slide-up-appear&-slide-up-appear-active&-placement-topCenter,
&-slide-up-enter&-slide-up-enter-active&-placement-topRight,
&-slide-up-appear&-slide-up-appear-active&-placement-topRight {
- animation-name: rcDropdownSlideDownIn;
+ animation-name: dropdown-slide-down-in;
animation-play-state: running;
}
&-slide-up-leave&-slide-up-leave-active&-placement-bottomLeft,
&-slide-up-leave&-slide-up-leave-active&-placement-bottomCenter,
&-slide-up-leave&-slide-up-leave-active&-placement-bottomRight {
- animation-name: rcDropdownSlideUpOut;
+ animation-name: dropdown-slide-up-out;
animation-play-state: running;
}
&-slide-up-leave&-slide-up-leave-active&-placement-topLeft,
&-slide-up-leave&-slide-up-leave-active&-placement-topCenter,
&-slide-up-leave&-slide-up-leave-active&-placement-topRight {
- animation-name: rcDropdownSlideDownOut;
+ animation-name: dropdown-slide-down-out;
animation-play-state: running;
}
- @keyframes rcDropdownSlideUpIn {
+ @keyframes dropdown-slide-up-in {
0% {
- opacity: 0;
transform-origin: 0% 0%;
transform: scaleY(0);
+ opacity: 0;
}
+
100% {
- opacity: 1;
transform-origin: 0% 0%;
transform: scaleY(1);
+ opacity: 1;
}
}
- @keyframes rcDropdownSlideUpOut {
+
+ @keyframes dropdown-slide-up-out {
0% {
- opacity: 1;
transform-origin: 0% 0%;
transform: scaleY(1);
+ opacity: 1;
}
+
100% {
- opacity: 0;
transform-origin: 0% 0%;
transform: scaleY(0);
+ opacity: 0;
}
}
- @keyframes rcDropdownSlideDownIn {
+ @keyframes dropdown-slide-down-in {
0% {
- opacity: 0;
transform-origin: 0% 100%;
transform: scaleY(0);
+ opacity: 0;
}
+
100% {
- opacity: 1;
transform-origin: 0% 100%;
transform: scaleY(1);
+ opacity: 1;
}
}
- @keyframes rcDropdownSlideDownOut {
+
+ @keyframes dropdown-slide-down-out {
0% {
- opacity: 1;
transform-origin: 0% 100%;
transform: scaleY(1);
+ opacity: 1;
}
+
100% {
- opacity: 0;
transform-origin: 0% 100%;
transform: scaleY(0);
+ opacity: 0;
}
}
}
diff --git a/packages/design/src/components/input-number/index.module.less b/packages/design/src/components/input-number/index.module.less
index 1f645c965e..4a7101ca74 100644
--- a/packages/design/src/components/input-number/index.module.less
+++ b/packages/design/src/components/input-number/index.module.less
@@ -1,14 +1,18 @@
.input-number {
display: inline-block;
+
height: 26px;
margin: 0;
padding: 0;
+
font-size: 12px;
line-height: 26px;
vertical-align: middle;
+
background-color: rgb(var(--bg-color-secondary));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-base);
+
transition: all 0.3s;
&-focused,
@@ -28,24 +32,26 @@
// }
&-handler {
- text-align: center;
touch-action: none;
+ cursor: pointer;
+
overflow: hidden;
display: flex;
- justify-content: center;
align-items: center;
- cursor: pointer;
+ justify-content: center;
+
+ text-align: center;
}
&-handler-up-inner,
&-handler-down-inner {
- color: rgb(var(--text-color));
user-select: none;
+ color: rgb(var(--text-color));
}
&-disabled:hover {
- border-color: rgb(var(--border-color));
cursor: not-allowed;
+ border-color: rgb(var(--border-color));
.input-number-handler-up,
.input-number-handler-wrap {
@@ -54,30 +60,36 @@
}
&-input-wrap {
- height: 100%;
overflow: hidden;
+ height: 100%;
}
&-input {
width: 100%;
height: 100%;
padding: 0;
- color: rgb(var(--text-color));
+
line-height: 26px;
+ color: rgb(var(--text-color));
text-align: center;
+
border: 0;
border-radius: var(--border-radius-base);
outline: 0;
+
transition: all 0.15s;
}
&-handler-wrap {
float: right;
+ display: flex;
+ flex-direction: column;
+
width: 20px;
height: 100%;
+
border-left: 1px solid rgb(var(--border-color));
- display: flex;
- flex-direction: column;
+
transition: all 0.3s;
}
@@ -86,7 +98,7 @@
transition: all 0.15s;
&-inner {
- &:after {
+ &::after {
content: '+';
}
}
@@ -96,7 +108,7 @@
transition: all 0.15s;
&-inner {
- &:after {
+ &::after {
content: '-';
}
}
@@ -104,6 +116,7 @@
.handler-disabled() {
opacity: 0.3;
+
&:hover {
color: #999;
border-color: rgb(var(--grey-200));
@@ -119,6 +132,7 @@
.input-number-input {
cursor: not-allowed;
}
+
.input-number-handler {
.handler-disabled();
}
diff --git a/packages/design/src/components/input/index.module.less b/packages/design/src/components/input/index.module.less
index 563aefefe3..58f65b8df6 100644
--- a/packages/design/src/components/input/index.module.less
+++ b/packages/design/src/components/input/index.module.less
@@ -1,6 +1,6 @@
.input {
- color: rgb(var(--text-color));
box-sizing: border-box;
+ color: rgb(var(--text-color));
&::selection {
color: rgb(var(--color-white));
@@ -12,30 +12,33 @@
// }
&-affix-wrapper {
+ overflow: hidden;
+
+ box-sizing: border-box;
+
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-base);
- box-sizing: border-box;
- overflow: hidden;
+
transition: all 0.15s;
&-mini {
- font-size: var(--font-size-xs);
padding: 2px var(--padding-lg);
+ font-size: var(--font-size-xs);
}
&-small {
- font-size: var(--font-size-xs);
padding: 6px var(--padding-lg);
+ font-size: var(--font-size-xs);
}
&-middle {
- font-size: var(--font-size-sm);
padding: 6px var(--padding-lg);
+ font-size: var(--font-size-sm);
}
&-large {
- font-size: var(--font-size-sm);
padding: 8px var(--padding-lg);
+ font-size: var(--font-size-sm);
}
&:hover,
@@ -44,8 +47,8 @@
}
&-disabled {
- border-color: rgb(var(--border-color));
cursor: not-allowed;
+ border-color: rgb(var(--border-color));
&:hover {
border-color: rgb(var(--border-color));
@@ -56,10 +59,11 @@
padding: 0;
border: none;
outline: none;
+
&[disabled] {
+ cursor: inherit;
color: rgb(var(--grey-200));
background-color: rgb(var(--bg-color-secondary));
- cursor: inherit;
}
}
}
diff --git a/packages/design/src/components/layout/index.module.less b/packages/design/src/components/layout/index.module.less
index fc17c39358..47bbd295f2 100644
--- a/packages/design/src/components/layout/index.module.less
+++ b/packages/design/src/components/layout/index.module.less
@@ -1,9 +1,10 @@
.layout-wrapper {
- height: 100%;
+ overflow: hidden;
display: flex;
flex: auto;
flex-direction: column;
- overflow: hidden;
+
+ height: 100%;
min-height: 0;
&&-has-sider {
@@ -12,8 +13,8 @@
}
.header-wrapper {
- flex: 0 0 auto;
user-select: none;
+ flex: 0 0 auto;
}
.footer-wrapper {
diff --git a/packages/design/src/components/menu/index.module.less b/packages/design/src/components/menu/index.module.less
index 5bc531edab..ee39dff8ca 100644
--- a/packages/design/src/components/menu/index.module.less
+++ b/packages/design/src/components/menu/index.module.less
@@ -1,14 +1,16 @@
.menu {
- padding: var(--padding-base);
+ box-sizing: border-box;
margin: 0;
+ padding: var(--padding-base);
+
font-size: var(--font-size-xs);
list-style: none;
+
background-color: rgb(var(--bg-color-secondary));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-lg);
- box-shadow: var(--box-shadow-base);
- box-sizing: border-box;
outline: none;
+ box-shadow: var(--box-shadow-base);
&-vertical {
display: grid;
@@ -30,10 +32,10 @@
}
&-item-group-list {
- margin: 0;
- padding: 0;
display: grid;
gap: var(--margin-xxs);
+ margin: 0;
+ padding: 0;
}
&-item-group-title {
@@ -46,9 +48,9 @@
}
&-item-selected {
- background-color: rgb(var(--bg-color-hover));
// fix chrome render bug
transform: translateZ(0);
+ background-color: rgb(var(--bg-color-hover));
}
&-submenu-selected {
@@ -69,20 +71,24 @@
&-item {
display: flex;
- align-items: center;
gap: var(--margin-xs);
+ align-items: center;
}
&-item,
&-submenu {
+ cursor: pointer;
+
position: relative;
+
+ box-sizing: border-box;
margin: 0;
padding: var(--padding-xs);
+
white-space: nowrap;
- border-radius: var(--border-radius-base);
list-style: none;
- box-sizing: border-box;
- cursor: pointer;
+
+ border-radius: var(--border-radius-base);
// Disabled state sets text to gray and nukes hover/tab effects
&.menu-item-disabled,
@@ -111,17 +117,19 @@
.menu-item {
&-more-icon {
margin-left: var(--margin-xs);
- color: rgb(var(--text-color));
font-size: var(--font-size-sm);
+ color: rgb(var(--text-color));
}
}
&-horizontal {
+ overflow: hidden;
+
+ white-space: nowrap;
+
border: none;
border-bottom: 1px solid rgb(var(--border-color));
box-shadow: none;
- white-space: nowrap;
- overflow: hidden;
& > .menu-item,
& > .menu-submenu > .menu-submenu-title {
@@ -130,9 +138,9 @@
& > .menu-submenu,
& > .menu-item {
- border-bottom: 2px solid transparent;
display: inline-block;
vertical-align: bottom;
+ border-bottom: 2px solid transparent;
}
}
@@ -142,24 +150,28 @@
&-inline {
& > .menu-item,
& > .menu-submenu > .menu-submenu-title {
- width: 100%;
- min-height: 28px;
- padding: var(--padding-xs) var(--padding-sm);
- box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
+
+ box-sizing: border-box;
+ width: 100%;
+ min-height: 28px;
+ padding: var(--padding-xs) var(--padding-sm);
}
+
.menu-submenu-arrow {
+ position: absolute;
+ right: 16px;
+
display: inline-block;
+
font-size: inherit;
- vertical-align: baseline;
+ line-height: 1.5em;
text-align: center;
text-transform: none;
text-rendering: auto;
- position: absolute;
- right: 16px;
- line-height: 1.5em;
+ vertical-align: baseline;
}
}
@@ -172,111 +184,120 @@
& > .menu-item,
& > .menu-submenu > .menu-submenu-title {
padding-top: 8px;
- padding-bottom: 8px;
padding-right: 0;
+ padding-bottom: 8px;
}
}
.effect() {
+ transform-origin: 0 0;
animation-duration: 0.3s;
animation-fill-mode: both;
- transform-origin: 0 0;
}
&-open {
&-slide-up-enter,
&-slide-up-appear {
.effect();
+
opacity: 0;
- animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
}
&-slide-up-leave {
.effect();
+
opacity: 1;
- animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
}
&-slide-up-enter&-slide-up-enter-active,
&-slide-up-appear&-slide-up-appear-active {
- animation-name: rcMenuOpenSlideUpIn;
+ animation-name: menu-open-slide-up-in;
animation-play-state: running;
}
&-slide-up-leave&-slide-up-leave-active {
- animation-name: rcMenuOpenSlideUpOut;
+ animation-name: menu-open-slide-up-out;
animation-play-state: running;
}
- @keyframes rcMenuOpenSlideUpIn {
+ @keyframes menu-open-slide-up-in {
0% {
- opacity: 0;
transform-origin: 0% 0%;
transform: scaleY(0);
+ opacity: 0;
}
+
100% {
- opacity: 1;
transform-origin: 0% 0%;
transform: scaleY(1);
+ opacity: 1;
}
}
- @keyframes rcMenuOpenSlideUpOut {
+
+ @keyframes menu-open-slide-up-out {
0% {
- opacity: 1;
transform-origin: 0% 0%;
transform: scaleY(1);
+ opacity: 1;
}
+
100% {
- opacity: 0;
transform-origin: 0% 0%;
transform: scaleY(0);
+ opacity: 0;
}
}
&-zoom-enter,
&-zoom-appear {
opacity: 0;
- .effect();
- animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
+ .effect();
}
&-zoom-leave {
.effect();
- animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
+
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
}
&-zoom-enter&-zoom-enter-active,
&-zoom-appear&-zoom-appear-active {
- animation-name: rcMenuOpenZoomIn;
+ animation-name: menu-open-zoom-in;
animation-play-state: running;
}
&-zoom-leave&-zoom-leave-active {
- animation-name: rcMenuOpenZoomOut;
+ animation-name: menu-open-zoom-out;
animation-play-state: running;
}
- @keyframes rcMenuOpenZoomIn {
+ @keyframes menu-open-zoom-in {
0% {
- opacity: 0;
transform: scale(0, 0);
+ opacity: 0;
}
+
100% {
- opacity: 1;
transform: scale(1, 1);
+ opacity: 1;
}
}
- @keyframes rcMenuOpenZoomOut {
+
+ @keyframes menu-open-zoom-out {
0% {
transform: scale(1, 1);
}
+
100% {
- opacity: 0;
transform: scale(0, 0);
+ opacity: 0;
}
}
}
diff --git a/packages/design/src/components/message/index.module.less b/packages/design/src/components/message/index.module.less
index 5841ed2108..31e2dd46f8 100644
--- a/packages/design/src/components/message/index.module.less
+++ b/packages/design/src/components/message/index.module.less
@@ -3,6 +3,7 @@
top: var(--margin-sm);
left: 50%;
transform: translateX(-50%);
+
display: grid;
gap: var(--margin-sm);
@@ -13,24 +14,24 @@
transition: all .2s cubic-bezier(0.1, 0.7, 1.0, 0.1);
&.enter-active {
- opacity: 0;
transform: translateY(-20px);
+ opacity: 0;
}
&.enter-done {
- opacity: 1;
transform: translateY(0);
+ opacity: 1;
}
&.exit {
+ transform: translateY(-20px);
margin-bottom: -40px;
opacity: 0;
- transform: translateY(-20px);
}
&.exit-active {
- opacity: 0;
transform: translateY(-20px);
+ opacity: 0;
}
}
@@ -52,13 +53,16 @@
}
&-content {
+ display: inline-flex;
+ gap: var(--margin-xs);
+ align-items: center;
+
padding: var(--padding-base);
+
font-size: var(--font-size-base);
+
background-color: rgb(var(--color-white));
border-radius: var(--border-radius-base);
box-shadow: var(--box-shadow-lg);
- display: inline-flex;
- align-items: center;
- gap: var(--margin-xs);
}
}
diff --git a/packages/design/src/components/radio/index.module.less b/packages/design/src/components/radio/index.module.less
index 9805dd703f..b5d216061c 100644
--- a/packages/design/src/components/radio/index.module.less
+++ b/packages/design/src/components/radio/index.module.less
@@ -1,13 +1,16 @@
@radio-size: 12px;
.radio {
- color: var(--text-color);
- font-size: var(--font-size-sm);
- box-sizing: border-box;
+ cursor: pointer;
+
display: inline-flex;
- align-items: center;
gap: var(--margin-xs);
- cursor: pointer;
+ align-items: center;
+
+ box-sizing: border-box;
+
+ font-size: var(--font-size-sm);
+ color: var(--text-color);
&:hover {
.radio-target-input {
@@ -24,8 +27,8 @@
}
&-disabled {
- color: rgb(var(--grey-300));
cursor: not-allowed;
+ color: rgb(var(--grey-300));
.radio-target-input {
&:checked + .radio-target-inner {
@@ -63,37 +66,46 @@
&:checked + .radio-target-inner {
&::after {
- background-color: rgb(var(--primary-color));
transform: scale(1);
- opacity: 1;
box-sizing: border-box;
+ opacity: 1;
+ background-color: rgb(var(--primary-color));
}
}
}
&-inner {
position: relative;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ box-sizing: border-box;
width: @radio-size;
height: @radio-size;
+
border: 1px solid rgb(var(--primary-color));
border-radius: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
- box-sizing: border-box;
+
transition: all .15s;
&::after {
content: "";
+
+ transform-origin: center center;
+ transform: scale(0);
+
+ display: block;
+
+ box-sizing: border-box;
width: @radio-size - 4;
height: @radio-size - 4;
+
+ opacity: 0;
background-color: rgb(var(--bg-color-secondary));
border-radius: 50%;
- transform: scale(0);
- transform-origin: center center;
- opacity: 0;
- display: block;
- box-sizing: border-box;
+
transition: all .15s;
}
}
diff --git a/packages/design/src/components/select-list/index.module.less b/packages/design/src/components/select-list/index.module.less
index a64a2fb149..f79bff118c 100644
--- a/packages/design/src/components/select-list/index.module.less
+++ b/packages/design/src/components/select-list/index.module.less
@@ -1,23 +1,31 @@
.select-list {
- margin: 0;
+ overflow-y: auto;
+ display: grid;
+ gap: var(--margin-xs);
+
max-height: 348px;
+ margin: 0;
padding: var(--padding-lg) var(--padding-base);
+
+ list-style: none;
+
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-base);
- list-style: none;
- overflow-y: auto;
- display: grid;
- gap: var(--margin-xs);
&-item {
font-size: var(--font-size-sm);
> a {
+ cursor: pointer;
+
position: relative;
+
+ display: block;
+
padding: var(--padding-xs) 28px;
+
border-radius: var(--border-radius-base);
- display: block;
- cursor: pointer;
+
transition: all 0.15s;
&:hover {
@@ -29,10 +37,12 @@
position: absolute;
top: 50%;
left: var(--margin-xxs);
- color: rgb(var(--success-color));
- font-size: var(--font-size-lg);
transform: translateY(-50%);
+
display: inline-flex;
+
+ font-size: var(--font-size-lg);
+ color: rgb(var(--success-color));
}
&-select {
diff --git a/packages/design/src/components/select/index.module.less b/packages/design/src/components/select/index.module.less
index 1181bc51d1..727518e1cf 100644
--- a/packages/design/src/components/select/index.module.less
+++ b/packages/design/src/components/select/index.module.less
@@ -10,8 +10,8 @@
}
.@{select-prefix} {
- display: inline-block;
position: relative;
+ display: inline-block;
&-disabled {
&,
@@ -27,31 +27,33 @@
&-show-arrow&-loading {
.@{select-prefix}-arrow {
&-icon::after {
+ transform: none;
+
box-sizing: border-box;
width: 12px;
height: 12px;
- border-radius: 100%;
+ margin-top: 4px;
+
border: 2px solid #999;
border-top-color: transparent;
border-bottom-color: transparent;
- transform: none;
- margin-top: 4px;
+ border-radius: 100%;
- animation: rcSelectLoadingIcon 0.5s infinite;
+ animation: select-loading-icon 0.5s infinite;
}
}
}
// ============== Selector ===============
.@{select-prefix}-selection-placeholder {
- opacity: 0.4;
pointer-events: none;
+ opacity: 0.4;
}
// ============== Search ===============
.@{select-prefix}-selection-search-input {
- color: rgb(var(--text-color));
font-size: var(--font-size-sm);
+ color: rgb(var(--text-color));
appearance: none;
&::-webkit-search-cancel-button {
@@ -64,9 +66,12 @@
&-single {
.@{select-prefix}-selector {
position: relative;
- padding: var(--padding-sm) var(--padding-lg);
- box-sizing: border-box;
+
display: flex;
+
+ box-sizing: border-box;
+ padding: var(--padding-sm) var(--padding-lg);
+
transition: all .15s;
.@{select-prefix}-selection-search {
@@ -80,11 +85,13 @@
.@{select-prefix}-selection-item,
.@{select-prefix}-selection-placeholder {
+ pointer-events: none;
+
position: absolute;
top: 6px;
left: 16px;
+
font-size: var(--font-size-sm);
- pointer-events: none;
}
}
@@ -108,11 +115,13 @@
.@{select-prefix}-selection-item {
flex: none;
- background: #bbb;
- border-radius: 4px;
+
margin-right: 2px;
padding: 0 8px;
+ background: #bbb;
+ border-radius: 4px;
+
&-disabled {
cursor: not-allowed;
opacity: 0.5;
@@ -136,17 +145,18 @@
&-input,
&-mirror {
- padding: var(--padding-xs) var(--padding-sm);
box-sizing: border-box;
+ padding: var(--padding-xs) var(--padding-sm);
}
&-mirror {
- position: absolute;
- z-index: 999;
- white-space: nowrap;
position: none;
- left: 0;
+ z-index: 999;
top: 0;
+ left: 0;
+
+ white-space: nowrap;
+
visibility: hidden;
}
}
@@ -162,8 +172,8 @@
.@{select-prefix}-clear {
position: absolute;
- right: 20px;
top: 0;
+ right: 20px;
}
}
@@ -175,17 +185,21 @@
.@{select-prefix}-arrow {
pointer-events: none;
position: absolute;
- right: 5px;
top: 0;
+ right: 5px;
&-icon::after {
content: '';
- border: 5px solid transparent;
+
+ transform: translateY(5px);
+
+ display: inline-block;
+
width: 0;
height: 0;
- display: inline-block;
+
+ border: 5px solid transparent;
border-top-color: #999;
- transform: translateY(5px);
}
}
}
@@ -201,7 +215,9 @@
// ============== Dropdown ===============
&-dropdown {
position: absolute;
+
min-height: 100px;
+
background: rgb(var(--bg-color-secondary));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-base);
@@ -219,9 +235,9 @@
// >>> Group
&-group {
- color: #999;
- font-weight: bold;
font-size: 80%;
+ font-weight: bold;
+ color: #999;
}
// >>> Option
@@ -233,10 +249,10 @@
}
.@{select-prefix}-item-option-state {
+ pointer-events: none;
position: absolute;
- right: 0;
top: 4px;
- pointer-events: none;
+ right: 0;
}
// ------- Active -------
@@ -252,8 +268,8 @@
// >>> Empty
&-empty {
- text-align: center;
color: #999;
+ text-align: center;
}
}
}
@@ -263,57 +279,59 @@
}
.@{select-prefix}-selection__choice-zoom-appear {
- opacity: 0;
transform: scale(0.5);
+ opacity: 0;
&&-active {
- opacity: 1;
transform: scale(1);
+ opacity: 1;
}
}
.@{select-prefix}-selection__choice-zoom-leave {
- opacity: 1;
transform: scale(1);
+ opacity: 1;
&&-active {
- opacity: 0;
transform: scale(0.5);
+ opacity: 0;
}
}
.effect() {
+ transform-origin: 0 0;
animation-duration: 0.3s;
animation-fill-mode: both;
- transform-origin: 0 0;
}
.@{select-prefix}-dropdown {
&-slide-up-enter,
&-slide-up-appear {
.effect();
+
opacity: 0;
- animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.08, 0.82, 0.17, 1);
}
&-slide-up-leave {
.effect();
+
opacity: 1;
- animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
animation-play-state: paused;
+ animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.34);
}
&-slide-up-enter&-slide-up-enter-active&-placement-bottomLeft,
&-slide-up-appear&-slide-up-appear-active&-placement-bottomLeft,
&-slide-up-enter&-slide-up-enter-active&-placement-bottomRight,
&-slide-up-appear&-slide-up-appear-active&-placement-bottomRight {
- animation-name: rcSelectDropdownSlideUpIn;
+ animation-name: select-dropdown-slide-up-in;
animation-play-state: running;
}
&-slide-up-leave&-slide-up-leave-active&-placement-bottomLeft,
&-slide-up-leave&-slide-up-leave-active&-placement-bottomRight {
- animation-name: rcSelectDropdownSlideUpOut;
+ animation-name: select-dropdown-slide-up-out;
animation-play-state: running;
}
@@ -321,74 +339,78 @@
&-slide-up-appear&-slide-up-appear-active&-placement-topLeft,
&-slide-up-enter&-slide-up-enter-active&-placement-topRight,
&-slide-up-appear&-slide-up-appear-active&-placement-topRight {
- animation-name: rcSelectDropdownSlideDownIn;
+ animation-name: select-dropdown-slide-down-in;
animation-play-state: running;
}
&-slide-up-leave&-slide-up-leave-active&-placement-topLeft,
&-slide-up-leave&-slide-up-leave-active&-placement-topRight {
- animation-name: rcSelectDropdownSlideDownOut;
+ animation-name: select-dropdown-slide-down-out;
animation-play-state: running;
}
}
-@keyframes rcSelectDropdownSlideUpIn {
+@keyframes select-dropdown-slide-up-in {
0% {
- opacity: 0;
transform-origin: 0% 0%;
transform: scaleY(0);
+ opacity: 0;
}
+
100% {
- opacity: 1;
transform-origin: 0% 0%;
transform: scaleY(1);
+ opacity: 1;
}
}
-@keyframes rcSelectDropdownSlideUpOut {
+
+@keyframes select-dropdown-slide-up-out {
0% {
- opacity: 1;
transform-origin: 0% 0%;
transform: scaleY(1);
+ opacity: 1;
}
+
100% {
- opacity: 0;
transform-origin: 0% 0%;
transform: scaleY(0);
+ opacity: 0;
}
}
-@keyframes rcSelectDropdownSlideDownIn {
+@keyframes select-dropdown-slide-down-in {
0% {
- transform: scaleY(0);
transform-origin: 100% 100%;
+ transform: scaleY(0);
opacity: 0;
}
100% {
- transform: scaleY(1);
transform-origin: 100% 100%;
+ transform: scaleY(1);
opacity: 1;
}
}
-@keyframes rcSelectDropdownSlideDownOut {
+@keyframes select-dropdown-slide-down-out {
0% {
- transform: scaleY(1);
transform-origin: 100% 100%;
+ transform: scaleY(1);
opacity: 1;
}
100% {
- transform: scaleY(0);
transform-origin: 100% 100%;
+ transform: scaleY(0);
opacity: 0;
}
}
-@keyframes rcSelectLoadingIcon {
+@keyframes select-loading-icon {
0% {
transform: rotate(0);
}
+
100% {
transform: rotate(360deg);
}
diff --git a/packages/design/src/components/slider/index.module.less b/packages/design/src/components/slider/index.module.less
index 1170badf6f..93189173f0 100644
--- a/packages/design/src/components/slider/index.module.less
+++ b/packages/design/src/components/slider/index.module.less
@@ -17,16 +17,18 @@
.slider {
display: flex;
- align-items: center;
gap: var(--margin-xxs);
+ align-items: center;
&-rail {
@padding: (@slider-handle-size / 2);
position: relative;
+
width: @slider-width;
height: @slider-height;
padding: 0 @padding;
+
background-color: @slider-bg;
border-radius: @slider-radius;
}
@@ -37,16 +39,21 @@
}
&-handle {
+ cursor: pointer;
+
position: absolute;
top: calc(50% - @slider-handle-size / 2);
+ transform: translateX(-50%);
+
width: @slider-handle-size;
height: @slider-handle-size;
+
background-color: rgb(var(--color-white));
border-radius: 50%;
- box-shadow: 0 0 6px 0 rgba(0, 0, 0, .1);
- transform: translateX(-50%);
- cursor: pointer;
+ box-shadow: 0 0 6px 0 rgb(0 0 0 / 10%);
+
transition: background .2s;
+
&:hover {
background-color: @slider-parts-hover-color;
box-shadow: none;
@@ -54,28 +61,36 @@
}
&-reset-point {
+ cursor: pointer;
+
position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+
+ box-sizing: border-box;
width: @slider-height * 2;
height: @slider-height;
+
background-color: rgb(var(--color-white));
border-radius: 50%;
- top: 50%;
- left: 50%;
- box-sizing: border-box;
- transform: translate(-50%, -50%);
- cursor: pointer;
}
&-value {
+ cursor: pointer;
+
width: @slider-value-width;
height: @slider-value-height;
- text-align: center;
- color: rgb(var(--text-color-secondary));
+
font-size: var(--font-size-xs);
line-height: 2;
+ color: rgb(var(--text-color-secondary));
+ text-align: center;
+
border-radius: var(--border-radius-base);
- cursor: pointer;
+
transition: all .2s;
+
&:hover {
background-color: @slider-parts-hover-color;
}
@@ -86,27 +101,36 @@
}
&-shortcuts {
+ transform: translateX(-(@slider-value-width / 2));
+
+ display: grid;
+ gap: var(--margin-xxs);
+ align-items: center;
+
+ box-sizing: border-box;
width: 128px;
padding: var(--padding-sm);
+
font-size: var(--font-size-xs);
+
background-color: rgb(var(--color-white));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-lg);
box-shadow: var(--box-shadow-lg);
- box-sizing: border-box;
- display: grid;
- align-items: center;
- gap: var(--margin-xxs);
- transform: translateX(-(@slider-value-width / 2));
}
&-shortcut {
+ cursor: pointer;
+
position: relative;
+
+ box-sizing: border-box;
padding: var(--padding-xs) 0 var(--padding-xs) 36px;
+
color: rgb(var(--text-color));
+
border-radius: var(--border-radius-base);
- box-sizing: border-box;
- cursor: pointer;
+
transition: background .2s;
&:hover {
@@ -116,8 +140,8 @@
&-shortcut-icon {
position: absolute;
- left: var(--padding-xs);
top: 50%;
+ left: var(--padding-xs);
transform: translateY(-50%);
}
diff --git a/packages/design/src/components/tooltip/index.module.less b/packages/design/src/components/tooltip/index.module.less
index 6fc506156d..bda8cd6acf 100644
--- a/packages/design/src/components/tooltip/index.module.less
+++ b/packages/design/src/components/tooltip/index.module.less
@@ -5,10 +5,13 @@
.tooltip {
position: absolute;
z-index: 4;
+
display: block;
- visibility: visible;
+
font-size: var(--font-size-base);
+ visibility: visible;
+
&-hidden {
display: none;
}
@@ -16,12 +19,15 @@
&-placement-top {
padding: @tooltip-arrow-width 0;
}
+
&-placement-right {
padding: 0 @tooltip-arrow-width;
}
+
&-placement-bottom {
padding: @tooltip-arrow-width;
}
+
&-placement-left {
padding: 0 @tooltip-arrow-width;
}
@@ -75,9 +81,11 @@
// Wrapper for the tooltip content
&-inner {
padding: var(--padding-xs) var(--padding-lg);
+
color: @tooltip-color;
text-align: left;
text-decoration: none;
+
background-color: @tooltip-bg;
border-radius: var(--border-radius-base);
}
@@ -85,8 +93,10 @@
// Arrows
&-arrow {
position: absolute;
+
width: 0;
height: 0;
+
border-color: transparent;
border-style: solid;
}
diff --git a/packages/sheets-plugin-find/src/views/ui/index.module.less b/packages/sheets-plugin-find/src/views/ui/index.module.less
index 872098dfd9..d6322e4d5a 100644
--- a/packages/sheets-plugin-find/src/views/ui/index.module.less
+++ b/packages/sheets-plugin-find/src/views/ui/index.module.less
@@ -15,16 +15,19 @@
}
p {
- text-align: center;
cursor: pointer;
+ text-align: center;
}
.box {
+ position: relative;
+
display: flex;
- font-size: 14px;
align-items: center;
+
margin-bottom: 1.5rem;
- position: relative;
+
+ font-size: 14px;
&:first-of-type {
margin-top: .5rem;
@@ -32,26 +35,28 @@
.count {
position: absolute;
+ z-index: 1;
top: 0;
right: 0;
- z-index: 1;
+
height: 36px;
+
line-height: 36px;
>span {
- padding: 0 5px;
cursor: pointer;
+ padding: 0 5px;
}
}
>span {
- width: 60px;
- flex-shrink: 0
+ flex-shrink: 0;
+ width: 60px
}
.select-component {
- height: 36px;
cursor: pointer;
+ height: 36px;
border: 1px solid #dadce0;
}
@@ -69,18 +74,20 @@
}
}
- .buttonGroup {
- margin-top: 2rem;
+ .button-group {
display: flex;
flex-direction: row-reverse;
+ margin-top: 2rem;
button {
- margin-left: .5rem;
- border-radius: 4px;
height: 36px;
+ margin-left: .5rem;
+ padding: 9px 24px 11px;
+
line-height: 16px;
letter-spacing: 0.25px;
- padding: 9px 24px 11px 24px;
+
+ border-radius: 4px;
}
}
}
\ No newline at end of file
diff --git a/packages/sheets-plugin-formula/src/views/prompt/help-function/index.module.less b/packages/sheets-plugin-formula/src/views/prompt/help-function/index.module.less
index f3cfbb624b..ac874da181 100644
--- a/packages/sheets-plugin-formula/src/views/prompt/help-function/index.module.less
+++ b/packages/sheets-plugin-formula/src/views/prompt/help-function/index.module.less
@@ -2,44 +2,53 @@
@max-height: 300px;
.formula-help-function {
+ user-select: none;
+
+ box-sizing: border-box;
width: @width;
- padding: var(--padding-xl);
margin: 0;
+ padding: var(--padding-xl);
+
font-size: var(--font-size-sm);
list-style: none;
+
background-color: rgb(var(--bg-color-secondary));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-lg);
- box-shadow: var(--box-shadow-base);
- box-sizing: border-box;
outline: none;
- user-select: none;
+ box-shadow: var(--box-shadow-base);
&-title {
display: flex;
- justify-content: space-between;
align-items: center;
+ justify-content: space-between;
+
font-size: var(--font-size-xs);
- color: rgb(var(--text-color));
font-weight: 500;
+ color: rgb(var(--text-color));
&-icons {
display: flex;
}
&-icon {
- color: rgb(var(--text-color-secondary));
cursor: pointer;
- outline: none;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
width: fit-content;
height: fit-content;
- padding: var(--padding-xs);
margin-left: var(--margin-sm);
+ padding: var(--padding-xs);
+
+ color: rgb(var(--text-color-secondary));
+
border-radius: var(--border-radius-base);
+ outline: none;
+
transition: background-color .2s;
- display: flex;
- align-items: center;
- justify-content: center;
&:hover {
background-color: rgb(var(--bg-color-hover));
@@ -49,8 +58,8 @@
}
&-content {
- max-height: @max-height;
overflow-y: auto;
+ max-height: @max-height;
&-inner {
margin-top: var(--padding-xl);
@@ -62,16 +71,16 @@
margin: var(--margin-xs) 0;
&-title {
+ margin-bottom: var(--margin-xs);
font-size: var(--font-size-xs);
- color: rgb(var(--text-color));
font-weight: 500;
- margin-bottom: var(--margin-xs);
+ color: rgb(var(--text-color));
}
&-detail {
font-size: var(--font-size-xxs);
- color: rgb(var(--text-color-secondary));
font-weight: 400;
+ color: rgb(var(--text-color-secondary));
}
}
}
@@ -82,10 +91,13 @@
}
.formula-help-decorator {
+ cursor: pointer;
+
position: absolute;
+
display: flex;
- padding: var(--padding-xs);
align-items: center;
justify-content: center;
- cursor: pointer;
+
+ padding: var(--padding-xs);
}
\ No newline at end of file
diff --git a/packages/sheets-plugin-formula/src/views/prompt/search-function/index.module.less b/packages/sheets-plugin-formula/src/views/prompt/search-function/index.module.less
index 30eea7ab8f..a4a586aa66 100644
--- a/packages/sheets-plugin-formula/src/views/prompt/search-function/index.module.less
+++ b/packages/sheets-plugin-formula/src/views/prompt/search-function/index.module.less
@@ -1,24 +1,30 @@
@width: 340px;
.formula-search-function {
+ box-sizing: border-box;
width: @width;
- padding: var(--padding-base);
margin: 0;
+ padding: var(--padding-base);
+
font-size: var(--font-size-sm);
list-style: none;
+
background-color: rgb(var(--bg-color-secondary));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-lg);
- box-shadow: var(--box-shadow-base);
- box-sizing: border-box;
outline: none;
+ box-shadow: var(--box-shadow-base);
&-item {
+ cursor: pointer;
+
+ box-sizing: border-box;
padding: var(--padding-sm);
+
color: rgb(var(--text-color));
+
border-radius: var(--border-radius-base);
- box-sizing: border-box;
- cursor: pointer;
+
transition: background .2s;
&-name {
diff --git a/packages/sheets-plugin-numfmt/src/views/ui/FormatItem.module.less b/packages/sheets-plugin-numfmt/src/views/ui/FormatItem.module.less
index f25cce97f5..f4c46eb6c6 100644
--- a/packages/sheets-plugin-numfmt/src/views/ui/FormatItem.module.less
+++ b/packages/sheets-plugin-numfmt/src/views/ui/FormatItem.module.less
@@ -1,17 +1,20 @@
.format-item {
- padding: 0 14px 0 25px;
+ position: relative;
+
display: flex;
align-items: center;
- position: relative;
justify-content: space-between;
+ padding: 0 14px 0 25px;
+
.format-item-selected {
- display: flex;
- align-items: center;
position: absolute;
- left: 5px;
top: 50%;
+ left: 5px;
transform: translateY(-50%) scale(1.5);
+
+ display: flex;
+ align-items: center;
}
.format-item-content {
diff --git a/packages/sheets-plugin-numfmt/src/views/ui/index.module.less b/packages/sheets-plugin-numfmt/src/views/ui/index.module.less
index 6f96205bcb..5e0cef2e37 100644
--- a/packages/sheets-plugin-numfmt/src/views/ui/index.module.less
+++ b/packages/sheets-plugin-numfmt/src/views/ui/index.module.less
@@ -5,25 +5,31 @@
input {
width: 80px;
height: 24px;
- padding: 0 5px;
margin-left: 5px;
+ padding: 0 5px;
}
}
ul {
- height: 240px;
- border: 1px solid var(--gray-5);
overflow-y: auto;
- list-style: none;
+
+ height: 240px;
padding: 0;
+ list-style: none;
+
+ border: 1px solid var(--gray-5);
+
li {
+ display: flex;
+ justify-content: space-between;
+
height: 30px;
padding: 0 20px;
- border-bottom: 1px solid #dfdfdf;
+
line-height: 30px;
- display: flex;
- justify-content: space-between;
+
+ border-bottom: 1px solid #dfdfdf;
}
.format-selected {
@@ -57,7 +63,7 @@
ul {
.select-item {
- padding: 0 14px 0 14px;
+ padding: 0 14px;
}
}
}
diff --git a/packages/ui-plugin-docs/src/views/doc-container/index.module.less b/packages/ui-plugin-docs/src/views/doc-container/index.module.less
index 100caac0a5..4b396ab418 100644
--- a/packages/ui-plugin-docs/src/views/doc-container/index.module.less
+++ b/packages/ui-plugin-docs/src/views/doc-container/index.module.less
@@ -1,64 +1,70 @@
.layout-container {
+ height: 100%;
+ color: var(--text-color);
// theme
background-color: var(--bg);
- color: var(--text-color);
- height: 100%;
.content-container-horizontal {
+ position: relative;
display: flex;
min-height: 14em;
- position: relative;
.content-inner-left-container {
+ flex: none;
// position: relative;
width: 50%;
padding-right: 10px;
- flex: none;
.hover-cursor {
+ cursor: e-resize;
+
position: absolute;
- right: 0;
top: 0;
- height: 100%;
+ right: 0;
+
width: 10px;
+ height: 100%;
+
background: gray;
- cursor: e-resize;
}
}
.content-inner-right-container {
- width: 50%;
flex: 1;
+ width: 50%;
// position: relative;
}
}
.content-container-vertical {
+ position: relative;
display: flex;
flex-direction: column;
min-height: 14em;
- position: relative;
.content-inner-left-container {
+ flex: none;
// position: relative;
height: 50%;
padding-bottom: 10px;
- flex: none;
.hover-cursor {
+ cursor: n-resize;
+
position: absolute;
- left: 0;
bottom: 0;
- height: 10px;
+ left: 0;
+
width: 100%;
+ height: 10px;
+
background: gray;
- cursor: n-resize;
}
}
.content-inner-right-container {
- height: 50%;
flex: 1;
+ height: 50%;
}
}
@@ -69,6 +75,7 @@
.outer-right-container {
// position: relative;
flex: 0 0 280px;
+
> div {
position: absolute;
width: 100%;
diff --git a/packages/ui-plugin-sheets/src/components/font-family/index.module.less b/packages/ui-plugin-sheets/src/components/font-family/index.module.less
index 9b94009301..52782f837f 100644
--- a/packages/ui-plugin-sheets/src/components/font-family/index.module.less
+++ b/packages/ui-plugin-sheets/src/components/font-family/index.module.less
@@ -1,9 +1,11 @@
.ui-plugin-sheets-font-family {
+ overflow: hidden;
+
width: 120px;
+
font-size: var(--font-size-xs);
text-overflow: ellipsis;
white-space: nowrap;
- overflow: hidden;
}
.ui-plugin-sheets-font-family-item {
diff --git a/packages/ui-plugin-sheets/src/components/menu-item-input/index.module.less b/packages/ui-plugin-sheets/src/components/menu-item-input/index.module.less
index bcd70d42ed..1579bfabd6 100644
--- a/packages/ui-plugin-sheets/src/components/menu-item-input/index.module.less
+++ b/packages/ui-plugin-sheets/src/components/menu-item-input/index.module.less
@@ -1,5 +1,5 @@
.ui-plugin-sheets-context-menu-input {
display: flex;
- align-items: center;
gap: var(--margin-sm);
+ align-items: center;
}
diff --git a/packages/ui-plugin-sheets/src/views/count-bar/index.module.less b/packages/ui-plugin-sheets/src/views/count-bar/index.module.less
index 6dd1788e0c..512d14f29a 100644
--- a/packages/ui-plugin-sheets/src/views/count-bar/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/count-bar/index.module.less
@@ -1,5 +1,5 @@
.count-bar {
- flex: 0 0 auto;
display: flex;
+ flex: 0 0 auto;
justify-content: flex-end;
}
diff --git a/packages/ui-plugin-sheets/src/views/editor-container/index.module.less b/packages/ui-plugin-sheets/src/views/editor-container/index.module.less
index 981508fda0..217f69dbb9 100644
--- a/packages/ui-plugin-sheets/src/views/editor-container/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/editor-container/index.module.less
@@ -1,21 +1,26 @@
.editor-container {
- display: flex;
position: absolute;
- border: 1.5px solid rgb(var(--primary-color));
- box-shadow: none;
- outline: 1.5px solid rgba(var(--primary-color-hover), 0.5);
z-index: 10;
-
- left: 100px;
top: 200px;
+ left: 100px;
+
+ display: flex;
+
width: 100px;
height: 50px;
+ border: 1.5px solid rgb(var(--primary-color));
+ outline: 1.5px solid rgb(var(--primary-color-hover) 0.5);
+ box-shadow: none;
+
.editor-input {
- display: flex;
position: relative;
- height: 100%;
+
+ display: flex;
+
width: 100%;
+ height: 100%;
+
background: white;
}
}
diff --git a/packages/ui-plugin-sheets/src/views/formula-bar/index.module.less b/packages/ui-plugin-sheets/src/views/formula-bar/index.module.less
index 7a2864afe0..600dac72b4 100644
--- a/packages/ui-plugin-sheets/src/views/formula-bar/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/formula-bar/index.module.less
@@ -1,12 +1,14 @@
.formula-box {
+ display: flex;
+
+ box-sizing: border-box;
height: 28px;
padding: 0 var(--padding-xl);
+
background: rgb(var(--bg-color-secondary));
border-bottom: 1px solid rgb(var(--border-color));
- box-sizing: border-box;
- display: flex;
- .select-button .tooltip-Group .tooltip-body {
+ .select-button .tooltip-group .tooltip-body {
display: flex;
input {
@@ -20,14 +22,14 @@
}
.formula-bar {
- width: 100%;
display: flex;
+ width: 100%;
.formula-icon {
- border-right: 1px solid var(--gray-15);
display: flex;
align-items: center;
font-size: var(--font-size-xs);
+ border-right: 1px solid var(--gray-15);
span[role='img'] {
font-size: 24px;
@@ -43,16 +45,17 @@
}
.formula-input {
- width: 100%;
- padding: 0 10px;
overflow: hidden;
display: flex;
align-items: center;
+ width: 100%;
+ padding: 0 10px;
+
.formula-content {
width: 100%;
- outline: none;
word-wrap: break-word;
+ outline: none;
}
}
}
diff --git a/packages/ui-plugin-sheets/src/views/operate-container/index.module.less b/packages/ui-plugin-sheets/src/views/operate-container/index.module.less
index d139a046af..7cea341c5c 100644
--- a/packages/ui-plugin-sheets/src/views/operate-container/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/operate-container/index.module.less
@@ -1,63 +1,69 @@
.operate-container {
- left: 0px;
- right: 0px;
- width: 0px;
- height: 0px;
position: absolute;
z-index: 10;
+ right: 0;
+ left: 0;
+
+ width: 0;
+ height: 0;
}
-@item-padding-left:36px;
-@smart-button-menu-min-width:128px;
+@item-padding-left: 36px;
+@smart-button-menu-min-width: 128px;
.smart-button-menu {
+ display: grid;
+ gap: var(--margin-xxs);
+ align-items: center;
+
+ box-sizing: border-box;
min-width: @smart-button-menu-min-width;
padding: var(--padding-sm);
+
font-size: var(--font-size-base);
+
background-color: rgb(var(--bg-color-secondary));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-lg);
box-shadow: var(--box-shadow-lg);
- box-sizing: border-box;
- display: grid;
- align-items: center;
- gap: var(--margin-xxs);
li {
list-style: none;
}
&-item {
- position: relative;
- text-align: left;
+ cursor: pointer;
position: relative;
+
+ box-sizing: border-box;
padding: var(--padding-xs) 0 var(--padding-xs) @item-padding-left;
+
color: rgb(var(--text-color));
+ text-align: left;
+
border-radius: var(--border-radius-base);
- box-sizing: border-box;
- cursor: pointer;
+
transition: background .2s;
&:hover {
background-color: rgb(var(--bg-color-hover));
}
-
&-icon {
position: absolute;
- left: var(--padding-xs);
top: 50%;
+ left: var(--padding-xs);
transform: translateY(-50%);
}
&-title {
- vertical-align: middle;
padding: var(--padding-xs) var(--padding-xs) var(--padding-xs) 0;
+ vertical-align: middle;
}
&-hide {
color: rgb(var(--text-color-secondary));
}
}
-}
\ No newline at end of file
+}
diff --git a/packages/ui-plugin-sheets/src/views/sheet-bar/index.module.less b/packages/ui-plugin-sheets/src/views/sheet-bar/index.module.less
index b17ccae2e5..068056af66 100644
--- a/packages/ui-plugin-sheets/src/views/sheet-bar/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/sheet-bar/index.module.less
@@ -4,13 +4,16 @@
.sheet-bar {
position: relative;
- width: calc(100% - @right-width);
- height: 100%;
- max-width: @sheet-bar-max-width;
+
display: flex;
+ flex: 1;
flex-direction: row;
+
+ width: calc(100% - @right-width);
+ max-width: @sheet-bar-max-width;
+ height: 100%;
+
background-color: rgb(var(--bg-color));
- flex: 1;
}
.sheet-bar-options {
@@ -18,4 +21,4 @@
flex-direction: row;
align-items: center;
margin: var(--margin-xxs);
-}
\ No newline at end of file
+}
diff --git a/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-button/index.module.less b/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-button/index.module.less
index 8108502c92..8866414c7e 100644
--- a/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-button/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-button/index.module.less
@@ -1,28 +1,32 @@
@sheet-bar-btn-size: 28px;
.sheet-bar-btn {
+ cursor: pointer;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
width: @sheet-bar-btn-size;
height: @sheet-bar-btn-size;
padding: 0;
+
font-size: var(--font-size-base);
- background-color: transparent;
color: rgb(var(--text-color));
+
+ background-color: transparent;
border: none;
border-radius: var(--border-radius-base);
- display: flex;
- justify-content: center;
- align-items: center;
outline: none;
- cursor: pointer;
&:not([disabled]):hover {
-
background-color: rgb(var(--bg-color-hover));
border-color: transparent;
}
+
&[disabled] {
- color: rgb(var(--grey-200));
cursor: not-allowed;
+ color: rgb(var(--grey-200));
}
}
diff --git a/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-menu/index.module.less b/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-menu/index.module.less
index 45f56a7542..6fe8b33766 100644
--- a/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-menu/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-menu/index.module.less
@@ -1,29 +1,37 @@
-@padding-right:28px;
+@padding-right: 28px;
.sheet-bar-menu {
+ display: grid;
+ gap: var(--margin-xxs);
+ align-items: center;
+
+ box-sizing: border-box;
padding: var(--padding-lg) var(--padding-base);
+
font-size: var(--font-size-xs);
font-weight: 500;
+
background-color: rgb(var(--bg-color-secondary));
border: 1px solid rgb(var(--border-color));
border-radius: var(--border-radius-lg);
box-shadow: var(--box-shadow-lg);
- box-sizing: border-box;
- display: grid;
- align-items: center;
- gap: var(--margin-xxs);
li {
list-style: none;
}
&-item {
+ cursor: pointer;
+
display: flex;
+
+ box-sizing: border-box;
padding: var(--padding-xs) @padding-right var(--padding-xs) var(--padding-xs);
+
color: rgb(var(--text-color));
+
border-radius: var(--border-radius-base);
- box-sizing: border-box;
- cursor: pointer;
+
transition: background .2s;
&:hover {
@@ -32,8 +40,8 @@
&-icon {
display: flex;
- color: transparent;
margin-right: var(--margin-xs);
+ color: transparent;
}
&-hide &-icon {
@@ -43,6 +51,6 @@
&-select &-icon, &-select{
color: rgb(var(--primary-color));
}
-
+
}
-}
\ No newline at end of file
+}
diff --git a/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-tabs/index.module.less b/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-tabs/index.module.less
index 37808eb08d..8f6d2b5828 100644
--- a/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-tabs/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/sheet-bar/sheet-bar-tabs/index.module.less
@@ -1,4 +1,4 @@
-@tab-shadow:0px 0px 8px rgba(0, 0, 0, 0.08);
+@tab-shadow: 0px 0 8px rgba(0, 0, 0, 0.08);
@padding-left-right: 6px;
.slide-tab-bar-container {
@@ -6,11 +6,13 @@
.slide-tab-bar {
user-select: none;
- padding: var(--padding-xs) @padding-left-right;
+
+ overflow: hidden;
display: flex;
flex-direction: row;
align-items: center;
- overflow: hidden;
+
+ padding: var(--padding-xs) @padding-left-right;
}
}
@@ -18,43 +20,48 @@
Tab Item, Put outside to be compatible with drag styles
*/
.slide-tab-item {
+ cursor: pointer;
user-select: none;
+
display: flex;
flex-direction: row;
- align-items: center;
flex-grow: 1;
+ align-items: center;
+
box-sizing: border-box;
- border-radius: var(--border-radius-base);
- font-size: var(--font-size-xs);
- cursor: pointer;
margin: 0 var(--margin-xxs);
+
+ font-size: var(--font-size-xs);
color: rgb(var(--grey-1000));
- .slide-tab-span {
- white-space: nowrap;
- box-sizing: border-box;
- padding: var(--padding-xs) var(--padding-sm);
- border: 2px solid transparent;
- border-radius: var(--border-radius-base);
-
- &-edit {
- outline: none;
- cursor: text;
- border-color: rgb(var(--primary-color));
-
- &::selection{
- background-color: rgb(var(--primary-color));
- color: rgb(var(--color-white));
- }
- }
+ border-radius: var(--border-radius-base);
+
+ .slide-tab-span {
+ box-sizing: border-box;
+ padding: var(--padding-xs) var(--padding-sm);
+
+ white-space: nowrap;
+
+ border: 2px solid transparent;
+ border-radius: var(--border-radius-base);
+ &-edit {
+ cursor: text;
+ border-color: rgb(var(--primary-color));
+ outline: none;
+
+ &::selection {
+ color: rgb(var(--color-white));
+ background-color: rgb(var(--primary-color));
+ }
}
-}
+ }
+}
.slide-tab-active {
- color: rgb(var(--primary-color));
- background-color: rgb(var(--bg-color-secondary));
- font-weight: 700;
- box-shadow: @tab-shadow;
-}
\ No newline at end of file
+ font-weight: 700;
+ color: rgb(var(--primary-color));
+ background-color: rgb(var(--bg-color-secondary));
+ box-shadow: @tab-shadow;
+}
diff --git a/packages/ui-plugin-sheets/src/views/sheet-container/index.module.less b/packages/ui-plugin-sheets/src/views/sheet-container/index.module.less
index 0e58dc3979..763cccb8df 100644
--- a/packages/ui-plugin-sheets/src/views/sheet-container/index.module.less
+++ b/packages/ui-plugin-sheets/src/views/sheet-container/index.module.less
@@ -5,10 +5,11 @@
}
.sheet-container {
- height: @sheet-footer-bar-height;
- padding: 0 var(--padding-xl);
- box-sizing: border-box;
display: flex;
- justify-content: space-between;
align-items: center;
+ justify-content: space-between;
+
+ box-sizing: border-box;
+ height: @sheet-footer-bar-height;
+ padding: 0 var(--padding-xl);
}
diff --git a/packages/ui-plugin-slides/src/views/info-bar/index.module.less b/packages/ui-plugin-slides/src/views/info-bar/index.module.less
index 9c8ba0562a..189e847ca6 100644
--- a/packages/ui-plugin-slides/src/views/info-bar/index.module.less
+++ b/packages/ui-plugin-slides/src/views/info-bar/index.module.less
@@ -1,18 +1,20 @@
.info-detail {
position: relative;
- left: 0;
top: 0;
- margin: 0;
- padding: 0 17px;
- height: 56px;
+ left: 0;
+
display: flex;
align-items: center;
+
+ height: 56px;
+ margin: 0;
+ padding: 0 17px;
+
background: var(--bg);
- box-shadow: 0 -1px 0 0 var(--gray-16);
border-bottom: 1px solid var(--border-color);
+ box-shadow: 0 -1px 0 0 var(--gray-16);
.info-return {
- font-size: 16px;
padding: 0 5px;
font-size: 14px;
}
@@ -31,14 +33,14 @@
}
.info-detail-update {
- color: var(--gray-17);
- font-size: 12px;
margin-left: 15px;
+ font-size: 12px;
+ color: var(--gray-17);
}
.info-detail-save {
- color: var(--gray-7);
- font-size: 12px;
margin: 0 5px;
+ font-size: 12px;
+ color: var(--gray-7);
}
}
diff --git a/packages/ui-plugin-slides/src/views/slide-bar/index.module.less b/packages/ui-plugin-slides/src/views/slide-bar/index.module.less
index b81d3e6f11..5094f52e70 100644
--- a/packages/ui-plugin-slides/src/views/slide-bar/index.module.less
+++ b/packages/ui-plugin-slides/src/views/slide-bar/index.module.less
@@ -1,22 +1,24 @@
.slide-bar {
- height: 100%;
display: flex;
flex-direction: column;
- border-right: 1px solid #eaecf0;
+
+ height: 100%;
+
background: #f5f7f9;
+ border-right: 1px solid #eaecf0;
.slide-bar-content {
+ overflow: auto;
height: 100%;
padding: 0 15px;
- overflow: auto;
&::-webkit-scrollbar {
width: 5px;
}
&::-webkit-scrollbar-thumb {
- border-radius: 5px;
background: #eaecf0;
+ border-radius: 5px;
}
&::-webkit-scrollbar-track {
@@ -28,17 +30,19 @@
margin: 10px 0;
span {
- font-size: 12px;
width: 15px;
+ font-size: 12px;
}
.slide-bar-box {
- margin-left: 5px;
+ position: relative;
+
width: 100%;
height: 150px;
+ margin-left: 5px;
+
background: #fff;
border: 2px solid #c0c0c0;
- position: relative;
}
&-active {
@@ -58,10 +62,12 @@
text-align: center;
button {
- line-height: 1;
- font-size: 24px;
- height: auto;
width: 45px;
+ height: auto;
+
+ font-size: 24px;
+ line-height: 1;
+
border-radius: 10px;
}
}
diff --git a/packages/ui-plugin-slides/src/views/slide-container/index.module.less b/packages/ui-plugin-slides/src/views/slide-container/index.module.less
index 100caac0a5..4b396ab418 100644
--- a/packages/ui-plugin-slides/src/views/slide-container/index.module.less
+++ b/packages/ui-plugin-slides/src/views/slide-container/index.module.less
@@ -1,64 +1,70 @@
.layout-container {
+ height: 100%;
+ color: var(--text-color);
// theme
background-color: var(--bg);
- color: var(--text-color);
- height: 100%;
.content-container-horizontal {
+ position: relative;
display: flex;
min-height: 14em;
- position: relative;
.content-inner-left-container {
+ flex: none;
// position: relative;
width: 50%;
padding-right: 10px;
- flex: none;
.hover-cursor {
+ cursor: e-resize;
+
position: absolute;
- right: 0;
top: 0;
- height: 100%;
+ right: 0;
+
width: 10px;
+ height: 100%;
+
background: gray;
- cursor: e-resize;
}
}
.content-inner-right-container {
- width: 50%;
flex: 1;
+ width: 50%;
// position: relative;
}
}
.content-container-vertical {
+ position: relative;
display: flex;
flex-direction: column;
min-height: 14em;
- position: relative;
.content-inner-left-container {
+ flex: none;
// position: relative;
height: 50%;
padding-bottom: 10px;
- flex: none;
.hover-cursor {
+ cursor: n-resize;
+
position: absolute;
- left: 0;
bottom: 0;
- height: 10px;
+ left: 0;
+
width: 100%;
+ height: 10px;
+
background: gray;
- cursor: n-resize;
}
}
.content-inner-right-container {
- height: 50%;
flex: 1;
+ height: 50%;
}
}
@@ -69,6 +75,7 @@
.outer-right-container {
// position: relative;
flex: 0 0 280px;
+
> div {
position: absolute;
width: 100%;
diff --git a/packages/ui-plugin-slides/src/views/toolbar/index.less b/packages/ui-plugin-slides/src/views/toolbar/index.less
index 04f1f4201e..bcb34e820d 100644
--- a/packages/ui-plugin-slides/src/views/toolbar/index.less
+++ b/packages/ui-plugin-slides/src/views/toolbar/index.less
@@ -1,32 +1,37 @@
.universheet-wa-editor.toolbar {
- height: 32px;
- background: var(--bg);
position: relative;
+
+ box-sizing: initial;
+ height: 32px;
padding: 5px 0 3px 15px;
- border-bottom: 1px solid var(--bg);
+
white-space: nowrap;
+
+ background: var(--bg);
+ border-bottom: 1px solid var(--bg);
+
transition: all 0.2s;
- box-sizing: initial;
span[role='img'] {
- font-size: 24px;
display: inline-block;
+ font-size: 24px;
}
- span[role='img'].univericon-nextIcon {
+ span[role='img'].univericon-next-icon {
font-size: 13px;
}
- span[role='img'].univericon-rightIcon {
+ span[role='img'].univericon-right-icon {
font-size: 13px;
}
.universheet-toolbar-left-skin {
- width: 15px;
position: absolute;
- left: 0;
top: 1px;
bottom: 1px;
+ left: 0;
+
+ width: 15px;
}
.universheet-inline-block {
@@ -42,7 +47,7 @@
vertical-align: middle;
&:hover {
- background: rgba(0, 0, 0, 0.06);
+ background: rgb(0 0 0 / 6%);
}
button {
@@ -70,21 +75,24 @@
.universheet-toolbar-button-inner-box,
.universheet-toolbar-menu-button-inner-box {
+ min-width: 26px;
+ height: 26px;
padding: 0 2px;
padding: 0;
- text-align: center;
- height: 26px;
- min-width: 26px;
+
font-size: 12px;
+ text-align: center;
}
.universheet-toolbar-menu-button-caption {
overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+
+ height: 100%;
margin-left: 1px;
+
text-align: center;
- height: 100%;
+ text-overflow: ellipsis;
+ white-space: nowrap;
}
.universheet-toolbar-menu-button-text {
@@ -92,23 +100,26 @@
}
.universheet-toolbar-separator {
- line-height: normal;
- list-style: none;
- outline: 0;
overflow: hidden;
- padding: 0;
- text-decoration: none;
+
width: 0;
height: 20px;
+ margin: 5px 1px;
+ padding: 0;
+
+ line-height: normal;
+ text-decoration: none;
vertical-align: top;
+ list-style: none;
+
border-left: 1px solid #e0e0e0;
- margin: 5px 1px;
+ outline: 0;
}
.universheet-toolbar-combo-button {
+ margin: 0 1px;
font-weight: 700;
vertical-align: inherit;
- margin: 0 1px;
.toolbar-button();
}
@@ -122,41 +133,43 @@
}
.universheet-toolbar-combo-button-caption {
- padding: 0;
margin: 0 0 0 -3px;
+ padding: 0;
}
.universheet-toolbar-textinput {
- -webkit-border-radius: 1px;
- -moz-border-radius: 1px;
- border-radius: 1px;
- border: 1px solid #d9d9d9;
- border-top: 1px solid silver;
- font-size: 13px;
height: 25px;
padding: 1px 0 1px 8px;
+
+ font-size: 13px;
+
+ border: 1px solid #d9d9d9;
+ border-top: 1px solid silver;
+ border-radius: 1px;
}
.universheet-toolbar-combo-button-input {
- background: 0 0;
- border: 1px solid transparent !important;
- color: var(--text-color);
+ overflow: hidden !important;
+
+ width: 22px;
+ height: 22px !important;
+
font-family: Arial, sans-serif !important;
font-size: 11px !important;
font-weight: 700 !important;
- height: 20px !important;
- overflow: hidden !important;
- color: rgba(0, 0, 0, 0.7);
- height: 22px !important;
- width: 22px;
+ color: rgb(0 0 0 / 70%);
+
+ background: 0 0;
+ border: 1px solid transparent !important;
}
.universheet-cols-menu {
.menu-button();
- width: 252px;
- left: 0;
+
top: 26px;
+ left: 0;
display: none;
+ width: 252px;
}
.universheet-cols-menu .universheet-cols-menuitem-hover,
@@ -165,67 +178,75 @@
}
.universheet-cols-menu .universheet-cols-menuitem {
- position: relative;
- color: var(--text-color);
cursor: pointer;
- list-style: none;
+ user-select: none;
+
+ position: relative;
+
margin: 0;
padding: 1px 6em 1px 20px;
- white-space: nowrap;
- padding-left: 8px;
- vertical-align: middle;
padding-right: 24px;
- user-select: none;
+ padding-left: 8px;
+
line-height: 16px;
+ color: var(--text-color);
+ white-space: nowrap;
+ vertical-align: middle;
+ list-style: none;
}
.universheet-submenu-arrow {
- -webkit-transition: all 218ms;
- -moz-transition: all 218ms;
- -o-transition: all 218ms;
- transition: all 218ms;
- font-size: 12px;
- left: auto;
- right: 15px;
+ user-select: none;
+
+ position: absolute;
top: 50%;
+ right: 15px;
+ left: auto;
transform: translateY(-50%);
+
padding-right: 0;
- position: absolute;
+
+ font-size: 12px;
+ color: #000;
text-align: right;
+
opacity: 0.5;
- color: #000;
- user-select: none;
- font-family: Arial;
+
+ transition: all 218ms;
}
.universheet-toolbar-dblbutton {
.universheet-toolbar-next-button {
- border-left: 1px solid transparent;
position: relative;
+ border-left: 1px solid transparent;
.universheet-next-menu {
position: absolute;
z-index: 2;
+
+ width: fit-content;
+
+ font-size: 12px;
+
background-color: #fff;
box-shadow: var(--box-shadow-base);
- font-size: 12px;
- width: fit-content;
.univer-menu-item > div {
- width: 100%;
display: flex;
justify-content: space-between;
+
box-sizing: border-box;
+ width: 100%;
padding: 0 5px 0 0;
.universheet-next-menu-icon {
width: 25px;
& ~ div {
- flex: 1;
display: flex;
- justify-content: space-between;
+ flex: 1;
align-items: center;
+ justify-content: space-between;
}
}
}
@@ -243,11 +264,13 @@
}
.universheet-color-bottom {
+ position: relative;
+ bottom: 7px;
+
width: 10px;
margin: 0 auto;
+
outline: 2px solid;
- position: relative;
- bottom: 7px;
}
button.univer-btn {
@@ -266,45 +289,49 @@
// 重复样式
.outer-inner-box() {
- border: 0;
- vertical-align: top;
margin: 0;
padding: 0;
+ vertical-align: top;
+ border: 0;
}
.toolbar-button() {
- -webkit-border-radius: 2px;
- -moz-border-radius: 2px;
- border-radius: 2px;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- background: 0;
- border: 1px solid transparent;
- outline: 0;
- padding: 0;
- list-style: none;
- font-size: 11px;
- text-decoration: none;
cursor: default;
+ user-select: none;
+
height: 26px;
+ padding: 0;
+
+ font-size: 11px;
line-height: 26px;
color: var(--text-color);
+ text-decoration: none;
+ list-style: none;
+
+ background: 0;
+ border: 1px solid transparent;
+ border-radius: 2px;
+ outline: 0;
}
.menu-button() {
- border-radius: 0;
- box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
- transition: opacity 218ms;
- background: #fff;
- border: 1px solid rgba(0, 0, 0, 0.2);
cursor: default;
- font-size: 13px;
- margin: 0;
- outline: 0;
- padding: 6px 0;
+ user-select: none;
+
position: absolute;
z-index: 2;
+
box-sizing: border-box;
- user-select: none;
+ margin: 0;
+ padding: 6px 0;
+
+ font-size: 13px;
+
+ background: #fff;
+ border: 1px solid rgb(0 0 0 / 20%);
+ border-radius: 0;
+ outline: 0;
+ box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
+
+ transition: opacity 218ms;
}
diff --git a/packages/ui-plugin-slides/src/views/toolbar/index.module.less b/packages/ui-plugin-slides/src/views/toolbar/index.module.less
index d497abe880..3be9df94cc 100644
--- a/packages/ui-plugin-slides/src/views/toolbar/index.module.less
+++ b/packages/ui-plugin-slides/src/views/toolbar/index.module.less
@@ -1,13 +1,17 @@
.toolbar-warp {
- max-height: fit-content;
- width: 100%;
+ position: relative;
+
overflow: unset;
+ display: flex;
+ align-items: center;
+
box-sizing: border-box;
+ width: 100%;
+ max-height: fit-content;
+
font-size: var(--font-size);
+
background-color: var(--bg);
- position: relative;
- display: flex;
- align-items: center;
border-bottom: 1px solid var(--border-color);
.single-button {
@@ -22,20 +26,26 @@
}
.toolbar {
- max-width: 100%;
- color: var(--text-color);
- padding: 0 15px;
- height: 40px;
position: relative;
+
display: flex;
align-items: center;
+ max-width: 100%;
+ height: 40px;
+ padding: 0 15px;
+
+ color: var(--text-color);
+
>div {
- height: 26px;
+ cursor: pointer;
+
display: inline-block;
- vertical-align: middle;
+
+ height: 26px;
margin: 0 3px;
- cursor: pointer;
+
+ vertical-align: middle;
&.select-button:hover {
background-color: #efefef;
@@ -50,9 +60,9 @@
.drop-content {
>div {
overflow: hidden;
+ width: 90px;
text-overflow: ellipsis;
white-space: nowrap;
- width: 90px;
}
}
}
@@ -109,12 +119,14 @@
}
button {
- padding: 0;
height: 26px;
+ padding: 0;
}
- span[role='img'].univericon-nextIcon {
- font-size: 12px;
+ span[role='img'] {
+ &.univericon-next-icon {
+ font-size: 12px;
+ }
}
.text-button {
@@ -131,8 +143,8 @@
.more-button {
position: absolute;
- right: 15px;
top: 50%;
+ right: 15px;
transform: translateY(-50%);
.button();
@@ -142,16 +154,17 @@
}
.more-tool {
+ position: absolute;
+ z-index: 2;
+ top: 40px;
+ right: 2em;
// height: 40px;
// display: none;
// align-items: center;
padding: 0 10px;
+
background-color: var(--bg);
box-shadow: var(--box-shadow-base);
- position: absolute;
- right: 2em;
- top: 40px;
- z-index: 2;
&.more-show {
display: flex;
@@ -163,7 +176,7 @@
}
.button() {
- padding: 0px;
+ padding: 0;
line-height: 1;
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 13f3e93f01..1f18a4dce6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -116,6 +116,21 @@ importers:
storybook:
specifier: ^7.5.3
version: 7.5.3
+ stylelint:
+ specifier: ^15.11.0
+ version: 15.11.0([email protected])
+ stylelint-config-clean-order:
+ specifier: ^5.2.0
+ version: 5.2.0([email protected])
+ stylelint-config-prettier:
+ specifier: ^9.0.5
+ version: 9.0.5([email protected])
+ stylelint-config-standard:
+ specifier: ^34.0.0
+ version: 34.0.0([email protected])
+ stylelint-config-standard-less:
+ specifier: ^2.0.0
ts-node:
specifier: ^10.9.1
version: 10.9.1(@types/[email protected])([email protected])
@@ -2945,6 +2960,40 @@ packages:
'@jridgewell/trace-mapping': 0.3.9
dev: true
+ /@csstools/[email protected](@csstools/[email protected]):
+ resolution: {integrity: sha512-sLYGdAdEY2x7TSw9FtmdaTrh2wFtRJO5VMbBrA8tEqEod7GEggFmxTSK9XqExib3yMuYNcvcTdCZIP6ukdjAIA==}
+ engines: {node: ^14 || ^16 || >=18}
+ peerDependencies:
+ '@csstools/css-tokenizer': ^2.2.1
+ dependencies:
+ '@csstools/css-tokenizer': 2.2.1
+ dev: true
+
+ /@csstools/[email protected]:
+ resolution: {integrity: sha512-Zmsf2f/CaEPWEVgw29odOj+WEVoiJy9s9NOv5GgNY9mZ1CZ7394By6wONrONrTsnNDv6F9hR02nvFihrGVGHBg==}
+ engines: {node: ^14 || ^16 || >=18}
+ dev: true
+
+ /@csstools/[email protected](@csstools/[email protected])(@csstools/[email protected]):
+ resolution: {integrity: sha512-IxVBdYzR8pYe89JiyXQuYk4aVVoCPhMJkz6ElRwlVysjwURTsTk/bmY/z4FfeRE+CRBMlykPwXEVUg8lThv7AQ==}
+ engines: {node: ^14 || ^16 || >=18}
+ peerDependencies:
+ '@csstools/css-parser-algorithms': ^2.3.2
+ '@csstools/css-tokenizer': ^2.2.1
+ dependencies:
+ '@csstools/css-parser-algorithms': 2.3.2(@csstools/[email protected])
+ '@csstools/css-tokenizer': 2.2.1
+ dev: true
+
+ resolution: {integrity: sha512-hBI9tfBtuPIi885ZsZ32IMEU/5nlZH/KOVYJCOh7gyMxaVLGmLedYqFN6Ui1LXkI8JlC8IsuC0rF0btcRZKd5g==}
+ engines: {node: ^14 || ^16 || >=18}
+ peerDependencies:
+ postcss-selector-parser: ^6.0.13
+ dependencies:
+ postcss-selector-parser: 6.0.13
+ dev: true
+
resolution: {integrity: sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==}
engines: {node: '>=10'}
@@ -6126,6 +6175,11 @@ packages:
tslib: 2.6.2
dev: true
+ resolution: {integrity: sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==}
+ engines: {node: '>=8'}
+ dev: true
+
resolution: {integrity: sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==}
dev: true
@@ -6204,6 +6258,10 @@ packages:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
dev: true
+ resolution: {integrity: sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==}
+ dev: true
+
resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
dev: true
@@ -6379,11 +6437,26 @@ packages:
quick-lru: 4.0.1
dev: true
+ resolution: {integrity: sha512-Rjs1H+A9R+Ig+4E/9oyB66UC5Mj9Xq3N//vcLf2WzgdTi/3gUu3Z9KoqmlrEG4VuuLK8wJHofxzdQXz/knhiYg==}
+ engines: {node: '>=12'}
+ dependencies:
+ camelcase: 6.3.0
+ map-obj: 4.3.0
+ quick-lru: 5.1.1
+ type-fest: 1.4.0
+ dev: true
+
resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}
engines: {node: '>=6'}
dev: true
+ resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==}
+ engines: {node: '>=10'}
+ dev: true
+
resolution: {integrity: sha512-NTt0DNoKe958Q0BE0j0c1V9jbUzhBxHIEJy7asmGrpE0yG63KTV7PLHPnK2E1O9RsQrQ081I3NLuXGS6zht3cw==}
dev: true
@@ -6569,6 +6642,10 @@ packages:
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
dev: true
+ resolution: {integrity: sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw==}
+ dev: true
+
resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}
dev: true
@@ -6762,6 +6839,19 @@ packages:
engines: {node: '>=8'}
dev: true
+ resolution: {integrity: sha512-Nj5YcaGgBtuUmn1D7oHqPW0c9iui7xsTsj5lIX8ZgevdfhmjFfKB3r8moHJtNJnctnYXJyYX5I1pp90HM4TPgQ==}
+ engines: {node: '>=12 || >=16'}
+ dev: true
+
+ resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
+ dependencies:
+ mdn-data: 2.0.30
+ source-map-js: 1.0.2
+ dev: true
+
resolution: {integrity: sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==}
dev: true
@@ -6857,6 +6947,11 @@ packages:
engines: {node: '>=0.10.0'}
dev: true
+ resolution: {integrity: sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==}
+ engines: {node: '>=10'}
+ dev: true
+
resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==}
engines: {node: '>=6'}
@@ -7831,6 +7926,11 @@ packages:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
dev: true
+ resolution: {integrity: sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==}
+ engines: {node: '>= 4.9.1'}
+ dev: true
+
resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==}
dependencies:
@@ -7860,6 +7960,13 @@ packages:
flat-cache: 3.1.1
dev: true
+ resolution: {integrity: sha512-uLfFktPmRetVCbHe5UPuekWrQ6hENufnA46qEGbfACkK5drjTTdQYUragRgMjHldcbYG+nslUerqMPjbBSHXjQ==}
+ engines: {node: '>=12.0.0'}
+ dependencies:
+ flat-cache: 3.1.1
+ dev: true
+
resolution: {integrity: sha512-l4DMNdsIPsVnKrgEXbJwDJsA5mB8rGwHYERMgqQx/xAUtChPJMre1bXBzDEqqVbWv9AIbFezXMxeEkZDSrXUOQ==}
dependencies:
@@ -8234,6 +8341,22 @@ packages:
ini: 1.3.8
dev: true
+ resolution: {integrity: sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==}
+ engines: {node: '>=6'}
+ dependencies:
+ global-prefix: 3.0.0
+ dev: true
+
+ resolution: {integrity: sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==}
+ engines: {node: '>=6'}
+ dependencies:
+ ini: 1.3.8
+ kind-of: 6.0.3
+ which: 1.3.1
+ dev: true
+
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
engines: {node: '>=4'}
@@ -8265,6 +8388,10 @@ packages:
slash: 3.0.0
dev: true
+ resolution: {integrity: sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==}
+ dev: true
+
resolution: {integrity: sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==}
dependencies:
@@ -8501,6 +8628,11 @@ packages:
resolve-from: 4.0.0
dev: true
+ resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==}
+ engines: {node: '>=8'}
+ dev: true
+
resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
engines: {node: '>=0.8.19'}
@@ -8511,6 +8643,11 @@ packages:
engines: {node: '>=8'}
dev: true
+ resolution: {integrity: sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==}
+ engines: {node: '>=12'}
+ dev: true
+
resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
dependencies:
@@ -9152,6 +9289,10 @@ packages:
engines: {node: '>=6'}
dev: true
+ resolution: {integrity: sha512-Ne7wqW7/9Cz54PDt4I3tcV+hAyat8ypyOGzYRJQfdxnnjeWsTxt1cy8pjvvKeI5kfXuyvULyeeAvwvvtAX3ayQ==}
+ dev: true
+
resolution: {integrity: sha512-aXpZJRnTkpK6gQ/z4nk+ZBLd/Qdp118cvPruLSIQzQNRhKwEcdXCOzXuF55VDqIiuAaY3UGZ10DJtvZzDcvsxg==}
engines: {node: '>=14.0.0'}
@@ -9330,6 +9471,10 @@ packages:
resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}
dev: true
+ resolution: {integrity: sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==}
+ dev: true
+
resolution: {integrity: sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==}
dev: true
@@ -9479,6 +9624,10 @@ packages:
react: 18.2.0
dev: true
+ resolution: {integrity: sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg==}
+ dev: true
+
resolution: {integrity: sha512-k8AJ6aNnUkB7IE+5azR9h81O5EQ/cTDXtWdMq9Kk5KcEW/8ritU5CeLg/9HhOC++nALHBlaogJ5jz0Ybk3kPMQ==}
dependencies:
@@ -9489,6 +9638,10 @@ packages:
resolution: {integrity: sha512-jVU0Nr2B9X3MU4tSK7JP1CMkSvOj7X5l/GboG1tKRw52lLF1x2Ju92Ms9tNetCcbfX3hzlM73zYo2NKkWSfF/A==}
dev: true
+ resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==}
+ dev: true
+
resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==}
engines: {node: '>= 0.6'}
@@ -9500,6 +9653,24 @@ packages:
map-or-similar: 1.5.0
dev: true
+ resolution: {integrity: sha512-/d+PQ4GKmGvM9Bee/DPa8z3mXs/pkvJE2KEThngVNOqtmljC6K7NMPxtc2JeZYTmpWb9k/TmxjeL18ez3h7vCw==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ dependencies:
+ '@types/minimist': 1.2.5
+ camelcase-keys: 7.0.2
+ decamelize: 5.0.1
+ decamelize-keys: 1.1.1
+ hard-rejection: 2.1.0
+ minimist-options: 4.1.0
+ normalize-package-data: 3.0.3
+ read-pkg-up: 8.0.0
+ redent: 4.0.0
+ trim-newlines: 4.1.1
+ type-fest: 1.4.0
+ yargs-parser: 20.2.9
+ dev: true
+
resolution: {integrity: sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==}
engines: {node: '>=16.10'}
@@ -10211,6 +10382,15 @@ packages:
'@babel/runtime': 7.23.2
dev: true
+ resolution: {integrity: sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg==}
+ engines: {node: '>=12'}
+ peerDependencies:
+ postcss: ^8.3.5
+ dependencies:
+ postcss: 8.4.31
+ dev: true
+
resolution: {integrity: sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==}
engines: {node: ^10 || ^12 || >= 14}
@@ -10268,6 +10448,19 @@ packages:
string-hash: 1.1.3
dev: true
+ resolution: {integrity: sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==}
+ dev: true
+
+ resolution: {integrity: sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ==}
+ engines: {node: '>=12.0'}
+ peerDependencies:
+ postcss: ^8.3.3
+ dependencies:
+ postcss: 8.4.31
+ dev: true
+
resolution: {integrity: sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==}
engines: {node: '>=4'}
@@ -10276,6 +10469,14 @@ packages:
util-deprecate: 1.0.2
dev: true
+ resolution: {integrity: sha512-M9dkSrmU00t/jK7rF6BZSZauA5MAaBW4i5EnJXspMwt4iqTh/L9j6fgMnbElEOfyRyfLfVbIHj/R52zHzAPe1Q==}
+ peerDependencies:
+ postcss: ^8.4.20
+ dependencies:
+ postcss: 8.4.31
+ dev: true
+
resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
dev: true
@@ -10466,6 +10667,11 @@ packages:
engines: {node: '>=8'}
dev: true
+ resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}
+ engines: {node: '>=10'}
+ dev: true
+
resolution: {integrity: sha512-BBea6L67bYLtdbOqfp8f58fPMqEwx0doL+pAi8TZyp2YWz8R9G8z9x75CZI8W+ftqhFHCpEX2cRnUUXK130iKA==}
dev: true
@@ -10850,6 +11056,15 @@ packages:
type-fest: 0.8.1
dev: true
+ resolution: {integrity: sha512-snVCqPczksT0HS2EC+SxUndvSzn6LRCwpfSvLrIfR5BKDQQZMaI6jPRC9dYvYFDRAuFEAnkwww8kBBNE/3VvzQ==}
+ engines: {node: '>=12'}
+ dependencies:
+ find-up: 5.0.0
+ read-pkg: 6.0.0
+ type-fest: 1.4.0
+ dev: true
+
resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==}
engines: {node: '>=8'}
@@ -10860,6 +11075,16 @@ packages:
type-fest: 0.6.0
dev: true
+ resolution: {integrity: sha512-X1Fu3dPuk/8ZLsMhEj5f4wFAF0DWoK7qhGJvgaijocXxBmSToKfbFtqbxMO7bVjNA1dmE5huAzjXj/ey86iw9Q==}
+ engines: {node: '>=12'}
+ dependencies:
+ '@types/normalize-package-data': 2.4.4
+ normalize-package-data: 3.0.3
+ parse-json: 5.2.0
+ type-fest: 1.4.0
+ dev: true
+
resolution: {integrity: sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==}
engines: {node: '>=6'}
@@ -10926,6 +11151,14 @@ packages:
strip-indent: 3.0.0
dev: true
+ resolution: {integrity: sha512-tYkDkVVtYkSVhuQ4zBgfvciymHaeuel+zFKXShfDnFP5SyVEP7qo70Rf1jTOTCx3vGNAbnEi/xFkcfQVMIBWag==}
+ engines: {node: '>=12'}
+ dependencies:
+ indent-string: 5.0.0
+ strip-indent: 4.0.0
+ dev: true
+
resolution: {integrity: sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==}
engines: {node: '>=4'}
@@ -11313,6 +11546,15 @@ packages:
engines: {node: '>=8'}
dev: true
+ resolution: {integrity: sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==}
+ engines: {node: '>=10'}
+ dependencies:
+ ansi-styles: 4.3.0
+ astral-regex: 2.0.0
+ is-fullwidth-code-point: 3.0.0
+ dev: true
+
resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==}
engines: {node: '>=12'}
@@ -11562,6 +11804,151 @@ packages:
acorn: 8.11.2
dev: true
+ resolution: {integrity: sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==}
+ dev: true
+
+ resolution: {integrity: sha512-eAB9ftPa8txPFY2oh4NIE3DFkNzqVEBIALUZhSXP0+6CISPjZPBoOV24shjC9DgOKr7rNPY52DAXBXIBI//Mhg==}
+ peerDependencies:
+ stylelint: '>=14'
+ dependencies:
+ stylelint: 15.11.0([email protected])
+ stylelint-order: 6.0.3([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-U44lELgLZhbAD/xy/vncZ2Pq8sh2TnpiPvo38Ifg9+zeioR+LAkHu0i6YORIOxFafZoVg0xqQwex6e6F25S5XA==}
+ engines: {node: '>= 12'}
+ hasBin: true
+ peerDependencies:
+ stylelint: '>= 11.x < 15'
+ dependencies:
+ stylelint: 15.11.0([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-6X5A9kdusuLzS/9yfkQfzYg5ry43KHXMnUmiPCIidwQEW/cegn44CtRPfN+9SLcVkUVcRNpuLYfHtbLtoUHgkA==}
+ peerDependencies:
+ postcss: ^8.3.3
+ stylelint: ^15.10.2
+ peerDependenciesMeta:
+ postcss:
+ optional: true
+ dependencies:
+ postcss: 8.4.31
+ postcss-less: 6.0.0([email protected])
+ stylelint: 15.11.0([email protected])
+ stylelint-config-recommended: 13.0.0([email protected])
+ stylelint-less: 2.0.0([email protected])([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-EH+yRj6h3GAe/fRiyaoO2F9l9Tgg50AOFhaszyfov9v6ayXJ1IkSHwTxd7lB48FmOeSGDPLjatjO11fJpmarkQ==}
+ engines: {node: ^14.13.1 || >=16.0.0}
+ peerDependencies:
+ stylelint: ^15.10.0
+ dependencies:
+ stylelint: 15.11.0([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-hLrK5oNV2Ombs0IC11gzGsYtADX8dquevs+Ls2jY4IY2wywPLnUSW5a5ofxXVan1j1z6OMcs8fWikbpj9Y5VgQ==}
+ peerDependencies:
+ postcss: ^8.3.3
+ stylelint: ^15.0.0
+ peerDependenciesMeta:
+ postcss:
+ optional: true
+ dependencies:
+ postcss: 8.4.31
+ stylelint: 15.11.0([email protected])
+ stylelint-config-recommended-less: 2.0.0([email protected])([email protected])
+ stylelint-config-standard: 34.0.0([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-u0VSZnVyW9VSryBG2LSO+OQTjN7zF9XJaAJRX/4EwkmU0R2jYwmBSN10acqZisDitS0CLiEiGjX7+Hrq8TAhfQ==}
+ engines: {node: ^14.13.1 || >=16.0.0}
+ peerDependencies:
+ stylelint: ^15.10.0
+ dependencies:
+ stylelint: 15.11.0([email protected])
+ stylelint-config-recommended: 13.0.0([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-HwRdAdrNDBg64BzIOP3SSHFPJHvRJEpqFn8Kp5m5Enw6pf7kI9XoNT3jn1S2zvfzaK/7hdwy6La3cyJT78fK3A==}
+ peerDependencies:
+ postcss: ^8.4.14
+ stylelint: ^15.10.3
+ dependencies:
+ postcss: 8.4.31
+ postcss-resolve-nested-selector: 0.1.1
+ postcss-value-parser: 4.2.0
+ stylelint: 15.11.0([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-1j1lOb4EU/6w49qZeT2SQVJXm0Ht+Qnq9GMfUa3pMwoyojIWfuA+JUDmoR97Bht1RLn4ei0xtLGy87M7d29B1w==}
+ peerDependencies:
+ stylelint: ^14.0.0 || ^15.0.0
+ dependencies:
+ postcss: 8.4.31
+ postcss-sorting: 8.0.2([email protected])
+ stylelint: 15.11.0([email protected])
+ dev: true
+
+ resolution: {integrity: sha512-78O4c6IswZ9TzpcIiQJIN49K3qNoXTM8zEJzhaTE/xRTCZswaovSEVIa/uwbOltZrk16X4jAxjaOhzz/hTm1Kw==}
+ engines: {node: ^14.13.1 || >=16.0.0}
+ hasBin: true
+ dependencies:
+ '@csstools/css-parser-algorithms': 2.3.2(@csstools/[email protected])
+ '@csstools/css-tokenizer': 2.2.1
+ '@csstools/media-query-list-parser': 2.1.5(@csstools/[email protected])(@csstools/[email protected])
+ '@csstools/selector-specificity': 3.0.0([email protected])
+ balanced-match: 2.0.0
+ colord: 2.9.3
+ cosmiconfig: 8.3.6([email protected])
+ css-functions-list: 3.2.1
+ css-tree: 2.3.1
+ debug: 4.3.4
+ fast-glob: 3.3.2
+ fastest-levenshtein: 1.0.16
+ file-entry-cache: 7.0.1
+ global-modules: 2.0.0
+ globby: 11.1.0
+ globjoin: 0.1.4
+ html-tags: 3.3.1
+ ignore: 5.2.4
+ import-lazy: 4.0.0
+ imurmurhash: 0.1.4
+ is-plain-object: 5.0.0
+ known-css-properties: 0.29.0
+ mathml-tag-names: 2.1.3
+ meow: 10.1.5
+ micromatch: 4.0.5
+ normalize-path: 3.0.0
+ picocolors: 1.0.0
+ postcss: 8.4.31
+ postcss-resolve-nested-selector: 0.1.1
+ postcss-safe-parser: 6.0.0([email protected])
+ postcss-selector-parser: 6.0.13
+ postcss-value-parser: 4.2.0
+ resolve-from: 5.0.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ style-search: 0.1.0
+ supports-hyperlinks: 3.0.0
+ svg-tags: 1.0.0
+ table: 6.8.1
+ write-file-atomic: 5.0.1
+ transitivePeerDependencies:
+ - supports-color
+ - typescript
+ dev: true
+
resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==}
engines: {node: '>=4'}
@@ -11583,11 +11970,23 @@ packages:
has-flag: 4.0.0
dev: true
+ resolution: {integrity: sha512-QBDPHyPQDRTy9ku4URNGY5Lah8PAaXs6tAAwp55sL5WCsSW7GIfdf6W5ixfziW+t7wh3GVvHyHHyQ1ESsoRvaA==}
+ engines: {node: '>=14.18'}
+ dependencies:
+ has-flag: 4.0.0
+ supports-color: 7.2.0
+ dev: true
+
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
dev: true
+ resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==}
+ dev: true
+
resolution: {integrity: sha512-AsS729u2RHUfEra9xJrE39peJcc2stq2+poBXX8bcM08Y6g9j/i/PUzwNQqkaJde7Ntg1TO7bSREbR5sdosQ+g==}
dev: true
@@ -11600,6 +11999,17 @@ packages:
tslib: 2.6.2
dev: true
+ resolution: {integrity: sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA==}
+ engines: {node: '>=10.0.0'}
+ dependencies:
+ ajv: 8.12.0
+ lodash.truncate: 4.4.2
+ slice-ansi: 4.0.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ dev: true
+
resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}
engines: {node: '>=6'}
@@ -11770,6 +12180,11 @@ packages:
engines: {node: '>=8'}
dev: true
+ resolution: {integrity: sha512-jRKj0n0jXWo6kh62nA5TEh3+4igKDXLvzBJcPpiizP7oOolUrYIxmVBG9TOtHYFHoddUk6YvAkGeGoSVTXfQXQ==}
+ engines: {node: '>=12'}
+ dev: true
+
resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==}
engines: {node: '>=16.13.0'}
@@ -12587,6 +13002,14 @@ packages:
signal-exit: 3.0.7
dev: true
+ resolution: {integrity: sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==}
+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
+ dependencies:
+ imurmurhash: 0.1.4
+ signal-exit: 4.1.0
+ dev: true
+
resolution: {integrity: sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==}
peerDependencies: