# HG changeset patch # User Jaroslav Tulach # Date 1392049334 -3600 # Node ID ec060bb2b997d08ca58271bd5b7b175503e6070f # Parent 03bec9dcc8601b0f8aa91a6654e0be576570fc20 Getting ready for even smaller displays diff -r 03bec9dcc860 -r ec060bb2b997 minesweeper/src/main/webapp/pages/index.html --- a/minesweeper/src/main/webapp/pages/index.html Mon Feb 10 16:50:08 2014 +0100 +++ b/minesweeper/src/main/webapp/pages/index.html Mon Feb 10 17:22:14 2014 +0100 @@ -33,25 +33,34 @@ + diff -r 03bec9dcc860 -r ec060bb2b997 minesweeper/src/main/webapp/pages/mines-phone-small.css --- a/minesweeper/src/main/webapp/pages/mines-phone-small.css Mon Feb 10 16:50:08 2014 +0100 +++ b/minesweeper/src/main/webapp/pages/mines-phone-small.css Mon Feb 10 17:22:14 2014 +0100 @@ -23,9 +23,9 @@ */ table.field td { padding: 4px; - width: 24px; - height: 24px; - font-size: 1.6em; + width: 20px; + height: 20px; + font-size: 1.5em; } h1 { font-size: 12px; diff -r 03bec9dcc860 -r ec060bb2b997 minesweeper/src/main/webapp/pages/mines-phone-smaller.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/minesweeper/src/main/webapp/pages/mines-phone-smaller.css Mon Feb 10 17:22:14 2014 +0100 @@ -0,0 +1,54 @@ +/** + * The MIT License (MIT) + * + * Copyright (C) 2013 Jaroslav Tulach + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +table.field td { + padding: 2px; + width: 10px; + height: 10px; + line-height: 10px; + font-size: 0.8em; +} +h1 { + font-size: 8px; +} +.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { + float: none; + } +.col-md-6 { + width: 100%; +} +.col-md-5 { + width: 100%; +} +.col-md-4 { + width: 100%; +} +.col-md-3 { + width: 100%; +} +.col-md-2 { + width: 100%; +} +.col-md-1 { + width: 100%; +}