Prevent table cell resizing but filling each cell with invisible number
authorJaroslav Tulach <jtulach@netbeans.org>
Sat, 26 Jul 2014 08:28:59 +0200
changeset 17887d475e1cf75
parent 177 fce7972a0078
child 179 f5c619bef0cf
Prevent table cell resizing but filling each cell with invisible number
minesweeper/src/main/java/org/apidesign/demo/minesweeper/MinesModel.java
minesweeper/src/main/webapp/pages/mines.css
     1.1 --- a/minesweeper/src/main/java/org/apidesign/demo/minesweeper/MinesModel.java	Fri Jul 25 21:20:27 2014 +0200
     1.2 +++ b/minesweeper/src/main/java/org/apidesign/demo/minesweeper/MinesModel.java	Sat Jul 26 08:28:59 2014 +0200
     1.3 @@ -45,7 +45,7 @@
     1.4      }
     1.5      
     1.6      @ComputedProperty static String gameStyle(GameState state) {
     1.7 -        return state == GameState.MARKING_MINE ? "MARKING" : null;
     1.8 +        return state == GameState.MARKING_MINE ? "MARKING" : "PLAYING";
     1.9      }
    1.10      
    1.11      @Model(className = "Row", properties = {
     2.1 --- a/minesweeper/src/main/webapp/pages/mines.css	Fri Jul 25 21:20:27 2014 +0200
     2.2 +++ b/minesweeper/src/main/webapp/pages/mines.css	Sat Jul 26 08:28:59 2014 +0200
     2.3 @@ -90,6 +90,7 @@
     2.4  
     2.5  table.field td.UNKNOWN {
     2.6      background-color: #D6E4E1;
     2.7 +    color: #D6E4E1;
     2.8      cursor: pointer;
     2.9  }
    2.10  table.field td.MARKED {
    2.11 @@ -103,8 +104,8 @@
    2.12      background-color: #9DB2B1;
    2.13  }
    2.14  
    2.15 -table.field td.UNKNOWN div::after {
    2.16 -    content: " ";
    2.17 +table.PLAYING td.UNKNOWN div::after {
    2.18 +    content: "\002780";
    2.19  }
    2.20  table.field td.EXPLOSION div::after {
    2.21      content: "\002717";
    2.22 @@ -116,7 +117,9 @@
    2.23      content: "\0026a0";
    2.24  }
    2.25  table.field td.N_0 div::after {
    2.26 -    content: " ";
    2.27 +    content: "\002780";
    2.28 +    background-color: white;
    2.29 +    color: white;
    2.30  }
    2.31  table.field td.N_1 div::after {
    2.32      content: "\002780";