commit dd3aedd6c220b67b788f79b786605fd8b6c73c09
parent a8e95f5c1610e3125625d84a4c90b6965f9e7ea6
Author: Kyle Milz <kyle@getaddrinfo.net>
Date: Thu, 2 Apr 2015 18:52:23 -0600
css: add retailers and manufacturers classes
Diffstat:
4 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/pricechart.css b/pricechart.css
@@ -19,7 +19,6 @@ p {
width: 40%;
padding-left: 5%;
padding-right: 5%;
-
float: left;
}
@@ -37,18 +36,24 @@ p {
}
.logo {
+ vertical-align: middle;
+ padding: 5px;
+}
+
+.manufacturers {
height: 3em;
vertical-align: middle;
padding: 5px;
}
-.logo_small {
- height: 1em;
+.retailers {
+ height: 4em;
+ vertical-align: middle;
+ padding: 5px;
}
-.logo_list {
+.logo_small {
height: 1em;
- vertical-align: middle;
}
/* horizontal rulers, plus date ticks */
diff --git a/tt/index.tt b/tt/index.tt
@@ -46,7 +46,7 @@
my $manufacturer = $stash->get("new.0");
$stash->set("manuf_lc", lc($manufacturer));
[% END %]
- <li><img class="logo_list" alt="[% new.0 %]"
+ <li><img class="logo_small" alt="[% new.0 %]"
src="/logo/[% manuf_lc %].svg"></img>
<a href="/products/[% part_lc %].html">[% new.1 %]</a>
[% END %]
diff --git a/tt/link_list.tt b/tt/link_list.tt
@@ -14,9 +14,8 @@
$stash->set("link_lc", $link_lc);
[% END %]
<li><a href="/[% dir_prefix %]/[% link_lc %].html">
- <img alt="[% link %]" class="logo"
- src="/logo/[% link_lc %].svg">
- </img>
+ <img alt="[% link %]" class="[% dir_prefix %]"
+ src="/logo/[% link_lc %].svg" />
</a>
[% END %]
</ul>
diff --git a/tt/wrapper.tt b/tt/wrapper.tt
@@ -8,15 +8,16 @@
</head>
<body>
<div>
- <a href="/"><em>Price</em><b>Chart</b></a>
- <a href="/manufacturers.html">Manufacturers</a>
- <a href="/retailers.html">Retailers</a>
<form method="get" action="/search.html">
<fieldset>
<input type="text" name="q" />
<input type="submit" value="Find">
</fieldset>
</form>
+ <a href="/"><em>Price</em><b>Chart</b></a>
+ <a href="/manufacturers.html">Manufacturers</a>
+ <a href="/retailers.html">Retailers</a>
+ <a href="/product_types.html">Product Types</a>
</div>
<hr class="clear_both">