Anonymous avatar Anonymous committed f7b6d77

* Different styles for links to external web sites.
* Higher contrast main nav. (test)

Comments (0)

Files changed (5)

htdocs/css/trac.css

  letter-spacing: -0.018em;
 }
 h1 { font-size: 21px; margin: .15em 1em 0 0 }
-h2 { font-size: 16px }
-h3 { font-size: 14px }
-hr { border: none;  border-top: 1px solid #ccc; margin: 2em 0; }
+h2 { font-size: 16px; margin: 2em 0 .5em; }
+h3 { font-size: 14px; margin: 1.5em 0 .5em; }
+hr { border: none;  border-top: 1px solid #ccb; margin: 2em 0; }
 address { font-style: normal }
 img { border: none }
 
  color: #b00;
  border-bottom: 1px dotted #bbb;
 }
-:link:hover, :visited:hover { background-color: #eee; color: #b00 }
+:link:hover, :visited:hover {
+ background-color: #eee;
+ border-bottom: 1px solid #ddd; 
+ color: #555;
+
+ }
 h1 :link, h1 :visited ,h2 :link, h2 :visited, h3 :link, h3 :visited,
 h4 :link, h4 :visited, h5 :link, h5 :visited, h6 :link, h6 :visited {
  color: inherit;
 }
 
+.ext-link {
+ background: #fff url(../extlink.gif) no-repeat 0 58%;
+ padding-left: 16px;
+}
+
 /* Forms */
 input, textarea, select { margin: 2px }
 input, select { vertical-align: middle }
 /* Main navigation bar */
 #mainnav {
  background: #f7f7f7 url(../topbar_gradient.png) top left;
- border: 1px solid #999;
+ border: 1px solid #555;
  font: normal 10px verdana,'Bitstream Vera Sans',helvetica,arial,sans-serif;
  height: 1.6em;
- margin: .33em 0;
+ margin: .66em 0 .33em;
 }
 #mainnav ul { float: right; padding: 0 }
 #mainnav li { border-right: none; padding: 0 }
 #mainnav :link, #mainnav :visited {
  background: url(../dots.gif) top left no-repeat;
- border-left: 1px solid #999;
+ border-left: 1px solid #555;
  border-right: 1px solid #fff;
  border-bottom: none;
  color: #000;
  float: left;
  /* Unhide */
  line-height: 1.4em;
- padding: .1em 15px;
+ padding: .1em 20px;
 }
 #mainnav .active:link, #mainnav .active:visited {
  background: #d7d7d7 url(../topbar_active.png) top left repeat-x;
+ background: #000;
+ color: #f7f7f7;
  border-top: none;
  border-right: none !important;
  font-weight: bold;
Added
New image

trac/WikiFormatter.py

             return '<a href="%s">%s</a>' % (self._href.wiki(match), match)
 
     def _url_formatter(self, match, fullmatch):
-        return '<a class="ext-link" href="%s">%s</a>' % (match, match)
+        return '<a class="ext-link" title="%s" href="%s">%s</a>' % (match, match, match)
 
     def _fancylink_formatter(self, match, fullmatch):
         link = fullmatch.group('fancyurl')
         elif module_link:
             return '<a href="%s">%s</a>' % (module_link, name)
         else:
-            return '<a class="ext-link" href="%s">%s</a>' % (link, name)
+            return '<a class="ext-link" title="%s" href="%s">%s</a>' % (link, link, name)
 
 
 class OneLinerFormatter(CommonFormatter):

trac/tests/wiki-tests.txt

 </td></tr><tr><td>Foo</td><td>Bar</td><td>Baz
 </td></tr></table>
 <p>
-<a class="ext-link" href="http://www.edgewall.com/">http://www.edgewall.com/</a>
+<a class="ext-link" title="http://www.edgewall.com/" href="http://www.edgewall.com/">http://www.edgewall.com/</a>
 </p>
 ==============================
 #1, [1], {1}
 ------------------------------
 <p>
 <a class="missing" href="/ticket/1">ticket 1?</a>, <a class="missing" href="/changeset/1">changeset 1?</a>, <a href="/report/1">report 1</a>, 
-<a href="/browser/foo/bar">source foo/bar</a>, <a class="ext-link" href="http://www.edgewall.com/">edgewall</a>
+<a href="/browser/foo/bar">source foo/bar</a>, <a class="ext-link" title="http://www.edgewall.com/" href="http://www.edgewall.com/">edgewall</a>
 </p>
 ==============================
 CamelCase AlabamA ABc AlaBamA FooBar
 ''RFCs von ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt''
 ------------------------------
 <p>
-<i>RFCs von <a class="ext-link" href="ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt">ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt</a></i>
+<i>RFCs von <a class="ext-link" title="ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt" href="ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt">ftp://ftp.rfc-editor.org/in-notes/rfcXXXX.txt</a></i>
 </p>
 ==============================
 [wiki:WikiStart Foo] [http://www.edgewall.com/ Edgewall]
 ------------------------------
 <p>
-<a class="missing" href="/wiki/WikiStart">Foo?</a> <a class="ext-link" href="http://www.edgewall.com/">Edgewall</a>
+<a class="missing" href="/wiki/WikiStart">Foo?</a> <a class="ext-link" title="http://www.edgewall.com/" href="http://www.edgewall.com/">Edgewall</a>
 </p>
 ==============================
 foo (FooBar)

trac/wikimacros/TracGuideToc.py

        ('TracUpgrade',      'Upgrading'),
        ('TracIni',          'Configuration'),
        ('TracAdmin',        'Administration'),
+       ('TracBackup',       'Backup'),
        ('TracLogging',      'Logging'),
        ('TracPermissions' , 'Permissions'),
        ('TracWiki',         'The Wiki'),
+       ('TracWikiFormatting',  'Wiki Formatting'),
        ('TracBrowser',      'The Browser'),
        ('TracRoadmap',      'The Roadmap'),
        ('TracChangeset',    'Changesets'),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.