minesweeper/src/main/webapp/pages/mines.css
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 27 Jun 2014 15:05:03 +0200
changeset 163 823630089369
parent 104 ede62082c40b
child 164 b56bc5060fac
permissions -rw-r--r--
Using CSS:after instead of computed HTML fragment
     1 /**
     2  * The MIT License (MIT)
     3  *
     4  * Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     5  *
     6  * Permission is hereby granted, free of charge, to any person obtaining a copy
     7  * of this software and associated documentation files (the "Software"), to deal
     8  * in the Software without restriction, including without limitation the rights
     9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  * copies of the Software, and to permit persons to whom the Software is
    11  * furnished to do so, subject to the following conditions:
    12  *
    13  * The above copyright notice and this permission notice shall be included in
    14  * all copies or substantial portions of the Software.
    15  *
    16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  * THE SOFTWARE.
    23  */
    24 /** main chess style **/
    25 #apptitle {
    26     font-size: 20px;
    27 }
    28 .log {
    29     margin-bottom: 10px;
    30 }
    31 
    32 .jumbotron {
    33     background-color: #fafafa;
    34 }
    35 
    36 table.field {
    37 }
    38 table.field td {
    39     border: 1px solid black;
    40     padding:10px;
    41     width: 56px;
    42     height: 56px;
    43     vertical-align: middle;
    44     text-align: center;
    45     font-size:4em;
    46 }
    47 
    48 table.field td div {
    49     position: relative;
    50     left: 0;
    51     top: 0;
    52 }
    53 
    54 table.field td.UNKNOWN {
    55     background-color: #D6E4E1;
    56     cursor: pointer;
    57 }
    58 table.field td.EXPLOSION {
    59     background-color: #A31E39;
    60 }
    61 table.field td.DISCOVERED {
    62     background-color: #9DB2B1;
    63 }
    64 
    65 table.field td.UNKNOWN div::after {
    66     content: " ";
    67 }
    68 table.field td.EXPLOSION div::after {
    69     content: "\002717";
    70 }
    71 table.field td.DISCOVERED div::after {
    72     content: "\002714";
    73 }
    74 table.field td.N_0 div::after {
    75     content: " ";
    76 }
    77 table.field td.N_1 div::after {
    78     content: "\002780";
    79 }
    80 table.field td.N_2 div::after {
    81     content: "\002781";
    82 }
    83 table.field td.N_3 div::after {
    84     content: "\002782";
    85 }
    86 table.field td.N_4 div::after {
    87     content: "\002783";
    88 }
    89 table.field td.N_5 div::after {
    90     content: "\002784";
    91 }
    92 table.field td.N_6 div::after {
    93     content: "\002785";
    94 }
    95 table.field td.N_7 div::after {
    96     content: "\002786";
    97 }
    98 table.field td.N_8 div::after {
    99     content: "\002787";
   100 }
   101 .but-orientation {
   102     margin-top:20px;
   103 }
   104 h3.log-h {
   105     border-top:1px solid silver;
   106 }
   107 .badge-status {
   108     display:inline-block;
   109     margin-left:20px;
   110     padding:5px;
   111     font-size:1em;
   112     text-shadow: none;
   113 }
   114 .btn {text-shadow: none;}
   115 .select {line-height: inherit;}
   116 .uneditable-input {
   117     margin-left: 0;
   118     color: black;
   119 }
   120 span.myturn {
   121     display: inline-block;
   122     position:relative;
   123     left:23px;
   124     padding:3px;
   125 }
   126 .whitePiece {
   127     text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
   128     color: white;
   129 }