OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ |
| 4 |
| 5 html { |
| 6 height: 100%; |
| 7 width: 100%; |
| 8 } |
| 9 |
| 10 body { |
| 11 background-color: #f4f4f4; |
| 12 background-repeat: no-repeat; |
| 13 font-family: Droid Sans; |
| 14 height: 100%; |
| 15 margin: 0; |
| 16 width: 100%; |
| 17 } |
| 18 |
| 19 a { |
| 20 color: rgb(51, 181, 229); |
| 21 } |
| 22 |
| 23 #logo { |
| 24 background-position: center; |
| 25 background-repeat: no-repeat; |
| 26 background-size: 100%; |
| 27 margin-left: auto; |
| 28 margin-right: auto; |
| 29 } |
| 30 |
| 31 #center-wrapper { |
| 32 height: 100%; |
| 33 width: 100%; |
| 34 } |
| 35 |
| 36 #footer-container { |
| 37 display: none; |
| 38 position: fixed; |
| 39 text-align: center; |
| 40 width: 100%; |
| 41 } |
| 42 |
| 43 #footer { |
| 44 color: #646464; |
| 45 } |
| 46 |
| 47 #take-a-tour { |
| 48 background: -webkit-gradient( |
| 49 linear, left top, left bottom, from(#f5f5f5), to(#f1f1f1)); |
| 50 border: 1px solid #ccc; |
| 51 border-radius: 2px; |
| 52 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), |
| 53 inset 0 0 2px rgba(255, 255, 255, 0.6); |
| 54 color: rgb(73, 73, 74); |
| 55 display: block; |
| 56 font-size: 20px; |
| 57 font-weight: bold; |
| 58 margin-left: auto; |
| 59 margin-right: auto; |
| 60 max-width: 400px; |
| 61 padding: 11px 0; |
| 62 text-align: center; |
| 63 text-decoration: none; |
| 64 } |
| 65 @media only screen and (max-width: 400px) { |
| 66 #take-a-tour { |
| 67 /* By default the button is 400px wide and center. In this selector, the |
| 68 screen isn't wide enough for that. */ |
| 69 margin-left: 20px; |
| 70 margin-right: 20px; |
| 71 } |
| 72 } |
| 73 |
| 74 #take-a-tour:active { |
| 75 border: 1px solid #a1a1a1; |
| 76 box-shadow: inset 0 5px 15px rgba(100, 100, 100, 0.20); |
| 77 } |
| 78 |
| 79 /* Logos */ |
| 80 @media only screen and (-webkit-min-device-pixel-ratio: 1.0) { |
| 81 #logo { |
| 82 background-image: url(images/holo_logo_200.png); |
| 83 height: 152px; |
| 84 width: 536px; |
| 85 } |
| 86 } |
| 87 @media only screen and (-webkit-min-device-pixel-ratio: 1.3) { |
| 88 #logo { |
| 89 background-image: url(images/holo_logo_200.png); |
| 90 height: 114px; |
| 91 width: 402px; |
| 92 } |
| 93 } |
| 94 @media only screen and (-webkit-min-device-pixel-ratio: 1.5) { |
| 95 #logo { |
| 96 background-image: url(images/holo_logo_150.png); |
| 97 height: 76px; |
| 98 width: 268px; |
| 99 } |
| 100 } |
| 101 @media only screen and (-webkit-min-device-pixel-ratio: 2.0) { |
| 102 #logo { |
| 103 background-image: url(images/holo_logo_200.png); |
| 104 height: 76px; |
| 105 width: 268px; |
| 106 } |
| 107 } |
| 108 |
| 109 /* Logo/tour button spacing */ |
| 110 @media only screen and (min-height: 401px) { |
| 111 #take-a-tour { |
| 112 /* Add space between the logo and the tour button */ |
| 113 margin-top: 60px; |
| 114 } |
| 115 } |
| 116 @media only screen and (max-height: 400px) { |
| 117 #take-a-tour { |
| 118 /* Add a little space between the logo and tour button, and push the |
| 119 logo and button up some. */ |
| 120 margin-bottom: 40px; |
| 121 margin-top: 20px; |
| 122 } |
| 123 } |
| 124 |
| 125 /* Footer vertical positioning */ |
| 126 @media only screen and (min-height: 601px) { |
| 127 #footer-container { |
| 128 /* the top of the footer is 140px from the bottom of the screen */ |
| 129 bottom: 0; |
| 130 height: 140px; |
| 131 } |
| 132 } |
| 133 @media only screen and (max-height: 600px) { |
| 134 #footer-container { |
| 135 /* the bottom of footer is 20px from the bottom of the screen */ |
| 136 bottom: 20px; |
| 137 } |
| 138 } |
| 139 |
| 140 /* Footer horizontal width */ |
| 141 #footer { |
| 142 max-width: 600px; |
| 143 } |
| 144 @media only screen and (min-width: 606px) { |
| 145 #footer { |
| 146 /* the footer doesn't fill the page horizontally, so center it */ |
| 147 margin-left: auto; |
| 148 margin-right: auto; |
| 149 } |
| 150 } |
| 151 @media only screen and (max-width: 605px) { |
| 152 #footer { |
| 153 /* the footer horizontally fills the page, so add some margin */ |
| 154 margin-left: 20px; |
| 155 margin-right: 20px; |
| 156 } |
| 157 } |
OLD | NEW |