浏览代码

//Add the switch of colors for the footer of the playground

DEV-UNITY-6\Utilisateur 6 年之前
父节点
当前提交
a256a60c66
共有 2 个文件被更改,包括 30 次插入5 次删除
  1. 26 4
      Playground/css/index.css
  2. 4 1
      Playground/js/settingsPG.js

+ 26 - 4
Playground/css/index.css

@@ -421,9 +421,15 @@ body {
     cursor: pointer;
     cursor: pointer;
     background-color: white;
     background-color: white;
 }
 }
-.button:hover span {
+
+.button.languageJS:hover span {
     color: #3f3461;
     color: #3f3461;
 }
 }
+
+.button.languageTS:hover span {
+    color: #bb464b;
+}
+
 .languageJS .button:hover img {
 .languageJS .button:hover img {
     filter: invert(17%) sepia(61%) saturate(651%) hue-rotate(214deg) brightness(91%) contrast(84%);
     filter: invert(17%) sepia(61%) saturate(651%) hue-rotate(214deg) brightness(91%) contrast(84%);
 }
 }
@@ -640,7 +646,7 @@ body {
     height:35px;
     height:35px;
     width:100%;
     width:100%;
     line-height:35px;
     line-height:35px;
-    background-color: #201936;
+
 }
 }
 
 
 .navbarBottom #statusBar {
 .navbarBottom #statusBar {
@@ -650,6 +656,10 @@ body {
     padding-left:20px;
     padding-left:20px;
 }
 }
 
 
+.navbarBottom.languageTS #statusBar {
+    color: #3f3461;
+}
+
 .navbarBottom .links {
 .navbarBottom .links {
     position:absolute;
     position:absolute;
     right: 0;
     right: 0;
@@ -661,11 +671,13 @@ body {
     display: inline-block;
     display: inline-block;
     line-height: 35px;
     line-height: 35px;
     font-size: 16px;
     font-size: 16px;
-    color: white;
 }
 }
+
 .navbarBottom .links .link:hover {
 .navbarBottom .links .link:hover {
-    background-color:#3F3461;
+    background-color:white;
+    color: #3f3461;
 }
 }
+
 .navbarBottom .links .link a {
 .navbarBottom .links .link a {
     text-decoration: none;
     text-decoration: none;
     line-height: 35px;
     line-height: 35px;
@@ -674,6 +686,16 @@ body {
     color: white;
     color: white;
 }
 }
 
 
+.navbarBottom.languageJS .links .link a:hover {
+    background-color:white;
+    color: #3f3461;
+}
+
+.navbarBottom.languageTS .links .link a:hover {
+    background-color:white;
+    color: #bb464b;
+}
+
 /* Save form & co */
 /* Save form & co */
 .save-layer {
 .save-layer {
     display: none;
     display: none;

+ 4 - 1
Playground/js/settingsPG.js

@@ -17,7 +17,10 @@ class SettingsPG {
             '.navbar .select .toDisplay .subSelect .toDisplaySub',
             '.navbar .select .toDisplay .subSelect .toDisplaySub',
             '#fpsLabel',
             '#fpsLabel',
             '.save-form',
             '.save-form',
-            '#switchWrapper'
+            '#switchWrapper',
+            '.navbarBottom',
+            '.navbarBottom .links .link a',
+            '.button'
         ];
         ];
         // The elements that will color with theme
         // The elements that will color with theme
         this.elementToTheme = [
         this.elementToTheme = [