aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/static/style.css116
-rw-r--r--web/templates/layout.html23
2 files changed, 130 insertions, 9 deletions
diff --git a/web/static/style.css b/web/static/style.css
index 042f0ec..426990a 100644
--- a/web/static/style.css
+++ b/web/static/style.css
@@ -309,3 +309,119 @@ a:visited {
.centerfaq dt .type {
padding-left: 1em;
}
+
+/* The following is for the google search box */
+.gsc-control-cse {
+ font-family: Arial, sans-serif;
+ border-color: #FFFFFF;
+ background-color: #FFFFFF;
+}
+input.gsc-input {
+ border-color: #777777;
+}
+input.gsc-search-button {
+ border-color: #333333;
+ background-color: #333333;
+}
+.gsc-tabHeader.gsc-tabhInactive {
+ border-color: #777777;
+ background-color: #777777;
+}
+.gsc-tabHeader.gsc-tabhActive {
+ border-color: #333333;
+ background-color: #333333;
+}
+.gsc-tabsArea {
+ border-color: #333333;
+}
+.gsc-webResult.gsc-result {
+ border-color: #FFFFFF;
+ background-color: #FFFFFF;
+}
+.gsc-webResult.gsc-result:hover {
+ border-color: #000000;
+ background-color: #FFFFFF;
+}
+.gs-webResult.gs-result a.gs-title:link,
+.gs-webResult.gs-result a.gs-title:link b {
+ color: #444444;
+}
+.gs-webResult.gs-result a.gs-title:visited,
+.gs-webResult.gs-result a.gs-title:visited b {
+ color: #444444;
+}
+.gs-webResult.gs-result a.gs-title:hover,
+.gs-webResult.gs-result a.gs-title:hover b {
+ color: #444444;
+}
+.gs-webResult.gs-result a.gs-title:active,
+.gs-webResult.gs-result a.gs-title:active b {
+ color: #777777;
+}
+.gsc-cursor-page {
+ color: #444444;
+}
+a.gsc-trailing-more-results:link {
+ color: #444444;
+}
+.gs-webResult .gs-snippet {
+ color: #333333;
+}
+.gs-webResult div.gs-visibleUrl {
+ color: #000000;
+}
+.gs-webResult div.gs-visibleUrl-short {
+ color: #000000;
+}
+.gs-webResult div.gs-visibleUrl-short {
+ display: block;
+}
+.gs-webResult div.gs-visibleUrl-long {
+ display: none;
+}
+.gsc-cursor-box {
+ border-color: #FFFFFF;
+}
+.gsc-results .gsc-cursor-box .gsc-cursor-page {
+ border-color: #777777;
+ background-color: #FFFFFF;
+ color: #444444;
+}
+.gsc-results .gsc-cursor-box .gsc-cursor-current-page {
+ border-color: #333333;
+ background-color: #333333;
+ color: #444444;
+}
+.gs-promotion {
+ border-color: #CCCCCC;
+ background-color: #E6E6E6;
+}
+.gs-promotion a.gs-title:link,
+.gs-promotion a.gs-title:link *,
+.gs-promotion .gs-snippet a:link {
+ color: #0000CC;
+}
+.gs-promotion a.gs-title:visited,
+.gs-promotion a.gs-title:visited *,
+.gs-promotion .gs-snippet a:visited {
+ color: #0000CC;
+}
+.gs-promotion a.gs-title:hover,
+.gs-promotion a.gs-title:hover *,
+.gs-promotion .gs-snippet a:hover {
+ color: #444444;
+}
+.gs-promotion a.gs-title:active,
+.gs-promotion a.gs-title:active *,
+.gs-promotion .gs-snippet a:active {
+ color: #00CC00;
+}
+.gs-promotion .gs-snippet,
+.gs-promotion .gs-title .gs-promotion-title-right,
+.gs-promotion .gs-title .gs-promotion-title-right * {
+ color: #333333;
+}
+.gs-promotion .gs-visibleUrl,
+.gs-promotion .gs-visibleUrl-short {
+ color: #00CC00;
+}
diff --git a/web/templates/layout.html b/web/templates/layout.html
index 82337d4..ae1b646 100644
--- a/web/templates/layout.html
+++ b/web/templates/layout.html
@@ -60,22 +60,27 @@ def alpha_url(baseurl):
rel="search" type="application/opensearchdescription+xml"
href="http://www.gentoo.org/search/packages-gentoo-org.xml"
title="Gentoo Packages" />
- <meta name="google-site-verification"
- content="TghnZBoJySbGjLcdxG0LaQW4CEySKKUn-joa4u72Z2Q" />
+ <meta name="google-site-verification"
+ content="TghnZBoJySbGjLcdxG0LaQW4CEySKKUn-joa4u72Z2Q" />
+ <script src="http://www.google.com/jsapi" type="text/javascript"></script>
</head>
</py:match>
<py:match path="leftcontent" once="true">
<div id="leftcontent">
<div id="banner">
- <a href="/"><img src="/media/packages_gentoo_logo.jpg" alt="Gentoo Logo" /></a>
- </div>
+ <a href="/"><img src="/media/packages_gentoo_logo.jpg" alt="Gentoo Logo" /></a>
+ </div>
<div id="search">
- <form method="get" action="http://www.google.com/custom">
- <input type="submit" name="sa" value="Search" />
- <input type="text" name="q" size="16" maxlength="255" value="" />
- <input type="hidden" name="sitesearch" value="packages.gentoo.org" />
- </form>
+ <div id="cse" style="width: 100%;">Loading</div>
+ <script type="text/javascript">
+ google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
+ google.setOnLoadCallback(function() {
+ var customSearchControl = new google.search.CustomSearchControl('018159084367138638961:rusorewqzfu');
+ customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
+ customSearchControl.draw('cse');
+ }, true);
+ </script>
</div>
<div py:for="day, pvs in daylist">
<p>${day}</p>