Browse Source

Fixed an error when rating teams. Small UI improvements.

Iñigo Valentin 5 years ago
parent
commit
c42d06571f
4 changed files with 20 additions and 6 deletions
  1. 1 1
      application/Controller.php
  2. 6 5
      public/css/teams.css
  3. 2 0
      public/css/ui-rta.css
  4. 11 0
      public/css/ui.css

+ 1 - 1
application/Controller.php

@@ -324,7 +324,7 @@ class Controller extends Context{
                         $action = new Delete_Team_Action();
                         break;
                     case "RATE_TEAM":
-                        require_once(PATH::ACTION . "rate_team.php");
+                        require_once(PATH::ACTION . "Rate_Team_Action.php");
                         $action = new Rate_Team_Action();
                         break;
                     case "SAVE_TEAM":

+ 6 - 5
public/css/teams.css

@@ -24,6 +24,7 @@ table#teams td.odd{
 table#teams td.team h4{
     position: relative;
     margin: 0.1em;
+    white-space: nowrap;
 }
 
 table#teams td.team h4 img.area{
@@ -64,7 +65,8 @@ table#teams td.units hr.frontline{
 }
 
 table#teams td.units div.monster_panel{
-    font-size: 25%;
+    font-size: 30%;
+    margin: 0;
 }
 
 table#teams td.units div.monster_panel img.leader{
@@ -85,15 +87,14 @@ table#teams td.action{
 }
 table#teams td.action a{
     display: inline-block;
-    width: 1.5em;
-    height: 1.5em;
+    padding: 0;
 }
 
 table#teams td.action a img{
     display: inline-block;
     width: 1em;
-    margin-top: 0.25em;
-    margin-left: 0.25em;
+    padding: 0.25em;
+    margin: 0;
     height: 1em;
 }
 

+ 2 - 0
public/css/ui-rta.css

@@ -23,6 +23,8 @@
     --input-background-disabled: linear-gradient(0deg, #603d20 0%, #64563c 97%, #685447 100%);
     --input-background-unchecked: #283e60;
     --input-background-checked: #8fb8d1;
+    --input-color-placeholder: #ffffff;
+    --input-text-shadow: 0 0 0.05em #000000;
     /**
      * Other colors
      */

+ 11 - 0
public/css/ui.css

@@ -244,6 +244,17 @@ header nav#menu_app h1#logo_text{
     width: 150px;
 }
 
+header nav#menu_app td#search input:first-child{
+    /* Search text input */
+    margin: auto 0.2em auto 1em;
+}
+
+header nav#menu_app td#search input:last-child{
+    /* Search button */
+    margin: auto 1em auto 0.2em;
+    padding: 0 0.4em;
+}
+
 header nav#menu_player select#player_select{
     width: 150px ; /* Px, the same as the logo*/
     margin: 0em 10px;