Browse Source

图表报表标题样式

zhuth 6 years ago
parent
commit
6aa440d616

+ 6 - 0
src/components/chartDesigner/header.less

@@ -24,7 +24,10 @@
             input {
                 text-align: center;
                 font-size: 16px;
+                color: rgba(0, 0, 0, 0.65);
+                cursor: text;
                 border: none;
+                border-radius: @border-radius-base;
                 background-color: transparent;
                 &:focus {
                     border: 1px solid #40A9FF;
@@ -39,6 +42,9 @@
                 color: #40a9ff;
             }
         }
+        .ant-form-item-control.has-error >.ant-form-item-children >.input-title >.ant-input-wrapper >input {
+            border-color: #f5222d;
+        }
         .ant-form-explain {
             margin-right: -580px;
             margin-top: -30px;

+ 5 - 1
src/components/dashboardDesigner/header.less

@@ -10,10 +10,11 @@
             .ant-input-wrapper {
                 input {
                     text-align: center;
-                    font-size: 18px;
+                    font-size: 16px;
                     color: rgba(0, 0, 0, 0.65);
                     cursor: text;
                     border: none;
+                    border-radius: @border-radius-base;
                     background-color: transparent;
                     &:focus {
                         border: 1px solid #40A9FF;
@@ -29,6 +30,9 @@
                 color: #40a9ff;
             }
         }
+        .ant-form-item-control.has-error >.ant-form-item-children >.input-title >.ant-input-wrapper >input {
+            border-color: #f5222d;
+        }
         .ant-form-explain {
             margin-right: -520px;
             margin-top: -30px;

+ 0 - 5
src/themes/default/dashboarddesigner.less

@@ -4,11 +4,6 @@
     &>.ant-layout-header {
         height: 46px;
         line-height: 42px;
-        >.dashboarddesigner-header .toolbar-title .input-title .ant-input-wrapper {
-            input, .ant-input-group-addon {
-                color: #2C82BE;
-            }
-        }
     }
     &>.ant-layout-content {
         .content {