Changeset 28649


Ignore:
Timestamp:
Sep 6, 2007, 7:04:17 AM (12 years ago)
Author:
sfiera@…
Message:

New clothes!

  • Applies style of my mockup to /trunk/www, at jmpp@'s request
  • Use php long-tags (mostly)
  • Valid XHTML 1.1 (mostly)
Location:
trunk/www
Files:
20 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/archives.php

    r28322 r28649  
    77  ?>
    88
    9     <div id="content">
    10        
    119                <h2 class="hdr">News Archive</h2>
    1210     <?php
     
    1917
    2018
    21       </div>
    22     </div>
    23   </div>
    2419
    2520<?php
  • trunk/www/downloads.php

    r28322 r28649  
    66  ?>
    77
    8     <div id="content">
    9        
    108                <h2 class="hdr">Available Downloads</h2>
    119                <table>
     
    1715$rep=opendir($dir);
    1816while ($file = readdir($rep)) {
    19         if (   preg_match('/^(\..*)|(.*\.php)|(.*\.css)|(.*\.html)$/', $file)
     17        if (preg_match('/^(\..*)|(.*\.(php|css|html|js))$/', $file)
    2018                || is_dir($file)
    2119           ) {
     
    3937?>
    4038                </table>
    41     </div>
    42   </div>
    4339
    4440<?php
  • trunk/www/getmp.php

    r28322 r28649  
    1   <?php
    2     /* $Id$ */
    3     $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
    4     include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
    5     print_header('MacPorts -- Download & Installation', 'utf-8');
    6   ?>
    7 
    8     <div id="content">
    9       <h2 class="hdr">Get MacPorts</h2>
    10 
    11          <p>MacPorts version <? print "$mp_version_dmg"; ?> is available in binary form as a
    12          dmg disk image for <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.4.dmg">
    13          Tiger (Universal)</a> or <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.3.dmg">
    14          Panther</a>, both containing a pkg installer, or version <? print "$mp_version"; ?>
    15          in source form as either a <a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.bz2">tar.bz2</a>
    16          package or a <a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.gz">tar.gz</a> one.
    17          Checksums for all these are contained in the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>.chk.txt">
     1<?php
     2  /* $Id$ */
     3  $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
     4  include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
     5  print_header('MacPorts -- Download &amp; Installation', 'utf-8');
     6?>
     7    <h2 class="hdr">Get MacPorts</h2>
     8    <p>MacPorts version <?php print "$mp_version_dmg"; ?> is available in binary form as a
     9         dmg disk image for <a href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>-10.4.dmg">
     10         Tiger (Universal)</a> or <a href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>-10.3.dmg">
     11         Panther</a>, both containing a pkg installer, or version <?php print "$mp_version"; ?>
     12         in source form as either a <a href="/macports/downloads/MacPorts-<?php print "$mp_version"; ?>.tar.bz2">tar.bz2</a>
     13         package or a <a href="/macports/downloads/MacPorts-<?php print "$mp_version"; ?>.tar.gz">tar.gz</a> one.
     14         Checksums for all these are contained in the <a href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>.chk.txt">
    1815         checksums file</a>.</p>
    1916
     
    3431          </ul>
    3532
    36         <h5 class="subhdr">Mac OS X Package (.pkg) Installer</h5>
     33        <h3 class="subhdr">Mac OS X Package (.pkg) Installer</h3>
    3734
    3835        <p>The easiest way to install MacPorts on a Mac OS X system is by downloading
    39         the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.4.dmg">dmg for Tiger</a>
    40         or the <a href="/macports/downloads/MacPorts-<? print "$mp_version_dmg"; ?>-10.3.dmg">one for Panther</a>
     36        the <a href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>-10.4.dmg">dmg for Tiger</a>
     37        or the <a href="/macports/downloads/MacPorts-<?php print "$mp_version_dmg"; ?>-10.3.dmg">one for Panther</a>
    4138        and running Installer.app on the pkg contained therein by double clicking on them,
    4239        following the on-screen instructions until completion. This procedure will place a
     
    5653        installation always current. At this point you should be ready to enjoy MacPorts!</p>
    5754
    58         <h5 class="subhdr">Source Installation</h5>
     55        <h3 class="subhdr">Source Installation</h3>
    5956
    6057        <p>If on the other hand you decide to install from source, there are still a couple of
     
    6259        install a port with the MacPorts system, namely compiling and installing MacPorts itself.
    6360        &ldquo;<kbd>cd</kbd>&rdquo; into the directory where you downloaded the package
    64         and run &ldquo;<kbd>tar xjvf <a href="/macpports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.bz2">
    65         MacPorts-<? print "$mp_version"; ?>.tar.bz2</a></kbd>&rdquo; or &ldquo;<kbd>tar xzvf
    66         <a href="/macports/downloads/MacPorts-<? print "$mp_version"; ?>.tar.gz">MacPorts-<? print "$mp_version"; ?>.tar.gz</a></kbd>&rdquo;,
     61        and run &ldquo;<kbd>tar xjvf <a href="/macports/downloads/MacPorts-<?php print "$mp_version"; ?>.tar.bz2">
     62        MacPorts-<?php print "$mp_version"; ?>.tar.bz2</a></kbd>&rdquo; or &ldquo;<kbd>tar xzvf
     63        <a href="/macports/downloads/MacPorts-<?php print "$mp_version"; ?>.tar.gz">MacPorts-<?php print "$mp_version"; ?>.tar.gz</a></kbd>&rdquo;,
    6764        depending on whether you downloaded the bz2 tarball or the gz one, respectively.
    6865        This will unpack the MacPorts sources that you will proceed to build and install. To do
    6966        so, execute the following:</p>
    7067
    71       <pre>cd MacPorts-<? print "$mp_version"; ?>
     68      <pre>cd MacPorts-<?php print "$mp_version"; ?>
    7269
    7370./configure &amp;&amp; make &amp;&amp; sudo make install</pre>
     
    7673
    7774<pre>cd ../
    78 rm -rf MacPorts-<? print "$mp_version"; ?>*</pre>
     75rm -rf MacPorts-<?php print "$mp_version"; ?>*</pre>
    7976
    8077      <p>These steps need to be perfomed from an administrator account, for which &ldquo;<kbd>sudo</kbd>&rdquo;
    8178      will ask the password upon installation. This procedure will install a pristine MacPorts
    82       system and, if the optional steps are taken, remove the as of now unnecessary MacPorts-<? print "$mp_version"; ?>
     79      system and, if the optional steps are taken, remove the as of now unnecessary MacPorts-<?php print "$mp_version"; ?>
    8380      source directory and corresponding tarball. To customize your installation you should read the output
    8481      of &ldquo;<kbd>./configure --help | more</kbd>&rdquo; and pass the appropriate options for the settings you wish
     
    9491
    9592
    96         <h5 class="subhdr">Help</h5>
     93        <h3 class="subhdr">Help</h3>
    9794
    9895      <p><a href="/macports/help.php">Help</a> is also available should you need it.</p>
    9996
    100         <h5 class="subhdr">SVN Sources</h5>
     97        <h3 class="subhdr">SVN Sources</h3>
    10198
    10299     <p>If you are developer or a user with a taste for the bleeding edge and wish for the latest changes
     
    117114        Trac browser</a>.</p>
    118115
    119     </div>
    120   </div>
    121 
    122116<?php
    123117  print_footer();
  • trunk/www/includes/common.inc

    r28382 r28649  
    2727  global $DOCUMENT_ROOT;
    2828?>
    29 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    30   "http://www.w3.org/TR/xhtml/DTD/xhtml1-strict.dtd">
    31 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     29<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
     30                      "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     31<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    3232  <head>
    3333    <title><?php echo("$title"); ?></title>
    3434    <meta http-equiv="Content-type" content="text/html; charset=<?php echo("$encoding"); ?>" />
    3535    <meta name="author" content="Jim Mock (mij@macports.org)" />
     36    <meta name="author" content="Juan Manuel Palacios (jmpp@macports.org)" />
     37    <meta name="author" content="Chris Pickel (sfiera@macports.org)" />
    3638    <meta name="copyright" content="2003, OpenDarwin" />
    37     <meta name="author" content="Juan Manuel Palacios (jmpp@macports.org)" />
    3839    <meta name="copyright" content="2007, MacPorts Team" />
    3940    <meta name="robots" content="all" />
    4041    <link rel="stylesheet" type="text/css" href="/macports/mp.css" />
    4142    <link rel="alternate" type="application/rss+xml" href="/macports/macports_news.xml" />
     43    <script type="text/javascript" src="mootools.v1.11.js"></script>
     44    <script type="text/javascript" src="language.js"></script>
    4245  </head>
    43 
    4446  <body>
    45 
    46   <?php check_referer(); ?>
    47  
    48   <div id="main">
    49 
    50 <?php
    51   include("$DOCUMENT_ROOT/macports/includes/header.inc");
     47  <?php
     48    include("$DOCUMENT_ROOT/macports/includes/header.inc");
     49    check_referer();
    5250}
    5351
     
    8785        if (preg_match("/darwinports.com/", $_SERVER['HTTP_REFERER'])) {
    8886?>
    89         <div class="referer_box">
    90                 <h1>The Official MacPorts Web Site, home of the project previously known as DarwinPorts</h1>
    91                
     87        <div class="warning">
    9288                <p>You have arrived at the <b>Official MacPorts Web Site</b> from <i>darwinports.com</i>.</p>
    93          
    9489                <p><i>darwinports.com</i> <b>is not the official MacPorts Web Site</b>, nor is it a mirror of
    9590                the <i>Official MacPorts Web Site</i>.  There is <b>no relationship</b> between the <i>MacPorts
  • trunk/www/includes/email.inc

    r28314 r28649  
    66function obfuscate_email($email)
    77{
    8         return "<span class='email'>".str_replace('@', "<img src='/macports/img/at.gif' alt='at' style='width: 1em; height: 1em;' border='0' />", $email)."</span>";
     8        return "<span class='email'>".str_replace('@', "<img src='/macports/img/at.gif' alt='at' style='width: 1em; height: 1em;' />", $email)."</span>";
    99}
    1010
  • trunk/www/includes/footer.inc

    r28382 r28649  
     1    </div>
    12    <div id="footer">
    23<!-- $Id$ -->
    3         <span class="languages">English, <a href="/macports/fr/">Fran&ccedil;ais</a>, <a href="/macports/es/">Espa&ntilde;ol</a>,
    4             <a href="/macports/ru/">Russian</a>, <a href="/macports/it/">Italiano</a></span>
    5         Copyright &copy; 2002-<? print date("Y"); ?>, <a href="http://www.macports.org/">MacPorts</a>. All rights reserved. |
    6             <a href="/macports/macports_news.xml">RSS feed</a>
     4        Copyright &copy; 2002&ndash;<?php print date("Y"); ?>, <a href="http://www.macports.org/">MacPorts</a>. Hosted by <a href="http://www.macosforge.org">Mac OS Forge</a>. All rights reserved.
    75    </div>
  • trunk/www/includes/header.inc

    r28582 r28649  
    1       <div id="nav">
    21<!-- $Id$ -->
    3         <div id="logo">
    4           <a href="/macports/" title="MacPorts"><img src="/macports/img/dp.jpg"
    5             alt="MacPorts" /></a>
    6         </div>
    7         <div id="l">
    8           <ul>
    9           <?php
    10             $PHP_SELF = $_SERVER['PHP_SELF'];
    11             $home = '/macports/index.php';
    12             $getdp = '/macports/getmp.php';
    13             $ports = '/macports/ports.php';
    14             $help = '/macports/help.php';
     2    <h1>
     3      <a href="/macports/" title="MacPorts">
     4        <span class="accessibility">MacPorts</span>
     5      </a>
     6    </h1>
     7    <p class="accessibility">
     8      <a href="#content">Skip to Content</a>
     9    </p>
     10    <div id="header">
     11      <a id="download" href="/macports/getmp.php">
     12        <span class="accessibility">Download MacPorts</span>
     13      </a>
     14      <span class="accessibility">View site in</span>
     15      <span>
     16        <a href="#" id="language"><img src="/macports/img/en-enabled.png" alt="English" width="30" height="48" /></a>
     17      </span>
     18      <span id="languages">
     19        <a href="#"><img src="/macports/img/fr-disabled.png" alt="Fran&ccedil;ais" width="30" height="48" /></a><a href="#"><img src="/macports/img/es-disabled.png" alt="Espa&ntilde;ol" width="30" height="48" /></a><a href="#"><img src="/macports/img/ru-disabled.png" alt="" width="30" height="48" /></a><a href="#"><img src="/macports/img/it-disabled.png" alt="Italiano" width="30" height="48" /></a>
     20      </span>
     21    </div>
     22    <div id="navigation">
     23      <dl>
     24        <dt>Getting Started</dt>
     25        <dd>
     26          <ul>
     27<?php
     28            $PHP_SELF = $_SERVER['PHP_SELF'];
     29            $pages = array (
     30              'Home'            => '/macports/index.php',
     31              'Get MacPorts'    => '/macports/getmp.php',
     32              'Available Ports' => '/macports/ports.php',
     33              'Documentation'   => 'http://geeklair.net/new_macports_guide',
     34              'Support &amp; Development'
     35                                => 'http://trac.macports.org/',
     36            );
    1537
    16             if($PHP_SELF == $home) {
    17               echo "<li class=\"selected\"><a href=\"/macports/index.php\" title=\"Home\">Home</a></li>\n";
    18             }
    19             else {
    20               echo "<li><a href=\"/macports/index.php\" title=\"Home\">Home</a></li>\n";
    21             }
    22             if($PHP_SELF == $getmp) {
    23               echo "<li class=\"selected\"><a href=\"/macports/getmp.php\" title=\"Get MacPorts\">Get MacPorts</a></li>\n";
    24             }
    25             else {
    26               echo "<li><a href=\"/macports/getmp.php\" title=\"Get MacPorts\">Get MacPorts</a></li>\n";
    27             }
    28           ?>
    29             <li class="last"><a href="http://trac.macports.org/" title="Support & Development">Support & Development</a></li>
    30           </ul>
    31         </div>
    32         <div id="r">
    33           <ul>
    34             <li><a href="http://geeklair.net/new_macports_guide/" title="Documentation">Documentation</a></li>
    35             <?php
    36               if($PHP_SELF == $ports) {
    37                 echo "<li class=\"selected\"><a href=\"/macports/ports.php\" title=\"Available Ports\">Available Ports</a></li>\n";
    38               }
    39               else {
    40                 echo "<li><a href=\"/macports/ports.php\" title=\"Available Ports\">Available Ports</a></li>\n";
    41               }
    42               if($PHP_SELF == $help) {
    43                 echo "<li class=\"sellast\"><a href=\"/macports/help.php\" title=\"Help\">Help</a></li>\n";
    44               }
    45               else {
    46                 echo "<li class=\"last\"><a href=\"/macports/help.php\" title=\"Help\">Help</a></li>\n";
    47               }
    48             ?>
    49           </ul>
    50         </div>
    51       </div>
    52 
    53       <div id="content">
    54            <h2>Warning: This is just a test installation of the old DarwinPorts project page, official site is located at
    55            <a href="htp://www.macports.org">http://www.macports.org</a> as always (currently in plans for a redesign)</h2>
    56       </div>
     38            foreach ($pages as $title => $url) {
     39              if ($PHP_SELF == $url) {
     40                echo "            <li class=\"selected\"><a href=\"$url\" title=\"$title\">$title</a></li>\n";
     41              } else {
     42                echo "            <li><a href=\"$url\" title=\"$title\">$title</a></li>\n";
     43              }
     44            }
     45          ?>
     46          </ul>
     47        </dd>
     48        <dt>Shortcuts</dt>
     49        <dd>
     50          <ul>
     51            <li><a href="http://svn.macports.org/repository/macports/">Subversion Repository</a></li>
     52            <li><a href="http://trac.macports.org/projects/macports/wiki/FAQ">MacPorts FAQ</a></li>
     53            <li><a href="http://trac.macports.org/projects/macports/newticket">Report a Bug</a></li>
     54          </ul>
     55        </dd>
     56      </dl>
     57    </div>
     58    <div id="content">
     59      <p class="warning">Warning: This is just a test installation of the old DarwinPorts project page, official site is located at <a href="htp://www.macports.org">http://www.macports.org</a> as always (currently in plans for a redesign)</p>
  • trunk/www/index.php

    r28581 r28649  
    1   <?php
    2     /* $Id$ */
    3     $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
    4     include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
    5     include_once("$DOCUMENT_ROOT/macports/includes/news.inc");
    6     print_header('MacPorts -- Home', 'utf-8');
    7   ?>
     1<?php
     2  /* $Id$ */
     3  $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
     4  include_once("$DOCUMENT_ROOT/macports/includes/common.inc");
     5  include_once("$DOCUMENT_ROOT/macports/includes/news.inc");
     6  print_header('MacPorts -- Home', 'utf-8');
     7?>
     8    <h2 class="hdr">Introduction to MacPorts</h2>
    89
    9     <div id="content">
     10    <p>The MacPorts Project's main goal is to provide an easy way to
     11        install various open-source software products on the <a
     12      href="http://www.apple.com/macosx/">Mac OS X</a> operating system.</p>
    1013
    11       <h2 class="hdr">Introduction to MacPorts</h2>
    12 
    13       <p>The MacPorts Project's main goal is to provide an easy way to
    14         install various open-source software products on the <a
    15         href="http://www.apple.com/macosx/">Mac OS X</a> operating system.</p>
    16 
    17       <p>There are currently about <?= ports_count(); ?> completed and usable
     14    <p>There are currently about <?php echo ports_count(); ?> completed and usable
    1815        <a href="/macports/ports.php">ports</a>, with more being added on a regular basis.
    1916        You can track recently added ports by subscribing to the <a
     
    2118        mailing list.</p>
    2219       
    23       <p>For more information on obtaining and installing MacPorts,
     20    <p>For more information on obtaining and installing MacPorts,
    2421        please see the <a href="/macports/getmp.php">Get MacPorts</a> section of this
    25         site.  Also be sure to check out the <a href="http://geeklair.net/new_macports_guide/">documentation</a>,
     22        site.Also be sure to check out the <a href="http://geeklair.net/new_macports_guide/">documentation</a>,
    2623        and if you have questions or run into problems, you can get help at our <a
    2724        href="/macports/help.php">help section</a>. The <a href="http://trac.macports.org/projects/macports/wiki">MacPorts Wiki</a>
     
    2926        ongoing <a href="http://trac.macports.org/projects/macports/wiki/FAQ">FAQ</a> effort.</p>
    3027
    31       <p>Bug reports, feature requests, and new ports should be submitted as
     28    <p>Bug reports, feature requests, and new ports should be submitted as
    3229        <a href="http://trac.macports.org/projects/macports/newticket">new tickets</a> into our Trac system. Please consult
    33     the <a href="http://geeklair.net/new_macports_guide/#project.tickets"> documentation</a>
    34     to improve the processing of your ticket(s).</p>
     30  the <a href="http://geeklair.net/new_macports_guide/#project.tickets"> documentation</a>
     31  to improve the processing of your ticket(s).</p>
    3532
    36     <p>For information on becoming an official member of the MacPorts project
    37     with write access to our subversion repository, please consult the
    38     <a href="http://geeklair.net/new_macports_guide/#project.membership">relevant documentation</a>
    39     detailing our membership requirements and resulting duties &amp; benefits
    40     from holding a MacPorts account.</p>
     33  <p>For information on becoming an official member of the MacPorts project
     34  with write access to our subversion repository, please consult the
     35  <a href="http://geeklair.net/new_macports_guide/#project.membership">relevant documentation</a>
     36  detailing our membership requirements and resulting duties &amp; benefits
     37  from holding a MacPorts account.</p>
    4138
    42     <p><b>Current MacPorts <a href="/macports/getmp.php">release</a>: <? print "$mp_version"; ?></b></p>
     39  <p><b>Current MacPorts <a href="/macports/getmp.php">release</a>: <?php print "$mp_version"; ?></b></p>
    4340
    44       <div id="news">
     41    <div id="news">
    4542        <h2 class="hdr">Project News</h2>
    4643
    47         <?php
    48           print_headlines();
    49         ?>
     44<?php
     45  print_headlines();
     46?>
    5047
    5148                <p>You can also browse our <a href="/macports/archives.php">news archives</a>.</p>
    5249       
    53       </div>
    5450    </div>
    55   </div>
    56 
    5751<?php
    5852  print_footer();
  • trunk/www/mp.css

    r28314 r28649  
    33*/
    44
    5 * {
    6         font-family: Georgia, "New Century Schoolbook", "Times New Roman", Times, serif;
     5body {
     6    margin: 30px 40px;
     7    background: url(/macports/img/top-backdrop.png) repeat-x #EDEDED;
     8    font: 12px Helvetica, Arial, sans-serif;
     9    line-height: 1.2em;
    710}
    8 
    9 body {
    10         background: #e3f1c7;
    11         width: 720px;
    12         margin: 15px auto 15px auto;
    13         font-size: 12px;
     11.accessibility {
     12    display: block;
     13    overflow: hidden;
     14    width: 0;
     15    height: 0;
    1416}
    15 
    1617a:link {
    17         color: #669;
    18         text-decoration: none;
    19         font-weight: bold;
    20         border-bottom: 1px dotted #c63;
     18    color: #0155CD;
     19    text-decoration: underline;
    2120}
    22 
    2321a:visited {
    24         color: #888;
    25         text-decoration: none;
    26         font-weight: bold;
    27         border-bottom: 1px dotted #669;
     22    color: #012567;
    2823}
    29 
    3024a:hover {
    31         color: #c63;
    32         text-decoration: none;
    33         font-weight: bold;
    34         border-bottom: 1px dotted #369;
     25    color: #3591ED;
    3526}
    36 
    37 img, a img {
    38         border: none;
    39         text-decoration: none;
     27h1, h2, h3 {
     28    margin: 0;
     29    color: white;
    4030}
    41 
    4231h1 {
    43         font-size: 22px;
     32    float: left;
    4433}
    45 
     34h1 a {
     35    display: block;
     36    width: 183px;
     37    height: 70px;
     38    background: url(/macports/img/macports-logo-top.png);
     39}
     40h2, h3 {
     41    background: #8695B3;
     42    padding: 0.2em;
     43}
    4644h2 {
    47         font-size: 20px;
     45    font: bold 24px "Lucida Grande", Helvetica, Arial, sans-serif;
    4846}
    49 
    50 h3 {
    51         font-size: 18px;
     47img {
     48    margin: 0;
     49    border: 0;
    5250}
    53 
    54 h4 {
    55         font-size: 16px;
     51#navigation {
     52    width: 183px;
     53    float: left;
     54    clear: left;
     55    background: url(/macports/img/nav-header.png) top no-repeat #B1BACC;
     56    line-height: 1.4em;
    5657}
    57 
    58 h5 {
    59         font-size: 14px;
     58#navigation dl {
     59    padding: 16px;
     60    margin: 0;
     61    background: url(/macports/img/nav-footer.png) bottom no-repeat;
    6062}
    61 
    62 h6 {
    63         font-size: 13px;
     63#navigation dd, #navigation dt {
     64    margin: 0;
     65    padding: 0;
    6466}
    65 
    66 br {
    67         clear: both;
     67#navigation dt {
     68    color: white;
     69    font: bold 125% "Lucida Grande", Helvetica, Arial, sans-serif;
    6870}
    69 
    70 p {
    71         margin: 10px 0 1em 0;
    72         line-height: 16px;
     71#navigation ul {
     72    margin: 0 0 1em 1em;
     73    padding: 0;
    7374}
    74 
    75 input, textarea {
    76         font-family: Courier, "Courier New", monospace;
     75#navigation li {
     76    display: block;
     77    margin: 0;
     78    padding: 0;
    7779}
    78 
    79 kbd {
    80         color: #c63;
    81         font-family: Courier, "Courier New", monospace;
     80#navigation a {
     81    text-decoration: none;
     82    color: #242933;
    8283}
    83 
    84 pre {
    85         color: #369;
    86         font-family: Sans, "Sans serif";
    87         font-size: 14px;
    88         margin-left: 20px;
     84#navigation a:hover {
     85    text-decoration: underline;
    8986}
    90 
    91 #nav {
    92         height: 76px;
    93         padding: 0;
    94         font-size: 10px;
     87#header {
     88    margin: 21px 0 17px 191px;
     89    min-width: 350px;
     90    max-width: 700px;
     91    height: 51px;
    9592}
    96 
    97 #logo {
    98         background: #fff;
    99         float: left;
    100         display: inline;
    101         width: 400px;
    102         height: 75px;
    103         border-top: 1px solid #bbb;
    104         border-bottom: 1px solid #bbb;
     93#header div, #header span {
     94    float: right;
    10595}
    106 
    107 #logo a {
    108         border: none;
     96#header img {
     97    margin-left: 5px;
    10998}
    110 
    111 #nav #l {
    112         width: 150px;
    113         height: 75px;
    114         float: left;
    115         border: 1px solid #bbb;
     99#languages {
     100    width: 140px;
    116101}
    117 
    118 #nav #r {
    119         width: 150px;
    120         height: 75px;
    121         float: left;
    122         border-top: 1px solid #bbb;
    123         border-bottom: 1px solid #bbb;
     102#download {
     103    display: block;
     104    float: right;
     105    width: 70px;
     106    height: 48px;
     107    background: url(/macports/img/download.png);
     108    margin-left: 5px;
    124109}
    125 
    126 #nav ul {
    127         list-style-type: none;
    128         margin: 0;
    129         padding: 0;
    130         text-align: center;
     110a#download:hover {
     111    background: url(/macports/img/download-highlight.png);
    131112}
    132 
    133 #nav li a {
    134         background: #fff;
    135         display: block;
    136         text-decoration: none;
    137         line-height: 20px;
    138         padding: 2px;
    139         border-bottom: 1px solid #bbb;
     113#content {
     114    padding: 1px 0 40px 191px;
     115    min-width: 350px;
     116    max-width: 700px;
    140117}
    141 
    142 #nav li a:visited {
    143         color: #999;
    144         text-decoration: none;
     118.warning {
     119    background: #FCC;
     120    border: 2px solid #F66;
     121    padding: 0.5em;
     122    margin: 0.5em;
     123    float: right;
     124    clear: right;
     125    width: 200px;
    145126}
    146 
    147 #nav li a:hover {
    148         background: #d8e6e7;
    149         color: #888;
     127#footer {
     128    font-size: 90%;
     129    clear: both;
     130    text-align: center;
    150131}
    151 
    152 #nav li.last a {
    153         border: none;
    154         display: block;
    155         line-height: 21px;
    156 }
    157 
    158 #nav li.selected a {
    159         background: #f3f3f3;
    160         color: #c63;
    161 }
    162 
    163 #nav li.sellast a {
    164         background: #f3f3f3;
    165         color: #c63;
    166         border: none;
    167         display: block;
    168         line-height: 21px;
    169 }
    170 
    171 #main {
    172         background: #fff;
    173         width: 702px;
    174         border-right: 1px solid #bbb;
    175         border-left: 1px solid #bbb;
    176         padding-bottom: 100px;
    177 }
    178 
    179 #content {
    180         width: 80%;
    181         margin: 10px 0 0 0;
    182         padding: 5px 20px;
    183 }
    184 
    185 #news {
    186         margin: 10px 0 0 0;
    187         padding: 5px 0 0 0;
    188 }
    189 
    190 #footer {
    191         width: 692px;
    192         background: #fff;
    193         border: 1px solid #bbb;
    194         font-size: 10px;
    195         padding: 5px;
    196         text-align: right;
    197 }
    198 
    199 .languages {
    200         float: left;
    201 }
    202 
    203 .hdr {
    204         color: #669;
    205         margin: 0;
    206         padding: 10px 0 0 0;
    207         border-bottom: 1px solid #bbb;
    208 }
    209 
    210 .subhdr {
    211         color: #879880;
    212         margin: 5px 0 0 0;
    213         padding: 0;
    214 }
    215 
    216 .date {
    217         color: #999;
    218         margin: 0 auto;
    219         padding: 0;
    220 }
    221 
    222 .referer_box {
    223         margin: auto;
    224         margin-bottom: 1em;
    225         width: 90%;
    226         border: 1px solid #CC6633;
    227         background-color: #D37F54;
    228         color: black;
    229         padding: 1em;
    230 }
    231 .referer_box a {
    232         color: white;
    233 }
    234 
  • trunk/www/ports.php

    r28379 r28649  
    88        $substr = isset($_GET['substr']) ? $_GET['substr'] : '';
    99?>
    10         <center>
    11         <h1>MacPorts Portfiles</h1>
    12         </center>
     10        <h2>MacPorts Portfiles</h2>
    1311
    1412        <p>
     
    3937                        <td><input type="submit" value="Search" /></td>
    4038                </tr>
    41                 <tr><td colspan="4"><hr size="1" noshade="noshade" /></td></tr>
     39                <tr><td colspan="4"><hr /></td></tr>
    4240                <tr>
    4341<?php
     
    5553                        if (!$by || (!$substr && $by != "all")) {
    5654                ?>
    57                 <tr><td colspan="4"><hr size="1" noshade="noshade" /></td></tr>
     55                <tr><td colspan="4"><hr /></td></tr>
    5856                <tr><th colspan="4" align="left">View By Category:</th></tr>
    5957                <?php
     
    205203        <br />
    206204        </dd>
    207         <br />
    208205<?php
    209206                        }
     
    211208                        echo "An Error Occurred. (501)";
    212209                }
     210?>
     211    </dl>
     212<?php
    213213        }
    214 ?>
    215         </dl>
    216         </div>
    217 <?php
    218214        print_footer();
    219215?>
Note: See TracChangeset for help on using the changeset viewer.