minesweeper/src/main/webapp/pages/mines.css
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 27 Jun 2014 16:14:57 +0200
changeset 166 e6667c8206fc
parent 164 b56bc5060fac
child 178 87d475e1cf75
permissions -rw-r--r--
Indicate the mine selection mode by blinking the danger sign on all undiscovered squares
     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 @-moz-keyframes blinker {  
    55     0% { opacity: 0.9; }
    56     50% { opacity: 0.1; }
    57     100% { opacity: 0.9; }
    58 }
    59 
    60 @-webkit-keyframes blinker {  
    61     0% { opacity: 0.9; }
    62     50% { opacity: 0.1; }
    63     100% { opacity: 0.9; }
    64 }
    65 
    66 @keyframes blinker {  
    67     0% { opacity: 0.9; }
    68     50% { opacity: 0.1; }
    69     100% { opacity: 0.9; }
    70 } 
    71 table.MARKING td.UNKNOWN div:before {
    72     content: "\0026a0";
    73     color: #802420;
    74     
    75     -webkit-animation-name: blinker;
    76     -webkit-animation-duration: 3s;
    77     -webkit-animation-timing-function: linear;
    78     -webkit-animation-iteration-count: infinite;
    79 
    80     -moz-animation-name: blinker;
    81     -moz-animation-duration: 3s;
    82     -moz-animation-timing-function: linear;
    83     -moz-animation-iteration-count: infinite;
    84 
    85     animation-name: blinker;
    86     animation-duration: 3s;
    87     animation-timing-function: linear;
    88     animation-iteration-count: infinite;
    89 }
    90 
    91 table.field td.UNKNOWN {
    92     background-color: #D6E4E1;
    93     cursor: pointer;
    94 }
    95 table.field td.MARKED {
    96     background-color: #D6E4E1;
    97     cursor: pointer;
    98 }
    99 table.field td.EXPLOSION {
   100     background-color: #A31E39;
   101 }
   102 table.field td.DISCOVERED {
   103     background-color: #9DB2B1;
   104 }
   105 
   106 table.field td.UNKNOWN div::after {
   107     content: " ";
   108 }
   109 table.field td.EXPLOSION div::after {
   110     content: "\002717";
   111 }
   112 table.field td.DISCOVERED div::after {
   113     content: "\002714";
   114 }
   115 table.field td.MARKED div::after {
   116     content: "\0026a0";
   117 }
   118 table.field td.N_0 div::after {
   119     content: " ";
   120 }
   121 table.field td.N_1 div::after {
   122     content: "\002780";
   123 }
   124 table.field td.N_2 div::after {
   125     content: "\002781";
   126 }
   127 table.field td.N_3 div::after {
   128     content: "\002782";
   129 }
   130 table.field td.N_4 div::after {
   131     content: "\002783";
   132 }
   133 table.field td.N_5 div::after {
   134     content: "\002784";
   135 }
   136 table.field td.N_6 div::after {
   137     content: "\002785";
   138 }
   139 table.field td.N_7 div::after {
   140     content: "\002786";
   141 }
   142 table.field td.N_8 div::after {
   143     content: "\002787";
   144 }
   145 .but-orientation {
   146     margin-top:20px;
   147 }
   148 h3.log-h {
   149     border-top:1px solid silver;
   150 }
   151 .badge-status {
   152     display:inline-block;
   153     margin-left:20px;
   154     padding:5px;
   155     font-size:1em;
   156     text-shadow: none;
   157 }
   158 .btn {text-shadow: none;}
   159 .select {line-height: inherit;}
   160 .uneditable-input {
   161     margin-left: 0;
   162     color: black;
   163 }
   164 span.myturn {
   165     display: inline-block;
   166     position:relative;
   167     left:23px;
   168     padding:3px;
   169 }
   170 .whitePiece {
   171     text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
   172     color: white;
   173 }