Skip to content

Commit

Permalink
Removed the catalog.scss and decomposed its contents
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Sep 17, 2015
1 parent b95ea5c commit 9d031c1
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 74 deletions.
18 changes: 18 additions & 0 deletions app/assets/stylesheets/blacklight/_balanced_list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.dl-horizontal {
dd {
margin-bottom: $padding-base-vertical;

&:after {
clear: none;
}
}
}

.dl-invert {
dt {
font-weight: normal;
color: $field_name_color;
}
}


4 changes: 3 additions & 1 deletion app/assets/stylesheets/blacklight/_blacklight_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@

@import "blacklight/layout";
@import "blacklight/header";
@import "blacklight/catalog";
@import "blacklight/constraints";
@import "blacklight/controls";
@import "blacklight/search_results";
@import "blacklight/pagination";
@import "blacklight/group";
@import "blacklight/bookmark";
@import "blacklight/balanced_list";
@import "blacklight/facets";
@import "blacklight/search_history";
@import "blacklight/modal";
15 changes: 14 additions & 1 deletion app/assets/stylesheets/blacklight/_bookmark.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
.clear-bookmarks {
margin-left: $border-radius-base;
}
}

label.toggle_bookmark {
font-weight: inherit;
min-width: 8.5em;
}

// Tools link on document show page
.show-tools {
.bookmark_toggle {
padding: $nav-link-padding;
}
}

72 changes: 0 additions & 72 deletions app/assets/stylesheets/blacklight/_catalog.scss

This file was deleted.

4 changes: 4 additions & 0 deletions app/assets/stylesheets/blacklight/_controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@
}
}

.ajax_form {
margin-bottom: 0;
}

11 changes: 11 additions & 0 deletions app/assets/stylesheets/blacklight/_pagination.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.page_links {
display: inline-block;
border: 1px solid transparent;
padding: $padding-base-vertical $padding-base-horizontal;
padding-left: 0;
}

.pagination {
text-align: center ;
}

28 changes: 28 additions & 0 deletions app/assets/stylesheets/blacklight/_search_results.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// the search results on the index view of the catalog
#documents {
.document {
margin-top: $padding-base-vertical;
padding-top: $padding-base-vertical;
border-bottom:1px dotted $table-border-color;
@extend .clearfix;

.document-title-heading {
@extend h5;
}

// bookmarks checkbox on index, give it some
// lower margin when it collapses
.index-document-functions {
margin-bottom: ($line-height-computed / 2);
@media (min-width: $screen-sm-min) {
margin-bottom: 0;
}
}

.document-thumbnail {
float: right;
padding-left: $line-height-computed;
margin-bottom: $line-height-computed;
}
}
}

0 comments on commit 9d031c1

Please sign in to comment.