Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
listing button, tabular-grid styles (bug 679520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Van committed Aug 18, 2011
1 parent e97ace1 commit 98fd9fe
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 47 deletions.
Expand Up @@ -29,14 +29,11 @@ <h1>{{ _('Collections') }}</h1>
</p>
</masthead>
{% endif %}
<div class="island hero c listing">
<header>
{{ impala_addon_listing_header(url_base, filter.opts, sorting) }}
</header>
{% if sorting != 'featured' %}
{{ collections|impala_paginator }}
{% endif %}
{{ impala_collection_listing_items(collections.object_list, filter.field) }}
<div class="island hero c listing collections-listing">
{{ impala_addon_listing_header(url_base, filter.opts, sorting) }}
<div class="items">
{{ impala_collection_listing_items(collections.object_list, filter.field) }}
</div>
{% if sorting != 'featured' %}
{{ collections|impala_paginator }}
{% endif %}
Expand Down
12 changes: 6 additions & 6 deletions apps/browse/templates/browse/impala/extensions.html
Expand Up @@ -30,12 +30,12 @@
<h1>{{ category.name if category else heading }}</h1>
{% endwith %}
<div class="island hero c listing">
<header>
<a href="{{ feed_url }}" class="feed">{{ _('Subscribe') }}</a>
{{ impala_addon_listing_header(url_base, extras, sorting) }}
</header>
{{ impala_addon_listing_items(addons.object_list, src='category',
show_date=sorting) }}
<a href="{{ feed_url }}" id="subscribe">{{ _('Subscribe') }}</a>
{{ impala_addon_listing_header(url_base, extras, sorting) }}
<div class="items">
{{ impala_addon_listing_items(addons.object_list, src='category',
show_date=sorting) }}
</div>
{% if sorting != 'featured' %}
{{ addons|impala_paginator }}
{% endif %}
Expand Down
9 changes: 8 additions & 1 deletion media/css/impala/addon_details.less
Expand Up @@ -49,6 +49,13 @@
white-space: nowrap;
}

.html-rtl #addon .notavail,
.html-rtl #eula .notavail,
.html-rtl .listing .notavail {
background-position: 100% 30%;
padding: 1px 18px 1px 0;
}

.version-number {
color: #999;
font-size: .8em;
Expand Down Expand Up @@ -414,7 +421,7 @@ span.featured {
color: #fff;
display: inline-block;
font: bold 9px/11px Arial;
margin-left: 4px;
margin: 4px 0 0 4px;
padding: 3px 6px;
text-transform: uppercase;
vertical-align: 3px;
Expand Down
3 changes: 0 additions & 3 deletions media/css/impala/collections.less
Expand Up @@ -128,11 +128,8 @@
.is-watching {
display: block;
font: 13px/13px @head-sans;
float: right;
padding: 7px 10px;
position: absolute;
right: 25px;
text-align: right;
}
a {
visibility: hidden;
Expand Down
54 changes: 26 additions & 28 deletions media/css/impala/listing.less
@@ -1,13 +1,13 @@
@import 'lib';

header .feed {
#subscribe {
/* TODO(cvan): sprite-ify */
background: url(../../img/impala/feed.png) no-repeat 0 50%;
float: right;
padding-left: 16px;
}

.html-rtl header .feed {
.html-rtl #subscribe {
float: left;
}

Expand Down Expand Up @@ -35,7 +35,6 @@ header .feed {
}

.html-rtl #sorter {
float: right;
li {
float: right;
&:first-child + li a {
Expand All @@ -55,11 +54,13 @@ header .feed {
font: bold 24px @sans-stack;
}

.listing .items {
display: table;
}

.listing .item {
border-top: 1px dotted @border-blue;
color: @note-gray;
display: table;
padding: 20px 0;
display: table-row;
width: 100%;
&:hover,
&.static {
Expand All @@ -74,7 +75,8 @@ header .feed {
color: @error-red;
}
}
.info {
.info,
.action {
opacity: 0.4;
}
.install-shell {
Expand Down Expand Up @@ -134,30 +136,28 @@ header .feed {
}
.info,
.action {
border-top: 1px dotted @border-blue;
display: table-cell;
padding: 20px 0;
}
.info {
padding-left: 58px;
}
.action {
min-width: 190px;
}
.install-shell {
text-align: right;
padding: 0 10px;
visibility: hidden;
p {
margin: 0;
}
.extra {
margin: 0;
.notavail {
color: @note-gray;
}
}
.button, .extra {
white-space: nowrap;
}
.install-note {
text-align: left;
}
.extra .notavail {
color: @note-gray;
}
}
.collector-note,
.performance-note {
Expand All @@ -172,31 +172,29 @@ header .feed {
color: #666;
}
}
.paginator + .item {

.paginator + .item,
#sorter + .items {
margin-top: 1em;
}
header + .paginator,
.item + .paginator {

.item + .paginator,
.items + .paginator {
padding-top: 1em;
border-top: 1px dotted @border-blue;
}

.html-rtl.listing .primary .item {
.html-rtl .listing .item {
.collector-note,
.performance-note {
float: right;
}
h3 img {
left: auto;
right: 25px;
}
.info {
padding: 0 58px 0 0;
}
.install-shell {
text-align: left;
.install-note {
text-align: right;
}
padding: 20px 58px 20px 0;
}
}

Expand Down
1 change: 0 additions & 1 deletion media/css/impala/paginator.less
@@ -1,5 +1,4 @@
.paginator {
margin-top: 1em;
.disabled {
opacity: 0.25;
pointer-events: none;
Expand Down

0 comments on commit 98fd9fe

Please sign in to comment.