Created
December 10, 2012 13:50
-
-
Save nfreear/4250664 to your computer and use it in GitHub Desktop.
Drupal 6 custom styles/CSS block -- IET-it-bugs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $styles = <<<EOS | |
| <style type="text/css"> | |
| .node a[rel]:before, .comment a[rel]:before, .project-issue-status-info :before { | |
| font-weight:bold; color:#444; border-bottom:1px solid #ccc; font-size:x-small; | |
| } | |
| .project-issue-status-info a:before { content:"Issue:" } | |
| .node .content a[rel]:before, .comment a[rel]:before { content: attr(rel) ":"; } | |
| .node a[rel], .node a, .comment a { | |
| background-repeat:no-repeat; background-position:center right; padding-right:22px; /*17px*/ | |
| } | |
| .node .content a[rel~="external"]:before { content:""; } | |
| .node .content a[rel~="external"] { padding:0; } | |
| a[rel~="AR"] { background-image:url(http://www3.open.ac.uk/favicon.ico); } | |
| a[rel~="Drupal"]{ background-image:url(http://drupal.org/favicon.ico); } | |
| a[rel~="PHP"] { background-image:url(http://php.net/favicon.ico); } | |
| a[rel~="SVN"] { background-image:url(http://subversion.tigris.org/favicon.ico); } | |
| a[rel~="Google"]{ background-image:url(http://www.google.com/favicon.ico); } | |
| a[rel="Google doc"]{ background-image:url(http://docs.google.com/favicon.ico); } | |
| a[rel="Google code"]{ background-image:url(http://www.gstatic.com/codesite/ph/images/phosting.ico); padding:6px 32px 6px 0 !important; } | |
| a[rel~="Wiki"]{ background-image:url(http://www.mediawiki.org/favicon.ico); } | |
| a[rel="Wikipedia"] { background-image:url(http://en.wikipedia.org/favicon.ico); } | |
| a[rel~="W3C"] { background-image:url(http://www.w3.org/2008/site/images/favicon.ico); } | |
| a[rel~="RFC"] { background-image:url(http://www.ietf.org/favicon.ico); } | |
| a[href*="github.com"]{background-image:url(https://github.com/favicon.ico)} | |
| a[href*="bitbucket.org"]{background-image:url(https://bitbucket.org/favicon.ico)} | |
| /* | |
| a[rel="bug blocks"]:before { content:"Blocks:" } | |
| a[rel="bug depends"]:before{ content:"Depends on:" } | |
| a[rel="repos"]:before { content:"SVN:" } | |
| a[rel="it wiki"]:before { content:"IT Wiki:"} | |
| a[rel="bug ar"]:before { content:"CAT:" } | |
| a[rel="drupal"]:before { content:"Drupal:" } | |
| a[rel="google doc"]:before{ content:"Google Doc:" } | |
| a[rel="wikipedia"]:before { content:"Wikipedia:" } | |
| a[rel="w3c"]:before { content:"W3C/TR:" } | |
| a[rel="rfc"]:before { content:"RFC:" } | |
| a[rel="php"]:before { content:"PHP:" } | |
| */ | |
| .interwiki dt { font-weight:normal !important; margin-top:.7em; } | |
| #header { padding-top:14px !important; } | |
| #header #logo { position:relative !important; top:-8px !important; margin:0 12px 11px 0 !important; } | |
| abbr[title] { border-bottom:1px dotted gray; cursor:help; } | |
| .block h3 {line-height:1.1em !important; } | |
| #block-views-project_issue_project-block_1 .edit, #block-views-project_issue_project-block_1 .views-hide { | |
| display:none !important; /*position:absolute; top:-999em; /*top:-19px; left:12px;*/ | |
| } | |
| #project-issue-issue-cockpit-searchbox { position:relative; top:-1em !important; line-height:.7em !important; margin:0.1em 0 !important; } | |
| pre, .node .code, .phpcode { | |
| background:#fafafa !important; | |
| border:1px dashed #ccc !important; | |
| padding:4px !important; | |
| margin:1em !important; | |
| font-family:monospace !important; | |
| font-size: 1.1em !important; | |
| white-space:pre; } | |
| </style> | |
| EOS; | |
| drupal_set_html_head($styles); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment