-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapping up new styles for section and canned search pages.
- Loading branch information
1 parent
feffa0e
commit 1cd0fae
Showing
10 changed files
with
241 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
/****************************** | ||
TITLE AREA | ||
******************************/ | ||
|
||
#suggested-search.title_icon { | ||
background: sprite-image('icons/icon_search_blue.png', 0, 0, 50px) no-repeat; | ||
height: 37px; | ||
position: relative; | ||
display: inline-block; | ||
width: 37px; | ||
top: -9px; | ||
left: 49px; | ||
z-index: 1000; | ||
} | ||
|
||
#canned_searches a.subscription { | ||
background: sprite-image('icons/icon_subscribe_white.png', 0, 0, 50px) no-repeat; | ||
position: relative; | ||
color: white; | ||
top: -5px; | ||
left: -2px; | ||
height: 17px; | ||
} | ||
.wf-active #canned_searches a.subscription { | ||
top: -11px; | ||
} | ||
#canned_searches a.subscription:hover { | ||
background: sprite-image('icons/icon_subscribe_white_hover.png', 0, 0, 50px) no-repeat; | ||
color: #FBB829; | ||
} | ||
|
||
|
||
/****************************** | ||
DESCRIPTION AREA | ||
******************************/ | ||
|
||
#search_description_box { | ||
background: #F1F1F1; | ||
-moz-border-radius: 5px; | ||
-webkit-border-radius: 5px; | ||
-o-border-radius: 5px; | ||
-ms-border-radius: 5px; | ||
-khtml-border-radius: 5px; | ||
border-radius: 5px; | ||
padding: 10px 20px 2px; | ||
} | ||
#search_description_box .line { | ||
width: 100%; | ||
border-bottom: 1px solid #DDD; | ||
margin-bottom: 10px; | ||
} | ||
p#search-actions { | ||
padding: 0px; | ||
} | ||
p#search-actions a { | ||
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | ||
font-weight: bold; | ||
color: #6E6E6E; | ||
font-size: 14px; | ||
} | ||
p#search-actions a:hover { | ||
color: #DFB264; | ||
} | ||
p#search-actions a.search { | ||
background: sprite-image('icons/icon_search_small.png', 0, 0, 50px) no-repeat; | ||
padding-left: 24px; | ||
} | ||
p#search-actions a.search:hover { | ||
background: sprite-image('icons/icon_search_small_hover.png', 0, 0, 50px) no-repeat; | ||
} | ||
p#search-actions a.search_subscription { | ||
background: sprite-image('icons/icon_subscribe_gray.png', 0, 2px, 50px) no-repeat; | ||
padding-left: 46px; | ||
float: right; | ||
top: 1px; | ||
position: relative; | ||
} | ||
p#search-actions a.search_subscription:hover { | ||
background: sprite-image('icons/icon_subscribe_white_hover.png', 0, 2px, 50px) no-repeat; | ||
} | ||
|
||
|
||
|
||
/****************************** | ||
DOCUMENT ICONS | ||
******************************/ | ||
#suggested-search-list div.rule_type { | ||
width: 32px; | ||
height: 22px; | ||
float: left; | ||
overflow: hidden; | ||
} | ||
#suggested-search-list div.rule_type img { | ||
position:relative; | ||
} | ||
#suggested-search-list div.rule_type.doc_presdoc img { | ||
top: -6px; | ||
} | ||
#suggested-search-list div.rule_type.doc_notice img { | ||
top:-627px; | ||
} | ||
#suggested-search-list div.rule_type.doc_rule img { | ||
top: -316px; | ||
} | ||
#suggested-search-list div.rule_type.doc_prorule img { | ||
top: -936px; | ||
} | ||
|
||
|
||
/****************************** | ||
SUGGESTED SEARCH RESULTS | ||
******************************/ | ||
#canned_searches .search_count { | ||
margin: 30px 0 20px 0px; | ||
padding: 0; | ||
} | ||
#suggested-search-list { | ||
list-style: none; | ||
margin-top: 5px; | ||
margin-bottom: 5px; | ||
} | ||
#suggested-search-list li { | ||
margin-bottom: 10px; | ||
} | ||
.search_result_wrapper { | ||
padding-left: 40px; | ||
} | ||
#suggested-search-list h4 { | ||
padding-left: 10px; | ||
margin-bottom: 5px; | ||
} | ||
#suggested-search-list span.pdf { | ||
padding-left: 15px; | ||
font-size: 13px; | ||
top: -1px; | ||
position: relative; | ||
} | ||
p.result_info { | ||
clear: both; | ||
color: #000; | ||
font-family: "athelas-1","athelas-2", "Georgia", serif; | ||
font-size: 1.2em; | ||
line-height: 1.4em; | ||
padding-left: 10px; | ||
} | ||
div.metadata { | ||
float: left; | ||
font-size: 1.2em; | ||
padding-left: 10px; | ||
margin-bottom: 3px; | ||
} | ||
.notice p { | ||
margin-left: 0px; | ||
} | ||
#canned_searches .more_results { | ||
margin-bottom: 20px; | ||
} | ||
|
||
/****************************** | ||
FREQUENCY SPARKLINES | ||
******************************/ | ||
#frequency-wrapper { | ||
background: #FFF; | ||
border: 1px solid #DDD; | ||
-moz-border-radius: 5px; | ||
-webkit-border-radius: 5px; | ||
-o-border-radius: 5px; | ||
-ms-border-radius: 5px; | ||
-khtml-border-radius: 5px; | ||
border-radius: 5px; | ||
padding: 10px 15px 5px; | ||
color: #000; | ||
width: 760px; | ||
margin: 0 auto 10px; | ||
} | ||
#frequency-header { | ||
width:132px; | ||
margin: 0 auto; | ||
} | ||
ul#frequency-spark-lines { | ||
list-style: none; | ||
width: 780px; | ||
margin: 0 auto; | ||
} | ||
ul#frequency-spark-lines li { | ||
display:inline; | ||
} | ||
ul#frequency-spark-lines li img { | ||
top:5px; | ||
position: relative; | ||
} | ||
li#five-years, li#all-years img { | ||
top:13px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ CUSTOMIZATIONS TO TIPSY | |
.tipsy { | ||
font-size: 12px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<li> | ||
<div class="rule_type doc_<%= entry.granule_class.downcase %> tipsy"><%= image_tag 'document_types.png' %></div> | ||
<div class="rule_type doc_<%= entry.granule_class.downcase %> tipsy"><%= image_tag 'icons/document_icons.png' %></div> | ||
|
||
<div class="search_result_wrapper"> | ||
<h4><%= link_to entry.title, entry_path(entry) %></h4> | ||
|
||
<div class="metadata"> | ||
A <%= entry.entry_type %> by <%= agency_names(entry) %> on | ||
<%= link_to date_tag(entry.publication_date, :datetime => entry.publication_date.to_s(:iso)), entries_by_date_path(entry.publication_date) %> | ||
<span class='pdf'><%= link_to "PDF - #{entry.human_length, 'page'}", entry.source_url('pdf'), :class => 'button format pdf small' %></span> | ||
<span class='pdf'><%= link_to "PDF - #{pluralize(entry.human_length, 'page')}", entry.source_url('pdf'), :class => 'button format pdf small' %></span> | ||
</div> | ||
|
||
<p class="result_info"> | ||
<%= truncate_words(entry.abstract || entry.raw_text, :length => 500) %> | ||
<%= truncate_words(entry.abstract || entry.raw_text, :length => 350) %> | ||
</p> | ||
</div> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule icons
updated
from 9b7752 to 5ab8cd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
$(document).ready(function(){ | ||
|
||
/* ALL PAGES */ | ||
$('.subscription.tipsy').tipsy({gravity: 'se', offset: 3, fade: true,}); // nw | n | ne | w | e | sw | s | se | ||
$('.subscription.tipsy').tipsy({gravity: 'se', offset: 3, delayIn: 100, fade: true,}); // nw | n | ne | w | e | sw | s | se | ||
|
||
|
||
/* CANNED SEARCH PAGE */ | ||
$('.doc_notice.tipsy').tipsy({gravity: 'e', fallback: "Notice", delayIn: 200, fade: true, offset: -7, trigger: 'manual'}).bind('click', function(){ $(this).tipsy("show");}); | ||
$('.rule.tipsy').tipsy({gravity: 'e', fallback: "Final Rule", delayIn: 200, fade: true, offset: -7}); | ||
$('.prorule.tipsy').tipsy({gravity: 'e', fallback: "Proposed Rule", delayIn: 200, fade: true, offset: -7}); | ||
$('.doc_notice.tipsy').tipsy( {gravity: 'e', fallback: "Notice", delayIn: 100, fade: true, offset: -4}); | ||
$('.doc_rule.tipsy').tipsy( {gravity: 'e', fallback: "Final Rule", delayIn: 100, fade: true, offset: -4}); | ||
$('.doc_prorule.tipsy').tipsy({gravity: 'e', fallback: "Proposed Rule", delayIn: 100, fade: true, offset: -4}); | ||
$('.doc_presdoc.tipsy').tipsy({gravity: 'e', fallback: "Presidential Document", delayIn: 100, fade: true, offset: -4}); | ||
}); | ||
|