style: Descriptions样式调整
This commit is contained in:
parent
03d5e13014
commit
be73f4da3e
|
@ -61,7 +61,10 @@ export default defineComponent({
|
||||||
delete obj[key]
|
delete obj[key]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return obj
|
return {
|
||||||
|
labelClassName: `${prefixCls}-label`,
|
||||||
|
...obj
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 折叠
|
// 折叠
|
||||||
|
@ -155,9 +158,7 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{prefix-cls}-content {
|
:deep(.@{prefix-cls}-label) {
|
||||||
:deep(.@{elNamespace}-descriptions__cell) {
|
width: 150px;
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -113,18 +113,22 @@ const dialogStyle = computed(() => {
|
||||||
|
|
||||||
.@{elNamespace}-dialog {
|
.@{elNamespace}-dialog {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
|
||||||
&__header {
|
&__header {
|
||||||
|
height: 54px;
|
||||||
|
padding: 0;
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
border-bottom: 1px solid var(--el-border-color);
|
border-bottom: 1px solid var(--el-border-color);
|
||||||
padding: 0;
|
|
||||||
height: 54px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__body {
|
&__body {
|
||||||
padding: 15px !important;
|
padding: 15px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__footer {
|
&__footer {
|
||||||
border-top: 1px solid var(--el-border-color);
|
border-top: 1px solid var(--el-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__headerbtn {
|
&__headerbtn {
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ const getPasswordStrength = computed(() => {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-color: var(--el-color-white);
|
border-color: var(--el-color-white);
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 0 5px 0 5px;
|
border-width: 0 5px;
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,6 +155,7 @@ export default defineComponent({
|
||||||
.is-active {
|
.is-active {
|
||||||
& > .@{elNamespace}-sub-menu__title {
|
& > .@{elNamespace}-sub-menu__title {
|
||||||
color: var(--left-menu-text-active-color) !important;
|
color: var(--left-menu-text-active-color) !important;
|
||||||
|
// background-color: var(--left-menu-bg-color) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -168,7 +169,6 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置选中时的高亮背景和高亮颜色
|
// 设置选中时的高亮背景和高亮颜色
|
||||||
.@{elNamespace}-sub-menu.is-active,
|
|
||||||
.@{elNamespace}-menu-item.is-active {
|
.@{elNamespace}-menu-item.is-active {
|
||||||
color: var(--left-menu-text-active-color) !important;
|
color: var(--left-menu-text-active-color) !important;
|
||||||
background-color: var(--left-menu-bg-active-color) !important;
|
background-color: var(--left-menu-bg-active-color) !important;
|
||||||
|
@ -235,7 +235,7 @@ export default defineComponent({
|
||||||
.@{elNamespace}-menu-item.is-active {
|
.@{elNamespace}-menu-item.is-active {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
&:after {
|
&::after {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -270,6 +270,7 @@ export default defineComponent({
|
||||||
.is-active {
|
.is-active {
|
||||||
& > .el-sub-menu__title {
|
& > .el-sub-menu__title {
|
||||||
color: var(--left-menu-text-active-color) !important;
|
color: var(--left-menu-text-active-color) !important;
|
||||||
|
// background-color: var(--left-menu-bg-color) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -242,7 +242,7 @@ const disabledClick = () => {
|
||||||
|
|
||||||
.@{prefix-cls} {
|
.@{prefix-cls} {
|
||||||
&--disabled {
|
&--disabled {
|
||||||
background: rgba(255, 255, 255, 0.95);
|
background: rgb(255 255 255 / 95%);
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
|
|
|
@ -67,7 +67,7 @@ const layout = computed(() => appStore.getLayout)
|
||||||
border: 2px solid #e5e7eb;
|
border: 2px solid #e5e7eb;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
&:before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -79,14 +79,14 @@ const layout = computed(() => appStore.getLayout)
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 25%;
|
height: 25%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 4px 4px 0 4px;
|
border-radius: 4px 4px 0;
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ const layout = computed(() => appStore.getLayout)
|
||||||
border: 2px solid #e5e7eb;
|
border: 2px solid #e5e7eb;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
&:before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -107,7 +107,7 @@ const layout = computed(() => appStore.getLayout)
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -123,7 +123,7 @@ const layout = computed(() => appStore.getLayout)
|
||||||
border: 2px solid #e5e7eb;
|
border: 2px solid #e5e7eb;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
&:before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -140,7 +140,7 @@ const layout = computed(() => appStore.getLayout)
|
||||||
border: 2px solid #e5e7eb;
|
border: 2px solid #e5e7eb;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
||||||
&:before {
|
&::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -152,7 +152,7 @@ const layout = computed(() => appStore.getLayout)
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
&:after {
|
&::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
|
@ -94,7 +94,7 @@ const handleLock = async () => {
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
:global(.v-lock-dialog) {
|
:global(.v-lock-dialog) {
|
||||||
@media (max-width: 767px) {
|
@media (width <= 767px) {
|
||||||
max-width: calc(100vw - 16px);
|
max-width: calc(100vw - 16px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -205,6 +205,7 @@ function handleShowForm(show = false) {
|
||||||
font-size: 90px;
|
font-size: 90px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: @screen-lg) {
|
@media screen and (min-width: @screen-lg) {
|
||||||
span:not(.meridiem) {
|
span:not(.meridiem) {
|
||||||
font-size: 220px;
|
font-size: 220px;
|
||||||
|
@ -216,6 +217,7 @@ function handleShowForm(show = false) {
|
||||||
font-size: 260px;
|
font-size: 260px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: @screen-2xl) {
|
@media screen and (min-width: @screen-2xl) {
|
||||||
span:not(.meridiem) {
|
span:not(.meridiem) {
|
||||||
font-size: 320px;
|
font-size: 320px;
|
||||||
|
|
|
@ -215,6 +215,8 @@ module.exports = {
|
||||||
extends: ['stylelint-config-recommended', 'stylelint-config-html'],
|
extends: ['stylelint-config-recommended', 'stylelint-config-html'],
|
||||||
rules: {
|
rules: {
|
||||||
'keyframes-name-pattern': null,
|
'keyframes-name-pattern': null,
|
||||||
|
'selector-class-pattern': null,
|
||||||
|
'no-duplicate-selectors': null,
|
||||||
'selector-pseudo-class-no-unknown': [
|
'selector-pseudo-class-no-unknown': [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue