Skip to content

Commit

Permalink
[#474] CSS tweaks to modules and navs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Feb 28, 2013
1 parent d89d5ef commit 56cebfe
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
15 changes: 14 additions & 1 deletion ckan/public/base/less/module.less
Expand Up @@ -15,8 +15,12 @@
.module-heading .action {
float: right;
color: @moduleHeadingActionTextColor;
font-size: 11px;
font-size: 12px;
line-height: @baseLineHeight;
text-decoration: underline;
&:hover {
color: @layoutTextColor;
}
}

.module-content {
Expand Down Expand Up @@ -66,12 +70,15 @@

.module .pagination > ul {
.border-radius(0);
.box-shadow(none);
border: 0;
}

.module .pagination li a {
border-top: none;
border-bottom: none;
padding-top: 7px;
padding-bottom: 7px;
}

.module .pagination li:first-child a,
Expand Down Expand Up @@ -197,6 +204,12 @@
border-bottom: 1px solid @genericBorderColor;
margin-top: 0;
.border-radius(3px 3px 0 0);
.actions {
position: relative;
float: right;
top: -10px;
right: -15px;
}
}

.module .module-tags {
Expand Down
9 changes: 9 additions & 0 deletions ckan/public/base/less/nav.less
Expand Up @@ -102,3 +102,12 @@
.border-radius(100px);
}
}

.nav-simple > .nav-btn {
padding-left: 0;
padding-right: 0;
text-align: center;
.btn {
display: inline-block;
}
}
2 changes: 1 addition & 1 deletion ckan/templates/package/snippets/info.html
Expand Up @@ -26,7 +26,7 @@ <h2 class="module-heading"><i class="icon-reorder"></i> {{ _("Edit Resources") }
{% link_for h.resource_display_name(resource)|truncate(30), controller='package', action='resource_edit', id=pkg.name, resource_id=resource.id, inner_span=true %}
</li>
{% endfor %}
<li><a href="{{ h.url_for(controller='package', action='new_resource', id=pkg.name) }}" class="btn{% if action == 'resource_new' %} disabled{% endif %}"><i class="icon-plus"></i> {{ _('Add new resource') }}</a></li>
<li class="nav-btn"><a href="{{ h.url_for(controller='package', action='new_resource', id=pkg.name) }}" class="btn{% if action == 'resource_new' %} disabled{% endif %}"><i class="icon-plus"></i> {{ _('Add new resource') }}</a></li>
</ul>
</section>
{% endif %}

0 comments on commit 56cebfe

Please sign in to comment.