2753: Move file tree CSS to collections.css.
authorBrett Smith <brett@curoverse.com>
Wed, 21 May 2014 14:19:55 +0000 (10:19 -0400)
committerBrett Smith <brett@curoverse.com>
Wed, 21 May 2014 14:19:55 +0000 (10:19 -0400)
apps/workbench/app/assets/stylesheets/collections.css.scss
apps/workbench/app/views/collections/_show_files.html.erb

index 24b08fa03ce9fbd039131a04c998e1c760cb84ec..0c3c396045b166a4ba65ed9a7661f74192818558 100644 (file)
@@ -1,3 +1,49 @@
+/* Style for _show_files tree view. */
+
+ul#collection_files {
+  padding-left: 0;
+}
+
+ul.collection_files {
+  line-height: 2.5em;
+  list-style-type: none;
+  padding-left: 2.3em;
+}
+
+ul.collection_files li {
+  clear: both;
+}
+
+.collection_files_row {
+  padding: 1px;  /* Replaced by border for :hover */
+}
+
+.collection_files_row:hover {
+  background-color: #D9EDF7;
+  padding: 0px;
+  border: 1px solid #BCE8F1;
+  border-radius: 3px;
+}
+
+.collection_files_inline {
+  clear: both;
+  width: 80%;
+  height: auto;
+  max-height: 6em;
+  margin: 0 1em;
+}
+
+.collection_files_name {
+  padding-left: .5em;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.collection_files_name i.fa-fw:first-child {
+  width: 1.6em;
+}
+
 /*
   "active" and "inactive" colors are too similar for a toggle switch
   in the default bootstrap theme.
index fbd8c4b266fde73546906a8c7d02cb4c03ffde6f..38c5d00ba1b84fbf9ceeaaaebabf3542eb5ef280 100644 (file)
@@ -1,49 +1,3 @@
-<% content_for :css do %>
-ul#collection_files {
-  padding-left: 0;
-}
-
-ul.collection_files {
-  line-height: 2.5em;
-  list-style-type: none;
-  padding-left: 2.3em;
-}
-
-ul.collection_files li {
-  clear: both;
-}
-
-.collection_files_row {
-  padding: 1px;  /* Replaced by border for :hover */
-}
-
-.collection_files_row:hover {
-  background-color: #D9EDF7;
-  padding: 0px;
-  border: 1px solid #BCE8F1;
-  border-radius: 3px;
-}
-
-.collection_files_inline {
-  clear: both;
-  width: 80%;
-  height: auto;
-  max-height: 6em;
-  margin: 0 1em;
-}
-
-.collection_files_name {
-  padding-left: .5em;
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
-.collection_files_name i.fa-fw:first-child {
-  width: 1.6em;
-}
-<% end %>
-
 <% content_for :tab_line_buttons do %>
 <div class="row">
   <div class="col-md-6"></div>