nice pretty upgrade to item show page

This commit is contained in:
Emi Matchu 2010-09-08 22:49:39 -04:00
parent 460a406bd5
commit 3c473bee2c
21 changed files with 258 additions and 71 deletions

View file

@ -52,9 +52,9 @@ specs:
- bundler: - bundler:
version: 0.9.26 version: 0.9.26
- haml: - haml:
version: 3.0.13 version: 3.0.17
- compass: - compass:
version: 0.10.2 version: 0.10.4
- diff-lcs: - diff-lcs:
version: 1.1.2 version: 1.1.2
- factory_girl: - factory_girl:
@ -70,7 +70,7 @@ specs:
- mysql: - mysql:
version: 2.8.1 version: 2.8.1
- nokogiri: - nokogiri:
version: 1.4.2 version: 1.4.3.1
- rdiscount: - rdiscount:
version: 1.6.5 version: 1.6.5
- rspec-core: - rspec-core:

View file

@ -1,4 +1,5 @@
module ItemsHelper module ItemsHelper
NeoitemsURLFormat = 'http://neoitems.net/search2.php?Name=%s&AndOr=and&Category=All&Special=0&Status=Active&Sort=ItemID&results=15&SearchType=8'
module PetTypeImage module PetTypeImage
Format = 'http://pets.neopets.com/cp/%s/%i/%i.png' Format = 'http://pets.neopets.com/cp/%s/%i/%i.png'
@ -47,6 +48,18 @@ module ItemsHelper
end end
end end
def list_zones(zones, method=:label)
zones.sort { |x,y| x.label <=> y.label }.map(&method).join(', ')
end
def nc_icon_for(item)
image_tag 'nc.png', :title => 'NC Mall Item', :alt => 'NC', :class => 'nc-icon' if item.nc?
end
def neoitems_url_for(item)
sprintf(NeoitemsURLFormat, CGI::escape(item.name))
end
private private
def build_on_random_standard_pet_types(species, &block) def build_on_random_standard_pet_types(species, &block)

View file

