Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added public files and commented site_configuration so you can now in…

…stall clean
  • Loading branch information...
commit e616df5f74835cb280836e430411c4e29ae1f518 1 parent 6ac8f96
Valentino authored
2  Gemfile.lock
View
@@ -190,7 +190,7 @@ GEM
faraday (0.5.7)
addressable (~> 2.2.4)
multipart-post (~> 1.1.0)
- rack (>= 1.1.0, < 2)
+ rack (< 2, >= 1.1.0)
ffi (1.0.7)
rake (>= 0.8.7)
gherkin (2.3.5)
12 config/initializers/site_preferences.rb
View
@@ -1,7 +1,7 @@
-Spree::Config.set(:homepage_groups => 'Slingbox,Satellite Radios,Boomboxes,Accessories,Internet Radios,Vehicle Installation')
-Spree::Config.set(:site_name => 'Rails Dog Radio')
+#Spree::Config.set(:homepage_groups => 'Slingbox,Satellite Radios,Boomboxes,Accessories,Internet Radios,Vehicle Installation')
+#Spree::Config.set(:site_name => 'Rails Dog Radio')
-Spree::ActiveShipping::Config.set(:origin_country => "US")
-Spree::ActiveShipping::Config.set(:origin_state => "MD")
-Spree::ActiveShipping::Config.set(:origin_city => "Chevy Chase")
-Spree::ActiveShipping::Config.set(:origin_zip => "20815")
+#Spree::ActiveShipping::Config.set(:origin_country => "US")
+#Spree::ActiveShipping::Config.set(:origin_state => "MD")
+#Spree::ActiveShipping::Config.set(:origin_city => "Chevy Chase")
+#Spree::ActiveShipping::Config.set(:origin_zip => "20815")
2  db/migrate/20100506185838_add_description_to_taxons.rb
View
@@ -1,7 +1,7 @@
class AddDescriptionToTaxons < ActiveRecord::Migration
def self.up
# skip this migration if the attribute already exists because of advanced taxon extension
- return if Taxon.new.respond_to? :description
+ return if column_exists?(:taxons, :description)
add_column :taxons, :description, :text
end
38 db/migrate/20101101185116_rename_columns_for_devise.rb
View
@@ -1,38 +0,0 @@
-class RenameColumnsForDevise < ActiveRecord::Migration
- def self.up
- rename_column :users, :crypted_password, :encrypted_password
- rename_column :users, :salt, :password_salt
- rename_column :users, :remember_token_expires_at, :remember_created_at
- rename_column :users, :login_count, :sign_in_count
- rename_column :users, :failed_login_count, :failed_attempts
- rename_column :users, :single_access_token, :reset_password_token
- rename_column :users, :current_login_at, :current_sign_in_at
- rename_column :users, :last_login_at, :last_sign_in_at
- rename_column :users, :current_login_ip, :current_sign_in_ip
- rename_column :users, :last_login_ip, :last_sign_in_ip
- add_column :users, :authentication_token, :string
- add_column :users, :unlock_token, :string
- add_column :users, :locked_at, :datetime
- remove_column :users, :api_key
- remove_column :users, :openid_identifier
- end
-
- def self.down
- remove_column :users, :authentication_token
- remove_column :users, :locked_at
- remove_column :users, :unlock_token
- rename_column :table_name, :new_column_name, :column_name
- rename_column :users, :last_sign_in_ip, :last_login_ip
- rename_column :users, :current_sign_in_ip, :current_login_ip
- rename_column :users, :last_sign_in_at, :last_login_at
- rename_column :users, :current_sign_in_at, :current_login_at
- rename_column :users, :reset_password_token, :single_access_token
- rename_column :users, :failed_attempts, :failed_login_count
- rename_column :users, :sign_in_count, :login_count
- rename_column :users, :remember_created_at, :remember_token_expires_at
- rename_column :users, :password_salt, :salt
- rename_column :users, :encrypted_password, :crypted_password
- add_column :users, :unlock_token, :string
- add_column :users, :openid_identifier, :string
- end
-end
17 db/migrate/20110314192118_remove_trailing_slashes_in_taxon_permalinks.rb
View
@@ -0,0 +1,17 @@
+class RemoveTrailingSlashesInTaxonPermalinks < ActiveRecord::Migration
+ def self.up
+ Taxon.find_each(:conditions => {}) do |t|
+ if t.permalink && t.permalink[-1..-1] == '/'
+ t.update_attribute(:permalink, t.permalink[0...-1])
+ end
+ end
+ end
+
+ def self.down
+ Taxon.find_each(:conditions => {}) do |t|
+ if t.permalink && t.permalink[-1..-1] != '/'
+ t.update_attribute(:permalink, t.permalink + '/')
+ end
+ end
+ end
+end
53 db/sample/users.rb
View
@@ -0,0 +1,53 @@
+# see last line where we create an admin if there is none, asking for email and password
+def prompt_for_admin_password
+ password = ask('Password [spree123]: ', String) do |q|
+ q.echo = false
+ q.validate = /^(|.{5,40})$/
+ q.responses[:not_valid] = "Invalid password. Must be at least 5 characters long."
+ q.whitespace = :strip
+ end
+ password = "spree123" if password.blank?
+ password
+end
+
+def prompt_for_admin_email
+ email = ask('Email [spree@example.com]: ', String) do |q|
+ q.echo = true
+ q.whitespace = :strip
+ end
+ email = "spree@example.com" if email.blank?
+ email
+end
+
+def create_admin_user
+ if ENV['AUTO_ACCEPT']
+ password = "spree123"
+ email = "spree@example.com"
+ else
+ require 'highline/import'
+ puts "Create the admin user (press enter for defaults)."
+ #name = prompt_for_admin_name unless name
+ email = prompt_for_admin_email
+ password = prompt_for_admin_password
+ end
+ attributes = {
+ :password => password,
+ :password_confirmation => password,
+ :email => email,
+ :login => email
+ }
+
+ load 'user.rb'
+
+ if User.find_by_email(email)
+ say "\nWARNING: There is already a user with the email: #{email}, so no account changes were made. If you wish to create an additional admin user, please run rake db:admin:create again with a different email.\n\n"
+ else
+ admin = User.create(attributes)
+ # create an admin role and and assign the admin user to that role
+ role = Role.find_or_create_by_name "admin"
+ admin.roles << role
+ admin.save
+ end
+end
+
+create_admin_user if User.where("roles.name" => 'admin').includes(:roles).empty?
23 db/schema.rb
View
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110125135821) do
+ActiveRecord::Schema.define(:version => 20110314192118) do
create_table "addresses", :force => true do |t|
t.string "firstname"
@@ -326,7 +326,7 @@
add_index "product_scopes", ["product_group_id"], :name => "index_product_scopes_on_product_group_id"
create_table "products", :force => true do |t|
- t.string "name", :null => false
+ t.string "name", :default => "", :null => false
t.text "description"
t.datetime "created_at"
t.datetime "updated_at"
@@ -337,7 +337,7 @@
t.datetime "deleted_at"
t.string "meta_description"
t.string "meta_keywords"
- t.integer "count_on_hand", :default => 0, :null => false
+ t.integer "count_on_hand", :default => 0, :null => false
t.decimal "rrp", :precision => 8, :scale => 2
end
@@ -523,10 +523,10 @@
end
create_table "taxons", :force => true do |t|
- t.integer "taxonomy_id", :null => false
+ t.integer "taxonomy_id", :null => false
t.integer "parent_id"
- t.integer "position", :default => 0
- t.string "name", :null => false
+ t.integer "position", :default => 0
+ t.string "name", :null => false
t.datetime "created_at"
t.datetime "updated_at"
t.string "permalink"
@@ -537,15 +537,6 @@
t.integer "icon_file_size"
t.datetime "icon_updated_at"
t.text "description"
- t.boolean "hidden", :default => false
- t.boolean "disabled", :default => false
- t.string "short_name"
- t.boolean "homepage", :default => false
- t.string "display_style"
- t.string "banner_file_name"
- t.string "banner_content_type"
- t.integer "banner_file_size"
- t.datetime "banner_updated_at"
end
add_index "taxons", ["parent_id"], :name => "index_taxons_on_parent_id"
@@ -609,7 +600,7 @@
create_table "variants", :force => true do |t|
t.integer "product_id"
- t.string "sku", :null => false
+ t.string "sku", :default => "", :null => false
t.decimal "price", :precision => 8, :scale => 2, :null => false
t.decimal "weight", :precision => 8, :scale => 2
t.decimal "height", :precision => 8, :scale => 2
12 lib/spree_site.rb
View
@@ -1,12 +1,12 @@
module SpreeSite
class Engine < Rails::Engine
def self.activate
-
- Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
- Rails.configuration.cache_classes ? require(c) : load(c)
- end
-
+ # Add your custom site logic here
end
+
+ def load_tasks
+ end
+
config.to_prepare &method(:activate).to_proc
end
-end
+end
BIN  public/images/reorder.jpg
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 public/javascripts/admin/unobtrusive_handlers.js
View
@@ -12,4 +12,32 @@ $(document).ready(function(){
return false;
});
+
+ jQuery('table.sortable').ready(function(){
+ jQuery('table.sortable tbody').sortable(
+ {
+ handle: '.handle',
+ update: function(event, ui) {
+ $("#progress").show();
+ positions = {};
+ type = '';
+ jQuery.each(jQuery('table.sortable tbody tr'), function(position, obj){
+ reg = /(\w+_?)+_(\d+)/;
+ parts = reg.exec(jQuery(obj).attr('id'));
+ if (parts) {
+ positions['positions['+parts[2]+']'] = position;
+ type = parts[1];
+ }
+ });
+ jQuery.ajax({
+ type: 'POST',
+ dataType: 'script',
+ url: type+'s/update_positions',
+ data: positions,
+ success: function(data){ $("#progress").hide(); }
+ });
+ }
+ });
+ });
+
});
97 public/javascripts/application.js
View
@@ -1,28 +1,5 @@
(function($){
$(document).ready(function(){
- //homepabe banner carousel
- $('div#banner section div').jCarouselLite({
- btnNext: "#banner-nav .last",
- btnPrev: "#banner-nav .first",
- visible: 1,
- auto: 3000,
- speed: 1000,
- btnGo:
- ["#b1_handle", "#b2_handle",
- "#b3_handle", "#b4_handle"],
- afterEnd: function(a) {
- $('#banner-nav li.current').removeClass('current');
-
- var handle = $('#' + a.attr('id') + '_handle');
- handle.addClass('current');
- }
-
- });
-
- //pause scrolling after click of controls
- $('nav#banner-nav a').click(function(){
- $('div#banner section div').trigger('pauseCarousel');
- });
// Remove an item from the cart by setting its quantity to zero and posting the update form
$('form#updatecart a.delete').show().click(function(){
@@ -31,79 +8,5 @@
return false;
});
-
- // add handler for mousing over thumbnails
- $("#main-image").data('selectedThumb', $('#main-image img').attr('src'));
- $('ul.thumbnails li').eq(0).addClass('selected');
- $('ul.thumbnails li a').click(function() {
- $("#main-image").data('selectedThumb', $(this).attr('data-product-image'));
- $('ul.thumbnails li').removeClass('selected');
- $(this).parent('li').addClass('selected');
- }).hover(
- function() {
- $("a[rel='facebox']").attr('href', $(this).attr('href'));
- $("a[rel='facebox']").fancybox();
-
- $('#main-image img').attr('src', $(this).attr('data-product-image'));
- },
- function() {
- $('#main-image img').attr('src', $("#main-image").data('selectedThumb'));
- }
- );
-
- // add light box
- $("a[rel='product_images']").fancybox({
- 'transitionIn' : 'elastic',
- 'transitionOut' : 'elastic'
- });
-
-
-
- $("a[rel='facebox']").fancybox();
-
-
- //wishlist
-
-
- //handle wishlist edit link (show / hide form)
- $('a#edit_wishlist_link').click(function(){
- if($('#edit_wishlist').is(':visible')){
- $('#edit_wishlist').slideUp();
- }else{
- $('#edit_wishlist').slideDown();
- }
-
- return false;
- });
-
- //handle move item link
- $('.move_item a.button').click(function(){
- var move_button = $(this);
- move_button.hide();
- move_button.parent().find('form').fadeIn();
- return false;
- });
-
-
-
- //search box
- if(!$.browser.webkit){
- var $input = $('#s1');
- var placeholder = $input.attr('placeholder');
- $input.focus(function(){
- if($input.val() == placeholder){
- $input.val('');
- $input.removeClass('empty');
- }
- });
- $input.blur(function(){
- if($.trim($input.val()) == ""){
- $input.val(placeholder);
- $input.addClass('empty');
- }
- });
- $input.triggerHandler('blur');
- }
-
});
})(jQuery);
30 public/javascripts/checkout.js
View
@@ -1,13 +1,13 @@
(function($){
$(document).ready(function(){
- //$('#checkout_form_address').validate();
+ $('#checkout_form_address').validate();
var get_states = function(region){
- var country = $('span#' + region + 'country :only-child').val();
+ var country = $('p#' + region + 'country' + ' span#' + region + 'country :only-child').val();
return state_mapper[country];
}
-
+
var update_state = function(region) {
var states = get_states(region);
@@ -37,30 +37,23 @@
};
- var show_payment_method = function(){
- $('li.payment_method').hide();
- var id = $("input[name='order[payments_attributes][][payment_method_id]']:checked").val()
-
- $('li.payment_method.' + id).show();
- }
-
// Show fields for the selected payment method
- $("input[type='radio'][name='order[payments_attributes][][payment_method_id]']").change(function(){
- show_payment_method();
- })
+ $("input[type='radio'][name='order[payments_attributes][][payment_method_id]']").click(function(){
+ $('#payment-methods li').hide();
+ if(this.checked){ $('#payment_method_'+this.value).show(); }
+ }).triggerHandler('click');
- $('span#bcountry select').change(function() { update_state('b'); });
- $('span#scountry select').change(function() { update_state('s'); });
+ $('p#bcountry span#bcountry select').change(function() { update_state('b'); });
+ $('p#scountry span#scountry select').change(function() { update_state('s'); });
update_state('b');
update_state('s');
- show_payment_method()
$('input#order_use_billing').click(function() {
if($(this).is(':checked')) {
- $('#shipping .inner').hide();
+ $('#shipping .inner input, #shipping .inner select, #shipping .inner label, #shipping .inner .req').hide();
$('#shipping .inner input, #shipping .inner select').attr('disabled', 'disabled');
} else {
- $('#shipping .inner').show();
+ $('#shipping .inner input, #shipping .inner select, #shipping .inner label, #shipping .inner .req').show();
$('#shipping .inner input, #shipping .inner select').removeAttr('disabled', 'disabled');
//only want to enable relevant field
@@ -80,4 +73,3 @@
});
})(jQuery);
-
9 public/robots.txt
View
@@ -13,3 +13,12 @@ Disallow: /
#Disallow: /states
#Disallow: /user_sessions
#Disallow: /users
+ User-agent: *
+ Disallow: /checkouts
+ Disallow: /orders
+ Disallow: /countries
+ Disallow: /line_items
+ Disallow: /password_resets
+ Disallow: /states
+ Disallow: /user_sessions
+ Disallow: /users
7 public/stylesheets/admin/admin-forms.css
View
@@ -105,7 +105,7 @@ form div.right.w30 {
.member-list {
- list-style:none;margin:0;
+ list-style:none;margin:0;margin-bottom:1em;
}
@@ -135,11 +135,6 @@ form div.right.w30 {
display: block; }
.field label span.label {
display: block; }
-
-
-
-
-
fieldset {
margin-bottom: 1em;
6 public/stylesheets/admin/admin.css
View
@@ -577,3 +577,9 @@ table#product_scopes tr td table tr td {
}
+span.handle{
+ background-image: url(../../images/reorder.jpg);
+ display: inline-block;
+ width:14px;
+ height:15px;
+}
1,079 public/stylesheets/screen.css
View
@@ -1,252 +1,915 @@
-/* @override http://localhost:3000/stylesheets/screen.css */
-
+html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ outline: 0;
+ font-weight: inherit;
+ font-style: inherit;
+ font-size: 100%;
+ font-family: inherit;
+ vertical-align: baseline;
+}
+*:focus { outline: 0; }
body {
- background: #fff url(../images/dogradio/bg.png) repeat-x;
-}
-
-#banner, #container, footer .inner {width: 960px; margin: 0 auto;}
-
-header, footer {background-color: #000;}
-header nav *, footer div#secondary * {display: inline-block;}
-header {
- position: relative;
- z-index: 100;
- height: 58px;
- margin: 0 auto;
+ line-height: 1em;
+ color: black;
+ background: #ffffff;
+}
+ol, ul { list-style: none; }
+table {
+ border-collapse: separate;
+ border-spacing: 0;
+ vertical-align: middle;
+}
+caption, th, td {
+ text-align: left;
+ font-weight: normal;
+ vertical-align: middle;
+}
+q, blockquote { quotes: "" ""; }
+q:before { content: ""; }
+q:after { content: ""; }
+blockquote:before { content: ""; }
+blockquote:after { content: ""; }
+img a { border: none; }
+hr {
+ background: #dddddd;
+ color: #dddddd;
+ clear: both;
+ float: none;
+ width: 100%;
+ height: 0.1em;
+ margin: 0 0 1.45em;
+ border: none;
}
-
-header form {
- position: absolute;
- left: 320px;
- top: 23px;
+hr.space {
+ background: #dddddd;
+ color: #dddddd;
+ clear: both;
+ float: none;
+ width: 100%;
+ height: 0.1em;
+ margin: 0 0 1.45em;
+ border: none;
+ background: #ffffff;
+ color: #ffffff;
+}
+body {
+ line-height: 1.5;
+ font-family: Helvetica Neue, Arial, Helvetica, sans-serif;
+ color: #333333;
+ font-size: 75%;
+}
+h1 {
+ font-weight: normal;
+ color: #222222;
+ font-size: 3em;
+ line-height: 1;
+ margin-bottom: 0.5em;
+}
+h1 img { margin: 0; }
+h2 {
+ font-weight: normal;
+ color: #222222;
+ font-size: 2em;
+ margin-bottom: 0.75em;
+}
+h3 {
+ font-weight: normal;
+ color: #222222;
+ font-size: 1.5em;
+ line-height: 1;
+ margin-bottom: 1em;
+}
+h4 {
+ font-weight: normal;
+ color: #222222;
+ font-size: 1.2em;
+ line-height: 1.25;
+ margin-bottom: 1.25em;
+}
+h5 {
+ font-weight: normal;
+ color: #222222;
+ font-size: 1em;
+ font-weight: bold;
+ margin-bottom: 1.5em;
+}
+h6 {
+ font-weight: normal;
+ color: #222222;
+ font-size: 1em;
+ font-weight: bold;
+}
+h2 img { margin: 0; }
+h3 img { margin: 0; }
+h4 img { margin: 0; }
+h5 img { margin: 0; }
+h6 img { margin: 0; }
+p { margin: 0 0 1.5em; }
+p img.left {
+ display: inline;
+ float: left;
+ margin: 1.5em 1.5em 1.5em 0;
padding: 0;
}
-header form input {
- background: #fff url(../images/dogradio/search_bg_s1.gif) no-repeat;
- border: 0;
- width: 146px;
- height: 23px;
- padding: 0 25px 0 10px;
- color: #333;
- line-height: 23px;
-}
-header form input.empty {
- color: #aaa;
-}
-
-
-header #logo {
- position: absolute;
- left: 0; top: 11px;
+p img.right {
+ display: inline;
+ float: right;
+ margin: 1.5em 0 1.5em 1.5em;
+ padding: 0;
}
-
-
-
-header nav {
- position: absolute;
- right: 0;
- top: 24px;
- text-align: right;
+a {
+ text-decoration: underline;
+ color: #2e6ab1;
+}
+blockquote {
+ margin: 1.5em;
+ color: #666666;
+ font-style: italic;
+}
+strong { font-weight: bold; }
+em { font-style: italic; }
+dfn {
+ font-style: italic;
+ font-weight: bold;
+}
+sup, sub { line-height: 0; }
+abbr, acronym { border-bottom: 1px dotted #666666; }
+address {
+ margin: 0 0 1.5em;
+ font-style: italic;
+}
+del { color: #666666; }
+pre {
+ margin: 1.5em 0;
+ white-space: pre;
+}
+pre, code, tt {
+ font: 1em 'andale mono', 'lucida console', monospace;
+ line-height: 1.5;
+}
+li ul { margin: 0 1.5em; }
+li ol { margin: 0 1.5em; }
+ul {
+ margin: 0 1.5em 1.5em 1.5em;
+ list-style-type: disc;
+}
+ol {
+ margin: 0 1.5em 1.5em 1.5em;
+ list-style-type: decimal;
+}
+dl { margin: 0 0 1.5em 0; }
+dl dt { font-weight: bold; }
+dd { margin-left: 1.5em; }
+table {
+ margin-bottom: 1.4em;
+ width: 100%;
+}
+th { font-weight: bold; }
+thead th { background: #c3d9ff; }
+th, td, caption { padding: 4px 10px 4px 5px; }
+tr.even td { background: #e5ecf9; }
+tfoot { font-style: italic; }
+caption { background: #eeeeee; }
+.quiet { color: #666666; }
+.loud { color: #111111; }
+form p.field {
+ margin-bottom: 0.5em;
+ clear: both;
}
-header nav a, header nav a:visited,header nav a:hover {
- margin: 0 0 0 12px;
- text-align: right;
- font: normal normal normal 1.1em/1.6em Arvo;
- color: #fff;
-}
-
-header nav a.cart {color: #B30000;}
-
-
-
-
-
-
-footer {
- background: #fff url('/images/dogradio/footer_bkgd.jpg') repeat-x bottom left;
- margin: 80px 0 0; clear: both;
- font-family: Trebuchet MS;
-}
-
-/*
-Push footer to bottom of page when there isn't much content
-html, body {
- height:100%
-}
-#container {
- position:relative;
- min-height:100%;
- _height:100%;
-}
-#content {
- padding-bottom:520px;}
-#main {
- padding-bottom:520px;
-}
-footer {
+form p.field span.req {
+ color: red;
+ float: left;
+ margin-left: 2px;
position: relative;
- margin-top:-520px!important;
+ top: -3px;
}
-*/
-
-footer .inner {
- height: 520px;
- position: relative;
+form p.field input[type=text] {
+ float: left;
+ margin: 0 5px 7px 0;
}
-
-footer #kid {
- position: absolute;
- bottom: 60px;
+form p.field select {
+ float: left;
+ margin: 0 5px 7px 0;
}
-footer #about-railsdog-radio {
- position: absolute;
- width: 710px;
- left: 250px;
- bottom: 0px;
- height: 390px;
+form p.field.radios { line-height: 150%; }
+label { font-weight: bold; }
+div#checkout #checkout_form_address #billing label.error {
+ color: red;
+ float: left;
+ text-align: left;
+ display: inline-block;
+ top: 0px;
+ font-size: 11px;
+ border: none;
+ padding: 0px;
+ width: auto;
+}
+div#checkout #checkout_form_address #shipping label.error {
+ color: red;
+ float: left;
+ text-align: left;
+ display: inline-block;
+ top: 0px;
+ font-size: 11px;
+ border: none;
+ padding: 0px;
+ width: auto;
+}
+fieldset { margin-bottom: 1em; }
+legend {
font-size: 150%;
- line-height: 150%;
- color: #666;
+ font-weight: bold;
+ margin-bottom: 0.5em;
}
-#more-about-railsdog-radio {
+.no_margin_or_padding {
+ margin: 0;
+ padding: 0;
+}
+.leftie {
+ float: left;
+ width: 49%;
+}
+.rightie {
+ float: right;
+ width: 49%;
+}
+.clearfix {
+ overflow: hidden;
+ display: inline-block;
+}
+.clearfix { display: block; }
+.nowrap { white-space: nowrap; }
+.no-bullets { list-style: none; }
+.inline-list {
+ list-style-type: none;
+ margin: 0px;
+ padding: 0px;
+ display: inline;
+}
+.inline-list li {
+ margin: 0px;
+ padding: 0px;
+ display: inline;
+}
+.colborder {
+ padding-right: 24px;
+ margin-right: 25px;
+ border-right: 1px solid #eeeeee;
+}
+body {
+ margin-top: 10px;
+ background: #ffffff url(../images/body-back.png) top left repeat-x;
+}
+div.left {
+ float: left;
+ width: 49%;
+}
+div.right {
+ float: right;
+ width: 49%;
+}
+a { outline: none; }
+#wrapper {
+ background: transparent url(../images/wrapper-back.png) top center no-repeat;
+ padding: 25px 20px 20px;
+ position: relative;
+}
+body.two-col #wrapper { background-image: url(../images/wrapper-back-2.png); }
+.container {
+ width: 950px;
+ margin: 0 auto;
+ overflow: hidden;
+ display: block;
+}
+#sidebar {
+ display: inline;
+ float: left;
+ width: 150px;
+ margin-right: 10px;
+ padding-right: 24px;
+ margin-right: 25px;
+ border-right: 1px solid #eeeeee;
+}
+#sidebar h3 { margin-bottom: 0.5em; }
+body.one-col #content {
+ display: inline;
+ float: left;
+ width: 950px;
+}
+body.two-col #content {
+ display: inline;
+ float: left;
+ width: 750px;
+}
+#header {
+ position: relative;
+ color: #2e6ab1;
+ clear: both;
+}
+#header a { color: #2e6ab1; }
+#header a:hover { color: #eeeeee; }
+#footer {
+ padding-top: 2em;
+ clear: both;
+}
+#footer div.left { width: 37%; }
+#footer div.right {
+ width: 63%;
text-align: right;
- font-size: 70%;
}
-#more-about-railsdog-radio a {
+h1 { font-size: 2.5em; }
+.form-buttons, .clear { clear: both; }
+input.title { width: auto; }
+p.follow-all {
+ font-size: 1.3em;
+ text-align: center;
+ display: block;
+}
+p img {
+ float: left;
+ margin-right: 5px;
+ vertical-align: middle;
+}
+.navigation-list {
+ list-style: none;
+ margin: 0 0 1.5em -15px;
+}
+.navigation-list li { margin: 0; }
+.navigation-list li a {
+ cursor: pointer !important;
text-decoration: none;
+ color: #333333;
+ display: block;
+ line-height: 2.5em;
+ padding-left: 20px;
+ width: 170px;
+ white-space: nowrap;
+ overflow: hidden;
+}
+.navigation-list li a:hover { background: url(../images/menu-hover.png) right center no-repeat; }
+.navigation-list li.current { width: 200px; }
+.navigation-list li.current a {
+ width: 180px;
+ background: url(../images/menu-current.png) right center no-repeat;
+ white-space: nowrap;
+ overflow: hidden;
+}
+.navigation-list li.current a.root { width: 183px; }
+.navigation-list a.root {
+ color: #222222;
+ font-size: 1.5em;
+ text-indent: -5px;
+ line-height: 2.2em;
}
-
-footer #about-railsdog-radio strong { color: #000; }
-footer #contact-us, footer #social, footer #menu {
- width: 210px;
- position: absolute;
- bottom: 0;
- height: 170px;
+.breadcrumbs { margin-bottom: 1em; }
+.breadcrumbs ul {
+ list-style-type: none;
+ margin: 0px;
+ padding: 0px;
+ display: inline;
+ margin: 0;
+ padding: 0;
+ overflow: auto;
+}
+.breadcrumbs ul li {
+ margin: 0px;
+ padding: 0px;
+ display: inline;
+}
+.breadcrumbs ul li {
+ line-height: 20px;
+ color: #666666;
+}
+.breadcrumbs ul li a {
+ text-decoration: none;
+ padding: 5px 7px;
+ color: #666666;
}
-footer #contact-us a, footer #social a, footer #menu a { color: #797A7D; }
-footer #contact-us p, footer #social p, footer #menu p {
- color: #797A7D;
- line-height: 2.0em;
+.breadcrumbs ul li span {
+ text-decoration: none;
+ padding: 5px 7px;
+ color: #666666;
+}
+.breadcrumbs ul li span { color: #333333; }
+div#login-bar { display: inline; }
+ul#language-bar {
+ list-style-type: none;
+ margin: 0px;
+ padding: 0px;
+ display: inline;
+}
+ul#language-bar li {
+ margin: 0px;
+ padding: 0px;
+ display: inline;
+}
+ul#language-bar strong { font-weight: normal; }
+ul#nav-bar {
+ line-height: 50px;
+ float: right;
+ clear: both;
font-size: 1.2em;
+ list-style: none;
+ margin: 0;
+ padding: 0;
}
-footer #contact-us h3, footer #social h3, footer #menu h3 {
- color: #fff;
- font-size: 1.5em;
- margin-bottom: 0.5em;
+ul#nav-bar li {
+ float: left;
+ margin-left: 1em;
+}
+ul#nav-bar li.cart-indicator a {
+ padding-right: 40px;
+ background: transparent url(../images/cart-empty_x32.png) center right no-repeat;
+ display: block;
}
-footer #contact-us {
- left: 250px;
+ul#nav-bar li.cart-indicator a.full { background-image: url(../images/cart-full_x32.png); }
+.pagination {
+ padding-top: 10px;
+ text-align: right;
}
-footer #social {
- left: 500px;
+.pagination a.page {
+ padding: 0px 5px;
+ margin: 0px 3px;
}
-footer #menu {
- left: 750px;
+.pagination span.page {
+ padding: 0px 5px;
+ margin: 0px 3px;
}
-footer #social a {
+.pagination a.page {
+ text-decoration: none;
+ border: 1px solid #9aafe5;
+ color: #2e6ab1;
+}
+.pagination a.page:hover {
+ border: 1px solid #2b66a5;
+ color: #000000;
+}
+.pagination a.page:active {
+ border: 1px solid #2b66a5;
+ color: #000000;
+}
+.pagination a.next_page { font-weight: bold; }
+.pagination span.disabled_page {
+ border: 1px solid #929292;
+ color: #929292;
+}
+.pagination span.current_page {
+ font-weight: bold;
+ border: 1px solid;
+ border-color: #162f54;
+ background-color: #2e6ab1;
+ color: #ffffff;
+}
+.flash {
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ border-radius: 5px;
+ font-size: 1.3em;
+ margin-bottom: 1em;
+ padding: 0.8em;
+}
+.flash.notice {
+ background: #ccddff url(../images/shadow_top.png) 0px -50px repeat-x;
+ color: #556699;
+ border: 1px solid #99aacc;
+}
+.flash.errors {
+ background: #f4b4b4 url(../images/shadow_top.png) 0px -50px repeat-x;
+ color: #000000;
+ border: 1px solid #000000;
+}
+.formError {
+ font-size: 1.3em;
+ margin-bottom: 1em;
+ padding: 0.8em;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ border-radius: 5px;
+ background: #f4b4b4 url(../images/shadow_top.png) 0px -50px repeat-x;
+ color: #000000;
+ border: 1px solid #000000;
+}
+.formError p { margin: 0px; }
+.formError ul { margin-bottom: 0px; }
+.formError h2 {
+ font-weight: bold;
+ font-size: 1em;
+ margin: 0px;
+}
+.errorExplanation {
+ font-size: 1.3em;
+ margin-bottom: 1em;
+ padding: 0.8em;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ border-radius: 5px;
+ background: #f4b4b4 url(../images/shadow_top.png) 0px -50px repeat-x;
+ color: #000000;
+ border: 1px solid #000000;
+}
+.errorExplanation p { margin: 0px; }
+.errorExplanation ul { margin-bottom: 0px; }
+.errorExplanation h2 {
+ font-weight: bold;
+ font-size: 1em;
+ margin: 0px;
+}
+.fieldWithErrors { clear: none; }
+button, a.button, input.button {
+ -moz-border-radius: 0.3em;
+ -webkit-border-radius: 0.3em;
+ border-radius: 0.3em;
+ background: #efefef url(../images/buttons/bg-button.png) center left repeat-x !important;
+ border-style: solid;
+ border-width: 1px !important;
+ border-color: #dddddd #999999 #999999 #dddddd !important;
+ -moz-outline-radius: 0.3em;
+ color: #111111;
+ display: inline-block;
+ font-family: Helvetica Neue, Helvetica, Arial, Sans-serif;
+ font-size: 1.1em !important;
+ font-size-adjust: none;
+ font-stretch: normal;
+ font-style: normal;
+ font-variant: normal;
+ font-weight: normal;
+ line-height: 1.2em;
+ margin: 0px;
+ overflow: visible;
+ padding: 10px 17px;
+ text-decoration: none;
+ text-transform: lowercase;
+ width: auto;
+ height: auto;
+ cursor: pointer;
+}
+button.primary, a.button.primary, input.button.primary {
+ font-weight: bold;
+ color: #000000;
+}
+button:hover { background-image: url(../images/buttons/bg-button-hover.png) !important; }
+a.button:hover { background-image: url(../images/buttons/bg-button-hover.png) !important; }
+input.button:hover { background-image: url(../images/buttons/bg-button-hover.png) !important; }
+button.large, a.button.large, input.button.large {
+ -moz-border-radius: 0.3em;
+ -webkit-border-radius: 0.3em;
+ border-radius: 0.3em;
+ font-size: 1.4em !important;
+ line-height: 1.4em;
+}
+button.small, a.button.small, input.button.small {
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ border-radius: 4px;
+ font-size: 0.9em;
+ line-height: 1.4em;
+ padding: 5px 10px;
+}
+button.small img { margin: 0 3px 0 0 !important; }
+a.button.small img { margin: 0 3px 0 0 !important; }
+input.button.small img { margin: 0 3px 0 0 !important; }
+button.update img { margin-right: 7px; }
+button.checkout img { margin-right: 7px; }
+a.button.update img { margin-right: 7px; }
+a.button.checkout img { margin-right: 7px; }
+input.button.update img { margin-right: 7px; }
+input.button.checkout img { margin-right: 7px; }
+button img { vertical-align: middle; }
+a.button img { vertical-align: middle; }
+input.button img { vertical-align: middle; }
+button:focus { outline: none; }
+a.button:focus { outline: none; }
+input.button:focus { outline: none; }
+button::-moz-focus-inner {
+ padding: 0px;
+ border: none;
+}
+p a.button img { margin: 0 5px 0 0; }
+p button img { margin: 0 5px 0 0; }
+.prices { font-weight: bold; }
+.prices #product-details .prices { font-size: 1.25em; }
+.price.selling { color: #2e6ab1; }
+#product-details .price.selling { font-size: 1.5em; }
+.price.diff {
+ font-style: italic;
+ font-weight: normal;
+ color: #666666;
+}
+.product-listing {
+ list-style: none;
+ margin: 2em 0px 0px 0px;
+ padding: 0px;
+}
+.product-listing li {
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ border-radius: 3px;
+ height: 180px;
+ width: 140px;
+ text-align: center;
+ float: left;
+ margin: 10px;
+ padding: 10px;
+ border: 1px solid #dddddd;
+ position: relative;
+}
+.product-listing li a {
display: block;
- width: 25px;
- height: 25px;
+ text-decoration: none;
+ color: #111111;
+}
+.product-listing li a.info {
+ position: absolute;
+ bottom: 0px;
+ right: 0px;
+ padding: 5px;
+ width: 150px;
+ min-height: 60px;
+ background: #ffffff url(../images/shadow_top.png) 0px -35px repeat-x;
+ border-top: 1px solid #ffffff;
+}
+.product-listing li a.info span { display: block; }
+.product-listing li:hover { border-color: #1b1b1b; }
+.product-listing li:hover a.info {
+ background: #1b1b1b url(../images/bottom_shine.png) bottom left repeat-x;
+ color: #ffffff;
+}
+ul.thumbnails {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+ul.thumbnails li {
float: left;
+ margin-right: 5px;
+ padding: 3px;
+ border: 1px solid #ffffff;
+ min-height: 50px;
+ width: 50px;
+ position: relative;
+}
+ul.thumbnails li img {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ margin: auto;
+}
+ul.thumbnails li:hover { border-color: #cccccc; }
+ul.thumbnails li.selected { border-color: #999999; }
+#product-variants { margin-bottom: 1em; }
+#product-variants ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+#product-images {
+ display: inline;
+ float: left;
+ width: 270px;
margin-right: 10px;
- background-repeat: no-repeat;
- background-image: url(../images/dogradio/icons/social-icons.png);
-}
-footer #social a:hover {
- background-image: url(../images/dogradio/icons/social-icons-rollover.png);
-}
-footer #social a span { display: none; }
-footer #social #rss { background-position: -37px 0 }
-footer #social #twitter { background-position: -75px 0 }
-
-
-footer #copyright {
- color: #797A7D;
+}
+#product-images h4 {
+ padding: 6px 0px;
+ margin: 0px;
+ font-weight: bold;
+ clear: both;
+}
+#product-images #main-image {
+ min-height: 250px;
+ position: relative;
+}
+#product-images #main-image img {
position: absolute;
- bottom: 20px;
+ top: 0;
+ bottom: 0;
+ left: 0;
right: 0;
+ margin: auto;
}
-
-
-
-#sidebar .list-box {
- width: 230px;
- float: left;
- background-color: #F3F3F3;
- border-radius: 10px;
- -moz-border-radius: 10px;
- -webkit-border-radius: 10px;
- padding: 0px 30px 30px 30px;
- color: #666;
- font-family: Trebuchet MS;
-}
-
-.list-box {
- padding-top: 30px; /* match #contact */
-}
-.list-box h2 {
- color: #364D8C;
-}
-.list-box h2, #homepage #contact h2 {
- font-family: Arvo;
- font-size: 170%;
- text-transform: uppercase;
- font-weight: normal;
- margin-bottom: 0.75em;
- border-bottom: 1px solid #A3A3A3;
- padding-bottom: 0.5em;
+#product-description {
+ display: inline;
+ float: left;
+ width: 310px;
+ margin-right: 10px;
+ padding-right: 24px;
+ margin-right: 25px;
+ border-right: 1px solid #eeeeee;
}
-.list-box li {
- font-size: 1.25em;
- line-height: 1.5em;
+#cart-form {
+ display: inline;
+ float: left;
+ width: 270px;
}
-.list-box a {
- color: #666;
- text-decoration: none;
+#taxon-crumbs {
+ display: inline;
+ float: left;
+ width: 950px;
+ margin-right: 10px;
+ display: block;
+ float: right;
+ margin-top: 20px;
+ width: 300px;
}
-.list-box a:hover {
- text-decoration: underline;
+dl.table-display {
+ margin: 0;
+ padding: 0;
}
-#recent-products {
- margin-top: 40px;
+dl.table-display dt {
+ float: left;
+ margin: 0;
+ padding: 5px;
+ border-top: 1px solid #dddddd;
}
-
-.breadcrumbs, .pagination {
- font-size: 1.1em;
- padding: 0 0 20px 0;
+dl.table-display dd {
+ float: left;
+ margin: 0;
+ padding: 5px;
+ border-top: 1px solid #dddddd;
+}
+dl.table-display dt { width: 100px; }
+dl.table-display dd { width: 180px; }
+div#subtotal {
+ float: right;
+ width: 49%;
+ width: auto;
+ text-align: left;
+}
+table { border-collapse: collapse; }
+table th {
+ background: transparent;
+ border-bottom: 1px solid #dddddd;
+}
+table#cart tr td {
+ border-bottom: 1px solid #dddddd;
+ padding: 1em 0;
+}
+table#cart tr#none td { border-bottom: none; }
+table#cart h4 { margin-bottom: 0em; }
+#signup #new-customer {
+ display: inline;
+ float: left;
+ width: 470px;
+ margin-right: 10px;
}
-.breadcrumbs ul {
- margin-left: 0px !important;
+#signup #new-customer h2 { margin-bottom: 0.25em; }
+#signup #new-customer p { margin-bottom: 10px; }
+#signup #new-customer p input.title {
+ padding: 3px;
+ margin: 0px;
}
-.breadcrumbs li {
+#signup #new-customer input[type=checkbox] { top: 0em; }
+#login #existing-customer {
+ display: inline;
float: left;
+ width: 470px;
+ margin-right: 10px;
+}
+#login #existing-customer h2 { margin-bottom: 0.25em; }
+#login #existing-customer p { margin-bottom: 10px; }
+#login #existing-customer p input.title {
+ padding: 3px;
+ margin: 0px;
+}
+#login #existing-customer input[type=checkbox] { top: 0em; }
+input.openid_url {
+ background: #ffffff url(../images/openid-inputicon.gif) no-repeat scroll 0pt 50%;
+ padding-left: 18px;
+ border: 1px solid #bbbbbb;
+ font-size: 1.5em;
+}
+ol.progress-steps {
list-style: none;
+ margin: 0;
+ padding: 0;
+ line-height: 1em;
+ font-size: 12px;
}
-.pagination {
- text-align: right;
+ol.progress-steps li {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ display: block;
+ float: left;
+ color: #999999;
+ background-position: top left;
+ background-repeat: no-repeat;
+ background-image: url(../images/step-progress/incomplete-incomplete.gif);
}
-
-
-
-
-
-button, a.button {
- border: none;
- background-color: #0095DA;
- color: #fff!important;
- padding: 10px 18px 9px 18px;
- font-size: 16px;
- font-family: Arvo;
- text-transform: uppercase;
- border-radius: 4px;
- -moz-border-radius: 4px;
- -webkit-border-radius: 4px;
- font-weight: normal;
+ol.progress-steps li span {
+ padding: 5px 14px 7px 24px;
+ display: block;
+ float: left;
+ background-position: top right;
+ background-repeat: no-repeat;
}
-a.button {
+ol.progress-steps li a {
text-decoration: none;
- line-height: 37px;
+ color: #333333;
+}
+ol.progress-steps li.current-first span { padding-left: 14px; }
+ol.progress-steps li.completed-first span { padding-left: 14px; }
+ol.progress-steps li.current-first { background-image: url(../images/step-progress/current-first.gif); }
+ol.progress-steps li.completed-first { background-image: url(../images/step-progress/completed-first.gif) !important; }
+ol.progress-steps li.current { color: #ffffff; }
+ol.progress-steps li.current-first { color: #ffffff; }
+ol.progress-steps li.current-last { color: #ffffff; }
+ol.progress-steps li.completed { background-image: url(../images/step-progress/completed-completed.gif); }
+ol.progress-steps li.current { background-image: url(../images/step-progress/completed-current.gif); }
+ol.progress-steps li.current-last { background-image: url(../images/step-progress/completed-current.gif); }
+ol.progress-steps li.next { background-image: url(../images/step-progress/current-incomplete.gif); }
+ol.progress-steps li.next-last { background-image: url(../images/step-progress/current-incomplete.gif); }
+ol.progress-steps li.last span { background-image: url(../images/step-progress/incomplete-right.gif); }
+ol.progress-steps li.next-last span { background-image: url(../images/step-progress/incomplete-right.gif); }
+ol.progress-steps li.current-last span { background-image: url(../images/step-progress/current-right.gif); }
+div#checkout { position: relative; }
+div#checkout .progress-steps {
+ position: absolute;
+ top: 0.5em;
+ right: 0;
+}
+div#checkout form {
+ background-position: top right;
+ background-repeat: no-repeat;
+}
+div#checkout #checkout_form_address { background-image: url("../images/steps/2.png"); }
+div#checkout #checkout_form_delivery { background-image: url("../images/steps/3.png"); }
+div#checkout #checkout_form_address #billing label {
+ width: 190px;
+ float: left;
+ padding-right: 10px;
+ text-align: right;
+}
+div#checkout #checkout_form_address #shipping label {
+ width: 190px;
+ float: left;
+ padding-right: 10px;
+ text-align: right;
+}
+div#checkout #checkout_form_address #billing input { width: 304px; }
+div#checkout #checkout_form_address #shipping input { width: 304px; }
+div#checkout #checkout_form_address #billing select { width: 304px; }
+div#checkout #checkout_form_address #shipping select { width: 304px; }
+div#checkout #checkout_form_address #billing p.checkbox { padding-left: 200px; }
+div#checkout #checkout_form_address #shipping p.checkbox { padding-left: 200px; }
+div#checkout #checkout_form_address .form-buttons { padding-left: 200px; }
+div#checkout #checkout_form_address #billing p.checkbox label {
+ width: auto !important;
+ float: none !important;
+}
+div#checkout #checkout_form_address #shipping p.checkbox label {
+ width: auto !important;
+ float: none !important;
+}
+div#checkout #checkout_form_address #billing p.checkbox input { width: auto !important; }
+div#checkout #checkout_form_address #shipping p.checkbox input { width: auto !important; }
+div#checkout #checkout_form_payment { background-image: url("../images/steps/5.png"); }
+div#checkout #checkout_form_payment select { width: 75px; }
+div#checkout #checkout_form_payment #payment {
+ display: inline;
+ float: left;
+ width: 310px;
+ margin-right: 10px;
}
-button:hover, a.button:hover {
- background-color: #0068B8;
+div#checkout #checkout_form_payment #order_details {
+ display: inline;
+ float: left;
+ width: 470px;
+ margin-right: 10px;
+}
+div#checkout #payment-methods {
+ list-style: none;
+ display: block;
+ padding: 0;
+ margin: 0;
+ width: 720px;
+}
+div#checkout #payment-methods li {
+ display: block;
+ display: inline;
+ float: left;
+ width: 190px;
+ margin-right: 10px;
+}
+div#checkout #payment-methods li.last {
+ display: inline;
+ float: left;
+ width: 190px;
+}
+div#checkout #checkout-summary {
+ background-color: #c3c9df;
+ float: right;
+ margin-top: 10px;
+ padding: 20px;
+ width: 180px;
+}
+div#checkout #checkout-summary {
+ background-color: #c3c9df;
+ float: right;
+ margin-top: 10px;
+ padding: 20px;
+ width: 180px;
}
Please sign in to comment.
Something went wrong with that request. Please try again.