Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * The default style sheet used to render HTML. | 2 * The default style sheet used to render HTML. |
| 3 * | 3 * |
| 4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 | 56 |
| 57 body { | 57 body { |
| 58 display: block; | 58 display: block; |
| 59 margin: 8px | 59 margin: 8px |
| 60 } | 60 } |
| 61 | 61 |
| 62 body:-webkit-full-page-media { | 62 body:-webkit-full-page-media { |
| 63 background-color: rgb(0, 0, 0) | 63 background-color: rgb(0, 0, 0) |
| 64 } | 64 } |
| 65 | 65 |
| 66 body:-webkit-full-page-media > div > a { | |
|
esprehn
2016/03/15 17:33:07
We can't do this. It adds rules for every <a> in e
qinmin
2016/03/15 17:52:16
Done. Moved the style back into MediaDocument
| |
| 67 display: block; | |
| 68 width: 120px; | |
| 69 height: 36px; | |
| 70 background: #4285F4; | |
| 71 font-family: Roboto; | |
| 72 font-size: 14px; | |
| 73 border-radius: 5px; | |
| 74 color: white; | |
| 75 font-weight: bold; | |
| 76 text-decoration: none; | |
| 77 text-transform: uppercase; | |
| 78 text-align: center; | |
| 79 line-height: 36px; | |
| 80 margin: 32px auto 0 auto; | |
| 81 } | |
| 82 | |
| 83 body:-webkit-full-page-media > div { | |
|
esprehn
2016/03/15 17:33:07
Ditto, you can't put generic rules or use combinat
qinmin
2016/03/15 17:52:16
Done.
| |
| 84 max-height: 100%; | |
| 85 max-width: 100%; | |
| 86 position: absolute; | |
| 87 top: 50%; | |
| 88 left: 50%; | |
| 89 margin-right: -50%; | |
| 90 transform: translate(-50%, -50%); | |
| 91 } | |
| 92 | |
| 66 p { | 93 p { |
| 67 display: block; | 94 display: block; |
| 68 -webkit-margin-before: 1__qem; | 95 -webkit-margin-before: 1__qem; |
| 69 -webkit-margin-after: 1__qem; | 96 -webkit-margin-after: 1__qem; |
| 70 -webkit-margin-start: 0; | 97 -webkit-margin-start: 0; |
| 71 -webkit-margin-end: 0; | 98 -webkit-margin-end: 0; |
| 72 } | 99 } |
| 73 | 100 |
| 74 div { | 101 div { |
| 75 display: block | 102 display: block |
| (...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1116 @page { | 1143 @page { |
| 1117 /* FIXME: Define the right default values for page properties. */ | 1144 /* FIXME: Define the right default values for page properties. */ |
| 1118 size: auto; | 1145 size: auto; |
| 1119 margin: auto; | 1146 margin: auto; |
| 1120 padding: 0px; | 1147 padding: 0px; |
| 1121 border-width: 0px; | 1148 border-width: 0px; |
| 1122 } | 1149 } |
| 1123 | 1150 |
| 1124 /* noscript is handled internally, as it depends on settings. */ | 1151 /* noscript is handled internally, as it depends on settings. */ |
| 1125 | 1152 |
| OLD | NEW |