浏览代码

Merge pull request #7651 from belfortk/nme-preview-redesign

Update Preview Area Buttons css
David Catuhe 5 年之前
父节点
当前提交
0312a7d044
共有 1 个文件被更改,包括 21 次插入2 次删除
  1. 21 2
      nodeEditor/src/main.scss

+ 21 - 2
nodeEditor/src/main.scss

@@ -139,10 +139,19 @@
             color: #ffffff;
             width: 40px;
             height: 40px;
+            transform-origin: 50% 50%;
+            
+            &:active {
+                transform: scale(0.90);
+            }
 
             &:hover {
-                background-color: #3f3461;
+                background: #3f3461;
             }
+            
+            &.selected {
+                background: #9379e6;
+            } 
 
             img{
                 height: 40px;
@@ -192,9 +201,19 @@
             width: 40px;
             grid-row: 1;
             height: 40px;
+            transform-origin: 50% 50%;
+
+            &:hover {
+                background: #3f3461;
+            }
 
-            &.selected, &:hover {
+            &.selected {
                 background: #9379e6;
+            } 
+            
+
+            &:active {
+                transform: scale(0.90);
             }
 
             img{