spree_slider 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +11 -0
- data/.rspec +1 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +210 -0
- data/LICENSE +26 -0
- data/README.textile +43 -0
- data/Rakefile +1 -0
- data/Versionfile +10 -0
- data/app/controllers/spree/admin/slides_controller.rb +8 -0
- data/app/models/spree/slide.rb +4 -0
- data/app/overrides/add_slider_to_layout.rb +8 -0
- data/app/overrides/add_slides_to_admin_configurations_menu.rb +9 -0
- data/app/overrides/add_slides_to_admin_configurations_sidebar_menu.rb +7 -0
- data/app/views/spree/admin/slides/_form.html.erb +21 -0
- data/app/views/spree/admin/slides/edit.html.erb +10 -0
- data/app/views/spree/admin/slides/index.html.erb +35 -0
- data/app/views/spree/admin/slides/new.html.erb +9 -0
- data/app/views/spree/admin/slides/show.html.erb +41 -0
- data/app/views/spree/home/index.html.erb +14 -0
- data/config/locales/en.yml +5 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20120222184238_create_slides.rb +16 -0
- data/lib/generators/spree_slider/install_anything_generator.rb +30 -0
- data/lib/generators/spree_slider/install_nivo_generator.rb +34 -0
- data/lib/generators/spree_slider/templates/anything_slider.html.erb +26 -0
- data/lib/generators/spree_slider/templates/nivo_slider.html.erb +38 -0
- data/lib/spree_slider/engine.rb +23 -0
- data/lib/spree_slider.rb +2 -0
- data/script/rails +5 -0
- data/spec/spec_helper.rb +32 -0
- data/spree_slider.gemspec +26 -0
- data/vendor/assets/anything-slider/README.textile +13 -0
- data/vendor/assets/anything-slider/css/anythingslider-ie.css +45 -0
- data/vendor/assets/anything-slider/css/anythingslider.css +204 -0
- data/vendor/assets/anything-slider/css/theme-construction.css +142 -0
- data/vendor/assets/anything-slider/css/theme-cs-portfolio.css +148 -0
- data/vendor/assets/anything-slider/css/theme-metallic.css +146 -0
- data/vendor/assets/anything-slider/css/theme-minimalist-round.css +144 -0
- data/vendor/assets/anything-slider/css/theme-minimalist-square.css +144 -0
- data/vendor/assets/anything-slider/demos/colorbox/border.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/colorbox.css +62 -0
- data/vendor/assets/anything-slider/demos/colorbox/controls.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderBottomCenter.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderBottomLeft.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderBottomRight.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderMiddleLeft.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderMiddleRight.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderTopCenter.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderTopLeft.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/internet_explorer/borderTopRight.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/jquery.colorbox-min.js +4 -0
- data/vendor/assets/anything-slider/demos/colorbox/jquery.colorbox.js +769 -0
- data/vendor/assets/anything-slider/demos/colorbox/loading.gif +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/loading_background.png +0 -0
- data/vendor/assets/anything-slider/demos/colorbox/overlay.png +0 -0
- data/vendor/assets/anything-slider/demos/css/page.css +148 -0
- data/vendor/assets/anything-slider/demos/images/251356.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/apple-touch-icon.png +0 -0
- data/vendor/assets/anything-slider/demos/images/favicon.ico +0 -0
- data/vendor/assets/anything-slider/demos/images/slide-civil-1.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/slide-civil-2.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/slide-env-1.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/slide-env-2.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/slide-tele-1.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/slide-tele-2.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/th-slide-civil-1.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/th-slide-civil-2.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/th-slide-env-1.jpg +0 -0
- data/vendor/assets/anything-slider/demos/images/th-slide-env-2.jpg +0 -0
- data/vendor/assets/anything-slider/demos/js/demo.js +132 -0
- data/vendor/assets/anything-slider/demos/video/movie.mp4 +0 -0
- data/vendor/assets/anything-slider/demos/video/movie.ogg +0 -0
- data/vendor/assets/anything-slider/demos/video/movie.webm +0 -0
- data/vendor/assets/anything-slider/demos.html +740 -0
- data/vendor/assets/anything-slider/expand.html +97 -0
- data/vendor/assets/anything-slider/images/arrows-metallic.png +0 -0
- data/vendor/assets/anything-slider/images/arrows-minimalist.png +0 -0
- data/vendor/assets/anything-slider/images/construction.gif +0 -0
- data/vendor/assets/anything-slider/images/cs-portfolio.png +0 -0
- data/vendor/assets/anything-slider/images/default.png +0 -0
- data/vendor/assets/anything-slider/index.html +470 -0
- data/vendor/assets/anything-slider/js/jquery.anythingslider.fx.js +165 -0
- data/vendor/assets/anything-slider/js/jquery.anythingslider.fx.min.js +6 -0
- data/vendor/assets/anything-slider/js/jquery.anythingslider.js +791 -0
- data/vendor/assets/anything-slider/js/jquery.anythingslider.min.js +7 -0
- data/vendor/assets/anything-slider/js/jquery.anythingslider.video.js +367 -0
- data/vendor/assets/anything-slider/js/jquery.anythingslider.video.min.js +8 -0
- data/vendor/assets/anything-slider/js/jquery.easing.1.2.js +140 -0
- data/vendor/assets/anything-slider/js/jquery.min.js +18 -0
- data/vendor/assets/anything-slider/js/swfobject.js +4 -0
- data/vendor/assets/anything-slider/license.txt +165 -0
- data/vendor/assets/anything-slider/simple.html +79 -0
- data/vendor/assets/anything-slider/video.html +341 -0
- data/vendor/assets/nivo-slider/README +1 -0
- data/vendor/assets/nivo-slider/demo/demo.html +39 -0
- data/vendor/assets/nivo-slider/demo/images/dev7logo.png +0 -0
- data/vendor/assets/nivo-slider/demo/images/nemo.jpg +0 -0
- data/vendor/assets/nivo-slider/demo/images/toystory.jpg +0 -0
- data/vendor/assets/nivo-slider/demo/images/up.jpg +0 -0
- data/vendor/assets/nivo-slider/demo/images/walle.jpg +0 -0
- data/vendor/assets/nivo-slider/demo/scripts/jquery-1.6.1.min.js +18 -0
- data/vendor/assets/nivo-slider/demo/style.css +100 -0
- data/vendor/assets/nivo-slider/jquery.nivo.slider.js +685 -0
- data/vendor/assets/nivo-slider/jquery.nivo.slider.pack.js +67 -0
- data/vendor/assets/nivo-slider/license.txt +22 -0
- data/vendor/assets/nivo-slider/nivo-slider.css +89 -0
- data/vendor/assets/nivo-slider/themes/default/arrows.png +0 -0
- data/vendor/assets/nivo-slider/themes/default/bullets.png +0 -0
- data/vendor/assets/nivo-slider/themes/default/default.css +74 -0
- data/vendor/assets/nivo-slider/themes/default/loading.gif +0 -0
- data/vendor/assets/nivo-slider/themes/orman/arrows.png +0 -0
- data/vendor/assets/nivo-slider/themes/orman/bullets.png +0 -0
- data/vendor/assets/nivo-slider/themes/orman/loading.gif +0 -0
- data/vendor/assets/nivo-slider/themes/orman/orman.css +98 -0
- data/vendor/assets/nivo-slider/themes/orman/readme.txt +1 -0
- data/vendor/assets/nivo-slider/themes/orman/ribbon.png +0 -0
- data/vendor/assets/nivo-slider/themes/orman/slider.png +0 -0
- data/vendor/assets/nivo-slider/themes/pascal/bullets.png +0 -0
- data/vendor/assets/nivo-slider/themes/pascal/controlnav.png +0 -0
- data/vendor/assets/nivo-slider/themes/pascal/featured.png +0 -0
- data/vendor/assets/nivo-slider/themes/pascal/loading.gif +0 -0
- data/vendor/assets/nivo-slider/themes/pascal/pascal.css +102 -0
- data/vendor/assets/nivo-slider/themes/pascal/readme.txt +1 -0
- data/vendor/assets/nivo-slider/themes/pascal/ribbon.png +0 -0
- data/vendor/assets/nivo-slider/themes/pascal/slider.png +0 -0
- metadata +236 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
module SpreeSlider
|
2
|
+
class Engine < Rails::Engine
|
3
|
+
engine_name 'spree_slider'
|
4
|
+
|
5
|
+
config.autoload_paths += %W(#{config.root}/lib)
|
6
|
+
|
7
|
+
# use rspec for tests
|
8
|
+
config.generators do |g|
|
9
|
+
g.test_framework :rspec
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.activate
|
13
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../../app/overrides/*.rb")) do |c|
|
14
|
+
Rails.application.config.cache_classes ? require(c) : load(c)
|
15
|
+
end
|
16
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c|
|
17
|
+
Rails.configuration.cache_classes ? require(c) : load(c)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
config.to_prepare &method(:activate).to_proc
|
22
|
+
end
|
23
|
+
end
|
data/lib/spree_slider.rb
ADDED
data/script/rails
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
|
6
|
+
require 'rspec/rails'
|
7
|
+
|
8
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
9
|
+
# in spec/support/ and its subdirectories.
|
10
|
+
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f }
|
11
|
+
|
12
|
+
# Requires factories defined in spree_core
|
13
|
+
require 'spree/core/testing_support/factories'
|
14
|
+
|
15
|
+
RSpec.configure do |config|
|
16
|
+
# == Mock Framework
|
17
|
+
#
|
18
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
19
|
+
#
|
20
|
+
# config.mock_with :mocha
|
21
|
+
# config.mock_with :flexmock
|
22
|
+
# config.mock_with :rr
|
23
|
+
config.mock_with :rspec
|
24
|
+
|
25
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
26
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
27
|
+
|
28
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
29
|
+
# examples within a transaction, remove the following line or assign false
|
30
|
+
# instead of true.
|
31
|
+
config.use_transactional_fixtures = true
|
32
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
s.platform = Gem::Platform::RUBY
|
4
|
+
s.name = 'spree_slider'
|
5
|
+
s.version = '1.0.0'
|
6
|
+
s.summary = 'Spree Slider extension'
|
7
|
+
s.description = 'Adds a slider to the homepage'
|
8
|
+
s.required_ruby_version = '>= 1.8.7'
|
9
|
+
|
10
|
+
s.author = 'Giuseppe Privitera'
|
11
|
+
s.email = 'priviterag@gmail.com'
|
12
|
+
s.homepage = 'https://github.com/priviterag/spree_slider'
|
13
|
+
|
14
|
+
s.files = `git ls-files`.split("\n")
|
15
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
|
+
s.require_path = 'lib'
|
17
|
+
s.requirements << 'none'
|
18
|
+
|
19
|
+
s.add_dependency 'spree_core', '~> 1.0.0'
|
20
|
+
|
21
|
+
s.add_development_dependency 'capybara', '1.0.1'
|
22
|
+
s.add_development_dependency 'factory_girl'
|
23
|
+
s.add_development_dependency 'ffaker'
|
24
|
+
s.add_development_dependency 'rspec-rails', '~> 2.7'
|
25
|
+
s.add_development_dependency 'sqlite3'
|
26
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
h1. AnythingSlider jQuery Plugin
|
2
|
+
|
3
|
+
*Just what the world needs, another jQuery slider. YAWN.* I know, check this one out though, it’s got lots of cool features.
|
4
|
+
|
5
|
+
Here on CSS-Tricks, I’ve created a number of different sliders. Three, in fact. A "“featured content”":http://css-tricks.com/creating-a-slick-auto-playing-featured-content-slider/ slider, a "“start/stop slider”":http://css-tricks.com/startstop-slider/, and "“moving boxes”":http://css-tricks.com/moving-boxes/. Each of them had some cool interesting feature that I needed to build at the time. All were well-received, but as is the case with these things, people want them to do X, Y, and Z in addition to what they already did.
|
6
|
+
|
7
|
+
This new AnythingSlider is an attempt at bringing together the functionality of all of those previous sliders and adding new features. In other words, to create a really “full featured” slider that could be widely useful. This is the first time (on CSS-Tricks) that one of these sliders is an actual plugin as well, which should make implementing it and customizing it much easier.
|
8
|
+
|
9
|
+
* "Documentation Wiki":https://github.com/ProLoser/AnythingSlider/wiki
|
10
|
+
* "Keep Reading":http://css-tricks.com/anythingslider-1-4/
|
11
|
+
* "Main Demo":http://proloser.github.com/AnythingSlider/
|
12
|
+
* "More Demos":https://github.com/ProLoser/AnythingSlider/wiki
|
13
|
+
* Having an issue? Submit it "here":https://github.com/ProLoser/AnythingSlider/issues
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/* AnythingSlider IE7 and older stylesheet - included !important flag in case the theme is loaded after page load */
|
2
|
+
|
3
|
+
/* Navigation Arrows */
|
4
|
+
div.anythingSlider .arrow {
|
5
|
+
top: 35% !important;
|
6
|
+
}
|
7
|
+
div.anythingSlider-metallic .arrow {
|
8
|
+
top: 40% !important;
|
9
|
+
}
|
10
|
+
div.anythingSlider-construction .arrow {
|
11
|
+
top: 14% !important;
|
12
|
+
}
|
13
|
+
div.anythingSlider-minimalist-round .arrow , div.anythingSlider-minimalist-square .arrow {
|
14
|
+
top: 45% !important;
|
15
|
+
}
|
16
|
+
div.anythingSlider-cs-portfolio .arrow {
|
17
|
+
bottom: -24px !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
div.anythingSlider .arrow a,
|
21
|
+
div.anythingSlider-metallic .arrow a,
|
22
|
+
div.anythingSlider-minimalist-square .arrow a,
|
23
|
+
div.anythingSlider-construction .arrow a,
|
24
|
+
div.anythingSlider-minimalist-round .arrow a {
|
25
|
+
margin: 0 !important;
|
26
|
+
}
|
27
|
+
|
28
|
+
/* When using the navigationSize option, the side margins need to be zero
|
29
|
+
None of the navigation panels look good in IE7 now =( */
|
30
|
+
div.anythingSlider .anythingControls ul.thumbNav a {
|
31
|
+
margin: 0;
|
32
|
+
}
|
33
|
+
div.anythingSlider .anythingControls .anythingNavWindow li {
|
34
|
+
padding: 3px 0 0 0;
|
35
|
+
}
|
36
|
+
div.anythingSlider-cs-portfolio .anythingControls .anythingNavWindow {
|
37
|
+
margin: 18px 0 0 0;
|
38
|
+
}
|
39
|
+
div.anythingSlider-metallic .anythingControls,
|
40
|
+
div.anythingSlider-minimalist-square .anythingControls,
|
41
|
+
div.anythingSlider-construction .anythingControls,
|
42
|
+
div.anythingSlider-minimalist-round .anythingControls {
|
43
|
+
width: 70%; /* arbitrary percentage, adjust to fit your slider in IE7 */
|
44
|
+
margin-top: 3px;
|
45
|
+
}
|
@@ -0,0 +1,204 @@
|
|
1
|
+
/*
|
2
|
+
AnythingSlider v1.7+ Default (base) theme
|
3
|
+
By Chris Coyier: http://css-tricks.com
|
4
|
+
with major improvements by Doug Neiner: http://pixelgraphics.us/
|
5
|
+
based on work by Remy Sharp: http://jqueryfordesigners.com/
|
6
|
+
*/
|
7
|
+
|
8
|
+
/*****************************
|
9
|
+
SET DEFAULT DIMENSIONS HERE
|
10
|
+
*****************************/
|
11
|
+
/* change the ID to match your slider */
|
12
|
+
#slider {
|
13
|
+
width: 700px;
|
14
|
+
height: 390px;
|
15
|
+
list-style: none;
|
16
|
+
/* Prevent FOUC (see FAQ page) and keep things readable if javascript is disabled */
|
17
|
+
overflow-y: auto;
|
18
|
+
overflow-x: hidden;
|
19
|
+
}
|
20
|
+
/* Opera width restriction */
|
21
|
+
.anythingBase { max-width: 32766px; }
|
22
|
+
|
23
|
+
/*****************
|
24
|
+
SET COLORS HERE
|
25
|
+
*****************/
|
26
|
+
/**** Default state (no keyboard focus) ****/
|
27
|
+
/* slider window - top & bottom borders, default state */
|
28
|
+
div.anythingSlider .anythingWindow {
|
29
|
+
border-top: 3px solid #777;
|
30
|
+
border-bottom: 3px solid #777;
|
31
|
+
}
|
32
|
+
/* Navigation buttons, default state */
|
33
|
+
div.anythingSlider .anythingControls ul a.cur, div.anythingSlider .anythingControls ul a {
|
34
|
+
background: #777;
|
35
|
+
color: #000;
|
36
|
+
}
|
37
|
+
/* start-stop button, stopped, default state */
|
38
|
+
div.anythingSlider .start-stop {
|
39
|
+
background-color: #040;
|
40
|
+
color: #fff;
|
41
|
+
}
|
42
|
+
/* start-stop button, playing, default state */
|
43
|
+
div.anythingSlider .start-stop.playing {
|
44
|
+
background-color: #800;
|
45
|
+
}
|
46
|
+
/* start-stop button, default hovered text color (when visible) */
|
47
|
+
div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover {
|
48
|
+
color: #ddd;
|
49
|
+
}
|
50
|
+
|
51
|
+
/**** Active State (slider has keyboard focus) ****/
|
52
|
+
/* slider window - top & bottom borders, active state */
|
53
|
+
div.anythingSlider.activeSlider .anythingWindow {
|
54
|
+
border-color: #7C9127;
|
55
|
+
}
|
56
|
+
/* Navigation buttons, active state */
|
57
|
+
div.anythingSlider.activeSlider .anythingControls ul a.cur, div.anythingSlider.activeSlider .anythingControls ul a {
|
58
|
+
background-color: #7C9127;
|
59
|
+
}
|
60
|
+
/* start-stop button, stopped, active state */
|
61
|
+
div.anythingSlider .start-stop {
|
62
|
+
background-color: #080;
|
63
|
+
color: #fff;
|
64
|
+
}
|
65
|
+
/* start-stop button, playing, active state */
|
66
|
+
div.anythingSlider .start-stop.playing {
|
67
|
+
background-color: #d00;
|
68
|
+
}
|
69
|
+
/* start-stop button, active slider hovered text color (when visible) */
|
70
|
+
div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover {
|
71
|
+
color: #fff;
|
72
|
+
}
|
73
|
+
|
74
|
+
/***********************
|
75
|
+
COMMON SLIDER STYLING
|
76
|
+
***********************/
|
77
|
+
/* Overall Wrapper: 45px right & left padding for the arrows, 28px @ bottom for navigation */
|
78
|
+
div.anythingSlider {
|
79
|
+
display: block;
|
80
|
+
margin: 0 auto;
|
81
|
+
overflow: visible !important; /* needed for Opera and Safari */
|
82
|
+
position: relative;
|
83
|
+
padding: 0 45px 28px 45px;
|
84
|
+
}
|
85
|
+
/* anythingSlider viewport window */
|
86
|
+
div.anythingSlider .anythingWindow {
|
87
|
+
overflow: hidden;
|
88
|
+
position: relative;
|
89
|
+
width: 100%;
|
90
|
+
height: 100%;
|
91
|
+
}
|
92
|
+
/* anythingSlider base (original element) */
|
93
|
+
.anythingBase {
|
94
|
+
background: transparent;
|
95
|
+
list-style: none;
|
96
|
+
position: absolute;
|
97
|
+
overflow: visible !important;
|
98
|
+
top: 0;
|
99
|
+
left: 0;
|
100
|
+
margin: 0;
|
101
|
+
padding: 0;
|
102
|
+
}
|
103
|
+
/* all panels inside the slider */
|
104
|
+
.anythingBase .panel {
|
105
|
+
background: transparent;
|
106
|
+
display: block;
|
107
|
+
overflow: hidden;
|
108
|
+
float: left;
|
109
|
+
padding: 0;
|
110
|
+
margin: 0;
|
111
|
+
}
|
112
|
+
.anythingBase .panel.vertical {
|
113
|
+
float: none;
|
114
|
+
}
|
115
|
+
|
116
|
+
/* Navigation Arrows */
|
117
|
+
div.anythingSlider .arrow {
|
118
|
+
top: 50%;
|
119
|
+
position: absolute;
|
120
|
+
display: block;
|
121
|
+
}
|
122
|
+
div.anythingSlider .arrow a {
|
123
|
+
display: block;
|
124
|
+
height: 140px;
|
125
|
+
margin: -70px 0 0 0; /* half height of image */
|
126
|
+
width: 45px;
|
127
|
+
text-align: center;
|
128
|
+
outline: 0;
|
129
|
+
background: url(../images/default.png) no-repeat;
|
130
|
+
}
|
131
|
+
/* hide text, target the span so IE7 doesn't text-indent the link */
|
132
|
+
div.anythingSlider .arrow a span { display: block; text-indent: -9999px; }
|
133
|
+
/* back arrow */
|
134
|
+
div.anythingSlider .back { left: 0; }
|
135
|
+
div.anythingSlider .back a { background-position: left top; }
|
136
|
+
div.anythingSlider .back a:hover, div.anythingSlider .back a.hover { background-position: left -140px; }
|
137
|
+
div.anythingSlider .back.disabled { display: none; } /* disabled arrows, hide or reduce opacity: opacity: .5; filter: alpha(opacity=50); */
|
138
|
+
/* forward arrow */
|
139
|
+
div.anythingSlider .forward { right: 0; }
|
140
|
+
div.anythingSlider .forward a { background-position: right top; }
|
141
|
+
div.anythingSlider .forward a:hover, div.anythingSlider .forward a.hover { background-position: right -140px; }
|
142
|
+
div.anythingSlider .forward.disabled { display: none; } /* disabled arrows, hide or reduce opacity: opacity: .5; filter: alpha(opacity=50); */
|
143
|
+
|
144
|
+
/* Navigation Links */
|
145
|
+
div.anythingSlider .anythingControls { outline: 0; display: none; }
|
146
|
+
div.anythingSlider .anythingControls ul { margin: 0; padding: 0; float: left; }
|
147
|
+
div.anythingSlider .anythingControls ul li { display: inline; }
|
148
|
+
div.anythingSlider .anythingControls ul a {
|
149
|
+
font: 11px/18px Georgia, Serif;
|
150
|
+
display: inline-block;
|
151
|
+
text-decoration: none;
|
152
|
+
padding: 2px 8px;
|
153
|
+
height: 18px;
|
154
|
+
margin: 0 5px 0 0;
|
155
|
+
background-image: url(../images/default.png);
|
156
|
+
background-position: center -288px ;
|
157
|
+
background-repeat: repeat-x;
|
158
|
+
text-align: center;
|
159
|
+
outline: 0;
|
160
|
+
border-radius: 0 0 5px 5px;
|
161
|
+
-moz-border-radius: 0 0 5px 5px;
|
162
|
+
-webkit-border-radius: 0 0 5px 5px;
|
163
|
+
}
|
164
|
+
div.anythingSlider .anythingControls ul a:hover {
|
165
|
+
background-image: none;
|
166
|
+
}
|
167
|
+
/* Navigation size window */
|
168
|
+
div.anythingSlider .anythingControls .anythingNavWindow { overflow: hidden; float: left; }
|
169
|
+
|
170
|
+
/* slider autoplay right-to-left, reverse order of nav links to look better */
|
171
|
+
div.anythingSlider.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
|
172
|
+
div.anythingSlider.rtl .anythingControls ul { float: left; } /* move nav link group to left */
|
173
|
+
div.anythingSlider.rtl .anythingWindow {
|
174
|
+
direction: ltr;
|
175
|
+
unicode-bidi: bidi-override;
|
176
|
+
}
|
177
|
+
/* div.anythingSlider.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
|
178
|
+
|
179
|
+
/* Autoplay Start/Stop button */
|
180
|
+
div.anythingSlider .start-stop {
|
181
|
+
background-image: url(../images/default.png);
|
182
|
+
background-position: center -288px;
|
183
|
+
background-repeat: repeat-x;
|
184
|
+
padding: 2px 5px;
|
185
|
+
width: 40px;
|
186
|
+
text-align: center;
|
187
|
+
text-decoration: none;
|
188
|
+
float: right;
|
189
|
+
z-index: 100;
|
190
|
+
outline: 0;
|
191
|
+
border-radius: 0 0 5px 5px;
|
192
|
+
-moz-border-radius: 0 0 5px 5px;
|
193
|
+
-webkit-border-radius: 0 0 5px 5px;
|
194
|
+
}
|
195
|
+
/* hide cell shading on hover - makes the button appear to come forward */
|
196
|
+
div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover { background-image: none; }
|
197
|
+
|
198
|
+
/* probably not necessary, but added just in case */
|
199
|
+
div.anythingSlider, div.anythingSlider .anythingWindow, div.anythingSlider .anythingControls ul a, div.anythingSlider .arrow a, div.anythingSlider .start-stop {
|
200
|
+
transition-duration: 0;
|
201
|
+
-o-transition-duration: 0;
|
202
|
+
-moz-transition-duration: 0;
|
203
|
+
-webkit-transition-duration: 0;
|
204
|
+
}
|
@@ -0,0 +1,142 @@
|
|
1
|
+
/*
|
2
|
+
AnythingSlider v1.5.10 Construction Theme
|
3
|
+
By Rob Garrison
|
4
|
+
*/
|
5
|
+
|
6
|
+
/****** SET COLORS HERE *******/
|
7
|
+
/* Default State */
|
8
|
+
div.anythingSlider-construction .anythingWindow {
|
9
|
+
border-top: 3px solid #333;
|
10
|
+
border-bottom: 3px solid #333;
|
11
|
+
}
|
12
|
+
|
13
|
+
/* Active State */
|
14
|
+
div.anythingSlider-construction.activeSlider .anythingWindow {
|
15
|
+
border-color: #d0aa0d;
|
16
|
+
}
|
17
|
+
div.anythingSlider-construction.activeSlider .anythingControls ul a:hover, div.anythingSlider-construction.activeSlider .anythingControls ul a {
|
18
|
+
background-color: transparent;
|
19
|
+
}
|
20
|
+
|
21
|
+
/* Navigation Arrows */
|
22
|
+
div.anythingSlider-construction .arrow {
|
23
|
+
top: 50%;
|
24
|
+
position: absolute;
|
25
|
+
display: block;
|
26
|
+
z-index: 100;
|
27
|
+
}
|
28
|
+
div.anythingSlider-construction .arrow a {
|
29
|
+
display: block;
|
30
|
+
height: 300px;
|
31
|
+
margin-top: -150px; /* half height of image */
|
32
|
+
width: 45px;
|
33
|
+
outline: 0;
|
34
|
+
background: url(../images/construction.gif) no-repeat;
|
35
|
+
}
|
36
|
+
|
37
|
+
div.anythingSlider-construction .forward a {
|
38
|
+
border-radius: 0 5px 5px 0;
|
39
|
+
-moz-border-radius: 0 5px 5px 0;
|
40
|
+
-webkit-border-radius: 0 5px 5px 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
div.anythingSlider-construction .back a {
|
44
|
+
border-radius: 5px 0 0 5px;
|
45
|
+
-moz-border-radius: 5px 0 0 5px;
|
46
|
+
-webkit-border-radius: 5px 0 0 5px;
|
47
|
+
}
|
48
|
+
|
49
|
+
div.anythingSlider-construction .forward { right: 0; }
|
50
|
+
div.anythingSlider-construction .back { left: 0; }
|
51
|
+
div.anythingSlider-construction .forward a { background-position: right top; }
|
52
|
+
div.anythingSlider-construction .back a { background-position: left top; }
|
53
|
+
div.anythingSlider-construction .forward a:hover, div.anythingSlider-construction .forward a.hover { background-position: -50px top; }
|
54
|
+
div.anythingSlider-construction .back a:hover, div.anythingSlider-construction .back a.hover { background-position: -5px top; }
|
55
|
+
|
56
|
+
/* Navigation Links */
|
57
|
+
div.anythingSlider-construction .anythingControls {
|
58
|
+
float: right;
|
59
|
+
position: absolute;
|
60
|
+
bottom: 0;
|
61
|
+
right: 15%;
|
62
|
+
z-index: 100;
|
63
|
+
opacity: 0.90;
|
64
|
+
filter: alpha(opacity=90);
|
65
|
+
}
|
66
|
+
div.anythingSlider-construction .anythingControls ul {
|
67
|
+
margin: 0;
|
68
|
+
z-index: 100;
|
69
|
+
}
|
70
|
+
div.anythingSlider-construction .anythingControls ul li {
|
71
|
+
display: block;
|
72
|
+
float: left;
|
73
|
+
}
|
74
|
+
div.anythingSlider-construction .anythingControls ul a, div.anythingSlider-construction.activeSlider .anythingControls ul a,
|
75
|
+
div.anythingSlider-construction .anythingControls a.start-stop {
|
76
|
+
display: block;
|
77
|
+
background: transparent url(../images/construction.gif) -36px -301px no-repeat;
|
78
|
+
border: 0;
|
79
|
+
height: 15px;
|
80
|
+
width: 15px;
|
81
|
+
margin: 2px;
|
82
|
+
padding: 0;
|
83
|
+
outline: 0;
|
84
|
+
}
|
85
|
+
div.anythingSlider-construction div.anythingControls a:hover, div.anythingSlider-construction .anythingControls ul a.cur,
|
86
|
+
div.anythingSlider-construction.activeSlider .anythingControls ul a.cur {
|
87
|
+
background: transparent url(../images/construction.gif) -21px -301px no-repeat;
|
88
|
+
}
|
89
|
+
|
90
|
+
/* Navigation size window arrows */
|
91
|
+
div.anythingSlider-construction .anythingControls li.next a, div.anythingSlider-construction .anythingControls li.prev a {
|
92
|
+
height: 12px;
|
93
|
+
width: 12px;
|
94
|
+
margin-top: 3px;
|
95
|
+
border-radius: 0;
|
96
|
+
-moz-border-radius: 0;
|
97
|
+
-webkit-border-radius: 0;
|
98
|
+
background: transparent url(../images/construction.gif) no-repeat;
|
99
|
+
}
|
100
|
+
div.anythingSlider-construction .anythingControls li.next a {
|
101
|
+
background-position: -78px -144px;
|
102
|
+
}
|
103
|
+
div.anythingSlider-construction .anythingControls li.prev a {
|
104
|
+
background-position: -12px -144px;
|
105
|
+
}
|
106
|
+
div.anythingSlider-construction .anythingControls li.next a:hover {
|
107
|
+
background: transparent url(../images/construction.gif) -76px -144px no-repeat;
|
108
|
+
}
|
109
|
+
div.anythingSlider-construction .anythingControls li.prev a:hover {
|
110
|
+
background: transparent url(../images/construction.gif) -14px -144px no-repeat;
|
111
|
+
}
|
112
|
+
|
113
|
+
/* slider autoplay right-to-left, reverse order of nav links to look better */
|
114
|
+
div.anythingSlider-construction.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
|
115
|
+
div.anythingSlider-construction.rtl .anythingControls ul { float: left; } /* move nav link group to left */
|
116
|
+
/* div.anythingSlider-construction.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
|
117
|
+
|
118
|
+
/* Autoplay Start/Stop button */
|
119
|
+
div.anythingSlider-construction .anythingControls a.start-stop {
|
120
|
+
display: inline-block;
|
121
|
+
background: transparent url(../images/construction.gif) -66px -301px no-repeat;
|
122
|
+
z-index: 100;
|
123
|
+
float: right;
|
124
|
+
}
|
125
|
+
div.anythingSlider-construction .anythingControls a.start-stop.playing, div.anythingSlider-construction.activeSlider .anythingControls a.start-stop.playing {
|
126
|
+
background-position: -51px -301px;
|
127
|
+
}
|
128
|
+
div.anythingSlider-construction .anythingControls a.start-stop:hover, div.anythingSlider-construction .anythingControls a.start-stop.playing:hover {
|
129
|
+
background-position: -21px -301px;
|
130
|
+
}
|
131
|
+
|
132
|
+
/* Extra - replace defaults */
|
133
|
+
div.anythingSlider-construction {
|
134
|
+
padding: 6px 45px;
|
135
|
+
}
|
136
|
+
|
137
|
+
/* text indent moved to span inside "a", for IE7; apparently, a negative text-indent on an "a" link moves the link as well as the text */
|
138
|
+
div.anythingSlider-construction .arrow a span, div.anythingSlider-construction .anythingControls ul a span, div.anythingSlider-construction .start-stop span {
|
139
|
+
display: block;
|
140
|
+
line-height: 1px; /* needed for IE7 */
|
141
|
+
text-indent: -9999px;
|
142
|
+
}
|
@@ -0,0 +1,148 @@
|
|
1
|
+
/*
|
2
|
+
AnythingSlider v1.5.10 cs-portfolio
|
3
|
+
By Curtis Scott (http://www.curtisscott.com/portfolio.html)
|
4
|
+
updated to work with the new themes
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*** Note: the nav-cs-portfolio.png used for navigation and slideshow buttons uses a semi-transparent png,
|
8
|
+
through which the background color is seen... so colors set will turn out darker than normal ***/
|
9
|
+
|
10
|
+
/****** SET COLORS HERE *******/
|
11
|
+
/* Default/Acitve State */
|
12
|
+
div.anythingSlider-cs-portfolio .anythingControls ul a, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a {
|
13
|
+
background-color: #fff;
|
14
|
+
}
|
15
|
+
div.anythingSlider-cs-portfolio .anythingControls ul a:hover, div.anythingSlider-cs-portfolio .anythingControls ul a.cur,
|
16
|
+
div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a:hover, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a.cur {
|
17
|
+
background-color: #0d5c9f;
|
18
|
+
}
|
19
|
+
div.anythingSlider-cs-portfolio .start-stop, div.anythingSlider-cs-portfolio .start-stop.hover {
|
20
|
+
background-color: #080;
|
21
|
+
}
|
22
|
+
div.anythingSlider-cs-portfolio .start-stop:hover {
|
23
|
+
background-color: #0f0;
|
24
|
+
}
|
25
|
+
div.anythingSlider-cs-portfolio .start-stop.playing {
|
26
|
+
background-color: #a00;
|
27
|
+
}
|
28
|
+
div.anythingSlider-cs-portfolio .start-stop.playing:hover {
|
29
|
+
background-color: #f00;
|
30
|
+
}
|
31
|
+
|
32
|
+
/* Overall */
|
33
|
+
div.anythingSlider-cs-portfolio {}
|
34
|
+
div.anythingSlider-cs-portfolio .anythingWindow, div.anythingSlider-cs-portfolio.activeSlider .anythingWindow {
|
35
|
+
border: 0;
|
36
|
+
}
|
37
|
+
/* Navigation Arrows */
|
38
|
+
div.anythingSlider-cs-portfolio .arrow {
|
39
|
+
display: block;
|
40
|
+
bottom: 7px; /* this is -18px for IE7 */
|
41
|
+
position: absolute;
|
42
|
+
z-index: 100;
|
43
|
+
}
|
44
|
+
div.anythingSlider-cs-portfolio .arrow a {
|
45
|
+
display: block;
|
46
|
+
bottom: 5px;
|
47
|
+
position: absolute;
|
48
|
+
height: 27px;
|
49
|
+
width: 26px;
|
50
|
+
outline: 0;
|
51
|
+
background: url(../images/cs-portfolio.png) no-repeat;
|
52
|
+
}
|
53
|
+
div.anythingSlider-cs-portfolio .forward { right: 70px; }
|
54
|
+
div.anythingSlider-cs-portfolio .back { left: 20px; }
|
55
|
+
div.anythingSlider-cs-portfolio .forward a { background-position: -24px top; }
|
56
|
+
div.anythingSlider-cs-portfolio .back a { background-position: left top; }
|
57
|
+
div.anythingSlider-cs-portfolio .forward a:hover, div.anythingSlider-cs-portfolio .forward a.hover { background-position: -24px -27px; }
|
58
|
+
div.anythingSlider-cs-portfolio .back a:hover, div.anythingSlider-cs-portfolio .back a.hover { background-position: left -27px; }
|
59
|
+
|
60
|
+
/* Navigation Links */
|
61
|
+
div.anythingSlider-cs-portfolio .anythingControls {
|
62
|
+
background: url(../images/cs-portfolio.png) repeat-x bottom center;
|
63
|
+
height: 49px;
|
64
|
+
margin: 0 auto 49px auto;
|
65
|
+
padding-left: 150px;
|
66
|
+
text-align: center;
|
67
|
+
z-index: 100;
|
68
|
+
}
|
69
|
+
div.anythingSlider-cs-portfolio .anythingControls ul {
|
70
|
+
margin: 0;
|
71
|
+
z-index: 100;
|
72
|
+
}
|
73
|
+
div.anythingSlider-cs-portfolio .anythingControls ul li {
|
74
|
+
padding: 0;
|
75
|
+
display: inline;
|
76
|
+
}
|
77
|
+
|
78
|
+
div.anythingSlider-cs-portfolio .anythingControls ul a, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a {
|
79
|
+
display: inline-block;
|
80
|
+
width: 17px;
|
81
|
+
height: 17px;
|
82
|
+
margin: 18px 5px 0 0;
|
83
|
+
padding: 0;
|
84
|
+
outline: 0;
|
85
|
+
border: 0;
|
86
|
+
}
|
87
|
+
|
88
|
+
div.anythingSlider-cs-portfolio .anythingControls ul a, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a,
|
89
|
+
div.anythingSlider-cs-portfolio .anythingControls ul a:hover, div.anythingSlider-cs-portfolio .anythingControls ul a.cur,
|
90
|
+
div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a:hover, div.anythingSlider-cs-portfolio.activeSlider .anythingControls ul a.cur {
|
91
|
+
background-image: url(../images/cs-portfolio.png);
|
92
|
+
background-position: right -20px;
|
93
|
+
background-repeat: no-repeat;
|
94
|
+
}
|
95
|
+
|
96
|
+
/* Navigation size window arrows */
|
97
|
+
div.anythingSlider-cs-portfolio .anythingControls li.next a, div.anythingSlider-cs-portfolio .anythingControls li.prev a,
|
98
|
+
div.anythingSlider-cs-portfolio .anythingControls li.next a:hover, div.anythingSlider-cs-portfolio .anythingControls li.prev a:hover {
|
99
|
+
width: 16px;
|
100
|
+
height: 15px;
|
101
|
+
background: url(../images/cs-portfolio.png) -25px -54px no-repeat;
|
102
|
+
margin: 19px 5px 0 5px;
|
103
|
+
}
|
104
|
+
div.anythingSlider-cs-portfolio .anythingControls li.prev a {
|
105
|
+
background-position: -9px -54px;
|
106
|
+
}
|
107
|
+
div.anythingSlider-cs-portfolio .anythingControls li.next a:hover {
|
108
|
+
background-position: -56px -54px;
|
109
|
+
}
|
110
|
+
div.anythingSlider-cs-portfolio .anythingControls li.prev a:hover {
|
111
|
+
background-position: -41px -54px;
|
112
|
+
}
|
113
|
+
|
114
|
+
/* slider autoplay right-to-left, reverse order of nav links to look better */
|
115
|
+
div.anythingSlider-cs-portfolio.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
|
116
|
+
div.anythingSlider-cs-portfolio.rtl .anythingControls ul { float: left; } /* move nav link group to left */
|
117
|
+
/* div.anythingSlider-cs-portfolio.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
|
118
|
+
|
119
|
+
/* Autoplay Start/Stop button */
|
120
|
+
div.anythingSlider-cs-portfolio .start-stop, div.anythingSlider-cs-portfolio .start-stop.hover {
|
121
|
+
margin: 15px 50px 0 0;
|
122
|
+
padding: 0;
|
123
|
+
display: inline-block;
|
124
|
+
text-align: center;
|
125
|
+
width: 20px;
|
126
|
+
height: 20px;
|
127
|
+
z-index: 100;
|
128
|
+
border: 0;
|
129
|
+
}
|
130
|
+
div.anythingSlider-cs-portfolio .start-stop, div.anythingSlider-cs-portfolio .start-stop.hover,
|
131
|
+
div.anythingSlider-cs-portfolio .start-stop:hover, div.anythingSlider-cs-portfolio .start-stop.playing,
|
132
|
+
div.anythingSlider-cs-portfolio .start-stop.playing:hover {
|
133
|
+
background-image: url(../images/cs-portfolio.png);
|
134
|
+
background-position: right top;
|
135
|
+
background-repeat: no-repeat;
|
136
|
+
}
|
137
|
+
|
138
|
+
/* Extra - replace defaults */
|
139
|
+
div.anythingSlider-cs-portfolio {
|
140
|
+
padding: 0 23px 50px 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
/* text indent moved to span inside "a", for IE7; apparently, a negative text-indent on an "a" link moves the link as well as the text */
|
144
|
+
div.anythingSlider-cs-portfolio .arrow a span, div.anythingSlider-cs-portfolio .anythingControls ul a span, div.anythingSlider-cs-portfolio .start-stop span {
|
145
|
+
display: block;
|
146
|
+
line-height: 1px; /* needed for IE7 */
|
147
|
+
text-indent: -9999px;
|
148
|
+
}
|