@ -3,6 +3,8 @@ class Item < ActiveRecord::Base
SwfAssetType = 'object' SwfAssetType = 'object'
NCRarities = [0, 500]
set_table_name 'objects' # Neo & PHP Impress call them objects, but the class name is a conflict (duh!) set_table_name 'objects' # Neo & PHP Impress call them objects, but the class name is a conflict (duh!)
set_inheritance_column 'inheritance_type' # PHP Impress used "type" to describe category set_inheritance_column 'inheritance_type' # PHP Impress used "type" to describe category
@ -17,6 +19,39 @@ class Item < ActiveRecord::Base
# Not defining validations, since this app is currently read-only # Not defining validations, since this app is currently read-only
def nc?
NCRarities.include?(rarity_index)
end
def restricted_zones
unless @restricted_zones
@restricted_zones = []
zones_restrict.split(//).each_with_index do |switch, id|
@restricted_zones << Zone.find(id.to_i + 1) if switch == '1'
end
end
@restricted_zones
end
def occupied_zones
all_body_ids = []
zone_body_ids = {}
selected_assets = swf_assets.select('body_id, zone_id').each do |swf_asset|
zone_body_ids[swf_asset.zone_id] ||= []
body_ids = zone_body_ids[swf_asset.zone_id]
body_ids << swf_asset.body_id unless body_ids.include?(swf_asset.body_id)
all_body_ids << swf_asset.body_id unless all_body_ids.include?(swf_asset.body_id)
end
zones = []
total_body_ids = all_body_ids.size
zone_body_ids.each do |zone_id, body_ids|
zone = Zone.find(zone_id)
zone.sometimes = true if body_ids.size < total_body_ids
zones << zone
end
zones
end
def species_support_ids def species_support_ids
@species_support_ids_array ||= read_attribute('species_support_ids').split(',').map(&:to_i) @species_support_ids_array ||= read_attribute('species_support_ids').split(',').map(&:to_i)
end end
@ -91,7 +126,7 @@ class Item < ActiveRecord::Base
search_filter :is do |is_what| search_filter :is do |is_what|
raise ArgumentError, "We don't know how an item can be \"#{is_what}\". Did you mean is:nc?" unless is_what == 'nc' raise ArgumentError, "We don't know how an item can be \"#{is_what}\". Did you mean is:nc?" unless is_what == 'nc'
arel_table[:rarity_index].in([0, 500]) arel_table[:rarity_index].in(NCRarities)
end end
search_filter :only do |species_name| search_filter :only do |species_name|

View file

@ -3,6 +3,9 @@ class Zone < StaticResource
ItemZoneSets = {} ItemZoneSets = {}
attr_reader *AttributeNames attr_reader *AttributeNames
# When selecting zones that an asset occupies, we allow the zone to set
# whether or not the zone is "sometimes" occupied. This is false by default.
attr_writer :sometimes
def initialize(attributes) def initialize(attributes)
AttributeNames.each do |name| AttributeNames.each do |name|
@ -10,6 +13,10 @@ class Zone < StaticResource
end end
end end
def uncertain_label
@sometimes ? "#{label} sometimes" : label
end
n = 0 n = 0
@objects = YAML.load_file(Rails.root.join('config', 'zones.yml')).map do |a| @objects = YAML.load_file(Rails.root.join('config', 'zones.yml')).map do |a|
a['id'] = (n += 1) a['id'] = (n += 1)

View file

@ -14,3 +14,8 @@ $error-border-color: #fbc2c4;
$header-font: Delicious, Helvetica, Arial, Verdana, sans-serif; $header-font: Delicious, Helvetica, Arial, Verdana, sans-serif;
$body-font: "Droid Serif", Georgia, "Times New Roman", Times, serif; $body-font: "Droid Serif", Georgia, "Times New Roman", Times, serif;
$object-img-size: 80px;
$object-width: 100px;
$object-padding: 6px;
$nc-icon-size: 16px;

View file

@ -2,6 +2,18 @@ form {
margin-bottom: 2em; margin-bottom: 2em;
} }
.object .nc-icon {
height: 16px;
position: absolute;
right: ($object-width - $object-img-size) / 2 + $object-padding;
top: $object-img-size - $nc-icon-size;
width: 16px;
&:hover {
@include opacity(.5);
}
}
@mixin main_unit { @mixin main_unit {
float: left; float: left;
width: 49%; width: 49%;

View file

@ -4,10 +4,22 @@ body.show {
display: block; display: block;
margin-bottom: 1em; margin-bottom: 1em;
padding: 1em 0; padding: 1em 0;
div, img {
@include inline-block;
}
div {
text-align: left;
}
a {
font-size: 75%;
margin-left: 1em;
}
} }
#item-thumbnail { #item-thumbnail {
@include inline-block;
border: 1px solid $module-border-color; border: 1px solid $module-border-color;
height: 80px; height: 80px;
margin-right: .5em; margin-right: .5em;
@ -15,8 +27,7 @@ body.show {
} }
#item-name { #item-name {
@include inline-block; margin-bottom: 0;
margin-top: 1em;
} }
#item-preview { #item-preview {
@ -64,4 +75,33 @@ body.show {
overflow: hidden; overflow: hidden;
width: 300px; width: 300px;
} }
#item-zones {
font: {
family: $body-font;
size: 85%;
}
p:first-child {
margin-bottom: .25em;
}
}
#item-preview-header {
margin-top: 3em;
h3, a {
@include inline-block;
}
a {
font-size: 85%;
margin: -1.5em 0 0 1em
}
}
.nc-icon {
height: 16px;
width: 16px;
}
} }

View file

@ -2,3 +2,4 @@
= link_to item_path(item, :q => @query) do = link_to item_path(item, :q => @query) do
= image_tag item.thumbnail_url, :alt => item.description, :title => item.description = image_tag item.thumbnail_url, :alt => item.description, :title => item.description
= item.name = item.name
= nc_icon_for(item)

