From: Michal Vaner Date: Sat, 4 Oct 2008 20:44:03 +0000 (+0200) Subject: Make a blue square around the header X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=22d30e31e16547dc36bd91a4fc7675e757b62b2e;p=pciids.git Make a blue square around the header --- diff --git a/PciIds/Html/Help.pm b/PciIds/Html/Help.pm index 5d08334..42cc838 100644 --- a/PciIds/Html/Help.pm +++ b/PciIds/Html/Help.pm @@ -38,7 +38,7 @@ sub getHelp( $$ ) { my $addr = PciIds::Address::new( $req->uri() ); print "
\n"; genMenu( $req, $addr, $args, $auth, [ ( $helpname eq 'index' ) ? () : [ 'Help index', 'help', 'index' ] ] ); - print "

$head

\n"; + print "

$head

The PCI ID Repository

\n"; print "
\n"; genPath( $req, $addr, 1 ); my $url = setAddrPrefix( $req->uri(), 'read' ).buildExcept( 'help', $args ).'?help='; diff --git a/PciIds/Html/List.pm b/PciIds/Html/List.pm index bc5866a..6eeb6b2 100644 --- a/PciIds/Html/List.pm +++ b/PciIds/Html/List.pm @@ -44,9 +44,8 @@ sub list( $$$$ ) { genHtmlHead( $req, $id, "\n" ); print "
\n"; genMenu( $req, $address, $args, $auth, [ [ 'Help', 'help', 'list' ], $address->helpName() ? [ 'ID syntax', 'help', $address->helpName() ] : (), [ '', 'jump' ] ] ); - print '

'.encode( $id ).'

'; - print "
\n"; - print ""; + print '

The PCI ID Repository

The home of the pci.ids file

'; + print "
\n"; genPath( $req, $address, 0 ); print htmlDiv( 'name', '

Name: '.encode( $name ) ) if defined $name && $name ne ''; print htmlDiv( 'note', '

Note: '.encode( $note ) ) if defined $note && $note ne ''; diff --git a/PciIds/Html/Util.pm b/PciIds/Html/Util.pm index 3ddb347..6668ac0 100644 --- a/PciIds/Html/Util.pm +++ b/PciIds/Html/Util.pm @@ -224,7 +224,7 @@ sub genCustomHead( $$$$$$ ) { my( $req, $args, $addr, $caption, $lactions, $ractions ) = @_; print "

\n"; genLocMenu( $req, $args, $addr, $lactions, $ractions ); - print "

$caption

\n"; + print "

$caption

The PCI ID Repository

\n"; print "
\n"; genPath( $req, $addr, 1 ); } diff --git a/index.html b/index.html index 45502ae..aa402ef 100644 --- a/index.html +++ b/index.html @@ -5,10 +5,10 @@ -
-

The PCI ID Repository

-

The home of the pci.ids file -

+
+

The PCI ID Repository

+

The home of the pci.ids file +

This is a public repository of all known ID's used in PCI devices: ID's of vendors, devices, subsystems and device classes. It is used in diff --git a/static/common.css b/static/common.css index fa07a32..4d3c69b 100644 --- a/static/common.css +++ b/static/common.css @@ -42,13 +42,22 @@ form.admin col.controls { width: 3%; } -.header +div.top { - text-align: center; - padding: 1ex; + padding: 0ex; margin: 0 0 4ex 0; } -.collapse +div.top h1, +div.top p.home { + text-align: center; margin: 0 0; } +div.top h1 +{ + margin-top: 0.5ex; +} +div.top p.home +{ + margin-bottom: 1ex; +} diff --git a/static/screen.css b/static/screen.css index ac754b7..71d4950 100644 --- a/static/screen.css +++ b/static/screen.css @@ -57,11 +57,34 @@ div.rmenu text-align: right; width: 20%; padding-right: 1em; + margin: 0px; } -div.top h1 +div.bigbluesquare { - text-align: center; - padding-top: 0.5ex; + width: 100%; +} +div.bluesquare +{ + position: absolute; + left: 20%; + top: 1ex; + width: 60%; +} +div.bluesquare, +div.bigbluesquare +{ + background-color: #4c3bff; + color: #fffa45; + border: solid blue; +} +div.rmenu, +div.lmenu +{ + background: #DDDDFF; +} +div.top p.home +{ + margin-top: 1ex; } div.top ul { @@ -96,10 +119,3 @@ form.admin table { background: #BBBBFF; } -.header -{ - background-color: #4c3bff; - color: #fffa45; - border: solid blue; - border-width: 1px; -}