Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. */ | 3 found in the LICENSE file. */ |
| 4 | 4 |
| 5 a { | 5 a { |
| 6 color: #585858; | 6 color: #585858; |
| 7 } | 7 } |
| 8 | 8 |
| 9 body { | 9 body { |
| 10 background-color: #f7f7f7; | 10 background-color: #f7f7f7; |
| 11 color: #585858; | 11 color: #585858; |
| 12 font-size: 125%; | 12 font-size: 125%; |
| 13 } | 13 } |
| 14 | 14 |
| 15 body.safe-browsing { | 15 body.safe-browsing { |
| 16 background-color: rgb(206, 52, 38); | 16 background-color: rgb(206, 52, 38); |
| 17 color: white; | 17 color: white; |
| 18 } | 18 } |
| 19 | 19 |
| 20 body.yellow { | |
| 21 background-color: rgb(255, 220, 59); | |
| 22 color: black; | |
| 23 } | |
| 24 | |
| 20 button { | 25 button { |
| 21 background: rgb(76, 142, 250); | 26 background: rgb(76, 142, 250); |
| 22 border: 0; | 27 border: 0; |
| 23 border-radius: 2px; | 28 border-radius: 2px; |
| 24 box-sizing: border-box; | 29 box-sizing: border-box; |
| 25 color: #fff; | 30 color: #fff; |
| 26 cursor: pointer; | 31 cursor: pointer; |
| 27 float: right; | 32 float: right; |
| 28 font-size: .875em; | 33 font-size: .875em; |
| 29 height: 36px; | 34 height: 36px; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 width: 100%; | 110 width: 100%; |
| 106 } | 111 } |
| 107 | 112 |
| 108 #opt-in-label { | 113 #opt-in-label { |
| 109 -webkit-margin-start: 32px; | 114 -webkit-margin-start: 32px; |
| 110 } | 115 } |
| 111 | 116 |
| 112 .safe-browsing a, | 117 .safe-browsing a, |
| 113 .safe-browsing #details, | 118 .safe-browsing #details, |
| 114 .safe-browsing #details-button, | 119 .safe-browsing #details-button, |
| 115 .safe-browsing h1 { | 120 .safe-browsing h1, |
| 121 .safe-browsing small-link { | |
|
Dan Beam
2014/06/20 21:28:19
nit: .small-link, probably? (unless you're actuall
felt
2014/06/21 00:23:15
What's the benefit of the :-webkit-any here?
Dan Beam
2014/06/21 00:42:52
less code
| |
| 116 color: white; | 122 color: white; |
| 117 } | 123 } |
| 118 | 124 |
| 119 .safe-browsing button { | 125 .safe-browsing button { |
| 120 background-color: rgb(206, 52, 38); | 126 background-color: rgb(206, 52, 38); |
| 121 border: 1px solid white; | 127 border: 1px solid white; |
| 122 } | 128 } |
| 123 | 129 |
| 124 .safe-browsing button:active { | 130 .safe-browsing button:active { |
| 125 background-color: rgb(206, 52, 38); | 131 background-color: rgb(206, 52, 38); |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 140 color: #696969; | 146 color: #696969; |
| 141 font-size: .875em; | 147 font-size: .875em; |
| 142 } | 148 } |
| 143 | 149 |
| 144 .ssl .icon { | 150 .ssl .icon { |
| 145 background-image: -webkit-image-set( | 151 background-image: -webkit-image-set( |
| 146 url('images/1x/brokenssl_red.png') 1x, | 152 url('images/1x/brokenssl_red.png') 1x, |
| 147 url('images/2x/brokenssl_red.png') 2x); | 153 url('images/2x/brokenssl_red.png') 2x); |
| 148 } | 154 } |
| 149 | 155 |
| 156 .ssl-guard .icon { | |
| 157 background-image: -webkit-image-set( | |
| 158 url('images/1x/brokenssl_guard.png') 1x, | |
| 159 url('images/2x/brokenssl_guard.png') 2x) !important; | |
|
Dan Beam
2014/06/20 21:28:19
!important :(
Dan Beam
2014/06/20 21:28:19
url('...') -> url(...) everywhere
felt
2014/06/21 00:23:15
Done.
felt
2014/06/21 00:23:15
this might be because I am clumsy at CSS. is there
Dan Beam
2014/06/21 00:42:52
https://developer.mozilla.org/en-US/docs/Web/CSS/S
| |
| 160 height: 104px; | |
| 161 width: 94px; | |
| 162 } | |
| 163 | |
| 150 .styled-checkbox { | 164 .styled-checkbox { |
| 151 float: left; | 165 float: left; |
| 152 height: 16px; | 166 height: 16px; |
| 153 margin-top: .36em; | 167 margin-top: .36em; |
| 154 position: relative; | 168 position: relative; |
| 155 width: 16px; | 169 width: 16px; |
| 156 } | 170 } |
| 157 | 171 |
| 158 [dir='rtl'] .styled-checkbox { | 172 [dir='rtl'] .styled-checkbox { |
| 159 float: right; | 173 float: right; |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 182 position: absolute; | 196 position: absolute; |
| 183 top: 4px; | 197 top: 4px; |
| 184 transform: rotate(-45deg); | 198 transform: rotate(-45deg); |
| 185 width: 9px; | 199 width: 9px; |
| 186 } | 200 } |
| 187 | 201 |
| 188 .styled-checkbox input[type=checkbox]:checked + label::after { | 202 .styled-checkbox input[type=checkbox]:checked + label::after { |
| 189 opacity: 1; | 203 opacity: 1; |
| 190 } | 204 } |
| 191 | 205 |
| 206 .yellow a, | |
| 207 .yellow #details, | |
| 208 .yellow #details-button, | |
| 209 .yellow h1, | |
| 210 .yellow small-link { | |
|
Dan Beam
2014/06/20 21:28:19
:-webkit-any() again?
| |
| 211 color: black; | |
| 212 } | |
| 213 | |
| 214 .yellow .icon { | |
| 215 background-image: -webkit-image-set( | |
| 216 url('images/1x/brokenssl_yellow.png') 1x, | |
| 217 url('images/2x/brokenssl_yellow.png') 2x); | |
| 218 } | |
| 219 | |
| 192 @media (max-width: 700px) { | 220 @media (max-width: 700px) { |
| 193 .interstitial-wrapper { | 221 .interstitial-wrapper { |
| 194 padding: 0 10%; | 222 padding: 0 10%; |
| 195 } | 223 } |
| 196 } | 224 } |
| 197 | 225 |
| 198 @media (max-height: 600px) { | 226 @media (max-height: 600px) { |
| 199 .interstitial-wrapper { | 227 .interstitial-wrapper { |
| 200 margin-top: 13%; | 228 margin-top: 13%; |
| 201 } | 229 } |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 229 } | 257 } |
| 230 | 258 |
| 231 #malware-opt-in { | 259 #malware-opt-in { |
| 232 margin-top: 24px; | 260 margin-top: 24px; |
| 233 } | 261 } |
| 234 | 262 |
| 235 .nav-wrapper { | 263 .nav-wrapper { |
| 236 margin-top: 30px; | 264 margin-top: 30px; |
| 237 } | 265 } |
| 238 } | 266 } |
| OLD | NEW |