Browse Source

style: 搜索菜单功能的`placeholder`更好的移动端兼容

xiaoxian521 1 year ago
parent
commit
a4edee2868
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/style/element-plus.scss

+ 12 - 0
src/style/element-plus.scss

@@ -156,6 +156,18 @@
 
 /* 自定义菜单搜索样式 */
 .pure-search-dialog {
+  @media screen and (width > 760px) and (width <= 940px) {
+    .el-input__inner {
+      font-size: 12px;
+    }
+  }
+
+  @media screen and (width <= 470px) {
+    .el-input__inner {
+      font-size: 12px;
+    }
+  }
+
   .el-dialog__header {
     display: none;
   }