minesweeper/src/main/webapp/pages/mines.css
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 27 Jun 2014 15:25:21 +0200
changeset 164 b56bc5060fac
parent 163 823630089369
child 166 e6667c8206fc
permissions -rw-r--r--
Allowing to mark a field with a danger sign
     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.MARKED {
    59     background-color: #D6E4E1;
    60     cursor: pointer;
    61 }
    62 table.field td.EXPLOSION {
    63     background-color: #A31E39;
    64 }
    65 table.field td.DISCOVERED {
    66     background-color: #9DB2B1;
    67 }
    68 
    69 table.field td.UNKNOWN div::after {
    70     content: " ";
    71 }
    72 table.field td.EXPLOSION div::after {
    73     content: "\002717";
    74 }
    75 table.field td.DISCOVERED div::after {
    76     content: "\002714";
    77 }
    78 table.field td.MARKED div::after {
    79     content: "\0026a0";
    80 }
    81 table.field td.N_0 div::after {
    82     content: " ";
    83 }
    84 table.field td.N_1 div::after {
    85     content: "\002780";
    86 }
    87 table.field td.N_2 div::after {
    88     content: "\002781";
    89 }
    90 table.field td.N_3 div::after {
    91     content: "\002782";
    92 }
    93 table.field td.N_4 div::after {
    94     content: "\002783";
    95 }
    96 table.field td.N_5 div::after {
    97     content: "\002784";
    98 }
    99 table.field td.N_6 div::after {
   100     content: "\002785";
   101 }
   102 table.field td.N_7 div::after {
   103     content: "\002786";
   104 }
   105 table.field td.N_8 div::after {
   106     content: "\002787";
   107 }
   108 .but-orientation {
   109     margin-top:20px;
   110 }
   111 h3.log-h {
   112     border-top:1px solid silver;
   113 }
   114 .badge-status {
   115     display:inline-block;
   116     margin-left:20px;
   117     padding:5px;
   118     font-size:1em;
   119     text-shadow: none;
   120 }
   121 .btn {text-shadow: none;}
   122 .select {line-height: inherit;}
   123 .uneditable-input {
   124     margin-left: 0;
   125     color: black;
   126 }
   127 span.myturn {
   128     display: inline-block;
   129     position:relative;
   130     left:23px;
   131     padding:3px;
   132 }
   133 .whitePiece {
   134     text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
   135     color: white;
   136 }