2004-07-23 20:16:51 +04:00
|
|
|
/*
|
2006-11-26 22:07:36 +03:00
|
|
|
* This file is part of NetSurf, http://netsurf-browser.org/
|
2004-07-23 20:16:51 +04:00
|
|
|
*/
|
2004-08-01 17:08:19 +04:00
|
|
|
|
2004-07-23 20:16:51 +04:00
|
|
|
/* Elements ordered as in the HTML 4.01 specification. */
|
|
|
|
|
|
|
|
html { display: block; }
|
|
|
|
|
|
|
|
head { display: none; }
|
|
|
|
|
2008-12-27 03:10:57 +03:00
|
|
|
body { display: block; margin: 8px; line-height: 1.33; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
|
|
|
div { display: block; }
|
|
|
|
|
2007-01-06 19:11:51 +03:00
|
|
|
h1 { display: block; font-size: 2em; font-weight: bold; margin: .67em 0; }
|
|
|
|
h2 { display: block; font-size: 1.5em; font-weight: bold; margin: .69em 0; }
|
|
|
|
h3 { display: block; font-size: 1.17em; font-weight: bold; margin: .83em 0; }
|
|
|
|
h4 { display: block; font-weight: bold; margin: 1.12em 0; }
|
|
|
|
h5 { display: block; font-size: .83em; font-weight: bold; margin: 1.5em 0; }
|
|
|
|
h6 { display: block; font-size: .75em; font-weight: bold; margin: 1.67em 0; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
|
|
|
address { display: block; font-style: italic; }
|
|
|
|
|
|
|
|
em { font-style: italic; }
|
|
|
|
strong { font-weight: bold; }
|
|
|
|
dfn { font-style: italic; text-decoration: underline; }
|
|
|
|
code { font-family: monospace; }
|
|
|
|
samp { font-family: monospace; }
|
|
|
|
kbd { font-family: monospace; font-weight: bold; }
|
|
|
|
var { font-style: italic; }
|
2007-01-06 19:11:51 +03:00
|
|
|
cite { font-style: italic; }
|
2004-07-23 20:16:51 +04:00
|
|
|
abbr { font-variant: small-caps; }
|
|
|
|
acronym { font-variant: small-caps; }
|
|
|
|
|
2007-01-06 19:11:51 +03:00
|
|
|
blockquote { display: block; margin: 1.12em 40px;}
|
2004-07-23 20:16:51 +04:00
|
|
|
|
|
|
|
q { font-style: italic; }
|
|
|
|
|
2008-01-31 01:09:41 +03:00
|
|
|
sub { vertical-align: sub; font-size: .83em; }
|
|
|
|
sup { vertical-align: super; font-size: .83em; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
2007-01-06 19:11:51 +03:00
|
|
|
p { display: block; margin: 1.12em 0; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
|
|
|
br[clear=left] { clear: left; }
|
|
|
|
br[clear=right] { clear: right; }
|
|
|
|
br[clear=all] { clear: both; }
|
|
|
|
|
2006-03-27 04:04:04 +04:00
|
|
|
pre { display: block; font-family: monospace; white-space: pre; margin-bottom: 1em; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
|
|
|
ins { color: green; text-decoration: underline; }
|
2004-01-26 04:24:32 +03:00
|
|
|
del { color: red; text-decoration: line-through; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
2007-01-06 19:11:51 +03:00
|
|
|
ul { display: block; padding-left: 1.5em; margin: 1.12em 0;
|
2006-11-05 22:50:34 +03:00
|
|
|
list-style-type: disc; }
|
2007-01-06 19:11:51 +03:00
|
|
|
ol { display: block; padding-left: 1.5em; margin: 1.12em 0;
|
2006-11-05 22:50:34 +03:00
|
|
|
list-style-type: decimal; }
|
2007-01-06 19:11:51 +03:00
|
|
|
li { display: list-item; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
2006-11-06 01:49:17 +03:00
|
|
|
ul ul { list-style-type: circle; }
|
|
|
|
ul ul ul { list-style-type: square; }
|
|
|
|
|
2007-01-09 21:14:22 +03:00
|
|
|
ol ul, ul ol, ul ul, ol ol { margin-top: 0; margin-bottom: 0; }
|
2007-01-06 19:11:51 +03:00
|
|
|
|
|
|
|
dl { display: block; padding-left: 1.5em; margin: 1em; }
|
2004-07-23 20:16:51 +04:00
|
|
|
dt { display: block; font-weight: bold; }
|
|
|
|
dd { display: block; padding-left: 1em; margin-bottom: 0.3em; }
|
|
|
|
|
2007-01-06 19:11:51 +03:00
|
|
|
dir { display: block; padding-left: 1.5em; margin: 1.12em 0; }
|
|
|
|
menu { display: block; padding-left: 1.5em; margin: 1.12em 0; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
2005-04-26 17:36:21 +04:00
|
|
|
table { display: table; border-spacing: 2px; }
|
2005-03-24 02:22:48 +03:00
|
|
|
table[align=left] { float: left; }
|
|
|
|
table[align=center] { margin-left: auto; margin-right: auto; text-align: left; }
|
|
|
|
table[align=right] { float: right; text-align: left; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
2007-01-06 19:11:51 +03:00
|
|
|
caption { display: table-caption; text-align: center; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
2005-01-11 00:35:34 +03:00
|
|
|
thead { display: table-header-group; vertical-align: middle; }
|
|
|
|
tfoot { display: table-footer-group; vertical-align: middle; }
|
|
|
|
tbody { display: table-row-group; vertical-align: middle; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
|
|
|
colgroup { display: table-column-group; }
|
|
|
|
col { display: table-column; }
|
|
|
|
|
2005-01-11 00:35:34 +03:00
|
|
|
tr { display: table-row; vertical-align: middle; }
|
2005-04-26 17:36:21 +04:00
|
|
|
td, th { display: table-cell; vertical-align: inherit; padding: 1px; }
|
|
|
|
td { text-align: left; }
|
2006-04-22 13:24:27 +04:00
|
|
|
th { font-weight: bold; text-align: center; }
|
2005-01-11 00:43:57 +03:00
|
|
|
|
2005-04-26 17:36:21 +04:00
|
|
|
td[nowrap], th[nowrap] { white-space: nowrap; }
|
2005-11-21 23:46:21 +03:00
|
|
|
|
2008-02-25 19:37:48 +03:00
|
|
|
tr[align=left] > td, tr[align=left] > th { text-align: left; }
|
|
|
|
tr[align=center] > td, tr[align=center] > th { text-align: center; }
|
|
|
|
tr[align=right] > td, tr[align=right] > th { text-align: right; }
|
2005-01-11 00:43:57 +03:00
|
|
|
|
2005-04-26 17:36:21 +04:00
|
|
|
col[valign=top], colgroup[valign=top], tbody[valign=top], td[valign=top], tfoot[valign=top], th[valign=top], thead[valign=top], tr[valign=top] { vertical-align: top; }
|
|
|
|
col[valign=middle], colgroup[valign=middle], tbody[valign=middle], td[valign=middle], tfoot[valign=middle], th[valign=middle], thead[valign=middle], tr[valign=middle] { vertical-align: middle; }
|
|
|
|
col[valign=bottom], colgroup[valign=bottom], tbody[valign=bottom], td[valign=bottom], tfoot[valign=bottom], th[valign=bottom], thead[valign=bottom], tr[valign=bottom] { vertical-align: bottom; }
|
|
|
|
|
2003-10-18 03:59:23 +04:00
|
|
|
a:link { color: #00f; text-decoration: underline; }
|
2002-10-15 15:09:56 +04:00
|
|
|
|
2004-07-23 20:16:51 +04:00
|
|
|
img { color: #888; }
|
|
|
|
img[align=left] { float: left; }
|
|
|
|
img[align=right] { float: right; }
|
2004-02-20 03:42:36 +03:00
|
|
|
|
2004-07-23 20:16:51 +04:00
|
|
|
object[align=left] { float: left; }
|
|
|
|
object[align=right] { float: right; }
|
2004-02-02 04:38:54 +03:00
|
|
|
|
2004-07-23 20:16:51 +04:00
|
|
|
applet[align=left] { float: left; }
|
|
|
|
applet[align=right] { float: right; }
|
2003-01-06 03:02:52 +03:00
|
|
|
|
2004-07-23 20:16:51 +04:00
|
|
|
center { display: block; text-align: center; }
|
|
|
|
|
|
|
|
tt { font-family: monospace; }
|
|
|
|
i { font-style: italic; }
|
|
|
|
b { font-weight: bold; }
|
2007-01-06 19:11:51 +03:00
|
|
|
big { font-size: 1.17em; }
|
|
|
|
small { font-size: .83em; }
|
2004-07-23 20:16:51 +04:00
|
|
|
strike, s { text-decoration: line-through; }
|
|
|
|
u { text-decoration: underline; }
|
|
|
|
|
|
|
|
font[size="1"] { font-size: x-small; }
|
|
|
|
font[size="2"] { font-size: small; }
|
|
|
|
font[size="3"] { font-size: medium; }
|
|
|
|
font[size="4"] { font-size: large; }
|
|
|
|
font[size="5"] { font-size: x-large; }
|
|
|
|
font[size="6"] { font-size: xx-large; }
|
|
|
|
font[size="7"] { font-size: xx-large; }
|
2008-02-02 03:48:39 +03:00
|
|
|
font[size="-1"], font[size="-2"], font[size="-3"], font[size="-4"],
|
|
|
|
font[size="-5"], font[size="-6"] { font-size: smaller; }
|
|
|
|
font[size="+1"], font[size="+2"], font[size="+3"], font[size="+4"],
|
|
|
|
font[size="+5"], font[size="+6"] { font-size: larger; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
2005-05-11 04:54:56 +04:00
|
|
|
hr { display: block; background-color: #000; height: 1px;
|
2007-01-06 19:11:51 +03:00
|
|
|
margin: 4px auto; border: 1px #d9d9d9 inset; }
|
2005-05-11 04:54:56 +04:00
|
|
|
hr[align=left] { margin-left: 0; }
|
|
|
|
hr[align=right] { margin-right: 0; }
|
2005-11-14 20:51:38 +03:00
|
|
|
hr[noshade] { background-color: #888; height: 2px; border: none; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
|
|
|
noframes { display: none; }
|
|
|
|
|
|
|
|
iframe[align=left] { float: left; }
|
|
|
|
iframe[align=right] { float: right; }
|
|
|
|
|
2007-01-09 22:43:52 +03:00
|
|
|
form { display: block; }
|
2004-07-23 20:16:51 +04:00
|
|
|
|
2008-02-02 12:53:42 +03:00
|
|
|
input, button { background-color: #fff; color: #000; text-align: left;
|
2008-04-25 18:15:18 +04:00
|
|
|
font-family: sans-serif; width: auto; height: auto; overflow: hidden;
|
2008-02-02 03:13:19 +03:00
|
|
|
margin: 1px; border: 2px solid #333; padding: 1px 2px; }
|
2004-03-24 13:26:48 +03:00
|
|
|
input[type=button], input[type=reset], input[type=submit], button {
|
2008-01-29 16:03:29 +03:00
|
|
|
background-color: #d9d9d9; color: #000; text-align: center;
|
2008-02-02 03:13:19 +03:00
|
|
|
border: medium outset #d9d9d9; padding: 1px 0.5em; }
|
2008-01-29 16:03:29 +03:00
|
|
|
input[type=image] { background-color: transparent; color: #000;
|
2008-04-25 18:15:18 +04:00
|
|
|
border: none; padding: 0 2px; }
|
2003-09-28 21:37:43 +04:00
|
|
|
input[type=checkbox], input[type=radio] { background-color: transparent;
|
2008-04-25 18:15:18 +04:00
|
|
|
border: none; padding: 0 0.1em; }
|
|
|
|
input[type=file] { background-color: #d9d9d9; color: #000; font-style: italic;
|
2008-02-02 03:13:19 +03:00
|
|
|
border: medium inset #d9d9d9; padding: 1px 2px;}
|
2004-07-23 20:16:51 +04:00
|
|
|
input[align=left] { float: left; }
|
|
|
|
input[align=right] { float: right; }
|
2003-09-28 21:37:43 +04:00
|
|
|
|
2008-01-29 16:03:29 +03:00
|
|
|
select { background-color: #d9d9d9; color: #000; text-align: left;
|
2008-02-11 20:53:00 +03:00
|
|
|
font-family: sans-serif; width: auto; height: auto; overflow: hidden;
|
2008-02-12 00:18:53 +03:00
|
|
|
margin: 1px; border: medium inset #d9d9d9; padding: 1px 3px 1px 2px;
|
|
|
|
white-space: nowrap; }
|
2008-01-29 16:03:29 +03:00
|
|
|
select:after { content: "\25bc"; border-left: 4px ridge #d9d9d9; }
|
2003-09-27 03:22:00 +04:00
|
|
|
|
2004-07-23 20:16:51 +04:00
|
|
|
textarea { background-color: #fff; color: #000; text-align: left;
|
2008-04-25 18:15:18 +04:00
|
|
|
font-family: monospace; width: auto; height: auto; overflow: scroll;
|
2008-02-02 03:13:19 +03:00
|
|
|
margin: 1px; border: 2px solid #333; padding: 0 2px; }
|
2003-10-10 22:47:04 +04:00
|
|
|
|
2007-01-06 19:11:51 +03:00
|
|
|
fieldset { display: block; border: thin solid #888; margin: 1.12em 0; }
|
2007-11-05 18:39:54 +03:00
|
|
|
|
|
|
|
[align=left] { text-align: left; }
|
|
|
|
[align=center] { text-align: center; }
|
|
|
|
[align=right] { text-align: right; }
|
Merged revisions 4859-5013,5016-5018 via svnmerge from
svn://source.netsurf-browser.org/branches/takkaria/netsurf-hubbub
........
r4860 | takkaria | 2008-08-02 03:51:35 +0100 (Sat, 02 Aug 2008) | 2 lines
A really horribly rough first go at integrating hubbub with NetSurf. Segfaults, but I'm not sure what I've done wrong.
........
r4861 | jmb | 2008-08-02 05:01:19 +0100 (Sat, 02 Aug 2008) | 3 lines
Fix segfault caused by mismatched struct layout expectations.
Fix warnings, too.
........
r4862 | jmb | 2008-08-02 05:11:02 +0100 (Sat, 02 Aug 2008) | 2 lines
Destroy parser as soon as it's no longer needed, and flag this so that html_destroy doesn't cause things to trample all over the heap.
........
r4863 | takkaria | 2008-08-02 15:30:34 +0100 (Sat, 02 Aug 2008) | 2 lines
Remove deugging printf()s, add Aliases file, add script { display: none; } block.
........
r4868 | takkaria | 2008-08-02 22:14:55 +0100 (Sat, 02 Aug 2008) | 2 lines
Fix a segfault bug.
........
r4869 | takkaria | 2008-08-02 22:17:58 +0100 (Sat, 02 Aug 2008) | 2 lines
Add gtk/res/Aliases as a symlink to the one in !NS/Resources
........
r4870 | takkaria | 2008-08-02 22:26:31 +0100 (Sat, 02 Aug 2008) | 2 lines
Fix symlink.
........
r4885 | jmb | 2008-08-03 23:26:54 +0100 (Sun, 03 Aug 2008) | 2 lines
Make multiple parallel parser instances work correctly.
........
r4886 | tlsa | 2008-08-04 00:21:29 +0100 (Mon, 04 Aug 2008) | 1 line
Don't display contents of STYLE.
........
r4891 | jmb | 2008-08-04 01:18:07 +0100 (Mon, 04 Aug 2008) | 5 lines
Fix reparent_children to actually work
Make get_parent_node pay attention to the element_only flag
Fixup node referencing when appending a text child
Make clone_node clone attributes and namespace information in the non-deep case
........
r4918 | jmb | 2008-08-05 15:27:03 +0100 (Tue, 05 Aug 2008) | 2 lines
Fix debug target
........
r4944 | takkaria | 2008-08-07 12:56:50 +0100 (Thu, 07 Aug 2008) | 2 lines
Use talloc to allocate space for Hubbub.
........
r4993 | takkaria | 2008-08-10 17:49:47 +0100 (Sun, 10 Aug 2008) | 2 lines
Stub out the encoding change callback so NS-hubbub compiles again.
........
r4994 | takkaria | 2008-08-10 18:02:33 +0100 (Sun, 10 Aug 2008) | 2 lines
Tell Hubbub the encoding that HTTP gives us, if we have one.
........
r5001 | takkaria | 2008-08-11 02:53:24 +0100 (Mon, 11 Aug 2008) | 2 lines
First go at implementing proper <meta charset> support in NetSurf, amongst some refactoring. Probably works, but I have no pages around to test it on.
........
r5002 | takkaria | 2008-08-11 02:56:35 +0100 (Mon, 11 Aug 2008) | 2 lines
Fix (I hope) a 64-bit compiler warning.
........
r5012 | takkaria | 2008-08-11 08:40:28 +0100 (Mon, 11 Aug 2008) | 2 lines
Fix some nits from jmb. (Remove const from html->encoding, set encoding_source to something about right.)
........
r5013 | takkaria | 2008-08-11 08:48:50 +0100 (Mon, 11 Aug 2008) | 2 lines
Properly fix <meta charset> handling, by passing in the right thing as the context. No idea how this worked before. :) (credit: jmb)
........
r5017 | jmb | 2008-08-11 09:13:22 +0100 (Mon, 11 Aug 2008) | 7 lines
Pedantic typo fix.
Make Hubbub YES when building for RISC OS.
Make Hubbub AUTO when building for GTK
Ignore the presence of Hubbub on other platforms.
Remove the explicit libparserutils pkg-config stuff from the makefile (see r5016)
Add some logic that means Hubbub gets enabled correctly when building on RISC OS and when cross-compiling for it. (This is ugly and will go away when pkg-config is available on RO)
........
svn path=/trunk/netsurf/; revision=5019
2008-08-11 12:17:48 +04:00
|
|
|
|
2008-08-21 23:34:23 +04:00
|
|
|
noembed, script, style { display: none; }
|