Skip to content

Commit

Permalink
[2375] Add icons to toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed May 17, 2012
1 parent 4834736 commit 5116aa3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
Binary file modified ckan/public/base/images/sprite-ckan-icons.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 0 additions & 15 deletions ckan/public/base/less/icons.less
Expand Up @@ -24,21 +24,6 @@
background-position: 16px 16px;
}

.ckan-icon-small {
width: @small-x;
height: @small-y;
}

.ckan-icon-medium {
width: @medium-x;
height: @medium-y;
}

.ckan-icon-large {
width: @large-x;
height: @large-y;
}

.ckan-icon-background-position(@offset, @size) {
@w: "@{size}-x";
@h: "@{size}-y";
Expand Down
12 changes: 12 additions & 0 deletions ckan/public/base/less/toolbar.less
Expand Up @@ -13,6 +13,13 @@
border: none;
}

.toolbar .breadcrumb li:first-of-type:before {
content: " ";
.ckan-icon;
.ckan-icon-home;
margin-right: 5px;
}

.toolbar .breadcrumb li:after {
content: " / ";
}
Expand All @@ -39,3 +46,8 @@
.toolbar .actions li:last-of-type {
margin-right: 0;
}

.toolbar .actions .btn {
padding: 2px 6px 3px;
border-color: #b7b7b7;
}
6 changes: 3 additions & 3 deletions ckan/templates/package/read.html
Expand Up @@ -15,9 +15,9 @@
<li class="active"><a href="">${c.pkg_dict.get('title', c.pkg_dict.get('name'))}</a></li>
</ol>
<ul class="actions">
<li><a class="btn" href="">History</a></li>
<li><a class="btn" href="">Edit</a></li>
<li><a class="btn" href="">Report Issue</a></li>
<li><a class="btn" href=""><i class="ckan-icon ckan-icon-rewind"></i> History</a></li>
<li><a class="btn" href=""><i class="ckan-icon ckan-icon-tools"></i> Edit</a></li>
<li><a class="btn" href=""><i class="ckan-icon ckan-icon-flag"></i> Report Issue</a></li>
</ul>
</nav>

Expand Down

0 comments on commit 5116aa3

Please sign in to comment.