OLD | NEW |
(Empty) | |
| 1 /* Copyright 2017 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.md { |
| 6 background-color: #303030; |
| 7 } |
| 8 |
| 9 body { |
| 10 -webkit-font-smoothing: antialiased; |
| 11 font-size: 100%; |
| 12 margin: 0; |
| 13 } |
| 14 |
| 15 /** Typography -------------------------------------------------------------- */ |
| 16 |
| 17 .content { |
| 18 background-color: #303030; |
| 19 color: rgb(179, 179, 179); |
| 20 font-size: calc(100% - 2px); |
| 21 line-height: calc(100% + 6px); |
| 22 min-width: 240px; |
| 23 } |
| 24 |
| 25 h1 { |
| 26 color: rgb(204, 204, 204); |
| 27 font-size: calc(100% + 8px); |
| 28 font-weight: 400; |
| 29 line-height: calc(100% + 8px); |
| 30 } |
| 31 |
| 32 em { |
| 33 color: white; |
| 34 font-style: normal; |
| 35 } |
| 36 |
| 37 .learn-more-button { |
| 38 color: rgb(123, 170, 247); |
| 39 text-decoration: none; |
| 40 } |
| 41 |
| 42 /* Small font on small screens. */ |
| 43 @media (max-width: 240px), |
| 44 (max-height: 320px) { |
| 45 .content { |
| 46 font-size: calc(100% - 4px); |
| 47 line-height: calc(100% + 6px); |
| 48 } |
| 49 |
| 50 h1 { |
| 51 font-size: calc(100% + 4px); |
| 52 line-height: calc(100% + 4px); |
| 53 } |
| 54 } |
| 55 |
| 56 /** Icon -------------------------------------------------------------------- */ |
| 57 |
| 58 .icon { |
| 59 content: url(../../../../ui/webui/resources/images/incognito_splash.svg); |
| 60 height: 120px; |
| 61 width: 120px; |
| 62 } |
| 63 |
| 64 /* Medium-sized icon on medium-sized screens. */ |
| 65 @media (max-height: 480px), |
| 66 (max-width: 720px) { |
| 67 .icon { |
| 68 height: 72px; |
| 69 width: 72px; |
| 70 } |
| 71 } |
| 72 |
| 73 /* Very small icon on very small screens. */ |
| 74 @media (max-width: 720px) { |
| 75 @media (max-width: 240px), |
| 76 (max-height: 480px) { |
| 77 .icon { |
| 78 height: 48px; |
| 79 width: 48px; |
| 80 } |
| 81 } |
| 82 } |
| 83 |
| 84 /** The "Learn more" link --------------------------------------------------- */ |
| 85 |
| 86 /* By default, we only show the inline "Learn more" link. */ |
| 87 .content > .learn-more-button { |
| 88 display: none; |
| 89 } |
| 90 |
| 91 /* On narrow screens, we show the standalone "Learn more" link. */ |
| 92 @media (max-width: 720px) { |
| 93 #subtitle > .learn-more-button { |
| 94 display: none; |
| 95 } |
| 96 |
| 97 .content > .learn-more-button { |
| 98 display: block; |
| 99 } |
| 100 } |
| 101 |
| 102 /** Layout ------------------------------------------------------------------ */ |
| 103 |
| 104 /* Align the content, icon, and title to to the center. */ |
| 105 .content { |
| 106 margin-left: auto; |
| 107 margin-right: auto; |
| 108 max-width: 600px; |
| 109 } |
| 110 |
| 111 .icon { |
| 112 margin-left: auto; |
| 113 margin-right: auto; |
| 114 } |
| 115 |
| 116 h1 { |
| 117 text-align: center; |
| 118 } |
| 119 |
| 120 /* Align the two columns of bulletpoints next to each other. */ |
| 121 .bulletpoints { |
| 122 float: left; |
| 123 } |
| 124 |
| 125 html[dir=rtl] .bulletpoints { |
| 126 float: right; |
| 127 } |
| 128 |
| 129 .bulletpoints + .bulletpoints { |
| 130 clear: right; |
| 131 } |
| 132 |
| 133 html[dir=rtl] .bulletpoints { |
| 134 clear: left; |
| 135 } |
| 136 |
| 137 .clearer { |
| 138 clear: both; |
| 139 } |
| 140 |
| 141 /* On narrow screens, align everything to the left. */ |
| 142 @media (max-width: 720px) { |
| 143 .content { |
| 144 -webkit-margin-start: 0; |
| 145 max-width: 720px !important; /* must override the rule set by JS which |
| 146 * is only valid for width > 720px cases. */ |
| 147 text-align: start; |
| 148 } |
| 149 |
| 150 .icon { |
| 151 -webkit-margin-start: 0; |
| 152 } |
| 153 |
| 154 h1 { |
| 155 text-align: start; |
| 156 } |
| 157 |
| 158 .bulletpoints + .bulletpoints { |
| 159 clear: both; |
| 160 } |
| 161 } |
| 162 |
| 163 /** Paddings and margins ---------------------------------------------------- */ |
| 164 |
| 165 .bulletpoints ul { |
| 166 -webkit-padding-start: 16px; |
| 167 margin: 4px 0 0 0; |
| 168 } |
| 169 |
| 170 /* Margins of floating elements don't collapse. The margin for bulletpoints |
| 171 * will usually be provided by a neighboring element. */ |
| 172 .bulletpoints { |
| 173 margin: 0; |
| 174 } |
| 175 |
| 176 .bulletpoints + .bulletpoints { |
| 177 -webkit-margin-start: 40px; |
| 178 } |
| 179 |
| 180 .bulletpoints + .bulletpoints.tooWide { |
| 181 -webkit-margin-start: 0; |
| 182 margin-top: 40px; |
| 183 } |
| 184 |
| 185 /* Wide screens. */ |
| 186 @media (min-width: 720px) { |
| 187 .icon, |
| 188 h1, |
| 189 #subtitle, |
| 190 .learn-more-button { |
| 191 margin-bottom: 24px; |
| 192 margin-top: 24px; |
| 193 } |
| 194 |
| 195 .content { |
| 196 margin-top: 40px; |
| 197 min-width: 240px; |
| 198 padding: 8px 48px 24px 48px; |
| 199 } |
| 200 |
| 201 /* Snap the content box to the whole height on short screens. */ |
| 202 @media (max-height: 480px) { |
| 203 html, |
| 204 body, |
| 205 .content { |
| 206 height: 100%; |
| 207 } |
| 208 |
| 209 .content { |
| 210 margin-bottom: 0; |
| 211 margin-top: 0; |
| 212 padding-bottom: 0; |
| 213 padding-top: 0; |
| 214 } |
| 215 |
| 216 .icon { |
| 217 margin-top: 0; |
| 218 padding-top: 32px; /* Define the top offset through the icon's padding, |
| 219 * otherwise the screen height would be 100% + 32px */ |
| 220 } |
| 221 } |
| 222 |
| 223 /* Smaller vertical margins on very short screens. */ |
| 224 @media (max-height: 320px) { |
| 225 h1, |
| 226 #subtitle, |
| 227 .learn-more-button { |
| 228 margin-bottom: 16px; |
| 229 margin-top: 16px; |
| 230 } |
| 231 |
| 232 .icon { |
| 233 margin-bottom: 16px; |
| 234 } |
| 235 } |
| 236 } |
| 237 |
| 238 /* Narrow screens */ |
| 239 @media (max-width: 720px) { |
| 240 .content { |
| 241 padding: 72px 32px; |
| 242 min-width: 176px; |
| 243 } |
| 244 |
| 245 .icon, |
| 246 h1, |
| 247 #subtitle, |
| 248 .learn-more-button { |
| 249 margin-bottom: 24px; |
| 250 margin-top: 24px; |
| 251 } |
| 252 |
| 253 /* The two columns of bulletpoints are moved under each other. */ |
| 254 .bulletpoints + .bulletpoints { |
| 255 -webkit-margin-start: 0; |
| 256 margin-top: 24px; |
| 257 } |
| 258 |
| 259 /* Smaller offsets on smaller screens. */ |
| 260 @media (max-height: 600px) { |
| 261 .content { |
| 262 padding-top: 48px; |
| 263 } |
| 264 |
| 265 .icon, |
| 266 h1, |
| 267 #subtitle, |
| 268 .learn-more-button { |
| 269 margin-bottom: 16px; |
| 270 margin-top: 16px; |
| 271 } |
| 272 |
| 273 .bulletpoints + .bulletpoints { |
| 274 margin-top: 16px; |
| 275 } |
| 276 } |
| 277 |
| 278 /* Small top offset on very small screens. */ |
| 279 @media (max-height: 480px) { |
| 280 .content { |
| 281 padding-top: 32px; |
| 282 } |
| 283 } |
| 284 |
| 285 /* Undo the first and last elements margins. */ |
| 286 .icon { |
| 287 margin-top: 0; |
| 288 } |
| 289 |
| 290 .learn-more-button { |
| 291 margin-bottom: 0; |
| 292 } |
| 293 } |
| 294 |
| 295 /* Very narrow screens. */ |
| 296 @media (max-width: 240px) { |
| 297 .content { |
| 298 min-width: 192px; |
| 299 padding-left: 24px; |
| 300 padding-right: 24px; |
| 301 } |
| 302 } |
OLD | NEW |