From b9e8878717643b05f75aebb628c0a78722aa2f51 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Wed, 21 May 2014 10:19:55 -0400 Subject: [PATCH] 2753: Move file tree CSS to collections.css. --- .../assets/stylesheets/collections.css.scss | 46 +++++++++++++++++++ .../views/collections/_show_files.html.erb | 46 ------------------- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/apps/workbench/app/assets/stylesheets/collections.css.scss b/apps/workbench/app/assets/stylesheets/collections.css.scss index 24b08fa03c..0c3c396045 100644 --- a/apps/workbench/app/assets/stylesheets/collections.css.scss +++ b/apps/workbench/app/assets/stylesheets/collections.css.scss @@ -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. diff --git a/apps/workbench/app/views/collections/_show_files.html.erb b/apps/workbench/app/views/collections/_show_files.html.erb index fbd8c4b266..38c5d00ba1 100644 --- a/apps/workbench/app/views/collections/_show_files.html.erb +++ b/apps/workbench/app/views/collections/_show_files.html.erb @@ -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 %>
-- 2.30.2