Skip to content

Commit

Permalink
style: Descriptions样式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Oct 14, 2023
1 parent 03d5e13 commit be73f4d
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 20 deletions.
11 changes: 6 additions & 5 deletions src/components/Descriptions/src/Descriptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ export default defineComponent({
delete obj[key]
}
}
return obj
return {
labelClassName: `${prefixCls}-label`,
...obj
}
}
// 折叠
Expand Down Expand Up @@ -155,9 +158,7 @@ export default defineComponent({
}
}
.@{prefix-cls}-content {
:deep(.@{elNamespace}-descriptions__cell) {
width: 0;
}
:deep(.@{prefix-cls}-label) {
width: 150px;
}
</style>
8 changes: 6 additions & 2 deletions src/components/Dialog/src/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,22 @@ const dialogStyle = computed(() => {
.@{elNamespace}-dialog {
margin: 0 !important;
&__header {
height: 54px;
padding: 0;
margin-right: 0 !important;
border-bottom: 1px solid var(--el-border-color);
padding: 0;
height: 54px;
}
&__body {
padding: 15px !important;
}
&__footer {
border-top: 1px solid var(--el-border-color);
}
&__headerbtn {
top: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputPassword/src/InputPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const getPasswordStrength = computed(() => {
background-color: transparent;
border-color: var(--el-color-white);
border-style: solid;
border-width: 0 5px 0 5px;
border-width: 0 5px;
content: '';
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/Menu/src/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ export default defineComponent({
.is-active {
& > .@{elNamespace}-sub-menu__title {
color: var(--left-menu-text-active-color) !important;
// background-color: var(--left-menu-bg-color) !important;
}
}
Expand All @@ -168,7 +169,6 @@ export default defineComponent({
}
// 设置选中时的高亮背景和高亮颜色
.@{elNamespace}-sub-menu.is-active,
.@{elNamespace}-menu-item.is-active {
color: var(--left-menu-text-active-color) !important;
background-color: var(--left-menu-bg-active-color) !important;
Expand Down Expand Up @@ -235,7 +235,7 @@ export default defineComponent({
.@{elNamespace}-menu-item.is-active {
position: relative;
&:after {
&::after {
display: none !important;
}
}
Expand Down Expand Up @@ -270,6 +270,7 @@ export default defineComponent({
.is-active {
& > .el-sub-menu__title {
color: var(--left-menu-text-active-color) !important;
// background-color: var(--left-menu-bg-color) !important;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Qrcode/src/Qrcode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ const disabledClick = () => {
.@{prefix-cls} {
&--disabled {
background: rgba(255, 255, 255, 0.95);
background: rgb(255 255 255 / 95%);
& > div {
transform: translate(-50%, -50%);
Expand Down
16 changes: 8 additions & 8 deletions src/components/Setting/src/components/LayoutRadioPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const layout = computed(() => appStore.getLayout)
border: 2px solid #e5e7eb;
border-radius: 4px;
&:before {
&::before {
position: absolute;
top: 0;
left: 0;
Expand All @@ -79,14 +79,14 @@ const layout = computed(() => appStore.getLayout)
content: '';
}
&:after {
&::after {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 25%;
background-color: #fff;
border-radius: 4px 4px 0 4px;
border-radius: 4px 4px 0;
content: '';
}
}
Expand All @@ -95,7 +95,7 @@ const layout = computed(() => appStore.getLayout)
border: 2px solid #e5e7eb;
border-radius: 4px;
&:before {
&::before {
position: absolute;
top: 0;
left: 0;
Expand All @@ -107,7 +107,7 @@ const layout = computed(() => appStore.getLayout)
content: '';
}
&:after {
&::after {
position: absolute;
top: 0;
left: 0;
Expand All @@ -123,7 +123,7 @@ const layout = computed(() => appStore.getLayout)
border: 2px solid #e5e7eb;
border-radius: 4px;
&:before {
&::before {
position: absolute;
top: 0;
left: 0;
Expand All @@ -140,7 +140,7 @@ const layout = computed(() => appStore.getLayout)
border: 2px solid #e5e7eb;
border-radius: 4px;
&:before {
&::before {
position: absolute;
top: 0;
left: 0;
Expand All @@ -152,7 +152,7 @@ const layout = computed(() => appStore.getLayout)
content: '';
}
&:after {
&::after {
position: absolute;
top: 0;
left: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserInfo/src/components/LockDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const handleLock = async () => {

<style lang="less" scoped>
:global(.v-lock-dialog) {
@media (max-width: 767px) {
@media (width <= 767px) {
max-width: calc(100vw - 16px);
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/components/UserInfo/src/components/LockPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function handleShowForm(show = false) {
font-size: 90px;
}
}
@media screen and (min-width: @screen-lg) {
span:not(.meridiem) {
font-size: 220px;
Expand All @@ -216,6 +217,7 @@ function handleShowForm(show = false) {
font-size: 260px;
}
}
@media screen and (min-width: @screen-2xl) {
span:not(.meridiem) {
font-size: 320px;
Expand Down
2 changes: 2 additions & 0 deletions stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ module.exports = {
extends: ['stylelint-config-recommended', 'stylelint-config-html'],
rules: {
'keyframes-name-pattern': null,
'selector-class-pattern': null,
'no-duplicate-selectors': null,
'selector-pseudo-class-no-unknown': [
true,
{
Expand Down

0 comments on commit be73f4d

Please sign in to comment.