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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 vertical-align: super; | 961 vertical-align: super; |
962 font-size: smaller | 962 font-size: smaller |
963 } | 963 } |
964 | 964 |
965 nobr { | 965 nobr { |
966 white-space: nowrap | 966 white-space: nowrap |
967 } | 967 } |
968 | 968 |
969 /* states */ | 969 /* states */ |
970 | 970 |
971 :focus { | 971 :focus { |
972 outline: auto 5px -webkit-focus-ring-color | 972 outline: auto 5px -webkit-focus-ring-color |
973 } | 973 } |
974 | 974 |
975 /* Read-only text fields do not show a focus ring but do still receive focus */ | 975 /* Read-only text fields do not show a focus ring but do still receive focus */ |
976 html:focus, body:focus, input[readonly]:focus { | 976 html:focus, body:focus, input[readonly]:focus { |
977 outline: none | 977 outline: none |
978 } | 978 } |
979 | 979 |
980 embed:focus, iframe:focus, object:focus { | 980 embed:focus, iframe:focus, object:focus { |
981 outline: none | 981 outline: none |
982 } | 982 } |
983 | 983 |
984 input:focus, textarea:focus, keygen:focus, select:focus { | 984 input:focus, textarea:focus, keygen:focus, select:focus { |
985 outline-offset: -2px | 985 outline-offset: -2px |
986 } | 986 } |
987 | 987 |
988 input[type="button" i]:focus, | 988 input[type="button" i]:focus, |
989 input[type="checkbox" i]:focus, | 989 input[type="checkbox" i]:focus, |
990 input[type="file" i]:focus, | 990 input[type="file" i]:focus, |
991 input[type="hidden" i]:focus, | 991 input[type="hidden" i]:focus, |
992 input[type="image" i]:focus, | 992 input[type="image" i]:focus, |
993 input[type="radio" i]:focus, | 993 input[type="radio" i]:focus, |
994 input[type="reset" i]:focus, | 994 input[type="reset" i]:focus, |
995 input[type="submit" i]:focus, | 995 input[type="submit" i]:focus, |
996 input[type="file" i]:focus::-webkit-file-upload-button { | 996 input[type="file" i]:focus::-webkit-file-upload-button { |
997 outline-offset: 0 | 997 outline-offset: 0 |
998 } | 998 } |
999 | 999 |
1000 a:-webkit-any-link { | 1000 a:-webkit-any-link { |
1001 color: -webkit-link; | 1001 color: -webkit-link; |
1002 text-decoration: underline; | 1002 text-decoration: underline; |
1003 cursor: auto; | 1003 cursor: auto; |
1004 } | 1004 } |
1005 | 1005 |
1006 a:-webkit-any-link:active { | 1006 a:-webkit-any-link:active { |
1007 color: -webkit-activelink | 1007 color: -webkit-activelink |
1008 } | 1008 } |
1009 | 1009 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 right: 0; | 1087 right: 0; |
1088 width: -webkit-fit-content; | 1088 width: -webkit-fit-content; |
1089 height: -webkit-fit-content; | 1089 height: -webkit-fit-content; |
1090 margin: auto; | 1090 margin: auto; |
1091 border: solid; | 1091 border: solid; |
1092 padding: 1em; | 1092 padding: 1em; |
1093 background: white; | 1093 background: white; |
1094 color: black | 1094 color: black |
1095 } | 1095 } |
1096 | 1096 |
| 1097 /* TODO(foolip): In the Fullscreen spec, there's a ::backdrop block with the |
| 1098 properties shared with :fullscreen::backdrop (see fullscreen.css). */ |
1097 dialog::backdrop { | 1099 dialog::backdrop { |
1098 position: fixed; | 1100 position: fixed; |
1099 top: 0; | 1101 top: 0; |
1100 right: 0; | 1102 right: 0; |
1101 bottom: 0; | 1103 bottom: 0; |
1102 left: 0; | 1104 left: 0; |
1103 background: rgba(0,0,0,0.1) | 1105 background: rgba(0,0,0,0.1) |
1104 } | 1106 } |
1105 | 1107 |
1106 /* page */ | 1108 /* page */ |
1107 | 1109 |
1108 @page { | 1110 @page { |
1109 /* FIXME: Define the right default values for page properties. */ | 1111 /* FIXME: Define the right default values for page properties. */ |
1110 size: auto; | 1112 size: auto; |
1111 margin: auto; | 1113 margin: auto; |
1112 padding: 0px; | 1114 padding: 0px; |
1113 border-width: 0px; | 1115 border-width: 0px; |
1114 } | 1116 } |
1115 | 1117 |
1116 /* Allows thead sections to print at the top of each page. */ | 1118 /* Allows thead sections to print at the top of each page. */ |
1117 @media print { | 1119 @media print { |
1118 thead { break-inside:avoid; } | 1120 thead { break-inside:avoid; } |
1119 } | 1121 } |
1120 | 1122 |
1121 /* noscript is handled internally, as it depends on settings. */ | 1123 /* noscript is handled internally, as it depends on settings. */ |
1122 | |
OLD | NEW |