View file

@ -1,10 +1,28 @@
%header %header
= image_tag @item.thumbnail_url, :id => 'item-thumbnail' = image_tag @item.thumbnail_url, :id => 'item-thumbnail'
%h2#item-name= @item.name %div
%h2#item-name= @item.name
= nc_icon_for(@item)
- unless @item.rarity.empty?
== Rarity: #{@item.rarity_index} (#{@item.rarity})
%a.button{:href => neoitems_url_for(@item)} NeoItems
%p= @item.description %p= @item.description
%h3 Preview #item-zones
%p
%strong Occupies:
= list_zones @item.occupied_zones, :uncertain_label
%p
%strong Restricts:
- if @item.restricted_zones.empty?
None
- else
= list_zones @item.restricted_zones
#item-preview-header
%h3 Preview
%a#customize-more.button{:href => 'http://impress.openneo.net/'} Customize more
#item-preview #item-preview
#item-preview-species= standard_species_images(@item.supported_species) #item-preview-species= standard_species_images(@item.supported_species)

BIN
public/images/nc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

View file

@ -1,6 +1,9 @@
// FIXME: pick a consistent javascript style! underscores for vars or camelCase?
var PREVIEW_SWF_ID = 'item-preview-swf', var PREVIEW_SWF_ID = 'item-preview-swf',
PREVIEW_SWF = document.getElementById(PREVIEW_SWF_ID), PREVIEW_SWF = document.getElementById(PREVIEW_SWF_ID),
speciesList = $('#item-preview a'), speciesList = $('#item-preview a'),
customize_more_el = $('#customize-more'),
MainWardrobe; MainWardrobe;
if(typeof console == 'undefined' || typeof console.log == 'undefined') { if(typeof console == 'undefined' || typeof console.log == 'undefined') {
@ -72,6 +75,9 @@ function PetType() {
PetType.current = this; PetType.current = this;
speciesList.filter('.current').removeClass('current'); speciesList.filter('.current').removeClass('current');
this.link.addClass('current'); this.link.addClass('current');
customize_more_el.attr('href',
'http://impress.openneo.net/wardrobe?species=' + this.species_id +
'&color=' + this.color_id + '&objects[]=' + Item.current.id);
if(this.activated) { if(this.activated) {
Preview.enable(); Preview.enable();
this.load(); this.load();
@ -120,6 +126,7 @@ PetType.createFromLink = function (link) {
function Item(id) { function Item(id) {
this.assets_by_body_id = {}; this.assets_by_body_id = {};
this.id = id;
this.load = function (pet_type) { this.load = function (pet_type) {
var url = '/items/' + id + '/bodies/' + pet_type.body_id + '/swf_assets.json', var url = '/items/' + id + '/bodies/' + pet_type.body_id + '/swf_assets.json',

View file

@ -2,87 +2,87 @@
body.bp { body.bp {
text-align: center; text-align: center;
} }
/* line 48, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 48, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
* html body.bp legend { * html body.bp legend {
margin: 0px -8px 16px 0; margin: 0px -8px 16px 0;
padding: 0; padding: 0;
} }
/* line 52, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 52, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
html > body.bp p code { html > body.bp p code {
*white-space: normal; *white-space: normal;
} }
/* line 67, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 67, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp .container { body.bp .container {
text-align: left; text-align: left;
} }
/* line 69, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 69, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp sup { body.bp sup {
vertical-align: text-top; vertical-align: text-top;
} }
/* line 71, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 71, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp sub { body.bp sub {
vertical-align: text-bottom; vertical-align: text-bottom;
} }
/* line 73, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 73, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp hr { body.bp hr {
margin: -8px auto 11px; margin: -8px auto 11px;
} }
/* line 75, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 75, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp img { body.bp img {
-ms-interpolation-mode: bicubic; -ms-interpolation-mode: bicubic;
} }
/* line 77, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 77, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp fieldset { body.bp fieldset {
padding-top: 0; padding-top: 0;
} }
/* line 79, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 79, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp textarea { body.bp textarea {
overflow: auto; overflow: auto;
} }
/* line 82, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 82, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp input.text { body.bp input.text {
margin: 0.5em 0; margin: 0.5em 0;
background-color: white; background-color: white;
border: 1px solid #bbbbbb; border: 1px solid #bbbbbb;
} }
/* line 86, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 86, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp input.text:focus { body.bp input.text:focus {
border: 1px solid #666666; border: 1px solid #666666;
} }
/* line 88, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 88, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp input.title { body.bp input.title {
margin: 0.5em 0; margin: 0.5em 0;
background-color: white; background-color: white;
border: 1px solid #bbbbbb; border: 1px solid #bbbbbb;
} }
/* line 92, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 92, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp input.title:focus { body.bp input.title:focus {
border: 1px solid #666666; border: 1px solid #666666;
} }
/* line 94, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 94, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp input.checkbox { body.bp input.checkbox {
position: relative; position: relative;
top: 0.25em; top: 0.25em;
} }
/* line 97, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 97, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp input.radio { body.bp input.radio {
position: relative; position: relative;
top: 0.25em; top: 0.25em;
} }
/* line 100, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 100, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp input.button { body.bp input.button {
position: relative; position: relative;
top: 0.25em; top: 0.25em;
} }
/* line 103, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 103, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp textarea { body.bp textarea {
margin: 0.5em 0; margin: 0.5em 0;
} }
/* line 105, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 105, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp select { body.bp select {
margin: 0.5em 0; margin: 0.5em 0;
} }
/* line 107, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_ie.scss */ /* line 107, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_ie.scss */
body.bp button { body.bp button {
position: relative; position: relative;
top: 0.25em; top: 0.25em;

View file

@ -6,11 +6,11 @@ body.bp {
background: none; background: none;
font-size: 10pt; font-size: 10pt;
} }
/* line 52, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 52, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp .container { body.bp .container {
background: none; background: none;
} }
/* line 54, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 54, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp hr { body.bp hr {
background: #cccccc; background: #cccccc;
color: #cccccc; color: #cccccc;
@ -20,54 +20,54 @@ body.bp hr {
padding: 0; padding: 0;
border: none; border: none;
} }
/* line 62, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 62, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp hr.space { body.bp hr.space {
background: white; background: white;
color: white; color: white;
} }
/* line 65, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 65, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp h1, body.bp h2, body.bp h3, body.bp h4, body.bp h5, body.bp h6 { body.bp h1, body.bp h2, body.bp h3, body.bp h4, body.bp h5, body.bp h6 {
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
} }
/* line 67, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 67, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp code { body.bp code {
font-size: 0.9em; font-size: 0.9em;
font-family: "andale mono", "lucida console", monospace; font-family: "andale mono", "lucida console", monospace;
} }
/* line 72, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 72, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp a img { body.bp a img {
border: none; border: none;
} }
/* line 75, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 75, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp a:link, body.bp a:visited { body.bp a:link, body.bp a:visited {
background: transparent; background: transparent;
font-weight: 700; font-weight: 700;
text-decoration: underline; text-decoration: underline;
} }
/* line 79, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 79, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp p img.top { body.bp p img.top {
margin-top: 0; margin-top: 0;
} }
/* line 81, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 81, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp blockquote { body.bp blockquote {
margin: 1.5em; margin: 1.5em;
padding: 1em; padding: 1em;
font-style: italic; font-style: italic;
font-size: 0.9em; font-size: 0.9em;
} }
/* line 86, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 86, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp .small { body.bp .small {
font-size: 0.9em; font-size: 0.9em;
} }
/* line 88, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 88, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp .large { body.bp .large {
font-size: 1.1em; font-size: 1.1em;
} }
/* line 90, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 90, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp .quiet { body.bp .quiet {
color: #999999; color: #999999;
} }
/* line 92, ../../../../../.rvm/gems/ruby-1.9.2-preview3@rails3beta4/gems/compass-0.10.2/frameworks/blueprint/stylesheets/blueprint/_print.scss */ /* line 92, ../../../../../.rvm/gems/ruby-1.9.2-preview3/gems/compass-0.10.4/frameworks/blueprint/stylesheets/blueprint/_print.scss */
body.bp .hide { body.bp .hide {
display: none; display: none;
} }

View file

@ -37,36 +37,51 @@ form {
margin-bottom: 2em; margin-bottom: 2em;
} }
/* line 14, ../../../app/stylesheets/items/_index.scss */ /* line 5, ../../../app/stylesheets/items/_index.scss */
.object .nc-icon {
height: 16px;
position: absolute;
right: 16px;
top: 64px;
width: 16px;
}
/* line 12, ../../../app/stylesheets/items/_index.scss */
.object .nc-icon:hover {
opacity: 0.5;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
}
/* line 26, ../../../app/stylesheets/items/_index.scss */
#search-help { #search-help {
float: left; float: left;
width: 49%; width: 49%;
padding-right: 1%; padding-right: 1%;
} }
/* line 9, ../../../app/stylesheets/items/_index.scss */ /* line 21, ../../../app/stylesheets/items/_index.scss */
#search-help h2 { #search-help h2 {
font-size: 125%; font-size: 125%;
} }
/* line 18, ../../../app/stylesheets/items/_index.scss */ /* line 30, ../../../app/stylesheets/items/_index.scss */
#search-help dl { #search-help dl {
text-align: left; text-align: left;
} }
/* line 22, ../../../app/stylesheets/items/_index.scss */ /* line 34, ../../../app/stylesheets/items/_index.scss */
#search-help dd { #search-help dd {
margin-bottom: 1em; margin-bottom: 1em;
} }
/* line 27, ../../../app/stylesheets/items/_index.scss */ /* line 39, ../../../app/stylesheets/items/_index.scss */
#species-search-links { #species-search-links {
float: left; float: left;
width: 49%; width: 49%;
padding-left: 1%; padding-left: 1%;
} }
/* line 9, ../../../app/stylesheets/items/_index.scss */ /* line 21, ../../../app/stylesheets/items/_index.scss */
#species-search-links h2 { #species-search-links h2 {
font-size: 125%; font-size: 125%;
} }
/* line 32, ../../../app/stylesheets/items/_index.scss */ /* line 44, ../../../app/stylesheets/items/_index.scss */
#species-search-links img { #species-search-links img {
height: 80px; height: 80px;
width: 80px; width: 80px;
@ -79,43 +94,49 @@ body.show header {
margin-bottom: 1em; margin-bottom: 1em;
padding: 1em 0; padding: 1em 0;
} }
/* line 9, ../../../app/stylesheets/items/_show.scss */ /* line 8, ../../../app/stylesheets/items/_show.scss */
body.show #item-thumbnail { body.show header div, body.show header img {
display: -moz-inline-box; display: -moz-inline-box;
-moz-box-orient: vertical; -moz-box-orient: vertical;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
*display: inline; *display: inline;
*vertical-align: auto; *vertical-align: auto;
}
/* line 12, ../../../app/stylesheets/items/_show.scss */
body.show header div {
text-align: left;
}
/* line 16, ../../../app/stylesheets/items/_show.scss */
body.show header a {
font-size: 75%;
margin-left: 1em;
}
/* line 22, ../../../app/stylesheets/items/_show.scss */
body.show #item-thumbnail {
border: 1px solid #006600; border: 1px solid #006600;
height: 80px; height: 80px;
margin-right: .5em; margin-right: .5em;
width: 80px; width: 80px;
} }
/* line 17, ../../../app/stylesheets/items/_show.scss */ /* line 29, ../../../app/stylesheets/items/_show.scss */
body.show #item-name { body.show #item-name {
display: -moz-inline-box; margin-bottom: 0;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*display: inline;
*vertical-align: auto;
margin-top: 1em;
} }
/* line 23, ../../../app/stylesheets/items/_show.scss */ /* line 34, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview div { body.show #item-preview div {
float: left; float: left;
} }
/* line 28, ../../../app/stylesheets/items/_show.scss */ /* line 39, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-species { body.show #item-preview-species {
width: 400px; width: 400px;
} }
/* line 31, ../../../app/stylesheets/items/_show.scss */ /* line 42, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-species a, body.show #item-preview-species img { body.show #item-preview-species a, body.show #item-preview-species img {
height: 50px; height: 50px;
width: 50px; width: 50px;
} }
/* line 36, ../../../app/stylesheets/items/_show.scss */ /* line 47, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-species a { body.show #item-preview-species a {
display: -moz-inline-box; display: -moz-inline-box;
-moz-box-orient: vertical; -moz-box-orient: vertical;
@ -124,35 +145,63 @@ body.show #item-preview-species a {
*display: inline; *display: inline;
*vertical-align: auto; *vertical-align: auto;
} }
/* line 39, ../../../app/stylesheets/items/_show.scss */ /* line 50, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-species a.current { body.show #item-preview-species a.current {
background: #eeffee; background: #eeffee;
outline: 1px solid #006600; outline: 1px solid #006600;
} }
/* line 44, ../../../app/stylesheets/items/_show.scss */ /* line 55, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-species a.deactivated { body.show #item-preview-species a.deactivated {
-moz-opacity: 0.5;
-webkit-opacity: 0.5;
-o-opacity: 0.5;
-khtml-opacity: 0.5;
opacity: 0.5; opacity: 0.5;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50); -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50); filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
background: #fbe3e4; background: #fbe3e4;
} }
/* line 49, ../../../app/stylesheets/items/_show.scss */ /* line 60, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-species a.deactivated.current { body.show #item-preview-species a.deactivated.current {
outline-color: #fbc2c4; outline-color: #fbc2c4;
} }
/* line 56, ../../../app/stylesheets/items/_show.scss */ /* line 67, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-error { body.show #item-preview-error {
display: none; display: none;
padding: 20px 10px 0; padding: 20px 10px 0;
width: 380px; width: 380px;
} }
/* line 62, ../../../app/stylesheets/items/_show.scss */ /* line 73, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-swf { body.show #item-preview-swf {
height: 300px; height: 300px;
overflow: hidden; overflow: hidden;
width: 300px; width: 300px;
} }
/* line 79, ../../../app/stylesheets/items/_show.scss */
body.show #item-zones {
font-family: "Droid Serif", Georgia, "Times New Roman", Times, serif;
font-size: 85%;
}
/* line 85, ../../../app/stylesheets/items/_show.scss */
body.show #item-zones p:first-child {
margin-bottom: .25em;
}
/* line 90, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-header {
margin-top: 3em;
}
/* line 93, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-header h3, body.show #item-preview-header a {
display: -moz-inline-box;
-moz-box-orient: vertical;
display: inline-block;
vertical-align: middle;
*display: inline;
*vertical-align: auto;
}
/* line 97, ../../../app/stylesheets/items/_show.scss */
body.show #item-preview-header a {
font-size: 85%;
margin: -1.5em 0 0 1em;
}
/* line 103, ../../../app/stylesheets/items/_show.scss */
body.show .nc-icon {
height: 16px;
width: 16px;
}

Binary file not shown.

BIN
vendor/cache/compass-0.10.4.gem vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/haml-3.0.17.gem vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
vendor/cache/nokogiri-1.4.3.1.gem vendored Normal file

Binary file not shown.

BIN
vendor/cache/query_diet-0.2.0.gem vendored Normal file

Binary file not shown.