Commit: 4633926d144a6cfa595337fc6bcab5dd63109d25 Author: Hannes Magnusson <[email protected]> Thu, 12 Dec 2013 17:03:55 -0800 Parents: cb50855ff2cc106bbdbd99ff98b265ad945ae632 Branches: master
Link: http://git.php.net/?p=web/shared.git;a=commitdiff;h=4633926d144a6cfa595337fc6bcab5dd63109d25 Log: Add the option of including more CSS files Changed paths: A styles/user-autocomplete.css M templates/header.inc Diff: diff --git a/styles/user-autocomplete.css b/styles/user-autocomplete.css new file mode 100644 index 0000000..92270d5 --- /dev/null +++ b/styles/user-autocomplete.css @@ -0,0 +1,32 @@ +/* Used for username/fullname search autocomplete/suggest */ +/* {{{ Stolen from http://www.devbridge.com/projects/autocomplete/jquery/ */ +.autocomplete-w1 { + background: url(images/shadow.png) no-repeat bottom right; + position: absolute; + top: 0px; + left: 0px; + margin: 6px 0 0 6px; + z-index: 1; +} +.autocomplete { + border: 1px solid #999; + background: #FFF; + cursor: default; + text-align: left; + max-height: 270px; + overflow: auto; + margin: -6px 6px 6px -6px; +} +.autocomplete .selected { + background:#F0F0F0; +} +.autocomplete div { + padding: 2px 5px; + white-space: nowrap; +} +.autocomplete strong { + font-weight: normal; + color: #3399FF; +} + +/* }}} */ diff --git a/templates/header.inc b/templates/header.inc index 277acd9..8b09612 100644 --- a/templates/header.inc +++ b/templates/header.inc @@ -9,6 +9,7 @@ * $LINKS = array( * array("href" => "/link.php", "text" => "Link text") * ); // Menu menu links + * $CSS = array("//example.com/external.css", "/shared/styles/local.js"); * $SEARCH = array( * "method" => "get", * "action" => "/search.php", @@ -26,6 +27,11 @@ <title>PHP: <?=$TITLE ?></title> <link type="text/css" media="all" rel="stylesheet" href="/shared/styles/defaults.css"> + +<?php foreach($CSS as $style): ?> + <link type="text/css" media="all" rel="stylesheet" href="<?=$style?>"> +<?php endforeach ?> + <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,400italic,600italic|Source+Code+Pro&subset=latin,latin-ext" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="//php.net/favicon.ico"> </head> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
