Loading

elementui 自己更改原来的提示框样式

直接上代码:

.el-message {
            min-width: 100px !important;
            padding: 8px 10px 8px 10px !important;
            background: #fff !important;
            border-color: #fff !important;
            box-shadow: 0px 1px 4px 0px rgba(119, 121, 121, 0.4);

            .el-message__icon {
                font-size: 14px !important;
            }

            .el-message__content {
                font-size: 12px !important;
            }
        }

更新前:

更新后:

中间弹窗样式更新:

.el-message {
            min-width: 100px !important;
            max-height: 100px;
            background: #fff !important;
            border-color: #fff !important;
            display: inline-block !important;
            padding: 24px;
            text-align: center;
            top: 40% !important;
            box-shadow: 0px 1px 4px 0px rgba(119, 121, 121, 0.4);
            text-align: center;

            .el-message__icon {
                width: 30px;
                height: 30px;
                font-size: 30px !important;
                margin-right: 0 !important;
                float: left;
                margin-left: calc(50% - 13px);

            }

            .el-message__content {
                font-size: 12px !important;
                font-family: NotoSansHans;
                font-weight: 400;
                color: rgba(51, 51, 51, 1);
                line-height: 27px;
                margin-top: 30px;

            }
        }

 

posted @ 2024-06-09 17:15  Carvers  阅读(45)  评论(0)    收藏  举报