grosse modification forum & changement version rails
This commit is contained in:
parent
f4cbac29ca
commit
92893cfc21
95
Gemfile
95
Gemfile
@ -1,71 +1,86 @@
|
|||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem 'rails', '3.2.9'
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||||
|
gem 'rails', '4.0.0'
|
||||||
|
|
||||||
# Bundle edge Rails instead:
|
gem 'bcrypt-ruby', '~> 3.0.0'
|
||||||
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
# Use sqlite3 as the database for Active Record
|
||||||
|
|
||||||
gem "mysql2"
|
|
||||||
|
|
||||||
|
|
||||||
# Gems used only for assets and not required
|
|
||||||
# in production environments by default.
|
|
||||||
group :assets do
|
|
||||||
gem 'sass-rails', '~> 3.2.3'
|
|
||||||
gem 'coffee-rails', '~> 3.2.1'
|
|
||||||
|
|
||||||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
|
||||||
# gem 'therubyracer', :platforms => :ruby
|
|
||||||
|
|
||||||
gem 'uglifier', '>= 1.0.3'
|
|
||||||
|
|
||||||
|
gem 'mysql2'
|
||||||
|
gem 'sass-rails'
|
||||||
gem 'compass-rails'
|
gem 'compass-rails'
|
||||||
gem 'zurb-foundation', ">= 3.2"
|
gem 'zurb-foundation', ">= 3.2"
|
||||||
end
|
# Use Uglifier as compressor for JavaScript assets
|
||||||
|
gem 'uglifier', '>= 1.3.0'
|
||||||
|
|
||||||
|
# Use CoffeeScript for .js.coffee assets and views
|
||||||
|
gem 'coffee-rails', '~> 4.0.0'
|
||||||
|
|
||||||
|
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
||||||
|
# gem 'therubyracer', platforms: :ruby
|
||||||
|
|
||||||
|
# Use jquery as the JavaScript library
|
||||||
gem 'jquery-rails'
|
gem 'jquery-rails'
|
||||||
gem 'jquery-ui-rails'
|
gem 'jquery-ui-rails'
|
||||||
gem "raptor-editor-rails"
|
|
||||||
|
|
||||||
# To use ActiveModel has_secure_password
|
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
||||||
|
gem 'turbolinks'
|
||||||
|
|
||||||
|
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
||||||
|
gem 'jbuilder', '~> 1.0.1'
|
||||||
|
|
||||||
|
gem "therubyracer"
|
||||||
|
gem "less-rails"
|
||||||
|
gem "twitter-bootstrap-rails"
|
||||||
|
|
||||||
|
gem 'haml-rails'
|
||||||
|
|
||||||
|
gem 'nokogiri'
|
||||||
|
gem 'acts_as_tree'
|
||||||
|
gem 'formtastic', :git => 'git://github.com/justinfrench/formtastic.git'
|
||||||
|
|
||||||
|
|
||||||
|
gem 'kaminari-bootstrap'
|
||||||
|
|
||||||
|
|
||||||
|
gem "htmlentities"
|
||||||
|
|
||||||
|
|
||||||
|
group :doc do
|
||||||
|
# bundle exec rake doc:rails generates the API under doc/api.
|
||||||
|
gem 'sdoc', require: false
|
||||||
|
end
|
||||||
|
|
||||||
|
gem "capistrano", group: :development
|
||||||
|
gem "rvm-capistrano", group: :development
|
||||||
|
|
||||||
|
# Use ActiveModel has_secure_password
|
||||||
# gem 'bcrypt-ruby', '~> 3.0.0'
|
# gem 'bcrypt-ruby', '~> 3.0.0'
|
||||||
|
|
||||||
# To use Jbuilder templates for JSON
|
|
||||||
# gem 'jbuilder'
|
|
||||||
|
|
||||||
# Use unicorn as the app server
|
# Use unicorn as the app server
|
||||||
# gem 'unicorn'
|
gem 'unicorn'
|
||||||
|
|
||||||
# Deploy with Capistrano
|
gem "nokogiri"
|
||||||
# gem 'capistrano'
|
|
||||||
|
|
||||||
# To use debugger
|
gem 'kaminari-bootstrap'
|
||||||
# gem 'debugger'
|
|
||||||
gem 'capistrano'
|
|
||||||
gem 'rvm-capistrano'
|
|
||||||
gem 'gravatar_image_tag'
|
|
||||||
|
|
||||||
gem 'formtastic'
|
gem 'acts_as_commentable'
|
||||||
gem 'haml'
|
|
||||||
|
|
||||||
gem 'acts_as_tree'
|
|
||||||
|
|
||||||
gem "pg"
|
|
||||||
gem "devise"
|
gem "devise"
|
||||||
gem "cancan"
|
gem "cancan"
|
||||||
|
|
||||||
gem 'kaminari'
|
gem 'kaminari'
|
||||||
gem 'carrierwave'
|
|
||||||
gem 'rmagick'
|
gem 'rmagick'
|
||||||
|
gem 'carrierwave', "0.9.0"
|
||||||
|
|
||||||
gem "geocoder"
|
gem "geocoder"
|
||||||
|
|
||||||
#markdown
|
#markdown
|
||||||
gem 'pygments.rb'
|
gem 'pygments.rb'
|
||||||
gem 'redcarpet'
|
gem 'redcarpet'
|
||||||
|
|
||||||
gem 'nokogiri'
|
|
||||||
|
|
||||||
|
|
||||||
gem "therubyracer"
|
# Use debugger
|
||||||
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
|
# gem 'debugger', group: [:development, :test]
|
||||||
gem "twitter-bootstrap-rails"
|
|
||||||
|
314
Gemfile.lock
314
Gemfile.lock
@ -1,222 +1,242 @@
|
|||||||
|
GIT
|
||||||
|
remote: git://github.com/justinfrench/formtastic.git
|
||||||
|
revision: f630fb0bee233c75301cc0a362cfbe58ae7b5001
|
||||||
|
specs:
|
||||||
|
formtastic (2.3.0.rc2)
|
||||||
|
actionpack (>= 3.0)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actionmailer (3.2.9)
|
actionmailer (4.0.0)
|
||||||
actionpack (= 3.2.9)
|
actionpack (= 4.0.0)
|
||||||
mail (~> 2.4.4)
|
mail (~> 2.5.3)
|
||||||
actionpack (3.2.9)
|
actionpack (4.0.0)
|
||||||
activemodel (= 3.2.9)
|
activesupport (= 4.0.0)
|
||||||
activesupport (= 3.2.9)
|
builder (~> 3.1.0)
|
||||||
builder (~> 3.0.0)
|
|
||||||
erubis (~> 2.7.0)
|
erubis (~> 2.7.0)
|
||||||
journey (~> 1.0.4)
|
rack (~> 1.5.2)
|
||||||
rack (~> 1.4.0)
|
rack-test (~> 0.6.2)
|
||||||
rack-cache (~> 1.2)
|
activemodel (4.0.0)
|
||||||
rack-test (~> 0.6.1)
|
activesupport (= 4.0.0)
|
||||||
sprockets (~> 2.2.1)
|
builder (~> 3.1.0)
|
||||||
activemodel (3.2.9)
|
activerecord (4.0.0)
|
||||||
activesupport (= 3.2.9)
|
activemodel (= 4.0.0)
|
||||||
builder (~> 3.0.0)
|
activerecord-deprecated_finders (~> 1.0.2)
|
||||||
activerecord (3.2.9)
|
activesupport (= 4.0.0)
|
||||||
activemodel (= 3.2.9)
|
arel (~> 4.0.0)
|
||||||
activesupport (= 3.2.9)
|
activerecord-deprecated_finders (1.0.3)
|
||||||
arel (~> 3.0.2)
|
activesupport (4.0.0)
|
||||||
tzinfo (~> 0.3.29)
|
i18n (~> 0.6, >= 0.6.4)
|
||||||
activeresource (3.2.9)
|
minitest (~> 4.2)
|
||||||
activemodel (= 3.2.9)
|
multi_json (~> 1.3)
|
||||||
activesupport (= 3.2.9)
|
thread_safe (~> 0.1)
|
||||||
activesupport (3.2.9)
|
tzinfo (~> 0.3.37)
|
||||||
i18n (~> 0.6)
|
acts_as_commentable (4.0.1)
|
||||||
multi_json (~> 1.0)
|
acts_as_tree (1.5.1)
|
||||||
acts_as_tree (1.2.0)
|
|
||||||
activerecord (>= 3.0.0)
|
activerecord (>= 3.0.0)
|
||||||
arel (3.0.2)
|
arel (4.0.2)
|
||||||
|
bcrypt (3.1.7)
|
||||||
bcrypt-ruby (3.0.1)
|
bcrypt-ruby (3.0.1)
|
||||||
builder (3.0.4)
|
builder (3.1.4)
|
||||||
cancan (1.6.8)
|
cancan (1.6.10)
|
||||||
capistrano (2.13.5)
|
capistrano (2.15.5)
|
||||||
highline
|
highline
|
||||||
net-scp (>= 1.0.0)
|
net-scp (>= 1.0.0)
|
||||||
net-sftp (>= 2.0.0)
|
net-sftp (>= 2.0.0)
|
||||||
net-ssh (>= 2.0.14)
|
net-ssh (>= 2.0.14)
|
||||||
net-ssh-gateway (>= 1.1.0)
|
net-ssh-gateway (>= 1.1.0)
|
||||||
carrierwave (0.7.1)
|
carrierwave (0.9.0)
|
||||||
activemodel (>= 3.2.0)
|
activemodel (>= 3.2.0)
|
||||||
activesupport (>= 3.2.0)
|
activesupport (>= 3.2.0)
|
||||||
chunky_png (1.2.7)
|
json (>= 1.7)
|
||||||
coffee-rails (3.2.2)
|
chunky_png (1.3.0)
|
||||||
|
coffee-rails (4.0.1)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
railties (~> 3.2.0)
|
railties (>= 4.0.0, < 5.0)
|
||||||
coffee-script (2.2.0)
|
coffee-script (2.2.0)
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.4.0)
|
coffee-script-source (1.7.0)
|
||||||
commonjs (0.2.6)
|
commonjs (0.2.7)
|
||||||
compass (0.12.2)
|
compass (0.12.5)
|
||||||
chunky_png (~> 1.2)
|
chunky_png (~> 1.2)
|
||||||
fssm (>= 0.2.7)
|
fssm (>= 0.2.7)
|
||||||
sass (~> 3.1)
|
sass (~> 3.2.19)
|
||||||
compass-rails (1.0.3)
|
compass-rails (1.1.6)
|
||||||
compass (>= 0.12.2, < 0.14)
|
compass (>= 0.12.2)
|
||||||
devise (2.1.2)
|
devise (3.2.4)
|
||||||
bcrypt-ruby (~> 3.0)
|
bcrypt (~> 3.0)
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
railties (~> 3.1)
|
railties (>= 3.2.6, < 5)
|
||||||
warden (~> 1.2.1)
|
thread_safe (~> 0.1)
|
||||||
|
warden (~> 1.2.3)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (1.4.0)
|
execjs (2.0.2)
|
||||||
multi_json (~> 1.0)
|
fssm (0.2.10)
|
||||||
formtastic (2.2.1)
|
geocoder (1.1.9)
|
||||||
actionpack (>= 3.0)
|
haml (4.0.5)
|
||||||
fssm (0.2.9)
|
tilt
|
||||||
geocoder (1.1.6)
|
haml-rails (0.5.1)
|
||||||
gravatar_image_tag (1.1.3)
|
actionpack (~> 4.0.0)
|
||||||
haml (3.1.7)
|
activesupport (~> 4.0.0)
|
||||||
highline (1.6.15)
|
haml (>= 3.1, < 5.0)
|
||||||
hike (1.2.1)
|
railties (~> 4.0.0)
|
||||||
i18n (0.6.1)
|
highline (1.6.21)
|
||||||
journey (1.0.4)
|
hike (1.2.3)
|
||||||
jquery-rails (2.1.4)
|
htmlentities (4.3.1)
|
||||||
|
i18n (0.6.9)
|
||||||
|
jbuilder (1.0.2)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
jquery-rails (3.1.0)
|
||||||
railties (>= 3.0, < 5.0)
|
railties (>= 3.0, < 5.0)
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
jquery-ui-rails (4.0.1)
|
jquery-ui-rails (4.2.0)
|
||||||
jquery-rails
|
railties (>= 3.2.16)
|
||||||
railties (>= 3.1.0)
|
json (1.8.1)
|
||||||
json (1.7.6)
|
kaminari (0.15.1)
|
||||||
kaminari (0.14.1)
|
|
||||||
actionpack (>= 3.0.0)
|
actionpack (>= 3.0.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
less (2.3.2)
|
kaminari-bootstrap (3.0.1)
|
||||||
commonjs (~> 0.2.6)
|
kaminari (>= 0.13.0)
|
||||||
less-rails (2.3.3)
|
rails
|
||||||
|
kgio (2.9.2)
|
||||||
|
less (2.5.0)
|
||||||
|
commonjs (~> 0.2.7)
|
||||||
|
less-rails (2.5.0)
|
||||||
actionpack (>= 3.1)
|
actionpack (>= 3.1)
|
||||||
less (~> 2.3.1)
|
less (~> 2.5.0)
|
||||||
libv8 (3.11.8.17)
|
libv8 (3.16.14.3)
|
||||||
mail (2.4.4)
|
mail (2.5.4)
|
||||||
i18n (>= 0.4.0)
|
|
||||||
mime-types (~> 1.16)
|
mime-types (~> 1.16)
|
||||||
treetop (~> 1.4.8)
|
treetop (~> 1.4.8)
|
||||||
mime-types (1.19)
|
mime-types (1.25.1)
|
||||||
modular-scale (1.0.2)
|
mini_portile (0.5.3)
|
||||||
compass (>= 0.11.5)
|
minitest (4.7.5)
|
||||||
sassy-math (>= 1.2)
|
multi_json (1.9.2)
|
||||||
multi_json (1.5.0)
|
mysql2 (0.3.15)
|
||||||
mysql2 (0.3.11)
|
net-scp (1.1.2)
|
||||||
net-scp (1.0.4)
|
net-ssh (>= 2.6.5)
|
||||||
net-ssh (>= 1.99.1)
|
net-sftp (2.1.2)
|
||||||
net-sftp (2.0.5)
|
net-ssh (>= 2.6.5)
|
||||||
net-ssh (>= 2.0.9)
|
net-ssh (2.8.0)
|
||||||
net-ssh (2.6.2)
|
net-ssh-gateway (1.2.0)
|
||||||
net-ssh-gateway (1.1.0)
|
net-ssh (>= 2.6.5)
|
||||||
net-ssh (>= 1.99.1)
|
nokogiri (1.6.1)
|
||||||
nokogiri (1.5.6)
|
mini_portile (~> 0.5.0)
|
||||||
orm_adapter (0.4.0)
|
orm_adapter (0.5.0)
|
||||||
pg (0.14.1)
|
polyglot (0.3.4)
|
||||||
polyglot (0.3.3)
|
posix-spawn (0.3.8)
|
||||||
posix-spawn (0.3.6)
|
pygments.rb (0.5.4)
|
||||||
pygments.rb (0.3.7)
|
|
||||||
posix-spawn (~> 0.3.6)
|
posix-spawn (~> 0.3.6)
|
||||||
yajl-ruby (~> 1.1.0)
|
yajl-ruby (~> 1.1.0)
|
||||||
rack (1.4.5)
|
rack (1.5.2)
|
||||||
rack-cache (1.2)
|
|
||||||
rack (>= 0.4)
|
|
||||||
rack-ssl (1.3.2)
|
|
||||||
rack
|
|
||||||
rack-test (0.6.2)
|
rack-test (0.6.2)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
rails (3.2.9)
|
rails (4.0.0)
|
||||||
actionmailer (= 3.2.9)
|
actionmailer (= 4.0.0)
|
||||||
actionpack (= 3.2.9)
|
actionpack (= 4.0.0)
|
||||||
activerecord (= 3.2.9)
|
activerecord (= 4.0.0)
|
||||||
activeresource (= 3.2.9)
|
activesupport (= 4.0.0)
|
||||||
activesupport (= 3.2.9)
|
bundler (>= 1.3.0, < 2.0)
|
||||||
bundler (~> 1.0)
|
railties (= 4.0.0)
|
||||||
railties (= 3.2.9)
|
sprockets-rails (~> 2.0.0)
|
||||||
railties (3.2.9)
|
railties (4.0.0)
|
||||||
actionpack (= 3.2.9)
|
actionpack (= 4.0.0)
|
||||||
activesupport (= 3.2.9)
|
activesupport (= 4.0.0)
|
||||||
rack-ssl (~> 1.3.2)
|
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
rdoc (~> 3.4)
|
thor (>= 0.18.1, < 2.0)
|
||||||
thor (>= 0.14.6, < 2.0)
|
raindrops (0.13.0)
|
||||||
rake (10.0.3)
|
rake (10.2.2)
|
||||||
raptor-editor-rails (0.2.1)
|
rdoc (4.1.1)
|
||||||
rails (> 3.1)
|
|
||||||
rdoc (3.12)
|
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
redcarpet (2.2.2)
|
redcarpet (3.1.1)
|
||||||
ref (1.0.5)
|
ref (1.0.5)
|
||||||
rmagick (2.13.1)
|
rmagick (2.13.2)
|
||||||
rvm-capistrano (1.2.7)
|
rvm-capistrano (1.5.1)
|
||||||
capistrano (>= 2.0.0)
|
capistrano (~> 2.15.4)
|
||||||
sass (3.2.5)
|
sass (3.2.19)
|
||||||
sass-rails (3.2.5)
|
sass-rails (4.0.1)
|
||||||
railties (~> 3.2.0)
|
railties (>= 4.0.0, < 5.0)
|
||||||
sass (>= 3.1.10)
|
sass (>= 3.1.10)
|
||||||
tilt (~> 1.3)
|
sprockets-rails (~> 2.0.0)
|
||||||
sassy-math (1.2)
|
sdoc (0.4.0)
|
||||||
compass (~> 0.11)
|
json (~> 1.8)
|
||||||
sprockets (2.2.2)
|
rdoc (~> 4.0, < 5.0)
|
||||||
|
sprockets (2.12.0)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
rack (~> 1.0)
|
rack (~> 1.0)
|
||||||
tilt (~> 1.1, != 1.3.0)
|
tilt (~> 1.1, != 1.3.0)
|
||||||
therubyracer (0.11.4)
|
sprockets-rails (2.0.1)
|
||||||
libv8 (~> 3.11.8.12)
|
actionpack (>= 3.0)
|
||||||
|
activesupport (>= 3.0)
|
||||||
|
sprockets (~> 2.8)
|
||||||
|
therubyracer (0.12.1)
|
||||||
|
libv8 (~> 3.16.14.0)
|
||||||
ref
|
ref
|
||||||
thor (0.16.0)
|
thor (0.19.1)
|
||||||
tilt (1.3.3)
|
thread_safe (0.3.3)
|
||||||
treetop (1.4.12)
|
tilt (1.4.1)
|
||||||
|
treetop (1.4.15)
|
||||||
polyglot
|
polyglot
|
||||||
polyglot (>= 0.3.1)
|
polyglot (>= 0.3.1)
|
||||||
twitter-bootstrap-rails (2.2.7)
|
turbolinks (2.2.2)
|
||||||
|
coffee-rails
|
||||||
|
twitter-bootstrap-rails (2.2.8)
|
||||||
actionpack (>= 3.1)
|
actionpack (>= 3.1)
|
||||||
execjs
|
execjs
|
||||||
rails (>= 3.1)
|
rails (>= 3.1)
|
||||||
railties (>= 3.1)
|
railties (>= 3.1)
|
||||||
tzinfo (0.3.35)
|
tzinfo (0.3.39)
|
||||||
uglifier (1.3.0)
|
uglifier (2.5.0)
|
||||||
execjs (>= 0.3.0)
|
execjs (>= 0.3.0)
|
||||||
multi_json (~> 1.0, >= 1.0.2)
|
json (>= 1.8.0)
|
||||||
warden (1.2.1)
|
unicorn (4.8.2)
|
||||||
|
kgio (~> 2.6)
|
||||||
|
rack
|
||||||
|
raindrops (~> 0.7)
|
||||||
|
warden (1.2.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
yajl-ruby (1.1.0)
|
yajl-ruby (1.1.0)
|
||||||
zurb-foundation (3.2.3)
|
zurb-foundation (4.3.2)
|
||||||
compass (>= 0.12.2)
|
|
||||||
modular-scale (>= 1.0.2)
|
|
||||||
rake
|
|
||||||
sass (>= 3.2.0)
|
sass (>= 3.2.0)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
acts_as_commentable
|
||||||
acts_as_tree
|
acts_as_tree
|
||||||
|
bcrypt-ruby (~> 3.0.0)
|
||||||
cancan
|
cancan
|
||||||
capistrano
|
capistrano
|
||||||
carrierwave
|
carrierwave (= 0.9.0)
|
||||||
coffee-rails (~> 3.2.1)
|
coffee-rails (~> 4.0.0)
|
||||||
compass-rails
|
compass-rails
|
||||||
devise
|
devise
|
||||||
formtastic
|
formtastic!
|
||||||
geocoder
|
geocoder
|
||||||
gravatar_image_tag
|
haml-rails
|
||||||
haml
|
htmlentities
|
||||||
|
jbuilder (~> 1.0.1)
|
||||||
jquery-rails
|
jquery-rails
|
||||||
jquery-ui-rails
|
jquery-ui-rails
|
||||||
kaminari
|
kaminari
|
||||||
|
kaminari-bootstrap
|
||||||
less-rails
|
less-rails
|
||||||
mysql2
|
mysql2
|
||||||
nokogiri
|
nokogiri
|
||||||
pg
|
|
||||||
pygments.rb
|
pygments.rb
|
||||||
rails (= 3.2.9)
|
rails (= 4.0.0)
|
||||||
raptor-editor-rails
|
|
||||||
redcarpet
|
redcarpet
|
||||||
rmagick
|
rmagick
|
||||||
rvm-capistrano
|
rvm-capistrano
|
||||||
sass-rails (~> 3.2.3)
|
sass-rails
|
||||||
|
sdoc
|
||||||
therubyracer
|
therubyracer
|
||||||
|
turbolinks
|
||||||
twitter-bootstrap-rails
|
twitter-bootstrap-rails
|
||||||
uglifier (>= 1.0.3)
|
uglifier (>= 1.3.0)
|
||||||
|
unicorn
|
||||||
zurb-foundation (>= 3.2)
|
zurb-foundation (>= 3.2)
|
||||||
|
@ -27,6 +27,7 @@ require ./shared/modernizr.js
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
|
||||||
|
6
app/assets/javascripts/connexion.coffee
Normal file
6
app/assets/javascripts/connexion.coffee
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#= require jquery
|
||||||
|
#= require jquery.ui.all
|
||||||
|
#= require twitter/bootstrap
|
||||||
|
|
||||||
|
#= require ./shared/jquery.backstretch.js
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
*= require jquery
|
|
||||||
*= require jquery_ujs
|
|
||||||
|
|
||||||
*= require ./shared/modernizr
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
|
84
app/assets/javascripts/forum.coffee
Normal file
84
app/assets/javascripts/forum.coffee
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
|
||||||
|
#= require jquery
|
||||||
|
#= require ./shared/jquery-ui
|
||||||
|
#= require twitter/bootstrap
|
||||||
|
#= require jquery_ujs
|
||||||
|
|
||||||
|
#= require ./note_files/ajquery.ui.widget
|
||||||
|
#= require ./note_files/jquery.fileupload
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#= require redactor
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$(document).on "scroll", () ->
|
||||||
|
|
||||||
|
if( $(this).scrollTop() <= 40 )
|
||||||
|
top = 40 - $(this).scrollTop()
|
||||||
|
else
|
||||||
|
top = 0
|
||||||
|
|
||||||
|
$("#toolbar-text, .fix-submit").css
|
||||||
|
top : top
|
||||||
|
|
||||||
|
|
||||||
|
@init_user_images = ->
|
||||||
|
$(".images .user_image").click ->
|
||||||
|
src = undefined
|
||||||
|
src = $(this).data("src")
|
||||||
|
$("#message_form .content").redactor().insertHtml "<img src=\"" + src + "\" />"
|
||||||
|
false
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
|
editor = new Array()
|
||||||
|
$(document).ready ->
|
||||||
|
|
||||||
|
$(".user_images").on "click", (event) ->
|
||||||
|
$(this).toggleClass("open")
|
||||||
|
|
||||||
|
|
||||||
|
$(".redactor_editor").on "click", "img", (event) ->
|
||||||
|
event.stopPropagation()
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#upload
|
||||||
|
drop = $(".user_images")
|
||||||
|
$(".user_images .fileupload").fileupload
|
||||||
|
url: $(this).attr("action")
|
||||||
|
dropZone: drop
|
||||||
|
autoUpload: true
|
||||||
|
progressall: (e, data) ->
|
||||||
|
progress = parseInt(data.loaded / data.total * 100, 10)
|
||||||
|
if progress is 100
|
||||||
|
$(this).find(".progress").html "traitement en cours."
|
||||||
|
else
|
||||||
|
$(this).find(".progress").html progress + "% téléchargé."
|
||||||
|
return
|
||||||
|
|
||||||
|
always: (e, data) ->
|
||||||
|
$(this).find(".progress").html ""
|
||||||
|
return
|
||||||
|
|
||||||
|
drop: (e, data) ->
|
||||||
|
|
||||||
|
drop.css "background", "white"
|
||||||
|
return
|
||||||
|
|
||||||
|
drop.bind "dragover", (e) ->
|
||||||
|
$(this).css "background", "#B7DF63"
|
||||||
|
return
|
||||||
|
|
||||||
|
drop.bind "dragleave", (e) ->
|
||||||
|
$(this).css "background", "white"
|
||||||
|
return
|
||||||
|
|
||||||
|
$(".user_images .add_files").on "click", ->
|
||||||
|
$(this).next("input").click()
|
||||||
|
false
|
||||||
|
|
||||||
|
return
|
@ -1,137 +0,0 @@
|
|||||||
/*
|
|
||||||
*= require jquery
|
|
||||||
|
|
||||||
*= require jquery_ujs
|
|
||||||
|
|
||||||
*= require ./note_files/ajquery.ui.widget
|
|
||||||
*= require ./note_files/jquery.fileupload
|
|
||||||
|
|
||||||
*= require ./shared/ace.js
|
|
||||||
*= require ./shared/mode-markdown.js
|
|
||||||
*= require ./shared/theme-textmate.js
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
var editor = new Array();
|
|
||||||
|
|
||||||
function init_user_images(){
|
|
||||||
|
|
||||||
$(".message_form").find(".images .user_image").click(function(){
|
|
||||||
|
|
||||||
var src;
|
|
||||||
src = $(this).data("src");
|
|
||||||
|
|
||||||
r= $(this).closest(".message_form").find("textarea.markdown").data("id");
|
|
||||||
editor[r].focus();
|
|
||||||
editor[r].insert("\n\n\n\n");
|
|
||||||
editor[r].focus();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return false;
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).ready(function(){
|
|
||||||
|
|
||||||
$("textarea.markdown").each(function(){
|
|
||||||
var r;
|
|
||||||
var ed;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
r = Math.floor((Math.random()*1000)+1);
|
|
||||||
|
|
||||||
$(this).data("id", r);
|
|
||||||
|
|
||||||
|
|
||||||
$(this).attr("id", r+"-textarea");
|
|
||||||
$(this).after('<div id="'+r+'-editor" class="ace_editor">bla</div>');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
editor[r] = ace.edit(r+"-editor");
|
|
||||||
editor[r].setTheme("ace/theme/textmate");
|
|
||||||
editor[r].getSession().setMode("ace/mode/markdown");
|
|
||||||
|
|
||||||
editor[r].setPrintMarginColumn(0);
|
|
||||||
|
|
||||||
editor[r].session.setUseWrapMode(true);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
editor[r].setHighlightActiveLine(false);
|
|
||||||
|
|
||||||
editor[r].renderer.setShowGutter(false);
|
|
||||||
editor[r].renderer.setShowPrintMargin(false);
|
|
||||||
|
|
||||||
editor[r].setFontSize("14px");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var textarea = $('#'+r+'-textarea').hide();
|
|
||||||
editor[r].getSession().setValue(textarea.val());
|
|
||||||
|
|
||||||
editor[r].getSession().on('change', function(){
|
|
||||||
|
|
||||||
textarea.val(editor[r].getSession().getValue());
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
//upload
|
|
||||||
|
|
||||||
drop = $('.user_images');
|
|
||||||
|
|
||||||
$('.user_images .fileupload').fileupload({
|
|
||||||
url: $(this).attr("action"),
|
|
||||||
dropZone: drop,
|
|
||||||
autoUpload: true,
|
|
||||||
progressall: function (e, data) {
|
|
||||||
var progress = parseInt(data.loaded / data.total * 100, 10);
|
|
||||||
if(progress == 100){
|
|
||||||
$(this).find('.progress').html('traitement en cours.');
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
$(this).find('.progress').html(progress + '% téléchargé.');}
|
|
||||||
},
|
|
||||||
always: function (e, data) {
|
|
||||||
$(this).find('.progress').html("");
|
|
||||||
},
|
|
||||||
|
|
||||||
drop: function (e, data) {
|
|
||||||
|
|
||||||
drop.css("background", "transparent");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
drop.bind('dragover', function (e) {
|
|
||||||
$(this).css("background", "#B7DF63");
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
drop.bind('dragleave', function (e) {
|
|
||||||
$(this).css("background", "transparent");
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".user_images .add_files").live("click",function(){
|
|
||||||
|
|
||||||
$(this).next('input').click();
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
#= require jquery
|
#= require jquery
|
||||||
#= require jquery_ujs
|
#= require jquery_ujs
|
||||||
#= require jquery-ui
|
#= require jquery.ui.all
|
||||||
#= require ./shared/jquery.ui.touch-punch
|
#= require ./shared/jquery.ui.touch-punch
|
||||||
#= require ./shared/jquery-jPuzzle
|
#= require ./shared/jquery-jPuzzle
|
||||||
|
|
||||||
@ -102,49 +102,6 @@ $ ->
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(".places_jeu2").each ->
|
|
||||||
$(this).find(".receptable").droppable
|
|
||||||
tolerance: "touch"
|
|
||||||
accept: (e) ->
|
|
||||||
if e.hasClass("intru") == false and $(this).find("img").size() == 0
|
|
||||||
true
|
|
||||||
drop: ( event, ui ) ->
|
|
||||||
|
|
||||||
$( this ).append(ui.draggable)
|
|
||||||
ui.draggable.attr("style", "")
|
|
||||||
|
|
||||||
if $(this).closest(".places_jeu2").find(".vignettes img").size() == 2
|
|
||||||
$(this).closest(".places_jeu2").find(".success").show()
|
|
||||||
|
|
||||||
$(this).find(".vignettes img").draggable
|
|
||||||
#connectWith: ".receptable"
|
|
||||||
tolerance: "pointer"
|
|
||||||
revert: "invalid"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(".places_jeu").each ->
|
|
||||||
$(this).find(".receptable").droppable
|
|
||||||
tolerance: "touch"
|
|
||||||
accept: (e) ->
|
|
||||||
if e.data("rep") == $(this).data("rep")
|
|
||||||
true
|
|
||||||
drop: ( event, ui ) ->
|
|
||||||
|
|
||||||
$( this ).append(ui.draggable)
|
|
||||||
ui.draggable.attr("style", "")
|
|
||||||
|
|
||||||
if $(this).closest(".places_jeu").find(".vignettes img").size() == 0
|
|
||||||
$(this).closest(".places_jeu").find(".success").show()
|
|
||||||
|
|
||||||
$(this).find(".vignettes img").draggable
|
|
||||||
#connectWith: ".receptable"
|
|
||||||
tolerance: "pointer"
|
|
||||||
revert: "invalid"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -180,6 +137,64 @@ $ ->
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
intialize_places_jeu2 = () ->
|
||||||
|
$(".places_jeu2").each ->
|
||||||
|
archive = $(this).html()
|
||||||
|
$(this).find(".receptable").droppable
|
||||||
|
tolerance: "touch"
|
||||||
|
accept: (e) ->
|
||||||
|
if e.hasClass("intru") == false and $(this).find("img").size() == 0
|
||||||
|
true
|
||||||
|
drop: ( event, ui ) ->
|
||||||
|
|
||||||
|
$( this ).append(ui.draggable)
|
||||||
|
ui.draggable.attr("style", "")
|
||||||
|
|
||||||
|
if $(this).closest(".places_jeu2").find(".vignettes img").size() == 2
|
||||||
|
$(this).closest(".places_jeu2").find(".success").show()
|
||||||
|
|
||||||
|
$(this).find(".vignettes img").draggable
|
||||||
|
#connectWith: ".receptable"
|
||||||
|
tolerance: "pointer"
|
||||||
|
revert: "invalid"
|
||||||
|
|
||||||
|
$(this).find(".reset").click ->
|
||||||
|
$(this).closest(".places_jeu2").html archive
|
||||||
|
$(this).closest(".places_jeu2").find(".success").hide()
|
||||||
|
intialize_places_jeu2()
|
||||||
|
|
||||||
|
|
||||||
|
intialize_places_jeu = () ->
|
||||||
|
$(".places_jeu").each ->
|
||||||
|
archive = $(this).html()
|
||||||
|
$(this).find(".receptable").droppable
|
||||||
|
tolerance: "touch"
|
||||||
|
accept: (e) ->
|
||||||
|
if e.data("rep") == $(this).data("rep")
|
||||||
|
true
|
||||||
|
drop: ( event, ui ) ->
|
||||||
|
|
||||||
|
$( this ).append(ui.draggable)
|
||||||
|
ui.draggable.attr("style", "")
|
||||||
|
|
||||||
|
if $(this).closest(".places_jeu").find(".vignettes img").size() == 0
|
||||||
|
$(this).closest(".places_jeu").find(".success").show()
|
||||||
|
|
||||||
|
$(this).find(".vignettes img").draggable
|
||||||
|
#connectWith: ".receptable"
|
||||||
|
tolerance: "pointer"
|
||||||
|
revert: "invalid"
|
||||||
|
|
||||||
|
$(this).find(".reset").click ->
|
||||||
|
$(this).closest(".places_jeu").html archive
|
||||||
|
$(this).closest(".places_jeu").find(".success").hide()
|
||||||
|
intialize_places_jeu()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
intialize_puzzle = () ->
|
intialize_puzzle = () ->
|
||||||
$(".puzzle").each ->
|
$(".puzzle").each ->
|
||||||
archive = $(this).html()
|
archive = $(this).html()
|
||||||
@ -220,7 +235,7 @@ intialize_arbre = () ->
|
|||||||
win = false unless i is $(this).data("order")
|
win = false unless i is $(this).data("order")
|
||||||
|
|
||||||
if win is true
|
if win is true
|
||||||
$(".success").show()
|
$(".vie-arbre-place .success").show()
|
||||||
|
|
||||||
$(".vie-arbre.story").closest(".sortable_quizz").find(".reset").click ->
|
$(".vie-arbre.story").closest(".sortable_quizz").find(".reset").click ->
|
||||||
$(".vie-arbre.story").closest(".sortable_quizz").html archive
|
$(".vie-arbre.story").closest(".sortable_quizz").html archive
|
||||||
@ -259,7 +274,8 @@ $(document).ready ->
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
intialize_places_jeu2()
|
||||||
|
intialize_places_jeu()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
4269
app/assets/javascripts/redactor.js
Executable file
4269
app/assets/javascripts/redactor.js
Executable file
File diff suppressed because it is too large
Load Diff
791
app/assets/javascripts/shared/jquery-ui.js
vendored
Executable file
791
app/assets/javascripts/shared/jquery-ui.js
vendored
Executable file
@ -0,0 +1,791 @@
|
|||||||
|
/*!
|
||||||
|
* jQuery UI 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI
|
||||||
|
*/
|
||||||
|
(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.16",
|
||||||
|
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=
|
||||||
|
this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,
|
||||||
|
"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":
|
||||||
|
"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,
|
||||||
|
outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,
|
||||||
|
"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&
|
||||||
|
a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&
|
||||||
|
c.ui.isOverAxis(b,e,i)}})}})(jQuery);
|
||||||
|
;/*!
|
||||||
|
* jQuery UI Widget 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Widget
|
||||||
|
*/
|
||||||
|
(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=
|
||||||
|
function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):
|
||||||
|
d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=
|
||||||
|
b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
|
||||||
|
"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
|
||||||
|
c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
|
||||||
|
;/*!
|
||||||
|
* jQuery UI Mouse 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Mouse
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+
|
||||||
|
this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=
|
||||||
|
this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&&
|
||||||
|
!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
|
||||||
|
false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Position 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Position
|
||||||
|
*/
|
||||||
|
(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY,
|
||||||
|
left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+=
|
||||||
|
k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-=
|
||||||
|
m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left=
|
||||||
|
d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+=
|
||||||
|
a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b),
|
||||||
|
g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Draggable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Draggables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
|
||||||
|
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b=
|
||||||
|
this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;if(b.iframeFix)d(b.iframeFix===true?"iframe":b.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")});return true},_mouseStart:function(a){var b=this.options;
|
||||||
|
this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
|
||||||
|
this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);d.ui.ddmanager&&d.ui.ddmanager.dragStart(this,a);return true},
|
||||||
|
_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=
|
||||||
|
false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,
|
||||||
|
10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},_mouseUp:function(a){this.options.iframeFix===true&&d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});d.ui.ddmanager&&d.ui.ddmanager.dragStop(this,a);return d.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||
|
||||||
|
!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&
|
||||||
|
a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
|
||||||
|
this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
|
||||||
|
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),
|
||||||
|
10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[a.containment=="document"?0:d(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a.containment=="document"?0:d(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,
|
||||||
|
(a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){a=d(a.containment);var b=a[0];if(b){a.offset();var c=d(b).css("overflow")!=
|
||||||
|
"hidden";this.containment=[(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0),(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0),(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),
|
||||||
|
10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=a}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+
|
||||||
|
this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&
|
||||||
|
!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,h=a.pageY;if(this.originalPosition){var g;if(this.containment){if(this.relative_container){g=this.relative_container.offset();g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]}else g=this.containment;if(a.pageX-this.offset.click.left<g[0])e=g[0]+this.offset.click.left;
|
||||||
|
if(a.pageY-this.offset.click.top<g[1])h=g[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>g[2])e=g[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>g[3])h=g[3]+this.offset.click.top}if(b.grid){h=b.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/b.grid[1])*b.grid[1]:this.originalPageY;h=g?!(h-this.offset.click.top<g[1]||h-this.offset.click.top>g[3])?h:!(h-this.offset.click.top<g[1])?h-b.grid[1]:h+b.grid[1]:h;e=b.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/
|
||||||
|
b.grid[0])*b.grid[0]:this.originalPageX;e=g?!(e-this.offset.click.left<g[0]||e-this.offset.click.left>g[2])?e:!(e-this.offset.click.left<g[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version<
|
||||||
|
526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b,
|
||||||
|
c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.16"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var h=d.data(this,"sortable");if(h&&!h.options.disabled){c.sortables.push({instance:h,shouldRevert:h.options.revert});
|
||||||
|
h.refreshPositions();h._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=
|
||||||
|
false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=d(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);
|
||||||
|
this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;
|
||||||
|
c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&
|
||||||
|
this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("opacity"))b._opacity=
|
||||||
|
a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!=
|
||||||
|
"x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-b.overflowOffset.left<
|
||||||
|
c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()-
|
||||||
|
c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this,
|
||||||
|
width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,h=b.offset.left,g=h+c.helperProportions.width,n=b.offset.top,o=n+c.helperProportions.height,i=c.snapElements.length-1;i>=0;i--){var j=c.snapElements[i].left,l=j+c.snapElements[i].width,k=c.snapElements[i].top,m=k+c.snapElements[i].height;if(j-e<h&&h<l+e&&k-e<n&&n<m+e||j-e<h&&h<l+e&&k-e<o&&o<m+e||j-e<g&&g<l+e&&k-e<n&&n<m+e||j-e<g&&g<l+e&&k-e<o&&
|
||||||
|
o<m+e){if(f.snapMode!="inner"){var p=Math.abs(k-o)<=e,q=Math.abs(m-n)<=e,r=Math.abs(j-g)<=e,s=Math.abs(l-h)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l}).left-c.margins.left}var t=
|
||||||
|
p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(k-n)<=e;q=Math.abs(m-o)<=e;r=Math.abs(j-h)<=e;s=Math.abs(l-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[i].snapping&&
|
||||||
|
(p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=p||q||r||s||t}else{c.snapElements[i].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"),
|
||||||
|
10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Droppable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Droppables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.draggable.js
|
||||||
|
*/
|
||||||
|
(function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this);
|
||||||
|
a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){if(a=="accept")this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&
|
||||||
|
this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
|
||||||
|
this._trigger("over",a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=
|
||||||
|
d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
|
||||||
|
a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.16"});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height;
|
||||||
|
switch(c){case "fit":return i<=e&&g<=k&&j<=f&&h<=l;case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>=
|
||||||
|
i&&e<=k||g>=i&&g<=k||e<i&&g>k);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css("display")!=
|
||||||
|
"none";if(c[f].visible){e=="mousedown"&&c[f]._activate.call(c[f],b);c[f].offset=c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight}}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||
|
||||||
|
a.element)){this.isout=1;this.isover=0;this._deactivate.call(this,b)}}});return c},dragStart:function(a,b){a.element.parents(":not(body,html)").bind("scroll.droppable",function(){a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)})},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance);
|
||||||
|
if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){e=d.data(g[0],"droppable");e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,b)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,b);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,b)}}}})},dragStop:function(a,b){a.element.parents(":not(body,html)").unbind("scroll.droppable");
|
||||||
|
a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)}}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Resizable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Resizables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(e){e.widget("ui.resizable",e.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,a=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
|
||||||
|
_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&e.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
|
||||||
|
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
|
||||||
|
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
|
||||||
|
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d<c.length;d++){var f=e.trim(c[d]),g=e('<div class="ui-resizable-handle '+("ui-resizable-"+f)+'"></div>');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor==
|
||||||
|
String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection();
|
||||||
|
this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){if(!a.disabled){e(this).removeClass("ui-resizable-autohide");b._handles.show()}},function(){if(!a.disabled)if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();
|
||||||
|
var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=
|
||||||
|
false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"});
|
||||||
|
this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff=
|
||||||
|
{width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];
|
||||||
|
if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},
|
||||||
|
_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;f=f?0:c.sizeDiff.width;f={width:c.helper.width()-f,height:c.helper.height()-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,
|
||||||
|
{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(b){var a=this.options,c,d,f;a={minWidth:k(a.minWidth)?a.minWidth:0,maxWidth:k(a.maxWidth)?a.maxWidth:Infinity,minHeight:k(a.minHeight)?a.minHeight:0,maxHeight:k(a.maxHeight)?a.maxHeight:
|
||||||
|
Infinity};if(this._aspectRatio||b){b=a.minHeight*this.aspectRatio;d=a.minWidth/this.aspectRatio;c=a.maxHeight*this.aspectRatio;f=a.maxWidth/this.aspectRatio;if(b>a.minWidth)a.minWidth=b;if(d>a.minHeight)a.minHeight=d;if(c<a.maxWidth)a.maxWidth=c;if(f<a.maxHeight)a.maxHeight=f}this._vBoundaries=a},_updateCache:function(b){this.offset=this.helper.offset();if(k(b.left))this.position.left=b.left;if(k(b.top))this.position.top=b.top;if(k(b.height))this.size.height=b.height;if(k(b.width))this.size.width=
|
||||||
|
b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(k(b.height))b.width=b.height*this.aspectRatio;else if(k(b.width))b.height=b.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(d=="nw"){b.top=a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this._vBoundaries,c=this.axis,d=k(b.width)&&a.maxWidth&&a.maxWidth<b.width,f=k(b.height)&&a.maxHeight&&a.maxHeight<b.height,g=k(b.width)&&a.minWidth&&
|
||||||
|
a.minWidth>b.width,h=k(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,l=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&l)b.left=i-a.minWidth;if(d&&l)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=
|
||||||
|
null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],f=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=e.map(d,function(g,h){g=parseInt(g,10)||
|
||||||
|
0;h=parseInt(f[h],10)||0;return g+h})}e.browser.msie&&(e(b).is(":hidden")||e(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+
|
||||||
|
a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+
|
||||||
|
c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);
|
||||||
|
b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"1.8.16"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),
|
||||||
|
10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-
|
||||||
|
f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var l=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:l.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n=(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(l.css("position"))){c._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?
|
||||||
|
e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=
|
||||||
|
e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,
|
||||||
|
step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=
|
||||||
|
e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;
|
||||||
|
var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:
|
||||||
|
a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-
|
||||||
|
d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,
|
||||||
|
f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,
|
||||||
|
display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=
|
||||||
|
e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=
|
||||||
|
d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},k=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Selectable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Selectables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),
|
||||||
|
selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX,
|
||||||
|
c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting",
|
||||||
|
c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d=
|
||||||
|
this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.right<b||a.top>i||a.bottom<g);else if(d.tolerance=="fit")k=a.left>b&&a.right<h&&a.top>g&&a.bottom<i;if(k){if(a.selected){a.$element.removeClass("ui-selected");a.selected=false}if(a.unselecting){a.$element.removeClass("ui-unselecting");
|
||||||
|
a.unselecting=false}if(!a.selecting){a.$element.addClass("ui-selecting");a.selecting=true;f._trigger("selecting",c,{selecting:a.element})}}else{if(a.selecting)if(c.metaKey&&a.startselected){a.$element.removeClass("ui-selecting");a.selecting=false;a.$element.addClass("ui-selected");a.selected=true}else{a.$element.removeClass("ui-selecting");a.selecting=false;if(a.startselected){a.$element.addClass("ui-unselecting");a.unselecting=true}f._trigger("unselecting",c,{unselecting:a.element})}if(a.selected)if(!c.metaKey&&
|
||||||
|
!a.startselected){a.$element.removeClass("ui-selected");a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;f._trigger("unselecting",c,{unselecting:a.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;e(".ui-unselecting",this.element[0]).each(function(){var d=e.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;f._trigger("unselected",c,{unselected:d.element})});e(".ui-selecting",this.element[0]).each(function(){var d=
|
||||||
|
e.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;f._trigger("selected",c,{selected:d.element})});this._trigger("stop",c);this.helper.remove();return false}});e.extend(e.ui.selectable,{version:"1.8.16"})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Sortable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Sortables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");
|
||||||
|
this.refresh();this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a===
|
||||||
|
"disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&
|
||||||
|
!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,
|
||||||
|
left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
|
||||||
|
this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=
|
||||||
|
document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);
|
||||||
|
return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top<
|
||||||
|
b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()-
|
||||||
|
b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,
|
||||||
|
a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],
|
||||||
|
e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();
|
||||||
|
c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):
|
||||||
|
this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null,
|
||||||
|
dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):d(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")},
|
||||||
|
toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||
|
||||||
|
this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection();
|
||||||
|
var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&&c=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)},
|
||||||
|
_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();
|
||||||
|
if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),
|
||||||
|
this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element),
|
||||||
|
this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&
|
||||||
|
this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b];if(!(c.instance!=this.currentContainer&&this.currentContainer&&c.item[0]!=this.currentItem[0])){var e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=
|
||||||
|
this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=
|
||||||
|
d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||
|
||||||
|
0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",
|
||||||
|
a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-
|
||||||
|
f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b=
|
||||||
|
this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==
|
||||||
|
""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=
|
||||||
|
this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a=
|
||||||
|
{top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),
|
||||||
|
10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?
|
||||||
|
document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),
|
||||||
|
10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b=
|
||||||
|
this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&
|
||||||
|
this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();
|
||||||
|
var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-
|
||||||
|
this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g-
|
||||||
|
this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],
|
||||||
|
this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]=
|
||||||
|
"";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove",
|
||||||
|
f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,
|
||||||
|
this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",
|
||||||
|
a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},
|
||||||
|
_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});d.extend(d.ui.sortable,{version:"1.8.16"})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Accordion 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Accordion
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
|
||||||
|
a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
|
||||||
|
if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",
|
||||||
|
function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a=
|
||||||
|
this.options;if(a.icons){c("<span></span>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
|
||||||
|
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();
|
||||||
|
b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target);
|
||||||
|
a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+
|
||||||
|
c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options;
|
||||||
|
if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
|
||||||
|
if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),
|
||||||
|
e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight||
|
||||||
|
e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",
|
||||||
|
"aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.16",
|
||||||
|
animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);
|
||||||
|
f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",
|
||||||
|
paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Autocomplete 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Autocomplete
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
* jquery.ui.position.js
|
||||||
|
*/
|
||||||
|
(function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.propAttr("readOnly"))){g=
|
||||||
|
false;var f=d.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=
|
||||||
|
a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};
|
||||||
|
this.menu=d("<ul></ul>").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&&
|
||||||
|
a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
|
||||||
|
d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&&
|
||||||
|
b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source=
|
||||||
|
this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==false)return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();
|
||||||
|
this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return d.map(a,function(b){if(typeof b==="string")return{label:b,value:b};return d.extend({label:b.label||
|
||||||
|
b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(d.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new d.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(a,b){var g=this;
|
||||||
|
d.each(b,function(c,f){g._renderItem(a,f)})},_renderItem:function(a,b){return d("<li></li>").data("item.autocomplete",b).append(d("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
|
||||||
|
"\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery);
|
||||||
|
(function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
|
||||||
|
-1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.scrollTop(),c=this.element.height();if(b<0)this.element.scrollTop(g+b);else b>=c&&this.element.scrollTop(g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
|
||||||
|
this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b,
|
||||||
|
this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e,g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||
|
||||||
|
this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||
|
||||||
|
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[d.fn.prop?"prop":"attr"]("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Button 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Button
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(b){var h,i,j,g,l=function(){var a=b(this).find(":ui-button");setTimeout(function(){a.button("refresh")},1)},k=function(a){var c=a.name,e=a.form,f=b([]);if(c)f=e?b(e).find("[name='"+c+"']"):b("[name='"+c+"']",a.ownerDocument).filter(function(){return!this.form});return f};b.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",l);if(typeof this.options.disabled!==
|
||||||
|
"boolean")this.options.disabled=this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var a=this,c=this.options,e=this.type==="checkbox"||this.type==="radio",f="ui-state-hover"+(!e?" ui-state-active":"");if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(":disabled"))c.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!c.disabled){b(this).addClass("ui-state-hover");
|
||||||
|
this===h&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){c.disabled||b(this).removeClass(f)}).bind("click.button",function(d){if(c.disabled){d.preventDefault();d.stopImmediatePropagation()}});this.element.bind("focus.button",function(){a.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){a.buttonElement.removeClass("ui-state-focus")});if(e){this.element.bind("change.button",function(){g||a.refresh()});this.buttonElement.bind("mousedown.button",function(d){if(!c.disabled){g=
|
||||||
|
false;i=d.pageX;j=d.pageY}}).bind("mouseup.button",function(d){if(!c.disabled)if(i!==d.pageX||j!==d.pageY)g=true})}if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(c.disabled||g)return false;b(this).toggleClass("ui-state-active");a.buttonElement.attr("aria-pressed",a.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(c.disabled||g)return false;b(this).addClass("ui-state-active");a.buttonElement.attr("aria-pressed","true");
|
||||||
|
var d=a.element[0];k(d).not(d).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")});else{this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return false;b(this).addClass("ui-state-active");h=this;b(document).one("mouseup",function(){h=null})}).bind("mouseup.button",function(){if(c.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(d){if(c.disabled)return false;if(d.keyCode==b.ui.keyCode.SPACE||
|
||||||
|
d.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(d){d.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",c.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type===
|
||||||
|
"radio"){var a=this.element.parents().filter(":last"),c="label[for='"+this.element.attr("id")+"']";this.buttonElement=a.find(c);if(!this.buttonElement.length){a=a.length?a.siblings():this.element.siblings();this.buttonElement=a.filter(c);if(!this.buttonElement.length)this.buttonElement=a.find(c)}this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else this.buttonElement=this.element},
|
||||||
|
widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");
|
||||||
|
b.Widget.prototype.destroy.call(this)},_setOption:function(a,c){b.Widget.prototype._setOption.apply(this,arguments);if(a==="disabled")c?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false);else this._resetButton()},refresh:function(){var a=this.element.is(":disabled");a!==this.options.disabled&&this._setOption("disabled",a);if(this.type==="radio")k(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
|
||||||
|
"true"):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var a=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
|
||||||
|
c=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),e=this.options.icons,f=e.primary&&e.secondary,d=[];if(e.primary||e.secondary){if(this.options.text)d.push("ui-button-text-icon"+(f?"s":e.primary?"-primary":"-secondary"));e.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+e.primary+"'></span>");e.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+e.secondary+"'></span>");if(!this.options.text){d.push(f?"ui-button-icons-only":
|
||||||
|
"ui-button-icon-only");this.hasTitle||a.attr("title",c)}}else d.push("ui-button-text-only");a.addClass(d.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,c){a==="disabled"&&this.buttons.button("option",a,c);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var a=this.element.css("direction")===
|
||||||
|
"ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(a?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(a?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
|
||||||
|
b.Widget.prototype.destroy.call(this)}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Dialog 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Dialog
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
* jquery.ui.button.js
|
||||||
|
* jquery.ui.draggable.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.position.js
|
||||||
|
* jquery.ui.resizable.js
|
||||||
|
*/
|
||||||
|
(function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,
|
||||||
|
position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
|
||||||
|
b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),
|
||||||
|
h=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").addClass("ui-dialog-title").attr("id",
|
||||||
|
e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
|
||||||
|
a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!==
|
||||||
|
b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()};c.ui.dialog.maxZ+=1;
|
||||||
|
d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target===
|
||||||
|
f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a,
|
||||||
|
function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('<button type="button"></button>').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
|
||||||
|
handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition,
|
||||||
|
originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize",
|
||||||
|
f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "):
|
||||||
|
[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f);
|
||||||
|
if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"):
|
||||||
|
e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a=
|
||||||
|
this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height-
|
||||||
|
b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),
|
||||||
|
create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()<c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()||
|
||||||
|
c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&&
|
||||||
|
c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<b?c(window).width()+"px":a+"px"}else return c(document).width()+
|
||||||
|
"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Slider 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Slider
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options,c=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=b.values&&b.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
|
||||||
|
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(b.disabled?" ui-slider-disabled ui-disabled":""));this.range=d([]);if(b.range){if(b.range===true){if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}this.range=d("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j<f;j+=1)e.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
|
||||||
|
this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle",
|
||||||
|
g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length?
|
||||||
|
(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i-
|
||||||
|
m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();
|
||||||
|
return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false;
|
||||||
|
this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=
|
||||||
|
this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=
|
||||||
|
this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);
|
||||||
|
c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c<f))c=f;if(c!==this.values(b)){f=this.values();f[b]=c;a=this._trigger("slide",a,{handle:this.handles[b],value:c,values:f});this.values(b?0:1);a!==false&&this.values(b,c,true)}}else if(c!==this.value()){a=this._trigger("slide",a,{handle:this.handles[b],value:c});
|
||||||
|
a!==false&&this.value(c)}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=
|
||||||
|
this._trimAlignValue(a);this._refreshValue();this._change(null,0)}else return this._value()},values:function(a,b){var c,f,e;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e<c.length;e+=1){c[e]=this._trimAlignValue(f[e]);this._change(null,e)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(a):
|
||||||
|
this.value();else return this._values()},_setOption:function(a,b){var c,f=0;if(d.isArray(this.options.values))f=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(a){case "disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
|
||||||
|
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<f;c+=1)this._change(null,c);this._animateOff=false;break}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c;if(arguments.length){b=this.options.values[a];
|
||||||
|
return b=this._trimAlignValue(b)}else{b=this.options.values.slice();for(c=0;c<b.length;c+=1)b[c]=this._trimAlignValue(b[c]);return b}},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=
|
||||||
|
this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e-
|
||||||
|
g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"},
|
||||||
|
b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.16"})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Tabs 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Tabs
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading…</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&&
|
||||||
|
e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=
|
||||||
|
d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]||
|
||||||
|
(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
|
||||||
|
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=
|
||||||
|
this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
|
||||||
|
if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
|
||||||
|
this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+
|
||||||
|
g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",
|
||||||
|
function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")};
|
||||||
|
this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=
|
||||||
|
-1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
|
||||||
|
d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=
|
||||||
|
d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b,
|
||||||
|
e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]);
|
||||||
|
j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();
|
||||||
|
if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=b}),function(h){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null,
|
||||||
|
this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this},
|
||||||
|
load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c,
|
||||||
|
"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
|
||||||
|
url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.16"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k<a.anchors.length?k:0)},b);j&&j.stopPropagation()});e=a._unrotate||(a._unrotate=!e?function(j){j.clientX&&
|
||||||
|
a.rotate(null)}:function(){t=c.selected;h()});if(b){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Datepicker 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Datepicker
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
*/
|
||||||
|
(function(d,C){function M(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
|
||||||
|
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
|
||||||
|
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
|
||||||
|
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function N(a){return a.bind("mouseout",
|
||||||
|
function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
|
||||||
|
b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b)if(b[c]==null||b[c]==C)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.16"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},
|
||||||
|
setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,
|
||||||
|
"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",
|
||||||
|
function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c==
|
||||||
|
"focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():
|
||||||
|
d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++)if(f[g].length>h){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,
|
||||||
|
b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=
|
||||||
|
1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/
|
||||||
|
2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=
|
||||||
|
d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=
|
||||||
|
a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,
|
||||||
|
"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==
|
||||||
|
a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?
|
||||||
|
d.extend({},e.settings):this._get(e,b):null;var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");H(e.settings,f);if(i!==null&&f.dateFormat!==C&&f.minDate===C)e.settings.minDate=this._formatDate(e,i);if(g!==null&&f.dateFormat!==C&&f.maxDate===C)e.settings.maxDate=this._formatDate(e,g);this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e);
|
||||||
|
this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");
|
||||||
|
b._keyEvent=true;if(d.datepicker._datepickerShowing)switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]&&d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]);if(a=d.datepicker._get(b,"onSelect")){c=d.datepicker._formatDate(b);a.apply(b.input?b.input[0]:null,[c,b])}else d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,
|
||||||
|
a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D");c=
|
||||||
|
a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?-1:+1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,
|
||||||
|
"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else if(a.keyCode==36&&a.ctrlKey)d.datepicker._showDatepicker(this);else c=false;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==C?a.keyCode:a.charCode);
|
||||||
|
return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input",
|
||||||
|
a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");c=c?c.apply(a,[a,b]):{};if(c!==false){H(b.settings,c);b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value=
|
||||||
|
"";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);
|
||||||
|
c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=
|
||||||
|
true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});
|
||||||
|
a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&
|
||||||
|
!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),
|
||||||
|
h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=
|
||||||
|
this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b)b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);
|
||||||
|
this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
|
||||||
|
_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):
|
||||||
|
0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?
|
||||||
|
"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);
|
||||||
|
this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");
|
||||||
|
if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?
|
||||||
|
b.toString():b+"";if(b=="")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1<a.length&&a.charAt(A+1)==p)&&A++;return p},m=function(p){var D=
|
||||||
|
o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&D?4:p=="o"?3:2)+"}");p=b.substring(q).match(p);if(!p)throw"Missing number at position "+q;q+=p[0].length;return parseInt(p[0],10)},n=function(p,D,K){p=d.map(o(p)?K:D,function(w,x){return[[x,w]]}).sort(function(w,x){return-(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=x[1];if(b.substr(q,w.length).toLowerCase()==w.toLowerCase()){E=x[0];q+=w.length;return false}});if(E!=-1)return E+1;else throw"Unknown name at position "+q;},s=
|
||||||
|
function(){if(b.charAt(q)!=a.charAt(A))throw"Unexpected literal at position "+q;q++},q=0,A=0;A<a.length;A++)if(k)if(a.charAt(A)=="'"&&!o("'"))k=false;else s();else switch(a.charAt(A)){case "d":l=m("d");break;case "D":n("D",f,h);break;case "o":u=m("o");break;case "m":j=m("m");break;case "M":j=n("M",i,g);break;case "y":c=m("y");break;case "@":var v=new Date(m("@"));c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case "!":v=new Date((m("!")-this._ticksTo1970)/1E4);c=v.getFullYear();j=v.getMonth()+
|
||||||
|
1;l=v.getDate();break;case "'":if(o("'"))s();else k=true;break;default:s()}if(q<b.length)throw"Extra/unparsed characters found in date: "+b.substring(q);if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",
|
||||||
|
COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:
|
||||||
|
null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o))for(;m.length<n;)m="0"+m;return m},j=function(o,m,n,s){return i(o)?s[m]:n[m]},l="",u=false;if(b)for(var k=0;k<a.length;k++)if(u)if(a.charAt(k)=="'"&&!i("'"))u=false;else l+=a.charAt(k);else switch(a.charAt(k)){case "d":l+=g("d",b.getDate(),2);break;case "D":l+=j("D",b.getDay(),e,f);break;case "o":l+=g("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-
|
||||||
|
(new Date(b.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":l+=g("m",b.getMonth()+1,2);break;case "M":l+=j("M",b.getMonth(),h,c);break;case "y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "!":l+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))l+="'";else u=true;break;default:l+=a.charAt(k)}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=
|
||||||
|
0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==C?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);
|
||||||
|
var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;
|
||||||
|
i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case "d":case "D":g+=parseInt(k[1],10);break;case "w":case "W":g+=parseInt(k[1],10)*7;break;case "m":case "M":l+=parseInt(k[1],10);g=
|
||||||
|
Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case "y":case "Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>
|
||||||
|
12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&
|
||||||
|
a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?
|
||||||
|
new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));
|
||||||
|
n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,
|
||||||
|
g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&
|
||||||
|
a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+B+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
|
||||||
|
B+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){var O=
|
||||||
|
"";this.maxRows=4;for(var G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";if(l){y+='<div class="ui-datepicker-group';if(i[1]>1)switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&
|
||||||
|
x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var z=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[r]+'">'+q[r]+"</span></th>"}y+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,
|
||||||
|
z);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<z;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(r)+"</td>";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&r<k||o&&r>o;R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(r.getTime()==
|
||||||
|
P.getTime()&&g==a.selectedMonth&&a._keyEvent||E.getTime()==r.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!D?"":" "+I[1]+(r.getTime()==u.getTime()?" "+this._currentClass:"")+(r.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||D)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+B+".datepicker._selectDay('#"+a.id+"',"+r.getMonth()+","+r.getFullYear()+', this);return false;"')+">"+(F&&!D?" ":L?'<span class="ui-state-default">'+
|
||||||
|
r.getDate()+"</span>":'<a class="ui-state-default'+(r.getTime()==b.getTime()?" ui-state-highlight":"")+(r.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+r.getDate()+"</a>")+"</td>";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+"</tr>"}g++;if(g>11){g=0;m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
|
||||||
|
"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";if(h||!j)o+='<span class="ui-datepicker-month">'+i[b]+"</span>";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&&
|
||||||
|
(!m||n<=f.getMonth()))o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>";o+="</select>"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l)k+='<span class="ui-datepicker-year">'+c+"</span>";else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,
|
||||||
|
e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";b<=g;b++)a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u)k+=(h||!(j&&l)?" ":"")+o;k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+
|
||||||
|
(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b)b.apply(a.input?
|
||||||
|
a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,
|
||||||
|
e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,
|
||||||
|
"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length)return this;
|
||||||
|
if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));return this.each(function(){typeof a==
|
||||||
|
"string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.16";window["DP_jQuery_"+B]=d})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Progressbar 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Progressbar
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
|
||||||
|
this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===d)return this._value();this._setOption("value",a);return this},_setOption:function(a,c){if(a==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*
|
||||||
|
this._value()/this.options.max},_refreshValue:function(){var a=this.value(),c=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.16"})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/
|
||||||
|
*/
|
||||||
|
jQuery.effects||function(f,j){function m(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
|
||||||
|
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
|
||||||
|
a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
|
||||||
|
a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function l(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor",
|
||||||
|
"borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,
|
||||||
|
0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,
|
||||||
|
211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,
|
||||||
|
d){if(f.isFunction(b)){d=b;b=null}return this.queue(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("class");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("class",v);e.animate(u(h,r),{queue:false,duration:a,easing:b,complete:function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments);f.dequeue(this)}})})};
|
||||||
|
f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,
|
||||||
|
[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.16",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=
|
||||||
|
0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),
|
||||||
|
d=document.activeElement;c.wrap(b);if(c[0]===d||f.contains(c[0],d))f(d).focus();b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(e,g){a[g]=c.css(g);if(isNaN(parseInt(a[g],10)))a[g]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){var a,b=document.activeElement;
|
||||||
|
if(c.parent().is(".ui-effects-wrapper")){a=c.parent().replaceWith(c);if(c[0]===b||f.contains(c[0],b))f(b).focus();return a}return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});
|
||||||
|
return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,
|
||||||
|
arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/
|
||||||
|
2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,
|
||||||
|
d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,
|
||||||
|
a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,
|
||||||
|
d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g=
|
||||||
|
0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;
|
||||||
|
if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c,
|
||||||
|
a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Blind 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Blind
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a,
|
||||||
|
g);b.effects.removeWrapper(a);c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Bounce 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Bounce
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(e){e.effects.bounce=function(b){return this.queue(function(){var a=e(this),l=["position","top","bottom","left","right"],h=e.effects.setMode(a,b.options.mode||"effect"),d=b.options.direction||"up",c=b.options.distance||20,m=b.options.times||5,i=b.duration||250;/show|hide/.test(h)&&l.push("opacity");e.effects.save(a,l);a.show();e.effects.createWrapper(a);var f=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";c=b.options.distance||(f=="top"?a.outerHeight({margin:true})/3:a.outerWidth({margin:true})/
|
||||||
|
3);if(h=="show")a.css("opacity",0).css(f,d=="pos"?-c:c);if(h=="hide")c/=m*2;h!="hide"&&m--;if(h=="show"){var g={opacity:1};g[f]=(d=="pos"?"+=":"-=")+c;a.animate(g,i/2,b.options.easing);c/=2;m--}for(g=0;g<m;g++){var j={},k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing);c=h=="hide"?c*2:c/2}if(h=="hide"){g={opacity:0};g[f]=(d=="pos"?"-=":"+=")+c;a.animate(g,i/2,b.options.easing,function(){a.hide();e.effects.restore(a,l);e.effects.removeWrapper(a);
|
||||||
|
b.callback&&b.callback.apply(this,arguments)})}else{j={};k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){e.effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments)})}a.queue("fx",function(){a.dequeue()});a.dequeue()})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Clip 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Clip
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(b){b.effects.clip=function(e){return this.queue(function(){var a=b(this),i=["position","top","bottom","left","right","height","width"],f=b.effects.setMode(a,e.options.mode||"hide"),c=e.options.direction||"vertical";b.effects.save(a,i);a.show();var d=b.effects.createWrapper(a).css({overflow:"hidden"});d=a[0].tagName=="IMG"?d:a;var g={size:c=="vertical"?"height":"width",position:c=="vertical"?"top":"left"};c=c=="vertical"?d.height():d.width();if(f=="show"){d.css(g.size,0);d.css(g.position,
|
||||||
|
c/2)}var h={};h[g.size]=f=="show"?c:0;h[g.position]=f=="show"?0:c/2;d.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){f=="hide"&&a.hide();b.effects.restore(a,i);b.effects.removeWrapper(a);e.callback&&e.callback.apply(a[0],arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Drop 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Drop
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(c){c.effects.drop=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right","opacity"],e=c.effects.setMode(a,d.options.mode||"hide"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a);var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var g=d.options.distance||(f=="top"?a.outerHeight({margin:true})/2:a.outerWidth({margin:true})/2);if(e=="show")a.css("opacity",0).css(f,b=="pos"?-g:g);var i={opacity:e==
|
||||||
|
"show"?1:0};i[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Explode 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Explode
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(j){j.effects.explode=function(a){return this.queue(function(){var c=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3,d=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode=="toggle"?j(this).is(":visible")?"hide":"show":a.options.mode;var b=j(this).show().css("visibility","hidden"),g=b.offset();g.top-=parseInt(b.css("marginTop"),10)||0;g.left-=parseInt(b.css("marginLeft"),10)||0;for(var h=b.outerWidth(true),i=b.outerHeight(true),e=0;e<c;e++)for(var f=
|
||||||
|
0;f<d;f++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+
|
||||||
|
e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Fade 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Fade
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Fold 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Fold
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","bottom","left","right"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1],
|
||||||
|
10)/100*f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Highlight 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Highlight
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&&
|
||||||
|
this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Pulsate 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Pulsate
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c<times;c++){b.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}b.animate({opacity:animateTo},duration,
|
||||||
|
a.options.easing,function(){animateTo==0&&b.hide();a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()}).dequeue()})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Scale 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Scale
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(c){c.effects.puff=function(b){return this.queue(function(){var a=c(this),e=c.effects.setMode(a,b.options.mode||"hide"),g=parseInt(b.options.percent,10)||150,h=g/100,i={height:a.height(),width:a.width()};c.extend(b.options,{fade:true,mode:e,percent:e=="hide"?g:100,from:e=="hide"?i:{height:i.height*h,width:i.width*h}});a.effect("scale",b.options,b.duration,b.callback);a.dequeue()})};c.effects.scale=function(b){return this.queue(function(){var a=c(this),e=c.extend(true,{},b.options),g=c.effects.setMode(a,
|
||||||
|
b.options.mode||"effect"),h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:g=="hide"?0:100),i=b.options.direction||"both",f=b.options.origin;if(g!="effect"){e.origin=f||["middle","center"];e.restore=true}f={height:a.height(),width:a.width()};a.from=b.options.from||(g=="show"?{height:0,width:0}:f);h={y:i!="horizontal"?h/100:1,x:i!="vertical"?h/100:1};a.to={height:f.height*h.y,width:f.width*h.x};if(b.options.fade){if(g=="show"){a.from.opacity=0;a.to.opacity=1}if(g=="hide"){a.from.opacity=
|
||||||
|
1;a.to.opacity=0}}e.from=a.from;e.to=a.to;e.mode=g;a.effect("size",e,b.duration,b.callback);a.dequeue()})};c.effects.size=function(b){return this.queue(function(){var a=c(this),e=["position","top","bottom","left","right","width","height","overflow","opacity"],g=["position","top","bottom","left","right","overflow","opacity"],h=["width","height","overflow"],i=["fontSize"],f=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],k=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
|
||||||
|
p=c.effects.setMode(a,b.options.mode||"effect"),n=b.options.restore||false,m=b.options.scale||"both",l=b.options.origin,j={height:a.height(),width:a.width()};a.from=b.options.from||j;a.to=b.options.to||j;if(l){l=c.effects.getBaseline(l,j);a.from.top=(j.height-a.from.height)*l.y;a.from.left=(j.width-a.from.width)*l.x;a.to.top=(j.height-a.to.height)*l.y;a.to.left=(j.width-a.to.width)*l.x}var d={from:{y:a.from.height/j.height,x:a.from.width/j.width},to:{y:a.to.height/j.height,x:a.to.width/j.width}};
|
||||||
|
if(m=="box"||m=="both"){if(d.from.y!=d.to.y){e=e.concat(f);a.from=c.effects.setTransition(a,f,d.from.y,a.from);a.to=c.effects.setTransition(a,f,d.to.y,a.to)}if(d.from.x!=d.to.x){e=e.concat(k);a.from=c.effects.setTransition(a,k,d.from.x,a.from);a.to=c.effects.setTransition(a,k,d.to.x,a.to)}}if(m=="content"||m=="both")if(d.from.y!=d.to.y){e=e.concat(i);a.from=c.effects.setTransition(a,i,d.from.y,a.from);a.to=c.effects.setTransition(a,i,d.to.y,a.to)}c.effects.save(a,n?e:g);a.show();c.effects.createWrapper(a);
|
||||||
|
a.css("overflow","hidden").css(a.from);if(m=="content"||m=="both"){f=f.concat(["marginTop","marginBottom"]).concat(i);k=k.concat(["marginLeft","marginRight"]);h=e.concat(f).concat(k);a.find("*[width]").each(function(){child=c(this);n&&c.effects.save(child,h);var o={height:child.height(),width:child.width()};child.from={height:o.height*d.from.y,width:o.width*d.from.x};child.to={height:o.height*d.to.y,width:o.width*d.to.x};if(d.from.y!=d.to.y){child.from=c.effects.setTransition(child,f,d.from.y,child.from);
|
||||||
|
child.to=c.effects.setTransition(child,f,d.to.y,child.to)}if(d.from.x!=d.to.x){child.from=c.effects.setTransition(child,k,d.from.x,child.from);child.to=c.effects.setTransition(child,k,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){n&&c.effects.restore(child,h)})})}a.animate(a.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a.to.opacity===0&&a.css("opacity",a.from.opacity);p=="hide"&&a.hide();c.effects.restore(a,
|
||||||
|
n?e:g);c.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Shake 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Shake
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(d){d.effects.shake=function(a){return this.queue(function(){var b=d(this),j=["position","top","bottom","left","right"];d.effects.setMode(b,a.options.mode||"effect");var c=a.options.direction||"left",e=a.options.distance||20,l=a.options.times||3,f=a.duration||a.options.duration||140;d.effects.save(b,j);b.show();d.effects.createWrapper(b);var g=c=="up"||c=="down"?"top":"left",h=c=="up"||c=="left"?"pos":"neg";c={};var i={},k={};c[g]=(h=="pos"?"-=":"+=")+e;i[g]=(h=="pos"?"+=":"-=")+e*2;k[g]=
|
||||||
|
(h=="pos"?"-=":"+=")+e*2;b.animate(c,f,a.options.easing);for(e=1;e<l;e++)b.animate(i,f,a.options.easing).animate(k,f,a.options.easing);b.animate(i,f,a.options.easing).animate(c,f/2,a.options.easing,function(){d.effects.restore(b,j);d.effects.removeWrapper(b);a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Slide 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Slide
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right"],f=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var e=d.options.distance||(g=="top"?a.outerHeight({margin:true}):a.outerWidth({margin:true}));if(f=="show")a.css(g,b=="pos"?isNaN(e)?"-"+e:-e:e);
|
||||||
|
var i={};i[g]=(f=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+e;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Transfer 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Transfer
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(e){e.effects.transfer=function(a){return this.queue(function(){var b=e(this),c=e(a.options.to),d=c.offset();c={top:d.top,left:d.left,height:c.innerHeight(),width:c.innerWidth()};d=b.offset();var f=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments);
|
||||||
|
b.dequeue()})})}})(jQuery);
|
||||||
|
;
|
@ -1,6 +1,6 @@
|
|||||||
@import "./vendor/framework/variables.less";
|
@import "./vendor/framework/variables.less";
|
||||||
@import "./vendor/framework/bootstrap.less";
|
@import "./vendor/framework/bootstrap.less";
|
||||||
@import "./vendor/fontawesome/font-awesome";
|
@import "fontawesome/font-awesome";
|
||||||
|
|
||||||
@import "./vendor/redactor";
|
@import "./vendor/redactor";
|
||||||
|
|
||||||
|
34
app/assets/stylesheets/admin/framework/accordion.less
Executable file
34
app/assets/stylesheets/admin/framework/accordion.less
Executable file
@ -0,0 +1,34 @@
|
|||||||
|
//
|
||||||
|
// Accordion
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Parent container
|
||||||
|
.accordion {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Group == heading + body
|
||||||
|
.accordion-group {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
.accordion-heading {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
.accordion-heading .accordion-toggle {
|
||||||
|
display: block;
|
||||||
|
padding: 8px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// General toggle styles
|
||||||
|
.accordion-toggle {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inner needs the styles because you can't animate properly with any styles on the element
|
||||||
|
.accordion-inner {
|
||||||
|
padding: 9px 15px;
|
||||||
|
border-top: 1px solid #e5e5e5;
|
||||||
|
}
|
79
app/assets/stylesheets/admin/framework/alerts.less
Executable file
79
app/assets/stylesheets/admin/framework/alerts.less
Executable file
@ -0,0 +1,79 @@
|
|||||||
|
//
|
||||||
|
// Alerts
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base styles
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.alert {
|
||||||
|
padding: 8px 35px 8px 14px;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
|
background-color: @warningBackground;
|
||||||
|
border: 1px solid @warningBorder;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
.alert,
|
||||||
|
.alert h4 {
|
||||||
|
// Specified for the h4 to prevent conflicts of changing @headingsColor
|
||||||
|
color: @warningText;
|
||||||
|
}
|
||||||
|
.alert h4 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adjust close link position
|
||||||
|
.alert .close {
|
||||||
|
position: relative;
|
||||||
|
top: -2px;
|
||||||
|
right: -21px;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Alternate styles
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.alert-success {
|
||||||
|
background-color: @successBackground;
|
||||||
|
border-color: @successBorder;
|
||||||
|
color: @successText;
|
||||||
|
}
|
||||||
|
.alert-success h4 {
|
||||||
|
color: @successText;
|
||||||
|
}
|
||||||
|
.alert-danger,
|
||||||
|
.alert-error {
|
||||||
|
background-color: @errorBackground;
|
||||||
|
border-color: @errorBorder;
|
||||||
|
color: @errorText;
|
||||||
|
}
|
||||||
|
.alert-danger h4,
|
||||||
|
.alert-error h4 {
|
||||||
|
color: @errorText;
|
||||||
|
}
|
||||||
|
.alert-info {
|
||||||
|
background-color: @infoBackground;
|
||||||
|
border-color: @infoBorder;
|
||||||
|
color: @infoText;
|
||||||
|
}
|
||||||
|
.alert-info h4 {
|
||||||
|
color: @infoText;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Block alerts
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.alert-block {
|
||||||
|
padding-top: 14px;
|
||||||
|
padding-bottom: 14px;
|
||||||
|
}
|
||||||
|
.alert-block > p,
|
||||||
|
.alert-block > ul {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.alert-block p + p {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
67
app/assets/stylesheets/admin/framework/bootstrap.less
vendored
Executable file
67
app/assets/stylesheets/admin/framework/bootstrap.less
vendored
Executable file
@ -0,0 +1,67 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap v2.3.2
|
||||||
|
*
|
||||||
|
* Copyright 2012 Twitter, Inc
|
||||||
|
* Licensed under the Apache License v2.0
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Core variables and mixins
|
||||||
|
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
|
||||||
|
@import "mixins.less";
|
||||||
|
|
||||||
|
// CSS Reset
|
||||||
|
@import "reset.less";
|
||||||
|
|
||||||
|
// Grid system and page structure
|
||||||
|
@import "scaffolding.less";
|
||||||
|
@import "grid.less";
|
||||||
|
@import "layouts.less";
|
||||||
|
|
||||||
|
// Base CSS
|
||||||
|
@import "type.less";
|
||||||
|
@import "code.less";
|
||||||
|
@import "formt.less";
|
||||||
|
@import "forms.less";
|
||||||
|
@import "tables.less";
|
||||||
|
|
||||||
|
// Components: common
|
||||||
|
@import "sprites.less";
|
||||||
|
@import "dropdowns.less";
|
||||||
|
@import "wells.less";
|
||||||
|
@import "component-animations.less";
|
||||||
|
@import "close.less";
|
||||||
|
|
||||||
|
// Components: Buttons & Alerts
|
||||||
|
@import "buttons.less";
|
||||||
|
@import "button-groups.less";
|
||||||
|
@import "alerts.less"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
|
||||||
|
|
||||||
|
// Components: Nav
|
||||||
|
@import "navs.less";
|
||||||
|
@import "navbar.less";
|
||||||
|
@import "breadcrumbs.less";
|
||||||
|
@import "pagination.less";
|
||||||
|
@import "pager.less";
|
||||||
|
|
||||||
|
// Components: Popovers
|
||||||
|
@import "modals.less";
|
||||||
|
@import "tooltip.less";
|
||||||
|
@import "popovers.less";
|
||||||
|
|
||||||
|
// Components: Misc
|
||||||
|
@import "thumbnails.less";
|
||||||
|
@import "media.less";
|
||||||
|
@import "labels-badges.less";
|
||||||
|
@import "progress-bars.less";
|
||||||
|
@import "accordion.less";
|
||||||
|
@import "carousel.less";
|
||||||
|
@import "hero-unit.less";
|
||||||
|
|
||||||
|
// Utility classes
|
||||||
|
@import "utilities.less"; // Has to be last to override when necessary
|
||||||
|
|
||||||
|
|
||||||
|
@import "slider.less";
|
24
app/assets/stylesheets/admin/framework/breadcrumbs.less
Executable file
24
app/assets/stylesheets/admin/framework/breadcrumbs.less
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
//
|
||||||
|
// Breadcrumbs
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.breadcrumb {
|
||||||
|
padding: 8px 15px;
|
||||||
|
margin: 0 0 @baseLineHeight;
|
||||||
|
list-style: none;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
> li {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
text-shadow: 0 1px 0 @white;
|
||||||
|
> .divider {
|
||||||
|
padding: 0 5px;
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
> .active {
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
}
|
229
app/assets/stylesheets/admin/framework/button-groups.less
Executable file
229
app/assets/stylesheets/admin/framework/button-groups.less
Executable file
@ -0,0 +1,229 @@
|
|||||||
|
//
|
||||||
|
// Button groups
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Make the div behave like a button
|
||||||
|
.btn-group {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
font-size: 0; // remove as part 1 of font-size inline-block hack
|
||||||
|
vertical-align: middle; // match .btn alignment given font-size hack above
|
||||||
|
white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
|
||||||
|
.ie7-restore-left-whitespace();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Space out series of button groups
|
||||||
|
.btn-group + .btn-group {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optional: Group multiple button groups together for a toolbar
|
||||||
|
.btn-toolbar {
|
||||||
|
font-size: 0; // Hack to remove whitespace that results from using inline-block
|
||||||
|
margin-top: @baseLineHeight / 2;
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
> .btn + .btn,
|
||||||
|
> .btn-group + .btn,
|
||||||
|
> .btn + .btn-group {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Float them, remove border radius, then re-add to first and last elements
|
||||||
|
.btn-group > .btn {
|
||||||
|
position: relative;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.btn-group > .btn + .btn {
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn,
|
||||||
|
.btn-group > .dropdown-menu,
|
||||||
|
.btn-group > .popover {
|
||||||
|
font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset fonts for other sizes
|
||||||
|
.btn-group > .btn-mini {
|
||||||
|
font-size: @fontSizeMini;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-small {
|
||||||
|
font-size: @fontSizeSmall;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-large {
|
||||||
|
font-size: @fontSizeLarge;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
||||||
|
.btn-group > .btn:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
.border-top-left-radius(@baseBorderRadius);
|
||||||
|
.border-bottom-left-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
||||||
|
.btn-group > .btn:last-child,
|
||||||
|
.btn-group > .dropdown-toggle {
|
||||||
|
.border-top-right-radius(@baseBorderRadius);
|
||||||
|
.border-bottom-right-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
// Reset corners for large buttons
|
||||||
|
.btn-group > .btn.large:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
.border-top-left-radius(@borderRadiusLarge);
|
||||||
|
.border-bottom-left-radius(@borderRadiusLarge);
|
||||||
|
}
|
||||||
|
.btn-group > .btn.large:last-child,
|
||||||
|
.btn-group > .large.dropdown-toggle {
|
||||||
|
.border-top-right-radius(@borderRadiusLarge);
|
||||||
|
.border-bottom-right-radius(@borderRadiusLarge);
|
||||||
|
}
|
||||||
|
|
||||||
|
// On hover/focus/active, bring the proper btn to front
|
||||||
|
.btn-group > .btn:hover,
|
||||||
|
.btn-group > .btn:focus,
|
||||||
|
.btn-group > .btn:active,
|
||||||
|
.btn-group > .btn.active {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// On active and open, don't show outline
|
||||||
|
.btn-group .dropdown-toggle:active,
|
||||||
|
.btn-group.open .dropdown-toggle {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Split button dropdowns
|
||||||
|
// ----------------------
|
||||||
|
|
||||||
|
// Give the line between buttons some depth
|
||||||
|
.btn-group > .btn + .dropdown-toggle {
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
.box-shadow(~"inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
*padding-top: 5px;
|
||||||
|
*padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-mini + .dropdown-toggle {
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
*padding-top: 2px;
|
||||||
|
*padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-small + .dropdown-toggle {
|
||||||
|
*padding-top: 5px;
|
||||||
|
*padding-bottom: 4px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-large + .dropdown-toggle {
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 12px;
|
||||||
|
*padding-top: 7px;
|
||||||
|
*padding-bottom: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group.open {
|
||||||
|
|
||||||
|
// The clickable button for toggling the menu
|
||||||
|
// Remove the gradient and set the same inset shadow as the :active state
|
||||||
|
.dropdown-toggle {
|
||||||
|
background-image: none;
|
||||||
|
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keep the hover's background when dropdown is open
|
||||||
|
.btn.dropdown-toggle {
|
||||||
|
background-color: @btnBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-primary.dropdown-toggle {
|
||||||
|
background-color: @btnPrimaryBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-warning.dropdown-toggle {
|
||||||
|
background-color: @btnWarningBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-danger.dropdown-toggle {
|
||||||
|
background-color: @btnDangerBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-success.dropdown-toggle {
|
||||||
|
background-color: @btnSuccessBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-info.dropdown-toggle {
|
||||||
|
background-color: @btnInfoBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-inverse.dropdown-toggle {
|
||||||
|
background-color: @btnInverseBackgroundHighlight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Reposition the caret
|
||||||
|
.btn .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
// Carets in other button sizes
|
||||||
|
.btn-large .caret {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
.btn-large .caret {
|
||||||
|
border-left-width: 5px;
|
||||||
|
border-right-width: 5px;
|
||||||
|
border-top-width: 5px;
|
||||||
|
}
|
||||||
|
.btn-mini .caret,
|
||||||
|
.btn-small .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
// Upside down carets for .dropup
|
||||||
|
.dropup .btn-large .caret {
|
||||||
|
border-bottom-width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Account for other colors
|
||||||
|
.btn-primary,
|
||||||
|
.btn-warning,
|
||||||
|
.btn-danger,
|
||||||
|
.btn-info,
|
||||||
|
.btn-success,
|
||||||
|
.btn-inverse {
|
||||||
|
.caret {
|
||||||
|
border-top-color: @white;
|
||||||
|
border-bottom-color: @white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Vertical button groups
|
||||||
|
// ----------------------
|
||||||
|
|
||||||
|
.btn-group-vertical {
|
||||||
|
display: inline-block; // makes buttons only take up the width they need
|
||||||
|
.ie7-inline-block();
|
||||||
|
}
|
||||||
|
.btn-group-vertical > .btn {
|
||||||
|
display: block;
|
||||||
|
float: none;
|
||||||
|
max-width: 100%;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.btn-group-vertical > .btn + .btn {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
.btn-group-vertical > .btn:first-child {
|
||||||
|
.border-radius(@baseBorderRadius @baseBorderRadius 0 0);
|
||||||
|
}
|
||||||
|
.btn-group-vertical > .btn:last-child {
|
||||||
|
.border-radius(0 0 @baseBorderRadius @baseBorderRadius);
|
||||||
|
}
|
||||||
|
.btn-group-vertical > .btn-large:first-child {
|
||||||
|
.border-radius(@borderRadiusLarge @borderRadiusLarge 0 0);
|
||||||
|
}
|
||||||
|
.btn-group-vertical > .btn-large:last-child {
|
||||||
|
.border-radius(0 0 @borderRadiusLarge @borderRadiusLarge);
|
||||||
|
}
|
228
app/assets/stylesheets/admin/framework/buttons.less
Executable file
228
app/assets/stylesheets/admin/framework/buttons.less
Executable file
@ -0,0 +1,228 @@
|
|||||||
|
//
|
||||||
|
// Buttons
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base styles
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Core
|
||||||
|
.btn {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
padding: 4px 12px;
|
||||||
|
margin-bottom: 0; // For input.btn
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
cursor: pointer;
|
||||||
|
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
|
||||||
|
border: 1px solid @btnBorder;
|
||||||
|
*border: 0; // Remove the border to prevent IE7's black border on input:focus
|
||||||
|
border-bottom-color: darken(@btnBorder, 10%);
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
.ie7-restore-left-whitespace(); // Give IE7 some love
|
||||||
|
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
|
||||||
|
// Hover/focus state
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: @grayDark;
|
||||||
|
text-decoration: none;
|
||||||
|
background-position: 0 -15px;
|
||||||
|
|
||||||
|
// transition is only when going to hover/focus, otherwise the background
|
||||||
|
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
||||||
|
.transition(background-position .1s linear);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Focus state for keyboard and accessibility
|
||||||
|
&:focus {
|
||||||
|
.tab-focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active state
|
||||||
|
&.active,
|
||||||
|
&:active {
|
||||||
|
background-image: none;
|
||||||
|
outline: 0;
|
||||||
|
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Disabled state
|
||||||
|
&.disabled,
|
||||||
|
&[disabled] {
|
||||||
|
cursor: default;
|
||||||
|
background-image: none;
|
||||||
|
.opacity(65);
|
||||||
|
.box-shadow(none);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Button Sizes
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Large
|
||||||
|
.btn-large {
|
||||||
|
padding: @paddingLarge;
|
||||||
|
font-size: @fontSizeLarge;
|
||||||
|
.border-radius(@borderRadiusLarge);
|
||||||
|
}
|
||||||
|
.btn-large [class^="icon-"],
|
||||||
|
.btn-large [class*=" icon-"] {
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Small
|
||||||
|
.btn-small {
|
||||||
|
padding: @paddingSmall;
|
||||||
|
font-size: @fontSizeSmall;
|
||||||
|
.border-radius(@borderRadiusSmall);
|
||||||
|
}
|
||||||
|
.btn-small [class^="icon-"],
|
||||||
|
.btn-small [class*=" icon-"] {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
.btn-mini [class^="icon-"],
|
||||||
|
.btn-mini [class*=" icon-"] {
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mini
|
||||||
|
.btn-mini {
|
||||||
|
padding: @paddingMini;
|
||||||
|
font-size: @fontSizeMini;
|
||||||
|
.border-radius(@borderRadiusSmall);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Block button
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.btn-block {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
.box-sizing(border-box);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vertically space out multiple block buttons
|
||||||
|
.btn-block + .btn-block {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Specificity overrides
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="button"] {
|
||||||
|
&.btn-block {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Alternate buttons
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Provide *some* extra contrast for those who can get it
|
||||||
|
.btn-primary.active,
|
||||||
|
.btn-warning.active,
|
||||||
|
.btn-danger.active,
|
||||||
|
.btn-success.active,
|
||||||
|
.btn-info.active,
|
||||||
|
.btn-inverse.active {
|
||||||
|
color: rgba(255,255,255,.75);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the backgrounds
|
||||||
|
// -------------------------
|
||||||
|
.btn-primary {
|
||||||
|
.buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Warning appears are orange
|
||||||
|
.btn-warning {
|
||||||
|
.buttonBackground(@btnWarningBackground, @btnWarningBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Danger and error appear as red
|
||||||
|
.btn-danger {
|
||||||
|
.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Success appears as green
|
||||||
|
.btn-success {
|
||||||
|
.buttonBackground(@btnSuccessBackground, @btnSuccessBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Info appears as a neutral blue
|
||||||
|
.btn-info {
|
||||||
|
.buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Inverse appears as dark gray
|
||||||
|
.btn-inverse {
|
||||||
|
.buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Cross-browser Jank
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
button.btn,
|
||||||
|
input[type="submit"].btn {
|
||||||
|
|
||||||
|
// Firefox 3.6 only I believe
|
||||||
|
&::-moz-focus-inner {
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE7 has some default padding on button controls
|
||||||
|
*padding-top: 3px;
|
||||||
|
*padding-bottom: 3px;
|
||||||
|
|
||||||
|
&.btn-large {
|
||||||
|
*padding-top: 7px;
|
||||||
|
*padding-bottom: 7px;
|
||||||
|
}
|
||||||
|
&.btn-small {
|
||||||
|
*padding-top: 3px;
|
||||||
|
*padding-bottom: 3px;
|
||||||
|
}
|
||||||
|
&.btn-mini {
|
||||||
|
*padding-top: 1px;
|
||||||
|
*padding-bottom: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Link buttons
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Make a button look and behave like a link
|
||||||
|
.btn-link,
|
||||||
|
.btn-link:active,
|
||||||
|
.btn-link[disabled] {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
.box-shadow(none);
|
||||||
|
}
|
||||||
|
.btn-link {
|
||||||
|
border-color: transparent;
|
||||||
|
cursor: pointer;
|
||||||
|
color: @linkColor;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.btn-link:hover,
|
||||||
|
.btn-link:focus {
|
||||||
|
color: @linkColorHover;
|
||||||
|
text-decoration: underline;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.btn-link[disabled]:hover,
|
||||||
|
.btn-link[disabled]:focus {
|
||||||
|
color: @grayDark;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
158
app/assets/stylesheets/admin/framework/carousel.less
Executable file
158
app/assets/stylesheets/admin/framework/carousel.less
Executable file
@ -0,0 +1,158 @@
|
|||||||
|
//
|
||||||
|
// Carousel
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.carousel {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-inner {
|
||||||
|
overflow: hidden;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-inner {
|
||||||
|
|
||||||
|
> .item {
|
||||||
|
display: none;
|
||||||
|
position: relative;
|
||||||
|
.transition(.6s ease-in-out left);
|
||||||
|
|
||||||
|
// Account for jankitude on images
|
||||||
|
> img,
|
||||||
|
> a > img {
|
||||||
|
display: block;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .active,
|
||||||
|
> .next,
|
||||||
|
> .prev { display: block; }
|
||||||
|
|
||||||
|
> .active {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .next,
|
||||||
|
> .prev {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .next {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
> .prev {
|
||||||
|
left: -100%;
|
||||||
|
}
|
||||||
|
> .next.left,
|
||||||
|
> .prev.right {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .active.left {
|
||||||
|
left: -100%;
|
||||||
|
}
|
||||||
|
> .active.right {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Left/right controls for nav
|
||||||
|
// ---------------------------
|
||||||
|
|
||||||
|
.carousel-control {
|
||||||
|
position: absolute;
|
||||||
|
top: 40%;
|
||||||
|
left: 15px;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
margin-top: -20px;
|
||||||
|
font-size: 60px;
|
||||||
|
font-weight: 100;
|
||||||
|
line-height: 30px;
|
||||||
|
color: @white;
|
||||||
|
text-align: center;
|
||||||
|
background: @grayDarker;
|
||||||
|
border: 3px solid @white;
|
||||||
|
.border-radius(23px);
|
||||||
|
.opacity(50);
|
||||||
|
|
||||||
|
// we can't have this transition here
|
||||||
|
// because webkit cancels the carousel
|
||||||
|
// animation if you trip this while
|
||||||
|
// in the middle of another animation
|
||||||
|
// ;_;
|
||||||
|
// .transition(opacity .2s linear);
|
||||||
|
|
||||||
|
// Reposition the right one
|
||||||
|
&.right {
|
||||||
|
left: auto;
|
||||||
|
right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover/focus state
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: @white;
|
||||||
|
text-decoration: none;
|
||||||
|
.opacity(90);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Carousel indicator pips
|
||||||
|
// -----------------------------
|
||||||
|
.carousel-indicators {
|
||||||
|
position: absolute;
|
||||||
|
top: 15px;
|
||||||
|
right: 15px;
|
||||||
|
z-index: 5;
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
|
||||||
|
li {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
width: 10px;
|
||||||
|
height: 10px;
|
||||||
|
margin-left: 5px;
|
||||||
|
text-indent: -999px;
|
||||||
|
background-color: #ccc;
|
||||||
|
background-color: rgba(255,255,255,.25);
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Caption for text below images
|
||||||
|
// -----------------------------
|
||||||
|
|
||||||
|
.carousel-caption {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
padding: 15px;
|
||||||
|
background: @grayDark;
|
||||||
|
background: rgba(0,0,0,.75);
|
||||||
|
}
|
||||||
|
.carousel-caption h4,
|
||||||
|
.carousel-caption p {
|
||||||
|
color: @white;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
.carousel-caption h4 {
|
||||||
|
margin: 0 0 5px;
|
||||||
|
}
|
||||||
|
.carousel-caption p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
32
app/assets/stylesheets/admin/framework/close.less
Executable file
32
app/assets/stylesheets/admin/framework/close.less
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
//
|
||||||
|
// Close icons
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.close {
|
||||||
|
float: right;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @black;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
||||||
|
.opacity(20);
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: @black;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
.opacity(40);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Additional properties for button version
|
||||||
|
// iOS requires the button element instead of an anchor tag.
|
||||||
|
// If you want the anchor version, it requires `href="#"`.
|
||||||
|
button.close {
|
||||||
|
padding: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
background: transparent;
|
||||||
|
border: 0;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
61
app/assets/stylesheets/admin/framework/code.less
Executable file
61
app/assets/stylesheets/admin/framework/code.less
Executable file
@ -0,0 +1,61 @@
|
|||||||
|
//
|
||||||
|
// Code (inline and blocK)
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Inline and block code styles
|
||||||
|
code,
|
||||||
|
pre {
|
||||||
|
padding: 0 3px 2px;
|
||||||
|
#font > #family > .monospace;
|
||||||
|
font-size: @baseFontSize - 2;
|
||||||
|
color: @grayDark;
|
||||||
|
.border-radius(3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inline code
|
||||||
|
code {
|
||||||
|
padding: 2px 4px;
|
||||||
|
color: #d14;
|
||||||
|
background-color: #f7f7f9;
|
||||||
|
border: 1px solid #e1e1e8;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Blocks of code
|
||||||
|
pre {
|
||||||
|
display: block;
|
||||||
|
padding: (@baseLineHeight - 1) / 2;
|
||||||
|
margin: 0 0 @baseLineHeight / 2;
|
||||||
|
font-size: @baseFontSize - 1; // 14px to 13px
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
word-break: break-all;
|
||||||
|
word-wrap: break-word;
|
||||||
|
white-space: pre;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border: 1px solid #ccc; // fallback for IE7-8
|
||||||
|
border: 1px solid rgba(0,0,0,.15);
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
|
||||||
|
// Make prettyprint styles more spaced out for readability
|
||||||
|
&.prettyprint {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Account for some code outputs that place code tags in pre tags
|
||||||
|
code {
|
||||||
|
padding: 0;
|
||||||
|
color: inherit;
|
||||||
|
white-space: pre;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enable scrollable blocks of code
|
||||||
|
.pre-scrollable {
|
||||||
|
max-height: 340px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
22
app/assets/stylesheets/admin/framework/component-animations.less
Executable file
22
app/assets/stylesheets/admin/framework/component-animations.less
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
//
|
||||||
|
// Component animations
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.fade {
|
||||||
|
opacity: 0;
|
||||||
|
.transition(opacity .15s linear);
|
||||||
|
&.in {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapse {
|
||||||
|
position: relative;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
.transition(height .35s ease);
|
||||||
|
&.in {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
248
app/assets/stylesheets/admin/framework/dropdowns.less
Executable file
248
app/assets/stylesheets/admin/framework/dropdowns.less
Executable file
@ -0,0 +1,248 @@
|
|||||||
|
//
|
||||||
|
// Dropdown menus
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
||||||
|
.dropup,
|
||||||
|
.dropdown {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.dropdown-toggle {
|
||||||
|
// The caret makes the toggle a bit too tall in IE7
|
||||||
|
*margin-bottom: -3px;
|
||||||
|
}
|
||||||
|
.dropdown-toggle:active,
|
||||||
|
.open .dropdown-toggle {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dropdown arrow/caret
|
||||||
|
// --------------------
|
||||||
|
.caret {
|
||||||
|
display: inline-block;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
vertical-align: top;
|
||||||
|
border-top: 4px solid @black;
|
||||||
|
border-right: 4px solid transparent;
|
||||||
|
border-left: 4px solid transparent;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Place the caret
|
||||||
|
.dropdown .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The dropdown menu (ul)
|
||||||
|
// ----------------------
|
||||||
|
.dropdown-menu {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexDropdown;
|
||||||
|
display: none; // none by default, but block on "open" of the menu
|
||||||
|
float: left;
|
||||||
|
min-width: 160px;
|
||||||
|
padding: 5px 0;
|
||||||
|
margin: 2px 0 0; // override default ul
|
||||||
|
list-style: none;
|
||||||
|
background-color: @dropdownBackground;
|
||||||
|
border: 1px solid #ccc; // Fallback for IE7-8
|
||||||
|
border: 1px solid @dropdownBorder;
|
||||||
|
*border-right-width: 2px;
|
||||||
|
*border-bottom-width: 2px;
|
||||||
|
.border-radius(6px);
|
||||||
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
background-clip: padding-box;
|
||||||
|
|
||||||
|
// Aligns the dropdown menu to right
|
||||||
|
&.pull-right {
|
||||||
|
right: 0;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dividers (basically an hr) within the dropdown
|
||||||
|
.divider {
|
||||||
|
.nav-divider(@dropdownDividerTop, @dropdownDividerBottom);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Links within the dropdown menu
|
||||||
|
> li > a {
|
||||||
|
display: block;
|
||||||
|
padding: 3px 20px;
|
||||||
|
clear: both;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @dropdownLinkColor;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover/Focus state
|
||||||
|
// -----------
|
||||||
|
.dropdown-menu > li > a:hover,
|
||||||
|
.dropdown-menu > li > a:focus,
|
||||||
|
.dropdown-submenu:hover > a,
|
||||||
|
.dropdown-submenu:focus > a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: @dropdownLinkColorHover;
|
||||||
|
#gradient > .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active state
|
||||||
|
// ------------
|
||||||
|
.dropdown-menu > .active > a,
|
||||||
|
.dropdown-menu > .active > a:hover,
|
||||||
|
.dropdown-menu > .active > a:focus {
|
||||||
|
color: @dropdownLinkColorActive;
|
||||||
|
text-decoration: none;
|
||||||
|
outline: 0;
|
||||||
|
#gradient > .vertical(@dropdownLinkBackgroundActive, darken(@dropdownLinkBackgroundActive, 5%));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Disabled state
|
||||||
|
// --------------
|
||||||
|
// Gray out text and ensure the hover/focus state remains gray
|
||||||
|
.dropdown-menu > .disabled > a,
|
||||||
|
.dropdown-menu > .disabled > a:hover,
|
||||||
|
.dropdown-menu > .disabled > a:focus {
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
// Nuke hover/focus effects
|
||||||
|
.dropdown-menu > .disabled > a:hover,
|
||||||
|
.dropdown-menu > .disabled > a:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none; // Remove CSS gradient
|
||||||
|
.reset-filter();
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open state for the dropdown
|
||||||
|
// ---------------------------
|
||||||
|
.open {
|
||||||
|
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
||||||
|
// make the menu appear below buttons that appeared later on the page
|
||||||
|
*z-index: @zindexDropdown;
|
||||||
|
|
||||||
|
& > .dropdown-menu {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Backdrop to catch body clicks on mobile, etc.
|
||||||
|
// ---------------------------
|
||||||
|
.dropdown-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
top: 0;
|
||||||
|
z-index: @zindexDropdown - 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Right aligned dropdowns
|
||||||
|
// ---------------------------
|
||||||
|
.pull-right > .dropdown-menu {
|
||||||
|
right: 0;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
||||||
|
// ------------------------------------------------------
|
||||||
|
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
||||||
|
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
||||||
|
.dropup,
|
||||||
|
.navbar-fixed-bottom .dropdown {
|
||||||
|
// Reverse the caret
|
||||||
|
.caret {
|
||||||
|
border-top: 0;
|
||||||
|
border-bottom: 4px solid @black;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
// Different positioning for bottom up menu
|
||||||
|
.dropdown-menu {
|
||||||
|
top: auto;
|
||||||
|
bottom: 100%;
|
||||||
|
margin-bottom: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sub menus
|
||||||
|
// ---------------------------
|
||||||
|
.dropdown-submenu {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
// Default dropdowns
|
||||||
|
.dropdown-submenu > .dropdown-menu {
|
||||||
|
top: 0;
|
||||||
|
left: 100%;
|
||||||
|
margin-top: -6px;
|
||||||
|
margin-left: -1px;
|
||||||
|
.border-radius(0 6px 6px 6px);
|
||||||
|
}
|
||||||
|
.dropdown-submenu:hover > .dropdown-menu {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dropups
|
||||||
|
.dropup .dropdown-submenu > .dropdown-menu {
|
||||||
|
top: auto;
|
||||||
|
bottom: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: -2px;
|
||||||
|
.border-radius(5px 5px 5px 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Caret to indicate there is a submenu
|
||||||
|
.dropdown-submenu > a:after {
|
||||||
|
display: block;
|
||||||
|
content: " ";
|
||||||
|
float: right;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 5px 0 5px 5px;
|
||||||
|
border-left-color: darken(@dropdownBackground, 20%);
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-right: -10px;
|
||||||
|
}
|
||||||
|
.dropdown-submenu:hover > a:after {
|
||||||
|
border-left-color: @dropdownLinkColorHover;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Left aligned submenus
|
||||||
|
.dropdown-submenu.pull-left {
|
||||||
|
// Undo the float
|
||||||
|
// Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere.
|
||||||
|
float: none;
|
||||||
|
|
||||||
|
// Positioning the submenu
|
||||||
|
> .dropdown-menu {
|
||||||
|
left: -100%;
|
||||||
|
margin-left: 10px;
|
||||||
|
.border-radius(6px 0 6px 6px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tweak nav headers
|
||||||
|
// -----------------
|
||||||
|
// Increase padding from 15px to 20px on sides
|
||||||
|
.dropdown .dropdown-menu .nav-header {
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Typeahead
|
||||||
|
// ---------
|
||||||
|
.typeahead {
|
||||||
|
z-index: 1051;
|
||||||
|
margin-top: 2px; // give it some space to breathe
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
695
app/assets/stylesheets/admin/framework/forms.less
Executable file
695
app/assets/stylesheets/admin/framework/forms.less
Executable file
@ -0,0 +1,695 @@
|
|||||||
|
//
|
||||||
|
// Forms
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// GENERAL STYLES
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// Make all forms have space below them
|
||||||
|
form {
|
||||||
|
margin: 0 0 @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Groups of fields with labels on top (legends)
|
||||||
|
legend {
|
||||||
|
display: block;
|
||||||
|
// width: 100%;
|
||||||
|
padding: 0;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
font-size: @baseFontSize * 1.5;
|
||||||
|
line-height: @baseLineHeight * 2;
|
||||||
|
color: @grayDark;
|
||||||
|
border: 0;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
|
||||||
|
// Small
|
||||||
|
small {
|
||||||
|
font-size: @baseLineHeight * .75;
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set font for forms
|
||||||
|
label,
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
#font > .shorthand(@baseFontSize,normal,@baseLineHeight); // Set size, weight, line-height here
|
||||||
|
}
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
font-family: @baseFontFamily; // And only set font-family here for those that need it (note the missing label element)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Identify controls by their labels
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Form controls
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Shared size and type resets
|
||||||
|
select,
|
||||||
|
textarea,
|
||||||
|
input[type="text"],
|
||||||
|
input[type="password"],
|
||||||
|
input[type="datetime"],
|
||||||
|
input[type="datetime-local"],
|
||||||
|
input[type="date"],
|
||||||
|
input[type="month"],
|
||||||
|
input[type="time"],
|
||||||
|
input[type="week"],
|
||||||
|
input[type="number"],
|
||||||
|
input[type="email"],
|
||||||
|
input[type="url"],
|
||||||
|
input[type="search"],
|
||||||
|
input[type="tel"],
|
||||||
|
input[type="color"],
|
||||||
|
.input-style,
|
||||||
|
.uneditable-input {
|
||||||
|
display: inline-block;
|
||||||
|
height: @baseLineHeight;
|
||||||
|
padding: 4px 6px;
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @gray;
|
||||||
|
.border-radius(@inputBorderRadius);
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset appearance properties for textual inputs and textarea
|
||||||
|
// Declare width for legacy (can't be on input[type=*] selectors or it's too specific)
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
.uneditable-input {
|
||||||
|
// width: 206px; // plus 12px padding and 2px border
|
||||||
|
}
|
||||||
|
// Reset height since textareas have rows
|
||||||
|
textarea {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
// Everything else
|
||||||
|
textarea,
|
||||||
|
input[type="text"],
|
||||||
|
input[type="password"],
|
||||||
|
input[type="datetime"],
|
||||||
|
input[type="datetime-local"],
|
||||||
|
input[type="date"],
|
||||||
|
input[type="month"],
|
||||||
|
input[type="time"],
|
||||||
|
input[type="week"],
|
||||||
|
input[type="number"],
|
||||||
|
input[type="email"],
|
||||||
|
input[type="url"],
|
||||||
|
input[type="search"],
|
||||||
|
input[type="tel"],
|
||||||
|
input[type="color"],
|
||||||
|
.input-style,
|
||||||
|
.uneditable-input {
|
||||||
|
background-color: @inputBackground;
|
||||||
|
border: 1px solid @inputBorder;
|
||||||
|
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
||||||
|
.transition(~"border linear .2s, box-shadow linear .2s");
|
||||||
|
|
||||||
|
// Focus state
|
||||||
|
&:focus {
|
||||||
|
border-color: rgba(82,168,236,.8);
|
||||||
|
outline: 0;
|
||||||
|
outline: thin dotted \9; /* IE6-9 */
|
||||||
|
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Position radios and checkboxes better
|
||||||
|
input[type="radio"],
|
||||||
|
input[type="checkbox"] {
|
||||||
|
margin: 4px 0 0;
|
||||||
|
*margin-top: 0; /* IE7 */
|
||||||
|
margin-top: 1px \9; /* IE8-9 */
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset width of input images, buttons, radios, checkboxes
|
||||||
|
input[type="file"],
|
||||||
|
input[type="image"],
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="button"],
|
||||||
|
input[type="radio"],
|
||||||
|
input[type="checkbox"] {
|
||||||
|
// width: auto; // Override of generic input selector
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the height of select and file controls to match text inputs
|
||||||
|
select,
|
||||||
|
input[type="file"] {
|
||||||
|
height: @inputHeight; /* In IE7, the height of the select element cannot be changed by height, only font-size */
|
||||||
|
*margin-top: 4px; /* For IE7, add top margin to align select with labels */
|
||||||
|
line-height: @inputHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make select elements obey height by applying a border
|
||||||
|
select {
|
||||||
|
// width: 220px; // default input width + 10px of padding that doesn't get applied
|
||||||
|
border: 1px solid @inputBorder;
|
||||||
|
background-color: @inputBackground; // Chrome on Linux and Mobile Safari need background-color
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make multiple select elements height not fixed
|
||||||
|
select[multiple],
|
||||||
|
select[size] {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Focus for select, file, radio, and checkbox
|
||||||
|
select:focus,
|
||||||
|
input[type="file"]:focus,
|
||||||
|
input[type="radio"]:focus,
|
||||||
|
input[type="checkbox"]:focus {
|
||||||
|
.tab-focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Uneditable inputs
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Make uneditable inputs look inactive
|
||||||
|
.uneditable-input,
|
||||||
|
.uneditable-textarea {
|
||||||
|
color: @grayLight;
|
||||||
|
background-color: darken(@inputBackground, 1%);
|
||||||
|
border-color: @inputBorder;
|
||||||
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
// For text that needs to appear as an input but should not be an input
|
||||||
|
.uneditable-input {
|
||||||
|
overflow: hidden; // prevent text from wrapping, but still cut it off like an input does
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make uneditable textareas behave like a textarea
|
||||||
|
.uneditable-textarea {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Placeholder
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Placeholder text gets special styles because when browsers invalidate entire lines if it doesn't understand a selector
|
||||||
|
input,
|
||||||
|
textarea {
|
||||||
|
.placeholder();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// CHECKBOXES & RADIOS
|
||||||
|
// -------------------
|
||||||
|
|
||||||
|
// Indent the labels to position radios/checkboxes as hanging
|
||||||
|
.radio,
|
||||||
|
.checkbox {
|
||||||
|
min-height: @baseLineHeight; // clear the floating input if there is no label text
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
.radio input[type="radio"],
|
||||||
|
.checkbox input[type="checkbox"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: -20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Move the options list down to align with labels
|
||||||
|
.controls > .radio:first-child,
|
||||||
|
.controls > .checkbox:first-child {
|
||||||
|
padding-top: 5px; // has to be padding because margin collaspes
|
||||||
|
}
|
||||||
|
|
||||||
|
// Radios and checkboxes on same line
|
||||||
|
// TODO v3: Convert .inline to .control-inline
|
||||||
|
.radio.inline,
|
||||||
|
.checkbox.inline {
|
||||||
|
display: inline-block;
|
||||||
|
padding-top: 5px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.radio.inline + .radio.inline,
|
||||||
|
.checkbox.inline + .checkbox.inline {
|
||||||
|
margin-left: 10px; // space out consecutive inline controls
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// INPUT SIZES
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
// General classes for quick sizes
|
||||||
|
/*
|
||||||
|
.input-mini { width: 60px; }
|
||||||
|
.input-small { width: 90px; }
|
||||||
|
.input-medium { width: 150px; }
|
||||||
|
.input-large { width: 210px; }
|
||||||
|
.input-xlarge { width: 270px; }
|
||||||
|
.input-xxlarge { width: 530px; }
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Grid style input sizes
|
||||||
|
input[class*="span"],
|
||||||
|
select[class*="span"],
|
||||||
|
textarea[class*="span"],
|
||||||
|
.uneditable-input[class*="span"],
|
||||||
|
// Redeclare since the fluid row class is more specific
|
||||||
|
.row-fluid input[class*="span"],
|
||||||
|
.row-fluid select[class*="span"],
|
||||||
|
.row-fluid textarea[class*="span"],
|
||||||
|
.row-fluid .uneditable-input[class*="span"] {
|
||||||
|
float: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
// Ensure input-prepend/append never wraps
|
||||||
|
.input-append input[class*="span"],
|
||||||
|
.input-append .uneditable-input[class*="span"],
|
||||||
|
.input-prepend input[class*="span"],
|
||||||
|
.input-prepend .uneditable-input[class*="span"],
|
||||||
|
.row-fluid input[class*="span"],
|
||||||
|
.row-fluid select[class*="span"],
|
||||||
|
.row-fluid textarea[class*="span"],
|
||||||
|
.row-fluid .uneditable-input[class*="span"],
|
||||||
|
.row-fluid .input-prepend [class*="span"],
|
||||||
|
.row-fluid .input-append [class*="span"] {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// GRID SIZING FOR INPUTS
|
||||||
|
// ----------------------
|
||||||
|
|
||||||
|
// Grid sizes
|
||||||
|
#grid > .input(@gridColumnWidth, @gridGutterWidth);
|
||||||
|
|
||||||
|
// Control row for multiple inputs per line
|
||||||
|
.controls-row {
|
||||||
|
.clearfix(); // Clear the float from controls
|
||||||
|
}
|
||||||
|
|
||||||
|
// Float to collapse white-space for proper grid alignment
|
||||||
|
.controls-row [class*="span"],
|
||||||
|
// Redeclare the fluid grid collapse since we undo the float for inputs
|
||||||
|
.row-fluid .controls-row [class*="span"] {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
// Explicity set top padding on all checkboxes/radios, not just first-child
|
||||||
|
.controls-row .checkbox[class*="span"],
|
||||||
|
.controls-row .radio[class*="span"] {
|
||||||
|
padding-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DISABLED STATE
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// Disabled and read-only inputs
|
||||||
|
input[disabled],
|
||||||
|
select[disabled],
|
||||||
|
textarea[disabled],
|
||||||
|
input[readonly],
|
||||||
|
select[readonly],
|
||||||
|
textarea[readonly] {
|
||||||
|
cursor: not-allowed;
|
||||||
|
background-color: @inputDisabledBackground;
|
||||||
|
}
|
||||||
|
// Explicitly reset the colors here
|
||||||
|
input[type="radio"][disabled],
|
||||||
|
input[type="checkbox"][disabled],
|
||||||
|
input[type="radio"][readonly],
|
||||||
|
input[type="checkbox"][readonly] {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// FORM FIELD FEEDBACK STATES
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
// Warning
|
||||||
|
.control-group.warning {
|
||||||
|
.formFieldState(@warningText, @warningText, @warningBackground);
|
||||||
|
}
|
||||||
|
// Error
|
||||||
|
.control-group.error {
|
||||||
|
.formFieldState(@errorText, @errorText, @errorBackground);
|
||||||
|
}
|
||||||
|
// Success
|
||||||
|
.control-group.success {
|
||||||
|
.formFieldState(@successText, @successText, @successBackground);
|
||||||
|
}
|
||||||
|
// Success
|
||||||
|
.control-group.info {
|
||||||
|
.formFieldState(@infoText, @infoText, @infoBackground);
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTML5 invalid states
|
||||||
|
// Shares styles with the .control-group.error above
|
||||||
|
input:focus:invalid,
|
||||||
|
textarea:focus:invalid,
|
||||||
|
select:focus:invalid {
|
||||||
|
color: #b94a48;
|
||||||
|
border-color: #ee5f5b;
|
||||||
|
&:focus {
|
||||||
|
border-color: darken(#ee5f5b, 10%);
|
||||||
|
@shadow: 0 0 6px lighten(#ee5f5b, 20%);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// FORM ACTIONS
|
||||||
|
// ------------
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
padding: (@baseLineHeight - 1) 20px @baseLineHeight;
|
||||||
|
margin-top: @baseLineHeight;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
background-color: @formActionsBackground;
|
||||||
|
border-top: 1px solid #e5e5e5;
|
||||||
|
.clearfix(); // Adding clearfix to allow for .pull-right button containers
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// HELP TEXT
|
||||||
|
// ---------
|
||||||
|
|
||||||
|
.help-block,
|
||||||
|
.help-inline {
|
||||||
|
color: lighten(@textColor, 15%); // lighten the text some for contrast
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-block {
|
||||||
|
display: block; // account for any element using help-block
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-inline {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
vertical-align: middle;
|
||||||
|
padding-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// INPUT GROUPS
|
||||||
|
// ------------
|
||||||
|
|
||||||
|
// Allow us to put symbols and text within the input field for a cleaner look
|
||||||
|
.input-append,
|
||||||
|
.input-prepend {
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-size: 0; // white space collapse hack
|
||||||
|
white-space: nowrap; // Prevent span and input from separating
|
||||||
|
|
||||||
|
// Reset the white space collapse hack
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.uneditable-input,
|
||||||
|
.dropdown-menu,
|
||||||
|
.popover {
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.uneditable-input {
|
||||||
|
position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
|
||||||
|
margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
|
||||||
|
*margin-left: 0;
|
||||||
|
vertical-align: top;
|
||||||
|
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
|
||||||
|
// Make input on top when focused so blue border and shadow always show
|
||||||
|
&:focus {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.add-on {
|
||||||
|
display: inline-block;
|
||||||
|
width: auto;
|
||||||
|
height: @baseLineHeight;
|
||||||
|
min-width: 16px;
|
||||||
|
padding: 4px 5px;
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
text-align: center;
|
||||||
|
text-shadow: 0 1px 0 @white;
|
||||||
|
background-color: @grayLighter;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
.add-on,
|
||||||
|
.btn,
|
||||||
|
.btn-group > .dropdown-toggle {
|
||||||
|
vertical-align: top;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
background-color: lighten(@green, 30);
|
||||||
|
border-color: @green;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-prepend {
|
||||||
|
.add-on,
|
||||||
|
.btn {
|
||||||
|
margin-right: -1px;
|
||||||
|
}
|
||||||
|
.add-on:first-child,
|
||||||
|
.btn:first-child {
|
||||||
|
// FYI, `.btn:first-child` accounts for a button group that's prepended
|
||||||
|
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-append {
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.uneditable-input {
|
||||||
|
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
|
||||||
|
+ .btn-group .btn:last-child {
|
||||||
|
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.add-on,
|
||||||
|
.btn,
|
||||||
|
.btn-group {
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
.add-on:last-child,
|
||||||
|
.btn:last-child,
|
||||||
|
.btn-group:last-child > .dropdown-toggle {
|
||||||
|
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove all border-radius for inputs with both prepend and append
|
||||||
|
.input-prepend.input-append {
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.uneditable-input {
|
||||||
|
.border-radius(0);
|
||||||
|
+ .btn-group .btn {
|
||||||
|
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.add-on:first-child,
|
||||||
|
.btn:first-child {
|
||||||
|
margin-right: -1px;
|
||||||
|
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
|
||||||
|
}
|
||||||
|
.add-on:last-child,
|
||||||
|
.btn:last-child {
|
||||||
|
margin-left: -1px;
|
||||||
|
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
|
||||||
|
}
|
||||||
|
.btn-group:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// SEARCH FORM
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
input.search-query {
|
||||||
|
padding-right: 14px;
|
||||||
|
padding-right: 4px \9;
|
||||||
|
padding-left: 14px;
|
||||||
|
padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
|
||||||
|
margin-bottom: 0; // Remove the default margin on all inputs
|
||||||
|
.border-radius(15px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Allow for input prepend/append in search forms */
|
||||||
|
.form-search .input-append .search-query,
|
||||||
|
.form-search .input-prepend .search-query {
|
||||||
|
.border-radius(0); // Override due to specificity
|
||||||
|
}
|
||||||
|
.form-search .input-append .search-query {
|
||||||
|
.border-radius(14px 0 0 14px);
|
||||||
|
}
|
||||||
|
.form-search .input-append .btn {
|
||||||
|
.border-radius(0 14px 14px 0);
|
||||||
|
}
|
||||||
|
.form-search .input-prepend .search-query {
|
||||||
|
.border-radius(0 14px 14px 0);
|
||||||
|
}
|
||||||
|
.form-search .input-prepend .btn {
|
||||||
|
.border-radius(14px 0 0 14px);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// HORIZONTAL & VERTICAL FORMS
|
||||||
|
// ---------------------------
|
||||||
|
|
||||||
|
// Common properties
|
||||||
|
// -----------------
|
||||||
|
|
||||||
|
.form-search,
|
||||||
|
.form-inline,
|
||||||
|
.form-horizontal {
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
select,
|
||||||
|
.help-inline,
|
||||||
|
.uneditable-input,
|
||||||
|
.input-prepend,
|
||||||
|
.input-append {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
margin-bottom: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
// Re-hide hidden elements due to specifity
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.form-search label,
|
||||||
|
.form-inline label,
|
||||||
|
.form-search .btn-group,
|
||||||
|
.form-inline .btn-group {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
// Remove margin for input-prepend/-append
|
||||||
|
.form-search .input-append,
|
||||||
|
.form-inline .input-append,
|
||||||
|
.form-search .input-prepend,
|
||||||
|
.form-inline .input-prepend {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
// Inline checkbox/radio labels (remove padding on left)
|
||||||
|
.form-search .radio,
|
||||||
|
.form-search .checkbox,
|
||||||
|
.form-inline .radio,
|
||||||
|
.form-inline .checkbox {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
// Remove float and margin, set to inline-block
|
||||||
|
.form-search .radio input[type="radio"],
|
||||||
|
.form-search .checkbox input[type="checkbox"],
|
||||||
|
.form-inline .radio input[type="radio"],
|
||||||
|
.form-inline .checkbox input[type="checkbox"] {
|
||||||
|
float: left;
|
||||||
|
margin-right: 3px;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Margin to space out fieldsets
|
||||||
|
.control-group {
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Legend collapses margin, so next element is responsible for spacing
|
||||||
|
legend + .control-group {
|
||||||
|
margin-top: @baseLineHeight;
|
||||||
|
-webkit-margin-top-collapse: separate;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Horizontal-specific styles
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
.form-horizontal {
|
||||||
|
// Increase spacing between groups
|
||||||
|
.control-group {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
// Float the labels left
|
||||||
|
.control-label {
|
||||||
|
float: left;
|
||||||
|
width: @horizontalComponentOffset - 20;
|
||||||
|
padding-top: 5px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
// Move over all input controls and content
|
||||||
|
.controls {
|
||||||
|
// Super jank IE7 fix to ensure the inputs in .input-append and input-prepend
|
||||||
|
// don't inherit the margin of the parent, in this case .controls
|
||||||
|
*display: inline-block;
|
||||||
|
*padding-left: 20px;
|
||||||
|
margin-left: @horizontalComponentOffset;
|
||||||
|
*margin-left: 0;
|
||||||
|
&:first-child {
|
||||||
|
*padding-left: @horizontalComponentOffset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Remove bottom margin on block level help text since that's accounted for on .control-group
|
||||||
|
.help-block {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
// And apply it only to .help-block instances that follow a form control
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea,
|
||||||
|
.uneditable-input,
|
||||||
|
.input-prepend,
|
||||||
|
.input-append {
|
||||||
|
+ .help-block {
|
||||||
|
margin-top: @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Move over buttons in .form-actions to align with .controls
|
||||||
|
.form-actions {
|
||||||
|
padding-left: @horizontalComponentOffset;
|
||||||
|
}
|
||||||
|
}
|
310
app/assets/stylesheets/admin/framework/formt.less
Normal file
310
app/assets/stylesheets/admin/framework/formt.less
Normal file
@ -0,0 +1,310 @@
|
|||||||
|
.formtastic{
|
||||||
|
.label, .badge {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0px;
|
||||||
|
font-size: inherit;
|
||||||
|
font-weight: normal;
|
||||||
|
font-family:inherit;
|
||||||
|
line-height: 14px;
|
||||||
|
color:inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
white-space: auto;
|
||||||
|
text-shadow: none;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
|
||||||
|
this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
|
||||||
|
This will allow you to update formtastic.css with new releases without clobbering your own changes.
|
||||||
|
|
||||||
|
This stylesheet forms part of the Formtastic Rails Plugin
|
||||||
|
(c) 2008-2011 Justin French
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just .formtastic
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic,
|
||||||
|
.formtastic ul,
|
||||||
|
.formtastic ol,
|
||||||
|
.formtastic li,
|
||||||
|
.formtastic fieldset,
|
||||||
|
.formtastic legend,
|
||||||
|
.formtastic button,
|
||||||
|
.formtastic textarea,
|
||||||
|
.formtastic select,
|
||||||
|
.formtastic p {
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic fieldset {
|
||||||
|
border:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic em,
|
||||||
|
.formtastic strong {
|
||||||
|
font-style:normal;
|
||||||
|
font-weight:normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic ol,
|
||||||
|
.formtastic ul {
|
||||||
|
list-style:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic abbr,
|
||||||
|
.formtastic acronym {
|
||||||
|
border:0;
|
||||||
|
font-variant:normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic input,
|
||||||
|
.formtastic button,
|
||||||
|
.formtastic textarea {
|
||||||
|
font-family:sans-serif;
|
||||||
|
font-size:inherit;
|
||||||
|
font-weight:inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic input,
|
||||||
|
.formtastic textarea,
|
||||||
|
.formtastic select {
|
||||||
|
font-size:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic legend {
|
||||||
|
white-space:normal;
|
||||||
|
color:#000;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* SEMANTIC ERRORS
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .errors {
|
||||||
|
color:#cc0000;
|
||||||
|
margin:0.5em 0 1.5em 25%;
|
||||||
|
list-style:square;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .errors li {
|
||||||
|
padding:0;
|
||||||
|
border:none;
|
||||||
|
display:list-item;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* BUTTONS & ACTIONS
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .buttons,
|
||||||
|
.formtastic .actions {
|
||||||
|
overflow:hidden; /* clear containing floats */
|
||||||
|
padding-left:25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .button,
|
||||||
|
.formtastic .action {
|
||||||
|
float:left;
|
||||||
|
padding-right:0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .button_action button {
|
||||||
|
padding:3px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .link_action a {
|
||||||
|
display:block;
|
||||||
|
padding:3px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* INPUTS
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .inputs {
|
||||||
|
overflow:hidden; /* clear containing floats */
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .input {
|
||||||
|
overflow:hidden; /* clear containing floats */
|
||||||
|
padding:0.5em 0; /* padding and negative margin juggling is for Firefox */
|
||||||
|
margin-top:-0.5em;
|
||||||
|
margin-bottom:1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* LEFT ALIGNED LABELS
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .input .label {
|
||||||
|
display:block;
|
||||||
|
width:25%;
|
||||||
|
float:left;
|
||||||
|
padding-top:.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .fragments .label,
|
||||||
|
.formtastic .choices .label {
|
||||||
|
position:absolute;
|
||||||
|
width:95%;
|
||||||
|
left:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .fragments .label label,
|
||||||
|
.formtastic .choices .label label {
|
||||||
|
position:absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .choices {
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .choices-group {
|
||||||
|
float:left;
|
||||||
|
width:74%;
|
||||||
|
margin:0;
|
||||||
|
padding:0 0 0 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .choice {
|
||||||
|
padding:0;
|
||||||
|
border:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* INLINE HINTS
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .input .inline-hints {
|
||||||
|
color:#666;
|
||||||
|
margin:0.5em 0 0 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* INLINE ERRORS
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .inline-errors {
|
||||||
|
color:#cc0000;
|
||||||
|
margin:0.5em 0 0 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .errors {
|
||||||
|
color:#cc0000;
|
||||||
|
margin:0.5em 0 0 25%;
|
||||||
|
list-style:square;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .errors li {
|
||||||
|
padding:0;
|
||||||
|
border:none;
|
||||||
|
display:list-item;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* STRING, NUMERIC, PASSWORD, EMAIL, URL, PHONE, SEARCH (ETC) OVERRIDES
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .stringish input {
|
||||||
|
width:70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .stringish input[size],
|
||||||
|
.formtastic .stringish input[max] {
|
||||||
|
width:auto;
|
||||||
|
max-width:70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* TEXTAREA OVERRIDES
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .text textarea {
|
||||||
|
width:70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .text textarea[cols] {
|
||||||
|
width:auto;
|
||||||
|
max-width:70%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* HIDDEN OVERRIDES
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .hidden {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* BOOLEAN LABELS
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .boolean label {
|
||||||
|
padding-left:25%;
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* CHOICE GROUPS
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .choices-group {
|
||||||
|
margin-bottom:-0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .choice {
|
||||||
|
margin:0.1em 0 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .choice label {
|
||||||
|
float:none;
|
||||||
|
width:100%;
|
||||||
|
line-height:100%;
|
||||||
|
padding-top:0;
|
||||||
|
margin-bottom:0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ADJUSTMENTS FOR INPUTS INSIDE LABELS (boolean input, radio input, check_boxes input)
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .choice label input,
|
||||||
|
.formtastic .boolean label input {
|
||||||
|
margin:0 0.3em 0 0.1em;
|
||||||
|
line-height:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* FRAGMENTED INPUTS (DATE/TIME/DATETIME)
|
||||||
|
--------------------------------------------------------------------------------------------------*/
|
||||||
|
.formtastic .fragments {
|
||||||
|
position:relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .fragments-group {
|
||||||
|
float:left;
|
||||||
|
width:74%;
|
||||||
|
margin:0;
|
||||||
|
padding:0 0 0 25%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .fragment {
|
||||||
|
float:left;
|
||||||
|
width:auto;
|
||||||
|
margin:0 .3em 0 0;
|
||||||
|
padding:0;
|
||||||
|
border:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .fragment label {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formtastic .fragment label input {
|
||||||
|
display:inline;
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.formtastic .button{
|
||||||
|
.btn;
|
||||||
|
}
|
21
app/assets/stylesheets/admin/framework/grid.less
Executable file
21
app/assets/stylesheets/admin/framework/grid.less
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// Grid system
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Fixed (940px)
|
||||||
|
#grid > .core(@gridColumnWidth, @gridGutterWidth);
|
||||||
|
|
||||||
|
// Fluid (940px)
|
||||||
|
#grid > .fluid(@fluidGridColumnWidth, @fluidGridGutterWidth);
|
||||||
|
|
||||||
|
// Reset utility classes due to specificity
|
||||||
|
[class*="span"].hide,
|
||||||
|
.row-fluid [class*="span"].hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
[class*="span"].pull-right,
|
||||||
|
.row-fluid [class*="span"].pull-right {
|
||||||
|
float: right;
|
||||||
|
}
|
25
app/assets/stylesheets/admin/framework/hero-unit.less
Executable file
25
app/assets/stylesheets/admin/framework/hero-unit.less
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
//
|
||||||
|
// Hero unit
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.hero-unit {
|
||||||
|
padding: 60px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 200;
|
||||||
|
line-height: @baseLineHeight * 1.5;
|
||||||
|
color: @heroUnitLeadColor;
|
||||||
|
background-color: @heroUnitBackground;
|
||||||
|
.border-radius(6px);
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: 60px;
|
||||||
|
line-height: 1;
|
||||||
|
color: @heroUnitHeadingColor;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
line-height: @baseLineHeight * 1.5; // Reset since we specify in type.less
|
||||||
|
}
|
||||||
|
}
|
84
app/assets/stylesheets/admin/framework/labels-badges.less
Executable file
84
app/assets/stylesheets/admin/framework/labels-badges.less
Executable file
@ -0,0 +1,84 @@
|
|||||||
|
//
|
||||||
|
// Labels and badges
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base classes
|
||||||
|
.label,.label2,
|
||||||
|
.badge {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 2px 4px;
|
||||||
|
font-size: @baseFontSize * .846;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 14px; // ensure proper line-height if floated
|
||||||
|
color: @white;
|
||||||
|
vertical-align: baseline;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
|
background-color: @grayLight;
|
||||||
|
}
|
||||||
|
// Set unique padding and border-radii
|
||||||
|
.label,.label2, {
|
||||||
|
.border-radius(3px);
|
||||||
|
}
|
||||||
|
.badge {
|
||||||
|
padding-left: 9px;
|
||||||
|
padding-right: 9px;
|
||||||
|
.border-radius(9px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Empty labels/badges collapse
|
||||||
|
.label,.label2,
|
||||||
|
.badge {
|
||||||
|
&:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover/focus state, but only for links
|
||||||
|
a {
|
||||||
|
&.label:hover,
|
||||||
|
&.label:focus,
|
||||||
|
&.badge:hover,
|
||||||
|
&.badge:focus {
|
||||||
|
color: @white;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Colors
|
||||||
|
// Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
|
||||||
|
.label,.label2,
|
||||||
|
.badge {
|
||||||
|
// Important (red)
|
||||||
|
&-important { background-color: @errorText; }
|
||||||
|
&-important[href] { background-color: darken(@errorText, 10%); }
|
||||||
|
// Warnings (orange)
|
||||||
|
&-warning { background-color: @orange; }
|
||||||
|
&-warning[href] { background-color: darken(@orange, 10%); }
|
||||||
|
// Success (green)
|
||||||
|
&-success { background-color: @successText; }
|
||||||
|
&-success[href] { background-color: darken(@successText, 10%); }
|
||||||
|
// Info (turquoise)
|
||||||
|
&-info { background-color: @infoText; }
|
||||||
|
&-info[href] { background-color: darken(@infoText, 10%); }
|
||||||
|
// Inverse (black)
|
||||||
|
&-inverse { background-color: @grayDark; }
|
||||||
|
&-inverse[href] { background-color: darken(@grayDark, 10%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Quick fix for labels/badges in buttons
|
||||||
|
.btn {
|
||||||
|
.label.label2,,
|
||||||
|
.badge {
|
||||||
|
position: relative;
|
||||||
|
top: -1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.btn-mini {
|
||||||
|
.label.label2,,
|
||||||
|
.badge {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
16
app/assets/stylesheets/admin/framework/layouts.less
Executable file
16
app/assets/stylesheets/admin/framework/layouts.less
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
//
|
||||||
|
// Layouts
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Container (centered, fixed-width layouts)
|
||||||
|
.container {
|
||||||
|
.container-fixed();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
||||||
|
.container-fluid {
|
||||||
|
padding-right: @gridGutterWidth;
|
||||||
|
padding-left: @gridGutterWidth;
|
||||||
|
.clearfix();
|
||||||
|
}
|
55
app/assets/stylesheets/admin/framework/media.less
Executable file
55
app/assets/stylesheets/admin/framework/media.less
Executable file
@ -0,0 +1,55 @@
|
|||||||
|
// Media objects
|
||||||
|
// Source: http://stubbornella.org/content/?p=497
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Common styles
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Clear the floats
|
||||||
|
.media,
|
||||||
|
.media-body {
|
||||||
|
overflow: hidden;
|
||||||
|
*overflow: visible;
|
||||||
|
zoom: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Proper spacing between instances of .media
|
||||||
|
.media,
|
||||||
|
.media .media {
|
||||||
|
margin-top: 15px;
|
||||||
|
}
|
||||||
|
.media:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// For images and videos, set to block
|
||||||
|
.media-object {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset margins on headings for tighter default spacing
|
||||||
|
.media-heading {
|
||||||
|
margin: 0 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Media image alignment
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.media > .pull-left {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.media > .pull-right {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Media list variation
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Undo default ul/ol styles
|
||||||
|
.media-list {
|
||||||
|
margin-left: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
702
app/assets/stylesheets/admin/framework/mixins.less
Executable file
702
app/assets/stylesheets/admin/framework/mixins.less
Executable file
@ -0,0 +1,702 @@
|
|||||||
|
//
|
||||||
|
// Mixins
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// UTILITY MIXINS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Clearfix
|
||||||
|
// --------
|
||||||
|
// For clearing floats like a boss h5bp.com/q
|
||||||
|
.clearfix {
|
||||||
|
*zoom: 1;
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
// Fixes Opera/contenteditable bug:
|
||||||
|
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Webkit-style focus
|
||||||
|
// ------------------
|
||||||
|
.tab-focus() {
|
||||||
|
// Default
|
||||||
|
outline: thin dotted #333;
|
||||||
|
// Webkit
|
||||||
|
outline: 5px auto -webkit-focus-ring-color;
|
||||||
|
outline-offset: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Center-align a block level element
|
||||||
|
// ----------------------------------
|
||||||
|
.center-block() {
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE7 inline-block
|
||||||
|
// ----------------
|
||||||
|
.ie7-inline-block() {
|
||||||
|
*display: inline; /* IE7 inline-block hack */
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE7 likes to collapse whitespace on either side of the inline-block elements.
|
||||||
|
// Ems because we're attempting to match the width of a space character. Left
|
||||||
|
// version is for form buttons, which typically come after other elements, and
|
||||||
|
// right version is for icons, which come before. Applying both is ok, but it will
|
||||||
|
// mean that space between those elements will be .6em (~2 space characters) in IE7,
|
||||||
|
// instead of the 1 space in other browsers.
|
||||||
|
.ie7-restore-left-whitespace() {
|
||||||
|
*margin-left: .3em;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
*margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ie7-restore-right-whitespace() {
|
||||||
|
*margin-right: .3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sizing shortcuts
|
||||||
|
// -------------------------
|
||||||
|
.size(@height, @width) {
|
||||||
|
width: @width;
|
||||||
|
height: @height;
|
||||||
|
}
|
||||||
|
.square(@size) {
|
||||||
|
.size(@size, @size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Placeholder text
|
||||||
|
// -------------------------
|
||||||
|
.placeholder(@color: @placeholderText) {
|
||||||
|
&:-moz-placeholder {
|
||||||
|
color: @color;
|
||||||
|
}
|
||||||
|
&:-ms-input-placeholder {
|
||||||
|
color: @color;
|
||||||
|
}
|
||||||
|
&::-webkit-input-placeholder {
|
||||||
|
color: @color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Text overflow
|
||||||
|
// -------------------------
|
||||||
|
// Requires inline-block or block for proper styling
|
||||||
|
.text-overflow() {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// CSS image replacement
|
||||||
|
// -------------------------
|
||||||
|
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
||||||
|
.hide-text {
|
||||||
|
font: 0/0 a;
|
||||||
|
color: transparent;
|
||||||
|
text-shadow: none;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FONTS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
#font {
|
||||||
|
#family {
|
||||||
|
.serif() {
|
||||||
|
font-family: @serifFontFamily;
|
||||||
|
}
|
||||||
|
.sans-serif() {
|
||||||
|
font-family: @sansFontFamily;
|
||||||
|
}
|
||||||
|
.monospace() {
|
||||||
|
font-family: @monoFontFamily;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.shorthand(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
|
||||||
|
font-size: @size;
|
||||||
|
font-weight: @weight;
|
||||||
|
line-height: @lineHeight;
|
||||||
|
}
|
||||||
|
.serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
|
||||||
|
#font > #family > .serif;
|
||||||
|
#font > .shorthand(@size, @weight, @lineHeight);
|
||||||
|
}
|
||||||
|
.sans-serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
|
||||||
|
#font > #family > .sans-serif;
|
||||||
|
#font > .shorthand(@size, @weight, @lineHeight);
|
||||||
|
}
|
||||||
|
.monospace(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
|
||||||
|
#font > #family > .monospace;
|
||||||
|
#font > .shorthand(@size, @weight, @lineHeight);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FORMS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Block level inputs
|
||||||
|
.input-block-level {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
|
||||||
|
.box-sizing(border-box); // Makes inputs behave like true block-level elements
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Mixin for form field states
|
||||||
|
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
|
||||||
|
// Set the text color
|
||||||
|
.control-label,
|
||||||
|
.help-block,
|
||||||
|
.help-inline {
|
||||||
|
color: @textColor;
|
||||||
|
}
|
||||||
|
// Style inputs accordingly
|
||||||
|
.checkbox,
|
||||||
|
.radio,
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
color: @textColor;
|
||||||
|
}
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
border-color: @borderColor;
|
||||||
|
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
|
||||||
|
&:focus {
|
||||||
|
border-color: darken(@borderColor, 10%);
|
||||||
|
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Give a small background color for input-prepend/-append
|
||||||
|
.input-prepend .add-on,
|
||||||
|
.input-append .add-on {
|
||||||
|
color: @textColor;
|
||||||
|
background-color: @backgroundColor;
|
||||||
|
border-color: @textColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// CSS3 PROPERTIES
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Border Radius
|
||||||
|
.border-radius(@radius) {
|
||||||
|
-webkit-border-radius: @radius;
|
||||||
|
-moz-border-radius: @radius;
|
||||||
|
border-radius: @radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Single Corner Border Radius
|
||||||
|
.border-top-left-radius(@radius) {
|
||||||
|
-webkit-border-top-left-radius: @radius;
|
||||||
|
-moz-border-radius-topleft: @radius;
|
||||||
|
border-top-left-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-top-right-radius(@radius) {
|
||||||
|
-webkit-border-top-right-radius: @radius;
|
||||||
|
-moz-border-radius-topright: @radius;
|
||||||
|
border-top-right-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-bottom-right-radius(@radius) {
|
||||||
|
-webkit-border-bottom-right-radius: @radius;
|
||||||
|
-moz-border-radius-bottomright: @radius;
|
||||||
|
border-bottom-right-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-bottom-left-radius(@radius) {
|
||||||
|
-webkit-border-bottom-left-radius: @radius;
|
||||||
|
-moz-border-radius-bottomleft: @radius;
|
||||||
|
border-bottom-left-radius: @radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Single Side Border Radius
|
||||||
|
.border-top-radius(@radius) {
|
||||||
|
.border-top-right-radius(@radius);
|
||||||
|
.border-top-left-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-right-radius(@radius) {
|
||||||
|
.border-top-right-radius(@radius);
|
||||||
|
.border-bottom-right-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-bottom-radius(@radius) {
|
||||||
|
.border-bottom-right-radius(@radius);
|
||||||
|
.border-bottom-left-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-left-radius(@radius) {
|
||||||
|
.border-top-left-radius(@radius);
|
||||||
|
.border-bottom-left-radius(@radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Drop shadows
|
||||||
|
.box-shadow(@shadow) {
|
||||||
|
-webkit-box-shadow: @shadow;
|
||||||
|
-moz-box-shadow: @shadow;
|
||||||
|
box-shadow: @shadow;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Transitions
|
||||||
|
.transition(@transition) {
|
||||||
|
-webkit-transition: @transition;
|
||||||
|
-moz-transition: @transition;
|
||||||
|
-o-transition: @transition;
|
||||||
|
transition: @transition;
|
||||||
|
}
|
||||||
|
.transition-delay(@transition-delay) {
|
||||||
|
-webkit-transition-delay: @transition-delay;
|
||||||
|
-moz-transition-delay: @transition-delay;
|
||||||
|
-o-transition-delay: @transition-delay;
|
||||||
|
transition-delay: @transition-delay;
|
||||||
|
}
|
||||||
|
.transition-duration(@transition-duration) {
|
||||||
|
-webkit-transition-duration: @transition-duration;
|
||||||
|
-moz-transition-duration: @transition-duration;
|
||||||
|
-o-transition-duration: @transition-duration;
|
||||||
|
transition-duration: @transition-duration;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Transformations
|
||||||
|
.rotate(@degrees) {
|
||||||
|
-webkit-transform: rotate(@degrees);
|
||||||
|
-moz-transform: rotate(@degrees);
|
||||||
|
-ms-transform: rotate(@degrees);
|
||||||
|
-o-transform: rotate(@degrees);
|
||||||
|
transform: rotate(@degrees);
|
||||||
|
}
|
||||||
|
.scale(@ratio) {
|
||||||
|
-webkit-transform: scale(@ratio);
|
||||||
|
-moz-transform: scale(@ratio);
|
||||||
|
-ms-transform: scale(@ratio);
|
||||||
|
-o-transform: scale(@ratio);
|
||||||
|
transform: scale(@ratio);
|
||||||
|
}
|
||||||
|
.translate(@x, @y) {
|
||||||
|
-webkit-transform: translate(@x, @y);
|
||||||
|
-moz-transform: translate(@x, @y);
|
||||||
|
-ms-transform: translate(@x, @y);
|
||||||
|
-o-transform: translate(@x, @y);
|
||||||
|
transform: translate(@x, @y);
|
||||||
|
}
|
||||||
|
.skew(@x, @y) {
|
||||||
|
-webkit-transform: skew(@x, @y);
|
||||||
|
-moz-transform: skew(@x, @y);
|
||||||
|
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twitter/bootstrap/issues/4885
|
||||||
|
-o-transform: skew(@x, @y);
|
||||||
|
transform: skew(@x, @y);
|
||||||
|
-webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319
|
||||||
|
}
|
||||||
|
.translate3d(@x, @y, @z) {
|
||||||
|
-webkit-transform: translate3d(@x, @y, @z);
|
||||||
|
-moz-transform: translate3d(@x, @y, @z);
|
||||||
|
-o-transform: translate3d(@x, @y, @z);
|
||||||
|
transform: translate3d(@x, @y, @z);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Backface visibility
|
||||||
|
// Prevent browsers from flickering when using CSS 3D transforms.
|
||||||
|
// Default value is `visible`, but can be changed to `hidden
|
||||||
|
// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples
|
||||||
|
.backface-visibility(@visibility){
|
||||||
|
-webkit-backface-visibility: @visibility;
|
||||||
|
-moz-backface-visibility: @visibility;
|
||||||
|
backface-visibility: @visibility;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Background clipping
|
||||||
|
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
||||||
|
.background-clip(@clip) {
|
||||||
|
-webkit-background-clip: @clip;
|
||||||
|
-moz-background-clip: @clip;
|
||||||
|
background-clip: @clip;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Background sizing
|
||||||
|
.background-size(@size) {
|
||||||
|
-webkit-background-size: @size;
|
||||||
|
-moz-background-size: @size;
|
||||||
|
-o-background-size: @size;
|
||||||
|
background-size: @size;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Box sizing
|
||||||
|
.box-sizing(@boxmodel) {
|
||||||
|
-webkit-box-sizing: @boxmodel;
|
||||||
|
-moz-box-sizing: @boxmodel;
|
||||||
|
box-sizing: @boxmodel;
|
||||||
|
}
|
||||||
|
|
||||||
|
// User select
|
||||||
|
// For selecting text on the page
|
||||||
|
.user-select(@select) {
|
||||||
|
-webkit-user-select: @select;
|
||||||
|
-moz-user-select: @select;
|
||||||
|
-ms-user-select: @select;
|
||||||
|
-o-user-select: @select;
|
||||||
|
user-select: @select;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resize anything
|
||||||
|
.resizable(@direction) {
|
||||||
|
resize: @direction; // Options: horizontal, vertical, both
|
||||||
|
overflow: auto; // Safari fix
|
||||||
|
}
|
||||||
|
|
||||||
|
// CSS3 Content Columns
|
||||||
|
.content-columns(@columnCount, @columnGap: @gridGutterWidth) {
|
||||||
|
-webkit-column-count: @columnCount;
|
||||||
|
-moz-column-count: @columnCount;
|
||||||
|
column-count: @columnCount;
|
||||||
|
-webkit-column-gap: @columnGap;
|
||||||
|
-moz-column-gap: @columnGap;
|
||||||
|
column-gap: @columnGap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optional hyphenation
|
||||||
|
.hyphens(@mode: auto) {
|
||||||
|
word-wrap: break-word;
|
||||||
|
-webkit-hyphens: @mode;
|
||||||
|
-moz-hyphens: @mode;
|
||||||
|
-ms-hyphens: @mode;
|
||||||
|
-o-hyphens: @mode;
|
||||||
|
hyphens: @mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Opacity
|
||||||
|
.opacity(@opacity) {
|
||||||
|
opacity: @opacity / 100;
|
||||||
|
filter: ~"alpha(opacity=@{opacity})";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// BACKGROUNDS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
||||||
|
#translucent {
|
||||||
|
.background(@color: @white, @alpha: 1) {
|
||||||
|
background-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
|
||||||
|
}
|
||||||
|
.border(@color: @white, @alpha: 1) {
|
||||||
|
border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
|
||||||
|
.background-clip(padding-box);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gradient Bar Colors for buttons and alerts
|
||||||
|
.gradientBar(@primaryColor, @secondaryColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
|
||||||
|
color: @textColor;
|
||||||
|
text-shadow: @textShadow;
|
||||||
|
#gradient > .vertical(@primaryColor, @secondaryColor);
|
||||||
|
border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
|
||||||
|
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gradients
|
||||||
|
#gradient {
|
||||||
|
.horizontal(@startColor: #555, @endColor: #333) {
|
||||||
|
background-color: @endColor;
|
||||||
|
background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 100% 0, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
|
||||||
|
background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
|
||||||
|
background-image: linear-gradient(to right, @startColor, @endColor); // Standard, IE10
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@startColor),argb(@endColor))); // IE9 and down
|
||||||
|
}
|
||||||
|
.vertical(@startColor: #555, @endColor: #333) {
|
||||||
|
background-color: mix(@startColor, @endColor, 60%);
|
||||||
|
background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
|
||||||
|
background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
|
||||||
|
background-image: linear-gradient(to bottom, @startColor, @endColor); // Standard, IE10
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down
|
||||||
|
}
|
||||||
|
.directional(@startColor: #555, @endColor: #333, @deg: 45deg) {
|
||||||
|
background-color: @endColor;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+
|
||||||
|
background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
|
||||||
|
background-image: linear-gradient(@deg, @startColor, @endColor); // Standard, IE10
|
||||||
|
}
|
||||||
|
.horizontal-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
|
||||||
|
background-color: mix(@midColor, @endColor, 80%);
|
||||||
|
background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
|
||||||
|
background-image: -webkit-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: -moz-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: -o-linear-gradient(left, @startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: linear-gradient(to right, @startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
|
}
|
||||||
|
|
||||||
|
.vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
|
||||||
|
background-color: mix(@midColor, @endColor, 80%);
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
|
||||||
|
background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
|
}
|
||||||
|
.radial(@innerColor: #555, @outerColor: #333) {
|
||||||
|
background-color: @outerColor;
|
||||||
|
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(@innerColor), to(@outerColor));
|
||||||
|
background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
|
background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
|
background-image: -o-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
.striped(@color: #555, @angle: 45deg) {
|
||||||
|
background-color: @color;
|
||||||
|
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
|
||||||
|
background-image: -webkit-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: -moz-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: -o-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Reset filters for IE
|
||||||
|
.reset-filter() {
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// COMPONENT MIXINS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Horizontal dividers
|
||||||
|
// -------------------------
|
||||||
|
// Dividers (basically an hr) within dropdowns and nav lists
|
||||||
|
.nav-divider(@top: #e5e5e5, @bottom: @white) {
|
||||||
|
// IE7 needs a set width since we gave a height. Restricting just
|
||||||
|
// to IE7 to keep the 1px left/right space in other browsers.
|
||||||
|
// It is unclear where IE is getting the extra space that we need
|
||||||
|
// to negative-margin away, but so it goes.
|
||||||
|
*width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
|
||||||
|
*margin: -5px 0 5px;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: @top;
|
||||||
|
border-bottom: 1px solid @bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Button backgrounds
|
||||||
|
// ------------------
|
||||||
|
.buttonBackground(@startColor, @endColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
|
||||||
|
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
||||||
|
.gradientBar(@startColor, @endColor, @textColor, @textShadow);
|
||||||
|
*background-color: @endColor; /* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
||||||
|
.reset-filter();
|
||||||
|
|
||||||
|
// in these cases the gradient won't cover the background, so we override
|
||||||
|
&:hover, &:focus, &:active, &.active, &.disabled, &[disabled] {
|
||||||
|
color: @textColor;
|
||||||
|
background-color: @endColor;
|
||||||
|
*background-color: darken(@endColor, 5%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
|
||||||
|
&:active,
|
||||||
|
&.active {
|
||||||
|
background-color: darken(@endColor, 10%) e("\9");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar vertical align
|
||||||
|
// -------------------------
|
||||||
|
// Vertically center elements in the navbar.
|
||||||
|
// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
|
||||||
|
.navbarVerticalAlign(@elementHeight) {
|
||||||
|
margin-top: (@navbarHeight - @elementHeight) / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Grid System
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
// Centered container element
|
||||||
|
.container-fixed() {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Table columns
|
||||||
|
.tableColumns(@columnSpan: 1) {
|
||||||
|
float: none; // undo default grid column styles
|
||||||
|
width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 16; // 16 is total padding on left and right of table cells
|
||||||
|
margin-left: 0; // undo default grid column styles
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make a Grid
|
||||||
|
// Use .makeRow and .makeColumn to assign semantic layouts grid system behavior
|
||||||
|
.makeRow() {
|
||||||
|
margin-left: @gridGutterWidth * -1;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
.makeColumn(@columns: 1, @offset: 0) {
|
||||||
|
float: left;
|
||||||
|
margin-left: (@gridColumnWidth * @offset) + (@gridGutterWidth * (@offset - 1)) + (@gridGutterWidth * 2);
|
||||||
|
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
// The Grid
|
||||||
|
#grid {
|
||||||
|
|
||||||
|
.core (@gridColumnWidth, @gridGutterWidth) {
|
||||||
|
|
||||||
|
.spanX (@index) when (@index > 0) {
|
||||||
|
.span@{index} { .span(@index); }
|
||||||
|
.spanX(@index - 1);
|
||||||
|
}
|
||||||
|
.spanX (0) {}
|
||||||
|
|
||||||
|
.offsetX (@index) when (@index > 0) {
|
||||||
|
.offset@{index} { .offset(@index); }
|
||||||
|
.offsetX(@index - 1);
|
||||||
|
}
|
||||||
|
.offsetX (0) {}
|
||||||
|
|
||||||
|
.offset (@columns) {
|
||||||
|
margin-left: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns + 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.span (@columns) {
|
||||||
|
width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
margin-left: @gridGutterWidth * -1;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
|
||||||
|
[class*="span"] {
|
||||||
|
float: left;
|
||||||
|
min-height: 1px; // prevent collapsing columns
|
||||||
|
margin-left: @gridGutterWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the container width, and override it for fixed navbars in media queries
|
||||||
|
.container,
|
||||||
|
.navbar-static-top .container,
|
||||||
|
.navbar-fixed-top .container,
|
||||||
|
.navbar-fixed-bottom .container { .span(@gridColumns); }
|
||||||
|
|
||||||
|
// generate .spanX and .offsetX
|
||||||
|
.spanX (@gridColumns);
|
||||||
|
.offsetX (@gridColumns);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.fluid (@fluidGridColumnWidth, @fluidGridGutterWidth) {
|
||||||
|
|
||||||
|
.spanX (@index) when (@index > 0) {
|
||||||
|
.span@{index} { .span(@index); }
|
||||||
|
.spanX(@index - 1);
|
||||||
|
}
|
||||||
|
.spanX (0) {}
|
||||||
|
|
||||||
|
.offsetX (@index) when (@index > 0) {
|
||||||
|
.offset@{index} { .offset(@index); }
|
||||||
|
.offset@{index}:first-child { .offsetFirstChild(@index); }
|
||||||
|
.offsetX(@index - 1);
|
||||||
|
}
|
||||||
|
.offsetX (0) {}
|
||||||
|
|
||||||
|
.offset (@columns) {
|
||||||
|
margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) + (@fluidGridGutterWidth*2);
|
||||||
|
*margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%) + (@fluidGridGutterWidth*2) - (.5 / @gridRowWidth * 100 * 1%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.offsetFirstChild (@columns) {
|
||||||
|
margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) + (@fluidGridGutterWidth);
|
||||||
|
*margin-left: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%) + @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.span (@columns) {
|
||||||
|
width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1));
|
||||||
|
*width: (@fluidGridColumnWidth * @columns) + (@fluidGridGutterWidth * (@columns - 1)) - (.5 / @gridRowWidth * 100 * 1%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.row-fluid {
|
||||||
|
width: 100%;
|
||||||
|
.clearfix();
|
||||||
|
[class*="span"] {
|
||||||
|
.input-block-level();
|
||||||
|
float: left;
|
||||||
|
margin-left: @fluidGridGutterWidth;
|
||||||
|
*margin-left: @fluidGridGutterWidth - (.5 / @gridRowWidth * 100 * 1%);
|
||||||
|
}
|
||||||
|
[class*="span"]:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Space grid-sized controls properly if multiple per line
|
||||||
|
.controls-row [class*="span"] + [class*="span"] {
|
||||||
|
margin-left: @fluidGridGutterWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
// generate .spanX and .offsetX
|
||||||
|
.spanX (@gridColumns);
|
||||||
|
.offsetX (@gridColumns);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.input(@gridColumnWidth, @gridGutterWidth) {
|
||||||
|
|
||||||
|
.spanX (@index) when (@index > 0) {
|
||||||
|
input.span@{index}, textarea.span@{index}, .uneditable-input.span@{index} { .span(@index); }
|
||||||
|
.spanX(@index - 1);
|
||||||
|
}
|
||||||
|
.spanX (0) {}
|
||||||
|
|
||||||
|
.span(@columns) {
|
||||||
|
width: ((@gridColumnWidth) * @columns) + (@gridGutterWidth * (@columns - 1)) - 14;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
.uneditable-input {
|
||||||
|
margin-left: 0; // override margin-left from core grid system
|
||||||
|
}
|
||||||
|
|
||||||
|
// Space grid-sized controls properly if multiple per line
|
||||||
|
.controls-row [class*="span"] + [class*="span"] {
|
||||||
|
margin-left: @gridGutterWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
// generate .spanX
|
||||||
|
.spanX (@gridColumns);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
95
app/assets/stylesheets/admin/framework/modals.less
Executable file
95
app/assets/stylesheets/admin/framework/modals.less
Executable file
@ -0,0 +1,95 @@
|
|||||||
|
//
|
||||||
|
// Modals
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Background
|
||||||
|
.modal-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexModalBackdrop;
|
||||||
|
background-color: @black;
|
||||||
|
// Fade for backdrop
|
||||||
|
&.fade { opacity: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-backdrop,
|
||||||
|
.modal-backdrop.fade.in {
|
||||||
|
.opacity(0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Base modal
|
||||||
|
.modal {
|
||||||
|
position: fixed;
|
||||||
|
top: 10%;
|
||||||
|
left: 50%;
|
||||||
|
z-index: @zindexModal;
|
||||||
|
width: 560px;
|
||||||
|
margin-left: -280px;
|
||||||
|
background-color: @white;
|
||||||
|
border: 1px solid #999;
|
||||||
|
border: 1px solid rgba(0,0,0,.3);
|
||||||
|
*border: 1px solid #999; /* IE6-7 */
|
||||||
|
.border-radius(6px);
|
||||||
|
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
||||||
|
.background-clip(padding-box);
|
||||||
|
// Remove focus outline from opened modal
|
||||||
|
outline: none;
|
||||||
|
|
||||||
|
&.fade {
|
||||||
|
.transition(e('opacity .3s linear, top .3s ease-out'));
|
||||||
|
top: -25%;
|
||||||
|
}
|
||||||
|
&.fade.in { top: 10%; }
|
||||||
|
}
|
||||||
|
.modal-header {
|
||||||
|
padding: 9px 15px;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
// Close icon
|
||||||
|
.close { margin-top: 2px; }
|
||||||
|
// Heading
|
||||||
|
h3 {
|
||||||
|
margin: 0;
|
||||||
|
line-height: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Body (where all modal content resides)
|
||||||
|
.modal-body {
|
||||||
|
position: relative;
|
||||||
|
overflow-y: auto;
|
||||||
|
max-height: 400px;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
// Remove bottom margin if need be
|
||||||
|
.modal-form {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Footer (for actions)
|
||||||
|
.modal-footer {
|
||||||
|
padding: 14px 15px 15px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
text-align: right; // right align buttons
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
.border-radius(0 0 6px 6px);
|
||||||
|
.box-shadow(inset 0 1px 0 @white);
|
||||||
|
.clearfix(); // clear it in case folks use .pull-* classes on buttons
|
||||||
|
|
||||||
|
// Properly space out buttons
|
||||||
|
.btn + .btn {
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
||||||
|
}
|
||||||
|
// but override that for button groups
|
||||||
|
.btn-group .btn + .btn {
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
// and override it for block buttons as well
|
||||||
|
.btn-block + .btn-block {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
497
app/assets/stylesheets/admin/framework/navbar.less
Executable file
497
app/assets/stylesheets/admin/framework/navbar.less
Executable file
@ -0,0 +1,497 @@
|
|||||||
|
//
|
||||||
|
// Navbars (Redux)
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// COMMON STYLES
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
// Base class and wrapper
|
||||||
|
.navbar {
|
||||||
|
overflow: visible;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
|
||||||
|
// Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
|
||||||
|
*position: relative;
|
||||||
|
*z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inner for background effects
|
||||||
|
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
||||||
|
.navbar-inner {
|
||||||
|
min-height: @navbarHeight;
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
||||||
|
border: 1px solid @navbarBorder;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
.box-shadow(0 1px 4px rgba(0,0,0,.065));
|
||||||
|
|
||||||
|
// Prevent floats from breaking the navbar
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set width to auto for default container
|
||||||
|
// We then reset it for fixed navbars in the #gridSystem mixin
|
||||||
|
.navbar .container {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Override the default collapsed state
|
||||||
|
.nav-collapse.collapse {
|
||||||
|
height: auto;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Brand: website or project name
|
||||||
|
// -------------------------
|
||||||
|
.navbar .brand {
|
||||||
|
float: left;
|
||||||
|
display: block;
|
||||||
|
// Vertically center the text given @navbarHeight
|
||||||
|
padding: ((@navbarHeight - @baseLineHeight) / 2) 20px ((@navbarHeight - @baseLineHeight) / 2);
|
||||||
|
margin-left: -20px; // negative indent to left-align the text down the page
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 200;
|
||||||
|
color: @navbarBrandColor;
|
||||||
|
text-shadow: 0 1px 0 @navbarBackgroundHighlight;
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Plain text in topbar
|
||||||
|
// -------------------------
|
||||||
|
.navbar-text {
|
||||||
|
margin-bottom: 0;
|
||||||
|
line-height: @navbarHeight;
|
||||||
|
color: @navbarText;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Janky solution for now to account for links outside the .nav
|
||||||
|
// -------------------------
|
||||||
|
.navbar-link {
|
||||||
|
color: @navbarLinkColor;
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: @navbarLinkColorHover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dividers in navbar
|
||||||
|
// -------------------------
|
||||||
|
.navbar .divider-vertical {
|
||||||
|
height: @navbarHeight;
|
||||||
|
margin: 0 9px;
|
||||||
|
border-left: 1px solid @navbarBackground;
|
||||||
|
border-right: 1px solid @navbarBackgroundHighlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Buttons in navbar
|
||||||
|
// -------------------------
|
||||||
|
.navbar .btn,
|
||||||
|
.navbar .btn-group {
|
||||||
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
||||||
|
}
|
||||||
|
.navbar .btn-group .btn,
|
||||||
|
.navbar .input-prepend .btn,
|
||||||
|
.navbar .input-append .btn,
|
||||||
|
.navbar .input-prepend .btn-group,
|
||||||
|
.navbar .input-append .btn-group {
|
||||||
|
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar forms
|
||||||
|
// -------------------------
|
||||||
|
.navbar-form {
|
||||||
|
margin-bottom: 0; // remove default bottom margin
|
||||||
|
.clearfix();
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.radio,
|
||||||
|
.checkbox {
|
||||||
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
||||||
|
}
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.btn {
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
input[type="image"],
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
margin-top: 3px;
|
||||||
|
}
|
||||||
|
.input-append,
|
||||||
|
.input-prepend {
|
||||||
|
margin-top: 5px;
|
||||||
|
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
|
||||||
|
input {
|
||||||
|
margin-top: 0; // remove the margin on top since it's on the parent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar search
|
||||||
|
// -------------------------
|
||||||
|
.navbar-search {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
||||||
|
margin-bottom: 0;
|
||||||
|
.search-query {
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding: 4px 14px;
|
||||||
|
#font > .sans-serif(13px, normal, 1);
|
||||||
|
.border-radius(15px); // redeclare because of specificity of the type attribute
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Static navbar
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.navbar-static-top {
|
||||||
|
position: static;
|
||||||
|
margin-bottom: 0; // remove 18px margin for default navbar
|
||||||
|
.navbar-inner {
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Fixed navbar
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Shared (top/bottom) styles
|
||||||
|
.navbar-fixed-top,
|
||||||
|
.navbar-fixed-bottom {
|
||||||
|
position: fixed;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexFixedNavbar;
|
||||||
|
margin-bottom: 0; // remove 18px margin for default navbar
|
||||||
|
}
|
||||||
|
.navbar-fixed-top .navbar-inner,
|
||||||
|
.navbar-static-top .navbar-inner {
|
||||||
|
border-width: 0 0 1px;
|
||||||
|
}
|
||||||
|
.navbar-fixed-bottom .navbar-inner {
|
||||||
|
border-width: 1px 0 0;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top .navbar-inner,
|
||||||
|
.navbar-fixed-bottom .navbar-inner {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset container width
|
||||||
|
// Required here as we reset the width earlier on and the grid mixins don't override early enough
|
||||||
|
.navbar-static-top .container,
|
||||||
|
.navbar-fixed-top .container,
|
||||||
|
.navbar-fixed-bottom .container {
|
||||||
|
#grid > .core > .span(@gridColumns);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fixed to top
|
||||||
|
.navbar-fixed-top {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top,
|
||||||
|
.navbar-static-top {
|
||||||
|
.navbar-inner {
|
||||||
|
.box-shadow(~"0 1px 10px rgba(0,0,0,.1)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fixed to bottom
|
||||||
|
.navbar-fixed-bottom {
|
||||||
|
bottom: 0;
|
||||||
|
.navbar-inner {
|
||||||
|
.box-shadow(~"0 -1px 10px rgba(0,0,0,.1)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// NAVIGATION
|
||||||
|
// ----------
|
||||||
|
|
||||||
|
.navbar .nav {
|
||||||
|
position: relative;
|
||||||
|
left: 0;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
margin: 0 10px 0 0;
|
||||||
|
}
|
||||||
|
.navbar .nav.pull-right {
|
||||||
|
float: right; // redeclare due to specificity
|
||||||
|
margin-right: 0; // remove margin on float right nav
|
||||||
|
}
|
||||||
|
.navbar .nav > li {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Links
|
||||||
|
.navbar .nav > li > a {
|
||||||
|
float: none;
|
||||||
|
// Vertically center the text given @navbarHeight
|
||||||
|
padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
|
||||||
|
color: @navbarLinkColor;
|
||||||
|
text-decoration: none;
|
||||||
|
text-shadow: 0 1px 0 @navbarBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.navbar .nav .dropdown-toggle .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover/focus
|
||||||
|
.navbar .nav > li > a:focus,
|
||||||
|
.navbar .nav > li > a:hover {
|
||||||
|
background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active
|
||||||
|
color: @navbarLinkColorHover;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active nav items
|
||||||
|
.navbar .nav > .active > a,
|
||||||
|
.navbar .nav > .active > a:hover,
|
||||||
|
.navbar .nav > .active > a:focus {
|
||||||
|
color: @navbarLinkColorActive;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @navbarLinkBackgroundActive;
|
||||||
|
.box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar button for toggling navbar items in responsive layouts
|
||||||
|
// These definitions need to come after '.navbar .btn'
|
||||||
|
.navbar .btn-navbar {
|
||||||
|
display: none;
|
||||||
|
float: right;
|
||||||
|
padding: 7px 10px;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
|
.buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
|
||||||
|
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
|
||||||
|
}
|
||||||
|
.navbar .btn-navbar .icon-bar {
|
||||||
|
display: block;
|
||||||
|
width: 18px;
|
||||||
|
height: 2px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
.border-radius(1px);
|
||||||
|
.box-shadow(0 1px 0 rgba(0,0,0,.25));
|
||||||
|
}
|
||||||
|
.btn-navbar .icon-bar + .icon-bar {
|
||||||
|
margin-top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Dropdown menus
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// Menu position and menu carets
|
||||||
|
.navbar .nav > li > .dropdown-menu {
|
||||||
|
&:before {
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
border-left: 7px solid transparent;
|
||||||
|
border-right: 7px solid transparent;
|
||||||
|
border-bottom: 7px solid #ccc;
|
||||||
|
border-bottom-color: @dropdownBorder;
|
||||||
|
position: absolute;
|
||||||
|
top: -7px;
|
||||||
|
left: 9px;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
border-left: 6px solid transparent;
|
||||||
|
border-right: 6px solid transparent;
|
||||||
|
border-bottom: 6px solid @dropdownBackground;
|
||||||
|
position: absolute;
|
||||||
|
top: -6px;
|
||||||
|
left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Menu position and menu caret support for dropups via extra dropup class
|
||||||
|
.navbar-fixed-bottom .nav > li > .dropdown-menu {
|
||||||
|
&:before {
|
||||||
|
border-top: 7px solid #ccc;
|
||||||
|
border-top-color: @dropdownBorder;
|
||||||
|
border-bottom: 0;
|
||||||
|
bottom: -7px;
|
||||||
|
top: auto;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
border-top: 6px solid @dropdownBackground;
|
||||||
|
border-bottom: 0;
|
||||||
|
bottom: -6px;
|
||||||
|
top: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Caret should match text color on hover/focus
|
||||||
|
.navbar .nav li.dropdown > a:hover .caret,
|
||||||
|
.navbar .nav li.dropdown > a:focus .caret {
|
||||||
|
border-top-color: @navbarLinkColorHover;
|
||||||
|
border-bottom-color: @navbarLinkColorHover;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove background color from open dropdown
|
||||||
|
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
||||||
|
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
||||||
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
|
||||||
|
background-color: @navbarLinkBackgroundActive;
|
||||||
|
color: @navbarLinkColorActive;
|
||||||
|
}
|
||||||
|
.navbar .nav li.dropdown > .dropdown-toggle .caret {
|
||||||
|
border-top-color: @navbarLinkColor;
|
||||||
|
border-bottom-color: @navbarLinkColor;
|
||||||
|
}
|
||||||
|
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
|
||||||
|
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
|
||||||
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
|
||||||
|
border-top-color: @navbarLinkColorActive;
|
||||||
|
border-bottom-color: @navbarLinkColorActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Right aligned menus need alt position
|
||||||
|
.navbar .pull-right > li > .dropdown-menu,
|
||||||
|
.navbar .nav > li > .dropdown-menu.pull-right {
|
||||||
|
left: auto;
|
||||||
|
right: 0;
|
||||||
|
&:before {
|
||||||
|
left: auto;
|
||||||
|
right: 12px;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
left: auto;
|
||||||
|
right: 13px;
|
||||||
|
}
|
||||||
|
.dropdown-menu {
|
||||||
|
left: auto;
|
||||||
|
right: 100%;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: -1px;
|
||||||
|
.border-radius(6px 0 6px 6px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Inverted navbar
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.navbar-inverse {
|
||||||
|
|
||||||
|
.navbar-inner {
|
||||||
|
#gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
|
||||||
|
border-color: @navbarInverseBorder;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand,
|
||||||
|
.nav > li > a {
|
||||||
|
color: @navbarInverseLinkColor;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: @navbarInverseLinkColorHover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand {
|
||||||
|
color: @navbarInverseBrandColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-text {
|
||||||
|
color: @navbarInverseText;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav > li > a:focus,
|
||||||
|
.nav > li > a:hover {
|
||||||
|
background-color: @navbarInverseLinkBackgroundHover;
|
||||||
|
color: @navbarInverseLinkColorHover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav .active > a,
|
||||||
|
.nav .active > a:hover,
|
||||||
|
.nav .active > a:focus {
|
||||||
|
color: @navbarInverseLinkColorActive;
|
||||||
|
background-color: @navbarInverseLinkBackgroundActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inline text links
|
||||||
|
.navbar-link {
|
||||||
|
color: @navbarInverseLinkColor;
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: @navbarInverseLinkColorHover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dividers in navbar
|
||||||
|
.divider-vertical {
|
||||||
|
border-left-color: @navbarInverseBackground;
|
||||||
|
border-right-color: @navbarInverseBackgroundHighlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dropdowns
|
||||||
|
.nav li.dropdown.open > .dropdown-toggle,
|
||||||
|
.nav li.dropdown.active > .dropdown-toggle,
|
||||||
|
.nav li.dropdown.open.active > .dropdown-toggle {
|
||||||
|
background-color: @navbarInverseLinkBackgroundActive;
|
||||||
|
color: @navbarInverseLinkColorActive;
|
||||||
|
}
|
||||||
|
.nav li.dropdown > a:hover .caret,
|
||||||
|
.nav li.dropdown > a:focus .caret {
|
||||||
|
border-top-color: @navbarInverseLinkColorActive;
|
||||||
|
border-bottom-color: @navbarInverseLinkColorActive;
|
||||||
|
}
|
||||||
|
.nav li.dropdown > .dropdown-toggle .caret {
|
||||||
|
border-top-color: @navbarInverseLinkColor;
|
||||||
|
border-bottom-color: @navbarInverseLinkColor;
|
||||||
|
}
|
||||||
|
.nav li.dropdown.open > .dropdown-toggle .caret,
|
||||||
|
.nav li.dropdown.active > .dropdown-toggle .caret,
|
||||||
|
.nav li.dropdown.open.active > .dropdown-toggle .caret {
|
||||||
|
border-top-color: @navbarInverseLinkColorActive;
|
||||||
|
border-bottom-color: @navbarInverseLinkColorActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar search
|
||||||
|
.navbar-search {
|
||||||
|
.search-query {
|
||||||
|
color: @white;
|
||||||
|
background-color: @navbarInverseSearchBackground;
|
||||||
|
border-color: @navbarInverseSearchBorder;
|
||||||
|
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
|
||||||
|
.transition(none);
|
||||||
|
.placeholder(@navbarInverseSearchPlaceholderColor);
|
||||||
|
|
||||||
|
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
||||||
|
&:focus,
|
||||||
|
&.focused {
|
||||||
|
padding: 5px 15px;
|
||||||
|
color: @grayDark;
|
||||||
|
text-shadow: 0 1px 0 @white;
|
||||||
|
background-color: @navbarInverseSearchBackgroundFocus;
|
||||||
|
border: 0;
|
||||||
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar collapse button
|
||||||
|
.btn-navbar {
|
||||||
|
.buttonBackground(darken(@navbarInverseBackgroundHighlight, 5%), darken(@navbarInverseBackground, 5%));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
409
app/assets/stylesheets/admin/framework/navs.less
Executable file
409
app/assets/stylesheets/admin/framework/navs.less
Executable file
@ -0,0 +1,409 @@
|
|||||||
|
//
|
||||||
|
// Navs
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// BASE CLASS
|
||||||
|
// ----------
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make links block level
|
||||||
|
.nav > li > a {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.nav > li > a:hover,
|
||||||
|
.nav > li > a:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @grayLighter;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prevent IE8 from misplacing imgs
|
||||||
|
// See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
|
||||||
|
.nav > li > a > img {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Redeclare pull classes because of specifity
|
||||||
|
.nav > .pull-right {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Nav headers (for dropdowns and lists)
|
||||||
|
.nav-header {
|
||||||
|
display: block;
|
||||||
|
padding: 3px 15px;
|
||||||
|
font-size: 11px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @grayLight;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
// Space them out when they follow another list item (link)
|
||||||
|
.nav li + .nav-header {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// NAV LIST
|
||||||
|
// --------
|
||||||
|
|
||||||
|
.nav-list {
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 15px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.nav-list > li > a,
|
||||||
|
.nav-list .nav-header {
|
||||||
|
margin-left: -15px;
|
||||||
|
margin-right: -15px;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
|
}
|
||||||
|
.nav-list > li > a {
|
||||||
|
padding: 3px 15px;
|
||||||
|
}
|
||||||
|
.nav-list > .active > a,
|
||||||
|
.nav-list > .active > a:hover,
|
||||||
|
.nav-list > .active > a:focus {
|
||||||
|
color: @white;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
||||||
|
background-color: @linkColor;
|
||||||
|
}
|
||||||
|
.nav-list [class^="icon-"],
|
||||||
|
.nav-list [class*=" icon-"] {
|
||||||
|
margin-right: 2px;
|
||||||
|
}
|
||||||
|
// Dividers (basically an hr) within the dropdown
|
||||||
|
.nav-list .divider {
|
||||||
|
.nav-divider();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TABS AND PILLS
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
// Common styles
|
||||||
|
.nav-tabs,
|
||||||
|
.nav-pills {
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
.nav-tabs > li,
|
||||||
|
.nav-pills > li {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.nav-tabs > li > a,
|
||||||
|
.nav-pills > li > a {
|
||||||
|
padding-right: 12px;
|
||||||
|
padding-left: 12px;
|
||||||
|
margin-right: 2px;
|
||||||
|
line-height: 14px; // keeps the overall height an even number
|
||||||
|
}
|
||||||
|
|
||||||
|
// TABS
|
||||||
|
// ----
|
||||||
|
|
||||||
|
// Give the tabs something to sit on
|
||||||
|
.nav-tabs {
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
// Make the list-items overlay the bottom border
|
||||||
|
.nav-tabs > li {
|
||||||
|
margin-bottom: -1px;
|
||||||
|
}
|
||||||
|
// Actual tabs (as links)
|
||||||
|
.nav-tabs > li > a {
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
.border-radius(4px 4px 0 0);
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
border-color: @grayLighter @grayLighter #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Active state, and it's :hover/:focus to override normal :hover/:focus
|
||||||
|
.nav-tabs > .active > a,
|
||||||
|
.nav-tabs > .active > a:hover,
|
||||||
|
.nav-tabs > .active > a:focus {
|
||||||
|
color: @gray;
|
||||||
|
background-color: @bodyBackground;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// PILLS
|
||||||
|
// -----
|
||||||
|
|
||||||
|
// Links rendered as pills
|
||||||
|
.nav-pills > li > a {
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
margin-top: 2px;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
.border-radius(5px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active state
|
||||||
|
.nav-pills > .active > a,
|
||||||
|
.nav-pills > .active > a:hover,
|
||||||
|
.nav-pills > .active > a:focus {
|
||||||
|
color: @white;
|
||||||
|
background-color: @linkColor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// STACKED NAV
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
// Stacked tabs and pills
|
||||||
|
.nav-stacked > li {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
.nav-stacked > li > a {
|
||||||
|
margin-right: 0; // no need for the gap between nav items
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tabs
|
||||||
|
.nav-tabs.nav-stacked {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
.nav-tabs.nav-stacked > li > a {
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.nav-tabs.nav-stacked > li:first-child > a {
|
||||||
|
.border-top-radius(4px);
|
||||||
|
}
|
||||||
|
.nav-tabs.nav-stacked > li:last-child > a {
|
||||||
|
.border-bottom-radius(4px);
|
||||||
|
}
|
||||||
|
.nav-tabs.nav-stacked > li > a:hover,
|
||||||
|
.nav-tabs.nav-stacked > li > a:focus {
|
||||||
|
border-color: #ddd;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pills
|
||||||
|
.nav-pills.nav-stacked > li > a {
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
.nav-pills.nav-stacked > li:last-child > a {
|
||||||
|
margin-bottom: 1px; // decrease margin to match sizing of stacked tabs
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DROPDOWNS
|
||||||
|
// ---------
|
||||||
|
|
||||||
|
.nav-tabs .dropdown-menu {
|
||||||
|
.border-radius(0 0 6px 6px); // remove the top rounded corners here since there is a hard edge above the menu
|
||||||
|
}
|
||||||
|
.nav-pills .dropdown-menu {
|
||||||
|
.border-radius(6px); // make rounded corners match the pills
|
||||||
|
}
|
||||||
|
|
||||||
|
// Default dropdown links
|
||||||
|
// -------------------------
|
||||||
|
// Make carets use linkColor to start
|
||||||
|
.nav .dropdown-toggle .caret {
|
||||||
|
border-top-color: @linkColor;
|
||||||
|
border-bottom-color: @linkColor;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
.nav .dropdown-toggle:hover .caret,
|
||||||
|
.nav .dropdown-toggle:focus .caret {
|
||||||
|
border-top-color: @linkColorHover;
|
||||||
|
border-bottom-color: @linkColorHover;
|
||||||
|
}
|
||||||
|
/* move down carets for tabs */
|
||||||
|
.nav-tabs .dropdown-toggle .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active dropdown links
|
||||||
|
// -------------------------
|
||||||
|
.nav .active .dropdown-toggle .caret {
|
||||||
|
border-top-color: #fff;
|
||||||
|
border-bottom-color: #fff;
|
||||||
|
}
|
||||||
|
.nav-tabs .active .dropdown-toggle .caret {
|
||||||
|
border-top-color: @gray;
|
||||||
|
border-bottom-color: @gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active:hover/:focus dropdown links
|
||||||
|
// -------------------------
|
||||||
|
.nav > .dropdown.active > a:hover,
|
||||||
|
.nav > .dropdown.active > a:focus {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open dropdowns
|
||||||
|
// -------------------------
|
||||||
|
.nav-tabs .open .dropdown-toggle,
|
||||||
|
.nav-pills .open .dropdown-toggle,
|
||||||
|
.nav > li.dropdown.open.active > a:hover,
|
||||||
|
.nav > li.dropdown.open.active > a:focus {
|
||||||
|
color: @white;
|
||||||
|
background-color: @grayLight;
|
||||||
|
border-color: @grayLight;
|
||||||
|
}
|
||||||
|
.nav li.dropdown.open .caret,
|
||||||
|
.nav li.dropdown.open.active .caret,
|
||||||
|
.nav li.dropdown.open a:hover .caret,
|
||||||
|
.nav li.dropdown.open a:focus .caret {
|
||||||
|
border-top-color: @white;
|
||||||
|
border-bottom-color: @white;
|
||||||
|
.opacity(100);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dropdowns in stacked tabs
|
||||||
|
.tabs-stacked .open > a:hover,
|
||||||
|
.tabs-stacked .open > a:focus {
|
||||||
|
border-color: @grayLight;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TABBABLE
|
||||||
|
// --------
|
||||||
|
|
||||||
|
|
||||||
|
// COMMON STYLES
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
// Clear any floats
|
||||||
|
.tabbable {
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
.tab-content {
|
||||||
|
overflow: auto; // prevent content from running below tabs
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove border on bottom, left, right
|
||||||
|
.tabs-below > .nav-tabs,
|
||||||
|
.tabs-right > .nav-tabs,
|
||||||
|
.tabs-left > .nav-tabs {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show/hide tabbable areas
|
||||||
|
.tab-content > .tab-pane,
|
||||||
|
.pill-content > .pill-pane {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.tab-content > .active,
|
||||||
|
.pill-content > .active {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// BOTTOM
|
||||||
|
// ------
|
||||||
|
|
||||||
|
.tabs-below > .nav-tabs {
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
.tabs-below > .nav-tabs > li {
|
||||||
|
margin-top: -1px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.tabs-below > .nav-tabs > li > a {
|
||||||
|
.border-radius(0 0 4px 4px);
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
border-top-color: #ddd;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tabs-below > .nav-tabs > .active > a,
|
||||||
|
.tabs-below > .nav-tabs > .active > a:hover,
|
||||||
|
.tabs-below > .nav-tabs > .active > a:focus {
|
||||||
|
border-color: transparent #ddd #ddd #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
// LEFT & RIGHT
|
||||||
|
// ------------
|
||||||
|
|
||||||
|
// Common styles
|
||||||
|
.tabs-left > .nav-tabs > li,
|
||||||
|
.tabs-right > .nav-tabs > li {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
.tabs-left > .nav-tabs > li > a,
|
||||||
|
.tabs-right > .nav-tabs > li > a {
|
||||||
|
min-width: 74px;
|
||||||
|
margin-right: 0;
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tabs on the left
|
||||||
|
.tabs-left > .nav-tabs {
|
||||||
|
float: left;
|
||||||
|
margin-right: 19px;
|
||||||
|
border-right: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
.tabs-left > .nav-tabs > li > a {
|
||||||
|
margin-right: -1px;
|
||||||
|
.border-radius(4px 0 0 4px);
|
||||||
|
}
|
||||||
|
.tabs-left > .nav-tabs > li > a:hover,
|
||||||
|
.tabs-left > .nav-tabs > li > a:focus {
|
||||||
|
border-color: @grayLighter #ddd @grayLighter @grayLighter;
|
||||||
|
}
|
||||||
|
.tabs-left > .nav-tabs .active > a,
|
||||||
|
.tabs-left > .nav-tabs .active > a:hover,
|
||||||
|
.tabs-left > .nav-tabs .active > a:focus {
|
||||||
|
border-color: #ddd transparent #ddd #ddd;
|
||||||
|
*border-right-color: @white;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tabs on the right
|
||||||
|
.tabs-right > .nav-tabs {
|
||||||
|
float: right;
|
||||||
|
margin-left: 19px;
|
||||||
|
border-left: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
.tabs-right > .nav-tabs > li > a {
|
||||||
|
margin-left: -1px;
|
||||||
|
.border-radius(0 4px 4px 0);
|
||||||
|
}
|
||||||
|
.tabs-right > .nav-tabs > li > a:hover,
|
||||||
|
.tabs-right > .nav-tabs > li > a:focus {
|
||||||
|
border-color: @grayLighter @grayLighter @grayLighter #ddd;
|
||||||
|
}
|
||||||
|
.tabs-right > .nav-tabs .active > a,
|
||||||
|
.tabs-right > .nav-tabs .active > a:hover,
|
||||||
|
.tabs-right > .nav-tabs .active > a:focus {
|
||||||
|
border-color: #ddd #ddd #ddd transparent;
|
||||||
|
*border-left-color: @white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DISABLED STATES
|
||||||
|
// ---------------
|
||||||
|
|
||||||
|
// Gray out text
|
||||||
|
.nav > .disabled > a {
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
// Nuke hover/focus effects
|
||||||
|
.nav > .disabled > a:hover,
|
||||||
|
.nav > .disabled > a:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: transparent;
|
||||||
|
cursor: default;
|
||||||
|
}
|
43
app/assets/stylesheets/admin/framework/pager.less
Executable file
43
app/assets/stylesheets/admin/framework/pager.less
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
//
|
||||||
|
// Pager pagination
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.pager {
|
||||||
|
margin: @baseLineHeight 0;
|
||||||
|
list-style: none;
|
||||||
|
text-align: center;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
.pager li {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
.pager li > a,
|
||||||
|
.pager li > span {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 5px 14px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
.border-radius(15px);
|
||||||
|
}
|
||||||
|
.pager li > a:hover,
|
||||||
|
.pager li > a:focus {
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
.pager .next > a,
|
||||||
|
.pager .next > span {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.pager .previous > a,
|
||||||
|
.pager .previous > span {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.pager .disabled > a,
|
||||||
|
.pager .disabled > a:hover,
|
||||||
|
.pager .disabled > a:focus,
|
||||||
|
.pager .disabled > span {
|
||||||
|
color: @grayLight;
|
||||||
|
background-color: #fff;
|
||||||
|
cursor: default;
|
||||||
|
}
|
123
app/assets/stylesheets/admin/framework/pagination.less
Executable file
123
app/assets/stylesheets/admin/framework/pagination.less
Executable file
@ -0,0 +1,123 @@
|
|||||||
|
//
|
||||||
|
// Pagination (multiple pages)
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Space out pagination from surrounding content
|
||||||
|
.pagination {
|
||||||
|
margin: @baseLineHeight 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pagination ul {
|
||||||
|
// Allow for text-based alignment
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
// Reset default ul styles
|
||||||
|
margin-left: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
// Visuals
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
||||||
|
}
|
||||||
|
.pagination ul > li {
|
||||||
|
display: inline; // Remove list-style and block-level defaults
|
||||||
|
}
|
||||||
|
.pagination ul > li > a,
|
||||||
|
.pagination ul > li > span {
|
||||||
|
float: left; // Collapse white-space
|
||||||
|
padding: 4px 12px;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @paginationBackground;
|
||||||
|
border: 1px solid @paginationBorder;
|
||||||
|
border-left-width: 0;
|
||||||
|
}
|
||||||
|
.pagination ul > li > a:hover,
|
||||||
|
.pagination ul > li > a:focus,
|
||||||
|
.pagination ul > .active > a,
|
||||||
|
.pagination ul > .active > span {
|
||||||
|
background-color: @paginationActiveBackground;
|
||||||
|
}
|
||||||
|
.pagination ul > .active > a,
|
||||||
|
.pagination ul > .active > span {
|
||||||
|
color: @grayLight;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.pagination ul > .disabled > span,
|
||||||
|
.pagination ul > .disabled > a,
|
||||||
|
.pagination ul > .disabled > a:hover,
|
||||||
|
.pagination ul > .disabled > a:focus {
|
||||||
|
color: @grayLight;
|
||||||
|
background-color: transparent;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.pagination ul > li:first-child > a,
|
||||||
|
.pagination ul > li:first-child > span {
|
||||||
|
border-left-width: 1px;
|
||||||
|
.border-left-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
.pagination ul > li:last-child > a,
|
||||||
|
.pagination ul > li:last-child > span {
|
||||||
|
.border-right-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Alignment
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
.pagination-centered {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.pagination-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Sizing
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Large
|
||||||
|
.pagination-large {
|
||||||
|
ul > li > a,
|
||||||
|
ul > li > span {
|
||||||
|
padding: @paddingLarge;
|
||||||
|
font-size: @fontSizeLarge;
|
||||||
|
}
|
||||||
|
ul > li:first-child > a,
|
||||||
|
ul > li:first-child > span {
|
||||||
|
.border-left-radius(@borderRadiusLarge);
|
||||||
|
}
|
||||||
|
ul > li:last-child > a,
|
||||||
|
ul > li:last-child > span {
|
||||||
|
.border-right-radius(@borderRadiusLarge);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Small and mini
|
||||||
|
.pagination-mini,
|
||||||
|
.pagination-small {
|
||||||
|
ul > li:first-child > a,
|
||||||
|
ul > li:first-child > span {
|
||||||
|
.border-left-radius(@borderRadiusSmall);
|
||||||
|
}
|
||||||
|
ul > li:last-child > a,
|
||||||
|
ul > li:last-child > span {
|
||||||
|
.border-right-radius(@borderRadiusSmall);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Small
|
||||||
|
.pagination-small {
|
||||||
|
ul > li > a,
|
||||||
|
ul > li > span {
|
||||||
|
padding: @paddingSmall;
|
||||||
|
font-size: @fontSizeSmall;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Mini
|
||||||
|
.pagination-mini {
|
||||||
|
ul > li > a,
|
||||||
|
ul > li > span {
|
||||||
|
padding: @paddingMini;
|
||||||
|
font-size: @fontSizeMini;
|
||||||
|
}
|
||||||
|
}
|
133
app/assets/stylesheets/admin/framework/popovers.less
Executable file
133
app/assets/stylesheets/admin/framework/popovers.less
Executable file
@ -0,0 +1,133 @@
|
|||||||
|
//
|
||||||
|
// Popovers
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.popover {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexPopover;
|
||||||
|
display: none;
|
||||||
|
max-width: 276px;
|
||||||
|
padding: 1px;
|
||||||
|
text-align: left; // Reset given new insertion method
|
||||||
|
background-color: @popoverBackground;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border: 1px solid rgba(0,0,0,.2);
|
||||||
|
.border-radius(6px);
|
||||||
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
||||||
|
|
||||||
|
// Overrides for proper insertion
|
||||||
|
white-space: normal;
|
||||||
|
|
||||||
|
// Offset the popover to account for the popover arrow
|
||||||
|
&.top { margin-top: -10px; }
|
||||||
|
&.right { margin-left: 10px; }
|
||||||
|
&.bottom { margin-top: 10px; }
|
||||||
|
&.left { margin-left: -10px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover-title {
|
||||||
|
margin: 0; // reset heading margin
|
||||||
|
padding: 8px 14px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 18px;
|
||||||
|
background-color: @popoverTitleBackground;
|
||||||
|
border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
|
||||||
|
.border-radius(5px 5px 0 0);
|
||||||
|
|
||||||
|
&:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover-content {
|
||||||
|
padding: 9px 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Arrows
|
||||||
|
//
|
||||||
|
// .arrow is outer, .arrow:after is inner
|
||||||
|
|
||||||
|
.popover .arrow,
|
||||||
|
.popover .arrow:after {
|
||||||
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
.popover .arrow {
|
||||||
|
border-width: @popoverArrowOuterWidth;
|
||||||
|
}
|
||||||
|
.popover .arrow:after {
|
||||||
|
border-width: @popoverArrowWidth;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover {
|
||||||
|
&.top .arrow {
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -@popoverArrowOuterWidth;
|
||||||
|
border-bottom-width: 0;
|
||||||
|
border-top-color: #999; // IE8 fallback
|
||||||
|
border-top-color: @popoverArrowOuterColor;
|
||||||
|
bottom: -@popoverArrowOuterWidth;
|
||||||
|
&:after {
|
||||||
|
bottom: 1px;
|
||||||
|
margin-left: -@popoverArrowWidth;
|
||||||
|
border-bottom-width: 0;
|
||||||
|
border-top-color: @popoverArrowColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.right .arrow {
|
||||||
|
top: 50%;
|
||||||
|
left: -@popoverArrowOuterWidth;
|
||||||
|
margin-top: -@popoverArrowOuterWidth;
|
||||||
|
border-left-width: 0;
|
||||||
|
border-right-color: #999; // IE8 fallback
|
||||||
|
border-right-color: @popoverArrowOuterColor;
|
||||||
|
&:after {
|
||||||
|
left: 1px;
|
||||||
|
bottom: -@popoverArrowWidth;
|
||||||
|
border-left-width: 0;
|
||||||
|
border-right-color: @popoverArrowColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.bottom .arrow {
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -@popoverArrowOuterWidth;
|
||||||
|
border-top-width: 0;
|
||||||
|
border-bottom-color: #999; // IE8 fallback
|
||||||
|
border-bottom-color: @popoverArrowOuterColor;
|
||||||
|
top: -@popoverArrowOuterWidth;
|
||||||
|
&:after {
|
||||||
|
top: 1px;
|
||||||
|
margin-left: -@popoverArrowWidth;
|
||||||
|
border-top-width: 0;
|
||||||
|
border-bottom-color: @popoverArrowColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left .arrow {
|
||||||
|
top: 50%;
|
||||||
|
right: -@popoverArrowOuterWidth;
|
||||||
|
margin-top: -@popoverArrowOuterWidth;
|
||||||
|
border-right-width: 0;
|
||||||
|
border-left-color: #999; // IE8 fallback
|
||||||
|
border-left-color: @popoverArrowOuterColor;
|
||||||
|
&:after {
|
||||||
|
right: 1px;
|
||||||
|
border-right-width: 0;
|
||||||
|
border-left-color: @popoverArrowColor;
|
||||||
|
bottom: -@popoverArrowWidth;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
122
app/assets/stylesheets/admin/framework/progress-bars.less
Executable file
122
app/assets/stylesheets/admin/framework/progress-bars.less
Executable file
@ -0,0 +1,122 @@
|
|||||||
|
//
|
||||||
|
// Progress bars
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// ANIMATIONS
|
||||||
|
// ----------
|
||||||
|
|
||||||
|
// Webkit
|
||||||
|
@-webkit-keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 40px 0; }
|
||||||
|
to { background-position: 0 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Firefox
|
||||||
|
@-moz-keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 40px 0; }
|
||||||
|
to { background-position: 0 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE9
|
||||||
|
@-ms-keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 40px 0; }
|
||||||
|
to { background-position: 0 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Opera
|
||||||
|
@-o-keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 0 0; }
|
||||||
|
to { background-position: 40px 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Spec
|
||||||
|
@keyframes progress-bar-stripes {
|
||||||
|
from { background-position: 40px 0; }
|
||||||
|
to { background-position: 0 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// THE BARS
|
||||||
|
// --------
|
||||||
|
|
||||||
|
// Outer container
|
||||||
|
.progress {
|
||||||
|
overflow: hidden;
|
||||||
|
height: @baseLineHeight;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
#gradient > .vertical(#f5f5f5, #f9f9f9);
|
||||||
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bar of progress
|
||||||
|
.progress .bar {
|
||||||
|
width: 0%;
|
||||||
|
height: 100%;
|
||||||
|
color: @white;
|
||||||
|
float: left;
|
||||||
|
font-size: 12px;
|
||||||
|
text-align: center;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
|
#gradient > .vertical(#149bdf, #0480be);
|
||||||
|
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
||||||
|
.box-sizing(border-box);
|
||||||
|
.transition(width .6s ease);
|
||||||
|
}
|
||||||
|
.progress .bar + .bar {
|
||||||
|
.box-shadow(~"inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Striped bars
|
||||||
|
.progress-striped .bar {
|
||||||
|
#gradient > .striped(#149bdf);
|
||||||
|
.background-size(40px 40px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Call animation for the active one
|
||||||
|
.progress.active .bar {
|
||||||
|
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
-moz-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
-ms-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
-o-animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
animation: progress-bar-stripes 2s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// COLORS
|
||||||
|
// ------
|
||||||
|
|
||||||
|
// Danger (red)
|
||||||
|
.progress-danger .bar, .progress .bar-danger {
|
||||||
|
#gradient > .vertical(#ee5f5b, #c43c35);
|
||||||
|
}
|
||||||
|
.progress-danger.progress-striped .bar, .progress-striped .bar-danger {
|
||||||
|
#gradient > .striped(#ee5f5b);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Success (green)
|
||||||
|
.progress-success .bar, .progress .bar-success {
|
||||||
|
#gradient > .vertical(#62c462, #57a957);
|
||||||
|
}
|
||||||
|
.progress-success.progress-striped .bar, .progress-striped .bar-success {
|
||||||
|
#gradient > .striped(#62c462);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Info (teal)
|
||||||
|
.progress-info .bar, .progress .bar-info {
|
||||||
|
#gradient > .vertical(#5bc0de, #339bb9);
|
||||||
|
}
|
||||||
|
.progress-info.progress-striped .bar, .progress-striped .bar-info {
|
||||||
|
#gradient > .striped(#5bc0de);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Warning (orange)
|
||||||
|
.progress-warning .bar, .progress .bar-warning {
|
||||||
|
#gradient > .vertical(lighten(@orange, 15%), @orange);
|
||||||
|
}
|
||||||
|
.progress-warning.progress-striped .bar, .progress-striped .bar-warning {
|
||||||
|
#gradient > .striped(lighten(@orange, 15%));
|
||||||
|
}
|
216
app/assets/stylesheets/admin/framework/reset.less
Executable file
216
app/assets/stylesheets/admin/framework/reset.less
Executable file
@ -0,0 +1,216 @@
|
|||||||
|
//
|
||||||
|
// Reset CSS
|
||||||
|
// Adapted from http://github.com/necolas/normalize.css
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Display in IE6-9 and FF3
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
article,
|
||||||
|
aside,
|
||||||
|
details,
|
||||||
|
figcaption,
|
||||||
|
figure,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
hgroup,
|
||||||
|
nav,
|
||||||
|
section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Display block in IE6-9 and FF3
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
audio,
|
||||||
|
canvas,
|
||||||
|
video {
|
||||||
|
display: inline-block;
|
||||||
|
*display: inline;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prevents modern browsers from displaying 'audio' without controls
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
audio:not([controls]) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Base settings
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 100%;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
-ms-text-size-adjust: 100%;
|
||||||
|
}
|
||||||
|
// Focus states
|
||||||
|
a:focus {
|
||||||
|
.tab-focus();
|
||||||
|
}
|
||||||
|
// Hover & Active
|
||||||
|
a:hover,
|
||||||
|
a:active {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prevents sub and sup affecting line-height in all browsers
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
position: relative;
|
||||||
|
font-size: 75%;
|
||||||
|
line-height: 0;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Img border in a's and image quality
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
img {
|
||||||
|
/* Responsive images (ensure images don't scale beyond their parents) */
|
||||||
|
max-width: 100%; /* Part 1: Set a maxium relative to the parent */
|
||||||
|
width: auto\9; /* IE7-8 need help adjusting responsive images */
|
||||||
|
height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */
|
||||||
|
|
||||||
|
vertical-align: middle;
|
||||||
|
border: 0;
|
||||||
|
-ms-interpolation-mode: bicubic;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prevent max-width from affecting Google Maps
|
||||||
|
#map_canvas img,
|
||||||
|
.google-maps img {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Forms
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Font size in all browsers, margin changes, misc consistency
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
button,
|
||||||
|
input {
|
||||||
|
*overflow: visible; // Inner spacing ie IE6/7
|
||||||
|
line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
|
||||||
|
}
|
||||||
|
button::-moz-focus-inner,
|
||||||
|
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
button,
|
||||||
|
html input[type="button"], // Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` and `video` controls.
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="submit"] {
|
||||||
|
-webkit-appearance: button; // Corrects inability to style clickable `input` types in iOS.
|
||||||
|
cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
|
||||||
|
}
|
||||||
|
label,
|
||||||
|
select,
|
||||||
|
button,
|
||||||
|
input[type="button"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="radio"],
|
||||||
|
input[type="checkbox"] {
|
||||||
|
cursor: pointer; // Improves usability and consistency of cursor style between image-type `input` and others.
|
||||||
|
}
|
||||||
|
input[type="search"] { // Appearance in Safari/Chrome
|
||||||
|
.box-sizing(content-box);
|
||||||
|
-webkit-appearance: textfield;
|
||||||
|
}
|
||||||
|
input[type="search"]::-webkit-search-decoration,
|
||||||
|
input[type="search"]::-webkit-search-cancel-button {
|
||||||
|
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
|
||||||
|
}
|
||||||
|
textarea {
|
||||||
|
overflow: auto; // Remove vertical scrollbar in IE6-9
|
||||||
|
vertical-align: top; // Readability and alignment cross-browser
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Printing
|
||||||
|
// -------------------------
|
||||||
|
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
|
||||||
|
* {
|
||||||
|
text-shadow: none !important;
|
||||||
|
color: #000 !important; // Black prints faster: h5bp.com/s
|
||||||
|
background: transparent !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
a,
|
||||||
|
a:visited {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href]:after {
|
||||||
|
content: " (" attr(href) ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
abbr[title]:after {
|
||||||
|
content: " (" attr(title) ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Don't show links for images, or javascript/internal links
|
||||||
|
.ir a:after,
|
||||||
|
a[href^="javascript:"]:after,
|
||||||
|
a[href^="#"]:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
pre,
|
||||||
|
blockquote {
|
||||||
|
border: 1px solid #999;
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
display: table-header-group; // h5bp.com/t
|
||||||
|
}
|
||||||
|
|
||||||
|
tr,
|
||||||
|
img {
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@page {
|
||||||
|
margin: 0.5cm;
|
||||||
|
}
|
||||||
|
|
||||||
|
p,
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
orphans: 3;
|
||||||
|
widows: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
|
page-break-after: avoid;
|
||||||
|
}
|
||||||
|
}
|
28
app/assets/stylesheets/admin/framework/responsive-1200px-min.less
Executable file
28
app/assets/stylesheets/admin/framework/responsive-1200px-min.less
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
//
|
||||||
|
// Responsive: Large desktop and up
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
|
||||||
|
// Fixed grid
|
||||||
|
#grid > .core(@gridColumnWidth1200, @gridGutterWidth1200);
|
||||||
|
|
||||||
|
// Fluid grid
|
||||||
|
#grid > .fluid(@fluidGridColumnWidth1200, @fluidGridGutterWidth1200);
|
||||||
|
|
||||||
|
// Input grid
|
||||||
|
#grid > .input(@gridColumnWidth1200, @gridGutterWidth1200);
|
||||||
|
|
||||||
|
// Thumbnails
|
||||||
|
.thumbnails {
|
||||||
|
margin-left: -@gridGutterWidth1200;
|
||||||
|
}
|
||||||
|
.thumbnails > li {
|
||||||
|
margin-left: @gridGutterWidth1200;
|
||||||
|
}
|
||||||
|
.row-fluid .thumbnails {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
193
app/assets/stylesheets/admin/framework/responsive-767px-max.less
Executable file
193
app/assets/stylesheets/admin/framework/responsive-767px-max.less
Executable file
@ -0,0 +1,193 @@
|
|||||||
|
//
|
||||||
|
// Responsive: Landscape phone to desktop/tablet
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
|
||||||
|
// Padding to set content in a bit
|
||||||
|
body {
|
||||||
|
padding-left: 20px;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
// Negative indent the now static "fixed" navbar
|
||||||
|
.navbar-fixed-top,
|
||||||
|
.navbar-fixed-bottom,
|
||||||
|
.navbar-static-top {
|
||||||
|
margin-left: -20px;
|
||||||
|
margin-right: -20px;
|
||||||
|
}
|
||||||
|
// Remove padding on container given explicit padding set on body
|
||||||
|
.container-fluid {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TYPOGRAPHY
|
||||||
|
// ----------
|
||||||
|
// Reset horizontal dl
|
||||||
|
.dl-horizontal {
|
||||||
|
dt {
|
||||||
|
float: none;
|
||||||
|
clear: none;
|
||||||
|
width: auto;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
dd {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// GRID & CONTAINERS
|
||||||
|
// -----------------
|
||||||
|
// Remove width from containers
|
||||||
|
.container {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
// Fluid rows
|
||||||
|
.row-fluid {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
// Undo negative margin on rows and thumbnails
|
||||||
|
.row,
|
||||||
|
.thumbnails {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.thumbnails > li {
|
||||||
|
float: none;
|
||||||
|
margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
|
||||||
|
}
|
||||||
|
// Make all grid-sized elements block level again
|
||||||
|
[class*="span"],
|
||||||
|
.uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
|
||||||
|
.row-fluid [class*="span"] {
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
margin-left: 0;
|
||||||
|
.box-sizing(border-box);
|
||||||
|
}
|
||||||
|
.span12,
|
||||||
|
.row-fluid .span12 {
|
||||||
|
width: 100%;
|
||||||
|
.box-sizing(border-box);
|
||||||
|
}
|
||||||
|
.row-fluid [class*="offset"]:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FORM FIELDS
|
||||||
|
// -----------
|
||||||
|
// Make span* classes full width
|
||||||
|
.input-large,
|
||||||
|
.input-xlarge,
|
||||||
|
.input-xxlarge,
|
||||||
|
input[class*="span"],
|
||||||
|
select[class*="span"],
|
||||||
|
textarea[class*="span"],
|
||||||
|
.uneditable-input {
|
||||||
|
.input-block-level();
|
||||||
|
}
|
||||||
|
// But don't let it screw up prepend/append inputs
|
||||||
|
.input-prepend input,
|
||||||
|
.input-append input,
|
||||||
|
.input-prepend input[class*="span"],
|
||||||
|
.input-append input[class*="span"] {
|
||||||
|
display: inline-block; // redeclare so they don't wrap to new lines
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
.controls-row [class*="span"] + [class*="span"] {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modals
|
||||||
|
.modal {
|
||||||
|
position: fixed;
|
||||||
|
top: 20px;
|
||||||
|
left: 20px;
|
||||||
|
right: 20px;
|
||||||
|
width: auto;
|
||||||
|
margin: 0;
|
||||||
|
&.fade { top: -100px; }
|
||||||
|
&.fade.in { top: 20px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// UP TO LANDSCAPE PHONE
|
||||||
|
// ---------------------
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
|
||||||
|
// Smooth out the collapsing/expanding nav
|
||||||
|
.nav-collapse {
|
||||||
|
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
|
||||||
|
}
|
||||||
|
|
||||||
|
// Block level the page header small tag for readability
|
||||||
|
.page-header h1 small {
|
||||||
|
display: block;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update checkboxes for iOS
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove the horizontal form styles
|
||||||
|
.form-horizontal {
|
||||||
|
.control-label {
|
||||||
|
float: none;
|
||||||
|
width: auto;
|
||||||
|
padding-top: 0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
// Move over all input controls and content
|
||||||
|
.controls {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
// Move the options list down to align with labels
|
||||||
|
.control-list {
|
||||||
|
padding-top: 0; // has to be padding because margin collaspes
|
||||||
|
}
|
||||||
|
// Move over buttons in .form-actions to align with .controls
|
||||||
|
.form-actions {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Medias
|
||||||
|
// Reset float and spacing to stack
|
||||||
|
.media .pull-left,
|
||||||
|
.media .pull-right {
|
||||||
|
float: none;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
// Remove side margins since we stack instead of indent
|
||||||
|
.media-object {
|
||||||
|
margin-right: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Modals
|
||||||
|
.modal {
|
||||||
|
top: 10px;
|
||||||
|
left: 10px;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
.modal-header .close {
|
||||||
|
padding: 10px;
|
||||||
|
margin: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Carousel
|
||||||
|
.carousel-caption {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
19
app/assets/stylesheets/admin/framework/responsive-768px-979px.less
Executable file
19
app/assets/stylesheets/admin/framework/responsive-768px-979px.less
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
//
|
||||||
|
// Responsive: Tablet to desktop
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
@media (min-width: 768px) and (max-width: 979px) {
|
||||||
|
|
||||||
|
// Fixed grid
|
||||||
|
#grid > .core(@gridColumnWidth768, @gridGutterWidth768);
|
||||||
|
|
||||||
|
// Fluid grid
|
||||||
|
#grid > .fluid(@fluidGridColumnWidth768, @fluidGridGutterWidth768);
|
||||||
|
|
||||||
|
// Input grid
|
||||||
|
#grid > .input(@gridColumnWidth768, @gridGutterWidth768);
|
||||||
|
|
||||||
|
// No need to reset .thumbnails here since it's the same @gridGutterWidth
|
||||||
|
|
||||||
|
}
|
189
app/assets/stylesheets/admin/framework/responsive-navbar.less
Executable file
189
app/assets/stylesheets/admin/framework/responsive-navbar.less
Executable file
@ -0,0 +1,189 @@
|
|||||||
|
//
|
||||||
|
// Responsive: Navbar
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// TABLETS AND BELOW
|
||||||
|
// -----------------
|
||||||
|
@media (max-width: @navbarCollapseWidth) {
|
||||||
|
|
||||||
|
// UNFIX THE TOPBAR
|
||||||
|
// ----------------
|
||||||
|
// Remove any padding from the body
|
||||||
|
body {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
// Unfix the navbars
|
||||||
|
.navbar-fixed-top,
|
||||||
|
.navbar-fixed-bottom {
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
.navbar-fixed-bottom {
|
||||||
|
margin-top: @baseLineHeight;
|
||||||
|
}
|
||||||
|
.navbar-fixed-top .navbar-inner,
|
||||||
|
.navbar-fixed-bottom .navbar-inner {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
.navbar .container {
|
||||||
|
width: auto;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
// Account for brand name
|
||||||
|
.navbar .brand {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
margin: 0 0 0 -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// COLLAPSIBLE NAVBAR
|
||||||
|
// ------------------
|
||||||
|
// Nav collapse clears brand
|
||||||
|
.nav-collapse {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
// Block-level the nav
|
||||||
|
.nav-collapse .nav {
|
||||||
|
float: none;
|
||||||
|
margin: 0 0 (@baseLineHeight / 2);
|
||||||
|
}
|
||||||
|
.nav-collapse .nav > li {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
.nav-collapse .nav > li > a {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
.nav-collapse .nav > .divider-vertical {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.nav-collapse .nav .nav-header {
|
||||||
|
color: @navbarText;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
// Nav and dropdown links in navbar
|
||||||
|
.nav-collapse .nav > li > a,
|
||||||
|
.nav-collapse .dropdown-menu a {
|
||||||
|
padding: 9px 15px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: @navbarLinkColor;
|
||||||
|
.border-radius(3px);
|
||||||
|
}
|
||||||
|
// Buttons
|
||||||
|
.nav-collapse .btn {
|
||||||
|
padding: 4px 10px 4px;
|
||||||
|
font-weight: normal;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
.nav-collapse .dropdown-menu li + li a {
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
.nav-collapse .nav > li > a:hover,
|
||||||
|
.nav-collapse .nav > li > a:focus,
|
||||||
|
.nav-collapse .dropdown-menu a:hover,
|
||||||
|
.nav-collapse .dropdown-menu a:focus {
|
||||||
|
background-color: @navbarBackground;
|
||||||
|
}
|
||||||
|
.navbar-inverse .nav-collapse .nav > li > a,
|
||||||
|
.navbar-inverse .nav-collapse .dropdown-menu a {
|
||||||
|
color: @navbarInverseLinkColor;
|
||||||
|
}
|
||||||
|
.navbar-inverse .nav-collapse .nav > li > a:hover,
|
||||||
|
.navbar-inverse .nav-collapse .nav > li > a:focus,
|
||||||
|
.navbar-inverse .nav-collapse .dropdown-menu a:hover,
|
||||||
|
.navbar-inverse .nav-collapse .dropdown-menu a:focus {
|
||||||
|
background-color: @navbarInverseBackground;
|
||||||
|
}
|
||||||
|
// Buttons in the navbar
|
||||||
|
.nav-collapse.in .btn-group {
|
||||||
|
margin-top: 5px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
// Dropdowns in the navbar
|
||||||
|
.nav-collapse .dropdown-menu {
|
||||||
|
position: static;
|
||||||
|
top: auto;
|
||||||
|
left: auto;
|
||||||
|
float: none;
|
||||||
|
display: none;
|
||||||
|
max-width: none;
|
||||||
|
margin: 0 15px;
|
||||||
|
padding: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
.border-radius(0);
|
||||||
|
.box-shadow(none);
|
||||||
|
}
|
||||||
|
.nav-collapse .open > .dropdown-menu {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-collapse .dropdown-menu:before,
|
||||||
|
.nav-collapse .dropdown-menu:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.nav-collapse .dropdown-menu .divider {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.nav-collapse .nav > li > .dropdown-menu {
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Forms in navbar
|
||||||
|
.nav-collapse .navbar-form,
|
||||||
|
.nav-collapse .navbar-search {
|
||||||
|
float: none;
|
||||||
|
padding: (@baseLineHeight / 2) 15px;
|
||||||
|
margin: (@baseLineHeight / 2) 0;
|
||||||
|
border-top: 1px solid @navbarBackground;
|
||||||
|
border-bottom: 1px solid @navbarBackground;
|
||||||
|
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1)");
|
||||||
|
}
|
||||||
|
.navbar-inverse .nav-collapse .navbar-form,
|
||||||
|
.navbar-inverse .nav-collapse .navbar-search {
|
||||||
|
border-top-color: @navbarInverseBackground;
|
||||||
|
border-bottom-color: @navbarInverseBackground;
|
||||||
|
}
|
||||||
|
// Pull right (secondary) nav content
|
||||||
|
.navbar .nav-collapse .nav.pull-right {
|
||||||
|
float: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
// Hide everything in the navbar save .brand and toggle button */
|
||||||
|
.nav-collapse,
|
||||||
|
.nav-collapse.collapse {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
// Navbar button
|
||||||
|
.navbar .btn-navbar {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// STATIC NAVBAR
|
||||||
|
// -------------
|
||||||
|
.navbar-static .navbar-inner {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// DEFAULT DESKTOP
|
||||||
|
// ---------------
|
||||||
|
|
||||||
|
@media (min-width: @navbarCollapseDesktopWidth) {
|
||||||
|
|
||||||
|
// Required to make the collapsing navbar work on regular desktops
|
||||||
|
.nav-collapse.collapse {
|
||||||
|
height: auto !important;
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
59
app/assets/stylesheets/admin/framework/responsive-utilities.less
Executable file
59
app/assets/stylesheets/admin/framework/responsive-utilities.less
Executable file
@ -0,0 +1,59 @@
|
|||||||
|
//
|
||||||
|
// Responsive: Utility classes
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// IE10 Metro responsive
|
||||||
|
// Required for Windows 8 Metro split-screen snapping with IE10
|
||||||
|
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
||||||
|
@-ms-viewport{
|
||||||
|
width: device-width;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hide from screenreaders and browsers
|
||||||
|
// Credit: HTML5 Boilerplate
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Visibility utilities
|
||||||
|
|
||||||
|
// For desktops
|
||||||
|
.visible-phone { display: none !important; }
|
||||||
|
.visible-tablet { display: none !important; }
|
||||||
|
.hidden-phone { }
|
||||||
|
.hidden-tablet { }
|
||||||
|
.hidden-desktop { display: none !important; }
|
||||||
|
.visible-desktop { display: inherit !important; }
|
||||||
|
|
||||||
|
// Tablets & small desktops only
|
||||||
|
@media (min-width: 768px) and (max-width: 979px) {
|
||||||
|
// Hide everything else
|
||||||
|
.hidden-desktop { display: inherit !important; }
|
||||||
|
.visible-desktop { display: none !important ; }
|
||||||
|
// Show
|
||||||
|
.visible-tablet { display: inherit !important; }
|
||||||
|
// Hide
|
||||||
|
.hidden-tablet { display: none !important; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Phones only
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
// Hide everything else
|
||||||
|
.hidden-desktop { display: inherit !important; }
|
||||||
|
.visible-desktop { display: none !important; }
|
||||||
|
// Show
|
||||||
|
.visible-phone { display: inherit !important; } // Use inherit to restore previous behavior
|
||||||
|
// Hide
|
||||||
|
.hidden-phone { display: none !important; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Print utilities
|
||||||
|
.visible-print { display: none !important; }
|
||||||
|
.hidden-print { }
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
.visible-print { display: inherit !important; }
|
||||||
|
.hidden-print { display: none !important; }
|
||||||
|
}
|
48
app/assets/stylesheets/admin/framework/responsive.less
Executable file
48
app/assets/stylesheets/admin/framework/responsive.less
Executable file
@ -0,0 +1,48 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap Responsive v2.3.2
|
||||||
|
*
|
||||||
|
* Copyright 2012 Twitter, Inc
|
||||||
|
* Licensed under the Apache License v2.0
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// Responsive.less
|
||||||
|
// For phone and tablet devices
|
||||||
|
// -------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// REPEAT VARIABLES & MIXINS
|
||||||
|
// -------------------------
|
||||||
|
// Required since we compile the responsive stuff separately
|
||||||
|
|
||||||
|
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
|
||||||
|
@import "mixins.less";
|
||||||
|
|
||||||
|
|
||||||
|
// RESPONSIVE CLASSES
|
||||||
|
// ------------------
|
||||||
|
|
||||||
|
@import "responsive-utilities.less";
|
||||||
|
|
||||||
|
|
||||||
|
// MEDIA QUERIES
|
||||||
|
// ------------------
|
||||||
|
|
||||||
|
// Large desktops
|
||||||
|
@import "responsive-1200px-min.less";
|
||||||
|
|
||||||
|
// Tablets to regular desktops
|
||||||
|
@import "responsive-768px-979px.less";
|
||||||
|
|
||||||
|
// Phones to portrait tablets and narrow desktops
|
||||||
|
@import "responsive-767px-max.less";
|
||||||
|
|
||||||
|
|
||||||
|
// RESPONSIVE NAVBAR
|
||||||
|
// ------------------
|
||||||
|
|
||||||
|
// From 979px and below, show a button to toggle navbar contents
|
||||||
|
@import "responsive-navbar.less";
|
53
app/assets/stylesheets/admin/framework/scaffolding.less
Executable file
53
app/assets/stylesheets/admin/framework/scaffolding.less
Executable file
@ -0,0 +1,53 @@
|
|||||||
|
//
|
||||||
|
// Scaffolding
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Body reset
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: @baseFontFamily;
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @textColor;
|
||||||
|
background-color: @bodyBackground;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Links
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: @linkColor;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
a:hover,
|
||||||
|
a:focus {
|
||||||
|
color: @linkColorHover;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Images
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Rounded corners
|
||||||
|
.img-rounded {
|
||||||
|
.border-radius(6px);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add polaroid-esque trim
|
||||||
|
.img-polaroid {
|
||||||
|
padding: 4px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border: 1px solid rgba(0,0,0,.2);
|
||||||
|
.box-shadow(0 1px 3px rgba(0,0,0,.1));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Perfect circle
|
||||||
|
.img-circle {
|
||||||
|
.border-radius(500px); // crank the border-radius so it works with most reasonably sized images
|
||||||
|
}
|
104
app/assets/stylesheets/admin/framework/slider.less
Executable file
104
app/assets/stylesheets/admin/framework/slider.less
Executable file
@ -0,0 +1,104 @@
|
|||||||
|
/*!
|
||||||
|
* Slider for Bootstrap
|
||||||
|
*
|
||||||
|
* Copyright 2012 Stefan Petre
|
||||||
|
* Licensed under the Apache License v2.0
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
.slider {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
position: relative;
|
||||||
|
&.slider-horizontal {
|
||||||
|
width: 210px;
|
||||||
|
height: @baseLineHeight;
|
||||||
|
.slider-track {
|
||||||
|
height: @baseLineHeight/2;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: -@baseLineHeight/4;
|
||||||
|
top: 50%;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.slider-selection {
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
.slider-handle {
|
||||||
|
margin-left: -@baseLineHeight/2;
|
||||||
|
margin-top: -@baseLineHeight/4;
|
||||||
|
&.triangle {
|
||||||
|
border-width: 0 @baseLineHeight/2 @baseLineHeight/2 @baseLineHeight/2;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-bottom-color: #0480be;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.slider-vertical {
|
||||||
|
height: 210px;
|
||||||
|
width: @baseLineHeight;
|
||||||
|
.slider-track {
|
||||||
|
width: @baseLineHeight/2;
|
||||||
|
height: 100%;
|
||||||
|
margin-left: -@baseLineHeight/4;
|
||||||
|
left: 50%;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
.slider-selection {
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
.slider-handle {
|
||||||
|
margin-left: -@baseLineHeight/4;
|
||||||
|
margin-top: -@baseLineHeight/2;
|
||||||
|
&.triangle {
|
||||||
|
border-width: @baseLineHeight/2 0 @baseLineHeight/2 @baseLineHeight/2;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
border-left-color: #0480be;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.tooltip-inner {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.slider-track {
|
||||||
|
position: absolute;
|
||||||
|
cursor: pointer;
|
||||||
|
#gradient > .vertical(#f5f5f5, #f9f9f9);
|
||||||
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
.slider-selection {
|
||||||
|
position: absolute;
|
||||||
|
#gradient > .vertical(#f9f9f9, #f5f5f5);
|
||||||
|
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
||||||
|
.box-sizing(border-box);
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
.slider-handle {
|
||||||
|
position: absolute;
|
||||||
|
width: @baseLineHeight;
|
||||||
|
height: @baseLineHeight;
|
||||||
|
#gradient > .vertical(#149bdf, #0480be);
|
||||||
|
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
opacity: 0.8;
|
||||||
|
border: 0px solid transparent;
|
||||||
|
&.round {
|
||||||
|
.border-radius(@baseLineHeight);
|
||||||
|
}
|
||||||
|
&.triangle {
|
||||||
|
background: transparent none;
|
||||||
|
}
|
||||||
|
}
|
197
app/assets/stylesheets/admin/framework/sprites.less
Executable file
197
app/assets/stylesheets/admin/framework/sprites.less
Executable file
@ -0,0 +1,197 @@
|
|||||||
|
//
|
||||||
|
// Sprites
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// ICONS
|
||||||
|
// -----
|
||||||
|
|
||||||
|
// All icons receive the styles of the <i> tag with a base class
|
||||||
|
// of .i and are then given a unique class to add width, height,
|
||||||
|
// and background-position. Your resulting HTML will look like
|
||||||
|
// <i class="icon-inbox"></i>.
|
||||||
|
|
||||||
|
// For the white version of the icons, just add the .icon-white class:
|
||||||
|
// <i class="icon-inbox icon-white"></i>
|
||||||
|
|
||||||
|
[class^="icon-"],
|
||||||
|
[class*=" icon-"] {
|
||||||
|
display: inline-block;
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
.ie7-restore-right-whitespace();
|
||||||
|
line-height: 14px;
|
||||||
|
vertical-align: text-top;
|
||||||
|
background-image: url("@{iconSpritePath}");
|
||||||
|
background-position: 14px 14px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
margin-top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* White icons with optional class, or on hover/focus/active states of certain elements */
|
||||||
|
.icon-white,
|
||||||
|
.nav-pills > .active > a > [class^="icon-"],
|
||||||
|
.nav-pills > .active > a > [class*=" icon-"],
|
||||||
|
.nav-list > .active > a > [class^="icon-"],
|
||||||
|
.nav-list > .active > a > [class*=" icon-"],
|
||||||
|
.navbar-inverse .nav > .active > a > [class^="icon-"],
|
||||||
|
.navbar-inverse .nav > .active > a > [class*=" icon-"],
|
||||||
|
.dropdown-menu > li > a:hover > [class^="icon-"],
|
||||||
|
.dropdown-menu > li > a:focus > [class^="icon-"],
|
||||||
|
.dropdown-menu > li > a:hover > [class*=" icon-"],
|
||||||
|
.dropdown-menu > li > a:focus > [class*=" icon-"],
|
||||||
|
.dropdown-menu > .active > a > [class^="icon-"],
|
||||||
|
.dropdown-menu > .active > a > [class*=" icon-"],
|
||||||
|
.dropdown-submenu:hover > a > [class^="icon-"],
|
||||||
|
.dropdown-submenu:focus > a > [class^="icon-"],
|
||||||
|
.dropdown-submenu:hover > a > [class*=" icon-"],
|
||||||
|
.dropdown-submenu:focus > a > [class*=" icon-"] {
|
||||||
|
background-image: url("@{iconWhiteSpritePath}");
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-glass { background-position: 0 0; }
|
||||||
|
.icon-music { background-position: -24px 0; }
|
||||||
|
.icon-search { background-position: -48px 0; }
|
||||||
|
.icon-envelope { background-position: -72px 0; }
|
||||||
|
.icon-heart { background-position: -96px 0; }
|
||||||
|
.icon-star { background-position: -120px 0; }
|
||||||
|
.icon-star-empty { background-position: -144px 0; }
|
||||||
|
.icon-user { background-position: -168px 0; }
|
||||||
|
.icon-film { background-position: -192px 0; }
|
||||||
|
.icon-th-large { background-position: -216px 0; }
|
||||||
|
.icon-th { background-position: -240px 0; }
|
||||||
|
.icon-th-list { background-position: -264px 0; }
|
||||||
|
.icon-ok { background-position: -288px 0; }
|
||||||
|
.icon-remove { background-position: -312px 0; }
|
||||||
|
.icon-zoom-in { background-position: -336px 0; }
|
||||||
|
.icon-zoom-out { background-position: -360px 0; }
|
||||||
|
.icon-off { background-position: -384px 0; }
|
||||||
|
.icon-signal { background-position: -408px 0; }
|
||||||
|
.icon-cog { background-position: -432px 0; }
|
||||||
|
.icon-trash { background-position: -456px 0; }
|
||||||
|
|
||||||
|
.icon-home { background-position: 0 -24px; }
|
||||||
|
.icon-file { background-position: -24px -24px; }
|
||||||
|
.icon-time { background-position: -48px -24px; }
|
||||||
|
.icon-road { background-position: -72px -24px; }
|
||||||
|
.icon-download-alt { background-position: -96px -24px; }
|
||||||
|
.icon-download { background-position: -120px -24px; }
|
||||||
|
.icon-upload { background-position: -144px -24px; }
|
||||||
|
.icon-inbox { background-position: -168px -24px; }
|
||||||
|
.icon-play-circle { background-position: -192px -24px; }
|
||||||
|
.icon-repeat { background-position: -216px -24px; }
|
||||||
|
.icon-refresh { background-position: -240px -24px; }
|
||||||
|
.icon-list-alt { background-position: -264px -24px; }
|
||||||
|
.icon-lock { background-position: -287px -24px; } // 1px off
|
||||||
|
.icon-flag { background-position: -312px -24px; }
|
||||||
|
.icon-headphones { background-position: -336px -24px; }
|
||||||
|
.icon-volume-off { background-position: -360px -24px; }
|
||||||
|
.icon-volume-down { background-position: -384px -24px; }
|
||||||
|
.icon-volume-up { background-position: -408px -24px; }
|
||||||
|
.icon-qrcode { background-position: -432px -24px; }
|
||||||
|
.icon-barcode { background-position: -456px -24px; }
|
||||||
|
|
||||||
|
.icon-tag { background-position: 0 -48px; }
|
||||||
|
.icon-tags { background-position: -25px -48px; } // 1px off
|
||||||
|
.icon-book { background-position: -48px -48px; }
|
||||||
|
.icon-bookmark { background-position: -72px -48px; }
|
||||||
|
.icon-print { background-position: -96px -48px; }
|
||||||
|
.icon-camera { background-position: -120px -48px; }
|
||||||
|
.icon-font { background-position: -144px -48px; }
|
||||||
|
.icon-bold { background-position: -167px -48px; } // 1px off
|
||||||
|
.icon-italic { background-position: -192px -48px; }
|
||||||
|
.icon-text-height { background-position: -216px -48px; }
|
||||||
|
.icon-text-width { background-position: -240px -48px; }
|
||||||
|
.icon-align-left { background-position: -264px -48px; }
|
||||||
|
.icon-align-center { background-position: -288px -48px; }
|
||||||
|
.icon-align-right { background-position: -312px -48px; }
|
||||||
|
.icon-align-justify { background-position: -336px -48px; }
|
||||||
|
.icon-list { background-position: -360px -48px; }
|
||||||
|
.icon-indent-left { background-position: -384px -48px; }
|
||||||
|
.icon-indent-right { background-position: -408px -48px; }
|
||||||
|
.icon-facetime-video { background-position: -432px -48px; }
|
||||||
|
.icon-picture { background-position: -456px -48px; }
|
||||||
|
|
||||||
|
.icon-pencil { background-position: 0 -72px; }
|
||||||
|
.icon-map-marker { background-position: -24px -72px; }
|
||||||
|
.icon-adjust { background-position: -48px -72px; }
|
||||||
|
.icon-tint { background-position: -72px -72px; }
|
||||||
|
.icon-edit { background-position: -96px -72px; }
|
||||||
|
.icon-share { background-position: -120px -72px; }
|
||||||
|
.icon-check { background-position: -144px -72px; }
|
||||||
|
.icon-move { background-position: -168px -72px; }
|
||||||
|
.icon-step-backward { background-position: -192px -72px; }
|
||||||
|
.icon-fast-backward { background-position: -216px -72px; }
|
||||||
|
.icon-backward { background-position: -240px -72px; }
|
||||||
|
.icon-play { background-position: -264px -72px; }
|
||||||
|
.icon-pause { background-position: -288px -72px; }
|
||||||
|
.icon-stop { background-position: -312px -72px; }
|
||||||
|
.icon-forward { background-position: -336px -72px; }
|
||||||
|
.icon-fast-forward { background-position: -360px -72px; }
|
||||||
|
.icon-step-forward { background-position: -384px -72px; }
|
||||||
|
.icon-eject { background-position: -408px -72px; }
|
||||||
|
.icon-chevron-left { background-position: -432px -72px; }
|
||||||
|
.icon-chevron-right { background-position: -456px -72px; }
|
||||||
|
|
||||||
|
.icon-plus-sign { background-position: 0 -96px; }
|
||||||
|
.icon-minus-sign { background-position: -24px -96px; }
|
||||||
|
.icon-remove-sign { background-position: -48px -96px; }
|
||||||
|
.icon-ok-sign { background-position: -72px -96px; }
|
||||||
|
.icon-question-sign { background-position: -96px -96px; }
|
||||||
|
.icon-info-sign { background-position: -120px -96px; }
|
||||||
|
.icon-screenshot { background-position: -144px -96px; }
|
||||||
|
.icon-remove-circle { background-position: -168px -96px; }
|
||||||
|
.icon-ok-circle { background-position: -192px -96px; }
|
||||||
|
.icon-ban-circle { background-position: -216px -96px; }
|
||||||
|
.icon-arrow-left { background-position: -240px -96px; }
|
||||||
|
.icon-arrow-right { background-position: -264px -96px; }
|
||||||
|
.icon-arrow-up { background-position: -289px -96px; } // 1px off
|
||||||
|
.icon-arrow-down { background-position: -312px -96px; }
|
||||||
|
.icon-share-alt { background-position: -336px -96px; }
|
||||||
|
.icon-resize-full { background-position: -360px -96px; }
|
||||||
|
.icon-resize-small { background-position: -384px -96px; }
|
||||||
|
.icon-plus { background-position: -408px -96px; }
|
||||||
|
.icon-minus { background-position: -433px -96px; }
|
||||||
|
.icon-asterisk { background-position: -456px -96px; }
|
||||||
|
|
||||||
|
.icon-exclamation-sign { background-position: 0 -120px; }
|
||||||
|
.icon-gift { background-position: -24px -120px; }
|
||||||
|
.icon-leaf { background-position: -48px -120px; }
|
||||||
|
.icon-fire { background-position: -72px -120px; }
|
||||||
|
.icon-eye-open { background-position: -96px -120px; }
|
||||||
|
.icon-eye-close { background-position: -120px -120px; }
|
||||||
|
.icon-warning-sign { background-position: -144px -120px; }
|
||||||
|
.icon-plane { background-position: -168px -120px; }
|
||||||
|
.icon-calendar { background-position: -192px -120px; }
|
||||||
|
.icon-random { background-position: -216px -120px; width: 16px; }
|
||||||
|
.icon-comment { background-position: -240px -120px; }
|
||||||
|
.icon-magnet { background-position: -264px -120px; }
|
||||||
|
.icon-chevron-up { background-position: -288px -120px; }
|
||||||
|
.icon-chevron-down { background-position: -313px -119px; } // 1px, 1px off
|
||||||
|
.icon-retweet { background-position: -336px -120px; }
|
||||||
|
.icon-shopping-cart { background-position: -360px -120px; }
|
||||||
|
.icon-folder-close { background-position: -384px -120px; width: 16px; }
|
||||||
|
.icon-folder-open { background-position: -408px -120px; width: 16px; }
|
||||||
|
.icon-resize-vertical { background-position: -432px -119px; } // 1px, 1px off
|
||||||
|
.icon-resize-horizontal { background-position: -456px -118px; } // 1px, 2px off
|
||||||
|
|
||||||
|
.icon-hdd { background-position: 0 -144px; }
|
||||||
|
.icon-bullhorn { background-position: -24px -144px; }
|
||||||
|
.icon-bell { background-position: -48px -144px; }
|
||||||
|
.icon-certificate { background-position: -72px -144px; }
|
||||||
|
.icon-thumbs-up { background-position: -96px -144px; }
|
||||||
|
.icon-thumbs-down { background-position: -120px -144px; }
|
||||||
|
.icon-hand-right { background-position: -144px -144px; }
|
||||||
|
.icon-hand-left { background-position: -168px -144px; }
|
||||||
|
.icon-hand-up { background-position: -192px -144px; }
|
||||||
|
.icon-hand-down { background-position: -216px -144px; }
|
||||||
|
.icon-circle-arrow-right { background-position: -240px -144px; }
|
||||||
|
.icon-circle-arrow-left { background-position: -264px -144px; }
|
||||||
|
.icon-circle-arrow-up { background-position: -288px -144px; }
|
||||||
|
.icon-circle-arrow-down { background-position: -312px -144px; }
|
||||||
|
.icon-globe { background-position: -336px -144px; }
|
||||||
|
.icon-wrench { background-position: -360px -144px; }
|
||||||
|
.icon-tasks { background-position: -384px -144px; }
|
||||||
|
.icon-filter { background-position: -408px -144px; }
|
||||||
|
.icon-briefcase { background-position: -432px -144px; }
|
||||||
|
.icon-fullscreen { background-position: -456px -144px; }
|
244
app/assets/stylesheets/admin/framework/tables.less
Executable file
244
app/assets/stylesheets/admin/framework/tables.less
Executable file
@ -0,0 +1,244 @@
|
|||||||
|
//
|
||||||
|
// Tables
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// BASE TABLES
|
||||||
|
// -----------------
|
||||||
|
|
||||||
|
table {
|
||||||
|
max-width: 100%;
|
||||||
|
background-color: @tableBackground;
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// BASELINE STYLES
|
||||||
|
// ---------------
|
||||||
|
|
||||||
|
.table {
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
// Cells
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
padding: 8px;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
text-align: left;
|
||||||
|
vertical-align: top;
|
||||||
|
border-top: 1px solid @tableBorder;
|
||||||
|
}
|
||||||
|
th {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
// Bottom align for column headings
|
||||||
|
thead th {
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
// Remove top border from thead by default
|
||||||
|
caption + thead tr:first-child th,
|
||||||
|
caption + thead tr:first-child td,
|
||||||
|
colgroup + thead tr:first-child th,
|
||||||
|
colgroup + thead tr:first-child td,
|
||||||
|
thead:first-child tr:first-child th,
|
||||||
|
thead:first-child tr:first-child td {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
// Account for multiple tbody instances
|
||||||
|
tbody + tbody {
|
||||||
|
border-top: 2px solid @tableBorder;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Nesting
|
||||||
|
.table {
|
||||||
|
background-color: @bodyBackground;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// CONDENSED TABLE W/ HALF PADDING
|
||||||
|
// -------------------------------
|
||||||
|
|
||||||
|
.table-condensed {
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
padding: 4px 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// BORDERED VERSION
|
||||||
|
// ----------------
|
||||||
|
|
||||||
|
.table-bordered {
|
||||||
|
border: 1px solid @tableBorder;
|
||||||
|
border-collapse: separate; // Done so we can round those corners!
|
||||||
|
*border-collapse: collapse; // IE7 can't round corners anyway
|
||||||
|
border-left: 0;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
border-left: 1px solid @tableBorder;
|
||||||
|
}
|
||||||
|
// Prevent a double border
|
||||||
|
caption + thead tr:first-child th,
|
||||||
|
caption + tbody tr:first-child th,
|
||||||
|
caption + tbody tr:first-child td,
|
||||||
|
colgroup + thead tr:first-child th,
|
||||||
|
colgroup + tbody tr:first-child th,
|
||||||
|
colgroup + tbody tr:first-child td,
|
||||||
|
thead:first-child tr:first-child th,
|
||||||
|
tbody:first-child tr:first-child th,
|
||||||
|
tbody:first-child tr:first-child td {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
// For first th/td in the first row in the first thead or tbody
|
||||||
|
thead:first-child tr:first-child > th:first-child,
|
||||||
|
tbody:first-child tr:first-child > td:first-child,
|
||||||
|
tbody:first-child tr:first-child > th:first-child {
|
||||||
|
.border-top-left-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
// For last th/td in the first row in the first thead or tbody
|
||||||
|
thead:first-child tr:first-child > th:last-child,
|
||||||
|
tbody:first-child tr:first-child > td:last-child,
|
||||||
|
tbody:first-child tr:first-child > th:last-child {
|
||||||
|
.border-top-right-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
// For first th/td (can be either) in the last row in the last thead, tbody, and tfoot
|
||||||
|
thead:last-child tr:last-child > th:first-child,
|
||||||
|
tbody:last-child tr:last-child > td:first-child,
|
||||||
|
tbody:last-child tr:last-child > th:first-child,
|
||||||
|
tfoot:last-child tr:last-child > td:first-child,
|
||||||
|
tfoot:last-child tr:last-child > th:first-child {
|
||||||
|
.border-bottom-left-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
// For last th/td (can be either) in the last row in the last thead, tbody, and tfoot
|
||||||
|
thead:last-child tr:last-child > th:last-child,
|
||||||
|
tbody:last-child tr:last-child > td:last-child,
|
||||||
|
tbody:last-child tr:last-child > th:last-child,
|
||||||
|
tfoot:last-child tr:last-child > td:last-child,
|
||||||
|
tfoot:last-child tr:last-child > th:last-child {
|
||||||
|
.border-bottom-right-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
|
||||||
|
tfoot + tbody:last-child tr:last-child td:first-child {
|
||||||
|
.border-bottom-left-radius(0);
|
||||||
|
}
|
||||||
|
tfoot + tbody:last-child tr:last-child td:last-child {
|
||||||
|
.border-bottom-right-radius(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Special fixes to round the left border on the first td/th
|
||||||
|
caption + thead tr:first-child th:first-child,
|
||||||
|
caption + tbody tr:first-child td:first-child,
|
||||||
|
colgroup + thead tr:first-child th:first-child,
|
||||||
|
colgroup + tbody tr:first-child td:first-child {
|
||||||
|
.border-top-left-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
caption + thead tr:first-child th:last-child,
|
||||||
|
caption + tbody tr:first-child td:last-child,
|
||||||
|
colgroup + thead tr:first-child th:last-child,
|
||||||
|
colgroup + tbody tr:first-child td:last-child {
|
||||||
|
.border-top-right-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// ZEBRA-STRIPING
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
||||||
|
.table-striped {
|
||||||
|
tbody {
|
||||||
|
> tr:nth-child(odd) > td,
|
||||||
|
> tr:nth-child(odd) > th {
|
||||||
|
background-color: @tableBackgroundAccent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// HOVER EFFECT
|
||||||
|
// ------------
|
||||||
|
// Placed here since it has to come after the potential zebra striping
|
||||||
|
.table-hover {
|
||||||
|
tbody {
|
||||||
|
tr:hover > td,
|
||||||
|
tr:hover > th {
|
||||||
|
background-color: @tableBackgroundHover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// TABLE CELL SIZING
|
||||||
|
// -----------------
|
||||||
|
|
||||||
|
// Reset default grid behavior
|
||||||
|
table td[class*="span"],
|
||||||
|
table th[class*="span"],
|
||||||
|
.row-fluid table td[class*="span"],
|
||||||
|
.row-fluid table th[class*="span"] {
|
||||||
|
display: table-cell;
|
||||||
|
float: none; // undo default grid column styles
|
||||||
|
margin-left: 0; // undo default grid column styles
|
||||||
|
}
|
||||||
|
|
||||||
|
// Change the column widths to account for td/th padding
|
||||||
|
.table td,
|
||||||
|
.table th {
|
||||||
|
&.span1 { .tableColumns(1); }
|
||||||
|
&.span2 { .tableColumns(2); }
|
||||||
|
&.span3 { .tableColumns(3); }
|
||||||
|
&.span4 { .tableColumns(4); }
|
||||||
|
&.span5 { .tableColumns(5); }
|
||||||
|
&.span6 { .tableColumns(6); }
|
||||||
|
&.span7 { .tableColumns(7); }
|
||||||
|
&.span8 { .tableColumns(8); }
|
||||||
|
&.span9 { .tableColumns(9); }
|
||||||
|
&.span10 { .tableColumns(10); }
|
||||||
|
&.span11 { .tableColumns(11); }
|
||||||
|
&.span12 { .tableColumns(12); }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// TABLE BACKGROUNDS
|
||||||
|
// -----------------
|
||||||
|
// Exact selectors below required to override .table-striped
|
||||||
|
|
||||||
|
.table tbody tr {
|
||||||
|
&.success > td {
|
||||||
|
background-color: @successBackground;
|
||||||
|
}
|
||||||
|
&.error > td {
|
||||||
|
background-color: @errorBackground;
|
||||||
|
}
|
||||||
|
&.warning > td {
|
||||||
|
background-color: @warningBackground;
|
||||||
|
}
|
||||||
|
&.info > td {
|
||||||
|
background-color: @infoBackground;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover states for .table-hover
|
||||||
|
.table-hover tbody tr {
|
||||||
|
&.success:hover > td {
|
||||||
|
background-color: darken(@successBackground, 5%);
|
||||||
|
}
|
||||||
|
&.error:hover > td {
|
||||||
|
background-color: darken(@errorBackground, 5%);
|
||||||
|
}
|
||||||
|
&.warning:hover > td {
|
||||||
|
background-color: darken(@warningBackground, 5%);
|
||||||
|
}
|
||||||
|
&.info:hover > td {
|
||||||
|
background-color: darken(@infoBackground, 5%);
|
||||||
|
}
|
||||||
|
}
|
53
app/assets/stylesheets/admin/framework/thumbnails.less
Executable file
53
app/assets/stylesheets/admin/framework/thumbnails.less
Executable file
@ -0,0 +1,53 @@
|
|||||||
|
//
|
||||||
|
// Thumbnails
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
|
||||||
|
|
||||||
|
// Make wrapper ul behave like the grid
|
||||||
|
.thumbnails {
|
||||||
|
margin-left: -@gridGutterWidth;
|
||||||
|
list-style: none;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
// Fluid rows have no left margin
|
||||||
|
.row-fluid .thumbnails {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Float li to make thumbnails appear in a row
|
||||||
|
.thumbnails > li {
|
||||||
|
float: left; // Explicity set the float since we don't require .span* classes
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
margin-left: @gridGutterWidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The actual thumbnail (can be `a` or `div`)
|
||||||
|
.thumbnail {
|
||||||
|
display: block;
|
||||||
|
padding: 4px;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
.box-shadow(0 1px 3px rgba(0,0,0,.055));
|
||||||
|
.transition(all .2s ease-in-out);
|
||||||
|
}
|
||||||
|
// Add a hover/focus state for linked versions only
|
||||||
|
a.thumbnail:hover,
|
||||||
|
a.thumbnail:focus {
|
||||||
|
border-color: @linkColor;
|
||||||
|
.box-shadow(0 1px 4px rgba(0,105,214,.25));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Images and captions
|
||||||
|
.thumbnail > img {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
.thumbnail .caption {
|
||||||
|
padding: 9px;
|
||||||
|
color: @gray;
|
||||||
|
}
|
70
app/assets/stylesheets/admin/framework/tooltip.less
Executable file
70
app/assets/stylesheets/admin/framework/tooltip.less
Executable file
@ -0,0 +1,70 @@
|
|||||||
|
//
|
||||||
|
// Tooltips
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base class
|
||||||
|
.tooltip {
|
||||||
|
position: absolute;
|
||||||
|
z-index: @zindexTooltip;
|
||||||
|
display: block;
|
||||||
|
visibility: visible;
|
||||||
|
font-size: 11px;
|
||||||
|
line-height: 1.4;
|
||||||
|
.opacity(0);
|
||||||
|
&.in { .opacity(80); }
|
||||||
|
&.top { margin-top: -3px; padding: 5px 0; }
|
||||||
|
&.right { margin-left: 3px; padding: 0 5px; }
|
||||||
|
&.bottom { margin-top: 3px; padding: 5px 0; }
|
||||||
|
&.left { margin-left: -3px; padding: 0 5px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Wrapper for the tooltip content
|
||||||
|
.tooltip-inner {
|
||||||
|
max-width: 200px;
|
||||||
|
padding: 8px;
|
||||||
|
color: @tooltipColor;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @tooltipBackground;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Arrows
|
||||||
|
.tooltip-arrow {
|
||||||
|
position: absolute;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
.tooltip {
|
||||||
|
&.top .tooltip-arrow {
|
||||||
|
bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -@tooltipArrowWidth;
|
||||||
|
border-width: @tooltipArrowWidth @tooltipArrowWidth 0;
|
||||||
|
border-top-color: @tooltipArrowColor;
|
||||||
|
}
|
||||||
|
&.right .tooltip-arrow {
|
||||||
|
top: 50%;
|
||||||
|
left: 0;
|
||||||
|
margin-top: -@tooltipArrowWidth;
|
||||||
|
border-width: @tooltipArrowWidth @tooltipArrowWidth @tooltipArrowWidth 0;
|
||||||
|
border-right-color: @tooltipArrowColor;
|
||||||
|
}
|
||||||
|
&.left .tooltip-arrow {
|
||||||
|
top: 50%;
|
||||||
|
right: 0;
|
||||||
|
margin-top: -@tooltipArrowWidth;
|
||||||
|
border-width: @tooltipArrowWidth 0 @tooltipArrowWidth @tooltipArrowWidth;
|
||||||
|
border-left-color: @tooltipArrowColor;
|
||||||
|
}
|
||||||
|
&.bottom .tooltip-arrow {
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -@tooltipArrowWidth;
|
||||||
|
border-width: 0 @tooltipArrowWidth @tooltipArrowWidth;
|
||||||
|
border-bottom-color: @tooltipArrowColor;
|
||||||
|
}
|
||||||
|
}
|
247
app/assets/stylesheets/admin/framework/type.less
Executable file
247
app/assets/stylesheets/admin/framework/type.less
Executable file
@ -0,0 +1,247 @@
|
|||||||
|
//
|
||||||
|
// Typography
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Body text
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0 0 @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
.lead {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
font-size: @baseFontSize * 1.5;
|
||||||
|
font-weight: 200;
|
||||||
|
line-height: @baseLineHeight * 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Emphasis & misc
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Ex: 14px base font * 85% = about 12px
|
||||||
|
small { font-size: 85%; }
|
||||||
|
|
||||||
|
strong { font-weight: bold; }
|
||||||
|
em { font-style: italic; }
|
||||||
|
cite { font-style: normal; }
|
||||||
|
|
||||||
|
// Utility classes
|
||||||
|
.muted { color: @grayLight; }
|
||||||
|
a.muted:hover,
|
||||||
|
a.muted:focus { color: darken(@grayLight, 10%); }
|
||||||
|
|
||||||
|
.text-warning { color: @warningText; }
|
||||||
|
a.text-warning:hover,
|
||||||
|
a.text-warning:focus { color: darken(@warningText, 10%); }
|
||||||
|
|
||||||
|
.text-error { color: @errorText; }
|
||||||
|
a.text-error:hover,
|
||||||
|
a.text-error:focus { color: darken(@errorText, 10%); }
|
||||||
|
|
||||||
|
.text-info { color: @infoText; }
|
||||||
|
a.text-info:hover,
|
||||||
|
a.text-info:focus { color: darken(@infoText, 10%); }
|
||||||
|
|
||||||
|
.text-success { color: @successText; }
|
||||||
|
a.text-success:hover,
|
||||||
|
a.text-success:focus { color: darken(@successText, 10%); }
|
||||||
|
|
||||||
|
.text-left { text-align: left; }
|
||||||
|
.text-right { text-align: right; }
|
||||||
|
.text-center { text-align: center; }
|
||||||
|
|
||||||
|
|
||||||
|
// Headings
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
margin: (@baseLineHeight / 2) 0;
|
||||||
|
font-family: @headingsFontFamily;
|
||||||
|
font-weight: @headingsFontWeight;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @headingsColor;
|
||||||
|
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
||||||
|
small {
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1;
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3 { line-height: @baseLineHeight * 2; }
|
||||||
|
|
||||||
|
h1 { font-size: @baseFontSize * 2.75; } // ~38px
|
||||||
|
h2 { font-size: @baseFontSize * 2.25; } // ~32px
|
||||||
|
h3 { font-size: @baseFontSize * 1.75; } // ~24px
|
||||||
|
h4 { font-size: @baseFontSize * 1.25; } // ~18px
|
||||||
|
h5 { font-size: @baseFontSize; }
|
||||||
|
h6 { font-size: @baseFontSize * 0.85; } // ~12px
|
||||||
|
|
||||||
|
h1 small { font-size: @baseFontSize * 1.75; } // ~24px
|
||||||
|
h2 small { font-size: @baseFontSize * 1.25; } // ~18px
|
||||||
|
h3 small { font-size: @baseFontSize; }
|
||||||
|
h4 small { font-size: @baseFontSize; }
|
||||||
|
|
||||||
|
|
||||||
|
// Page header
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
padding-bottom: (@baseLineHeight / 2) - 1;
|
||||||
|
margin: @baseLineHeight 0 (@baseLineHeight * 1.5);
|
||||||
|
border-bottom: 1px solid @grayLighter;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Lists
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Unordered and Ordered lists
|
||||||
|
ul, ol {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 0 @baseLineHeight / 2 25px;
|
||||||
|
}
|
||||||
|
ul ul,
|
||||||
|
ul ol,
|
||||||
|
ol ol,
|
||||||
|
ol ul {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove default list styles
|
||||||
|
ul.unstyled,
|
||||||
|
ol.unstyled {
|
||||||
|
margin-left: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Single-line list items
|
||||||
|
ul.inline,
|
||||||
|
ol.inline {
|
||||||
|
margin-left: 0;
|
||||||
|
list-style: none;
|
||||||
|
> li {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Description Lists
|
||||||
|
dl {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
dt,
|
||||||
|
dd {
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
dt {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
dd {
|
||||||
|
margin-left: @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
// Horizontal layout (like forms)
|
||||||
|
.dl-horizontal {
|
||||||
|
.clearfix(); // Ensure dl clears floats if empty dd elements present
|
||||||
|
dt {
|
||||||
|
float: left;
|
||||||
|
width: @horizontalComponentOffset - 20;
|
||||||
|
clear: left;
|
||||||
|
text-align: right;
|
||||||
|
.text-overflow();
|
||||||
|
}
|
||||||
|
dd {
|
||||||
|
margin-left: @horizontalComponentOffset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MISC
|
||||||
|
// ----
|
||||||
|
|
||||||
|
// Horizontal rules
|
||||||
|
hr {
|
||||||
|
margin: @baseLineHeight 0;
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid @hrBorder;
|
||||||
|
border-bottom: 1px solid @white;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Abbreviations and acronyms
|
||||||
|
abbr[title],
|
||||||
|
// Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
|
||||||
|
abbr[data-original-title] {
|
||||||
|
cursor: help;
|
||||||
|
border-bottom: 1px dotted @grayLight;
|
||||||
|
}
|
||||||
|
abbr.initialism {
|
||||||
|
font-size: 90%;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Blockquotes
|
||||||
|
blockquote {
|
||||||
|
padding: 0 0 0 15px;
|
||||||
|
margin: 0 0 @baseLineHeight;
|
||||||
|
border-left: 5px solid @grayLighter;
|
||||||
|
p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-size: @baseFontSize * 1.25;
|
||||||
|
font-weight: 300;
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
small {
|
||||||
|
display: block;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @grayLight;
|
||||||
|
&:before {
|
||||||
|
content: '\2014 \00A0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Float right with text-align: right
|
||||||
|
&.pull-right {
|
||||||
|
float: right;
|
||||||
|
padding-right: 15px;
|
||||||
|
padding-left: 0;
|
||||||
|
border-right: 5px solid @grayLighter;
|
||||||
|
border-left: 0;
|
||||||
|
p,
|
||||||
|
small {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
small {
|
||||||
|
&:before {
|
||||||
|
content: '';
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
content: '\00A0 \2014';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Quotes
|
||||||
|
q:before,
|
||||||
|
q:after,
|
||||||
|
blockquote:before,
|
||||||
|
blockquote:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Addresses
|
||||||
|
address {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
30
app/assets/stylesheets/admin/framework/utilities.less
Executable file
30
app/assets/stylesheets/admin/framework/utilities.less
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
//
|
||||||
|
// Utility classes
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Quick floats
|
||||||
|
.pull-right {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.pull-left {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Toggling content
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.show {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Visibility
|
||||||
|
.invisible {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
// For Affix plugin
|
||||||
|
.affix {
|
||||||
|
position: fixed;
|
||||||
|
}
|
301
app/assets/stylesheets/admin/framework/variables.less
Executable file
301
app/assets/stylesheets/admin/framework/variables.less
Executable file
@ -0,0 +1,301 @@
|
|||||||
|
//
|
||||||
|
// Variables
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Global values
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Grays
|
||||||
|
// -------------------------
|
||||||
|
@black: #000;
|
||||||
|
@grayDarker: #222;
|
||||||
|
@grayDark: #333;
|
||||||
|
@gray: #555;
|
||||||
|
@grayLight: #999;
|
||||||
|
@grayLighter: #eee;
|
||||||
|
@white: #fff;
|
||||||
|
|
||||||
|
|
||||||
|
// Accent colors
|
||||||
|
// -------------------------
|
||||||
|
@blue: #049cdb;
|
||||||
|
@blueDark: #0064cd;
|
||||||
|
@green: #46a546;
|
||||||
|
@red: #9d261d;
|
||||||
|
@yellow: #ffc40d;
|
||||||
|
@orange: #f89406;
|
||||||
|
@pink: #c3325f;
|
||||||
|
@purple: #7a43b6;
|
||||||
|
|
||||||
|
|
||||||
|
// Scaffolding
|
||||||
|
// -------------------------
|
||||||
|
@bodyBackground: @white;
|
||||||
|
@textColor: @grayDark;
|
||||||
|
|
||||||
|
|
||||||
|
// Links
|
||||||
|
// -------------------------
|
||||||
|
@linkColor: #08c;
|
||||||
|
@linkColorHover: darken(@linkColor, 15%);
|
||||||
|
|
||||||
|
|
||||||
|
// Typography
|
||||||
|
// -------------------------
|
||||||
|
@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
@serifFontFamily: Georgia, "Times New Roman", Times, serif;
|
||||||
|
@monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
|
||||||
|
|
||||||
|
@baseFontSize: 14px;
|
||||||
|
@baseFontFamily: @sansFontFamily;
|
||||||
|
@baseLineHeight: 20px;
|
||||||
|
@altFontFamily: @serifFontFamily;
|
||||||
|
|
||||||
|
@headingsFontFamily: "Stylograph"; // empty to use BS default, @baseFontFamily
|
||||||
|
@headingsFontWeight: 100; // instead of browser default, bold
|
||||||
|
@headingsColor: inherit; // empty to use BS default, @textColor
|
||||||
|
|
||||||
|
|
||||||
|
// Component sizing
|
||||||
|
// -------------------------
|
||||||
|
// Based on 14px font-size and 20px line-height
|
||||||
|
|
||||||
|
@fontSizeLarge: @baseFontSize * 1.25; // ~18px
|
||||||
|
@fontSizeSmall: @baseFontSize * 0.85; // ~12px
|
||||||
|
@fontSizeMini: @baseFontSize * 0.75; // ~11px
|
||||||
|
|
||||||
|
@paddingLarge: 11px 19px; // 44px
|
||||||
|
@paddingSmall: 2px 10px; // 26px
|
||||||
|
@paddingMini: 0 6px; // 22px
|
||||||
|
|
||||||
|
@baseBorderRadius: 4px;
|
||||||
|
@borderRadiusLarge: 6px;
|
||||||
|
@borderRadiusSmall: 3px;
|
||||||
|
|
||||||
|
|
||||||
|
// Tables
|
||||||
|
// -------------------------
|
||||||
|
@tableBackground: transparent; // overall background-color
|
||||||
|
@tableBackgroundAccent: #f9f9f9; // for striping
|
||||||
|
@tableBackgroundHover: #f5f5f5; // for hover
|
||||||
|
@tableBorder: #ddd; // table and cell border
|
||||||
|
|
||||||
|
// Buttons
|
||||||
|
// -------------------------
|
||||||
|
@btnBackground: @white;
|
||||||
|
@btnBackgroundHighlight: darken(@white, 10%);
|
||||||
|
@btnBorder: #ccc;
|
||||||
|
|
||||||
|
@btnPrimaryBackground: @linkColor;
|
||||||
|
@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
|
||||||
|
|
||||||
|
@btnInfoBackground: #5bc0de;
|
||||||
|
@btnInfoBackgroundHighlight: #2f96b4;
|
||||||
|
|
||||||
|
@btnSuccessBackground: #62c462;
|
||||||
|
@btnSuccessBackgroundHighlight: #51a351;
|
||||||
|
|
||||||
|
@btnWarningBackground: lighten(@orange, 15%);
|
||||||
|
@btnWarningBackgroundHighlight: @orange;
|
||||||
|
|
||||||
|
@btnDangerBackground: #ee5f5b;
|
||||||
|
@btnDangerBackgroundHighlight: #bd362f;
|
||||||
|
|
||||||
|
@btnInverseBackground: #444;
|
||||||
|
@btnInverseBackgroundHighlight: @grayDarker;
|
||||||
|
|
||||||
|
|
||||||
|
// Forms
|
||||||
|
// -------------------------
|
||||||
|
@inputBackground: @white;
|
||||||
|
@inputBorder: #ccc;
|
||||||
|
@inputBorderRadius: @baseBorderRadius;
|
||||||
|
@inputDisabledBackground: @grayLighter;
|
||||||
|
@formActionsBackground: #f5f5f5;
|
||||||
|
@inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
|
||||||
|
|
||||||
|
|
||||||
|
// Dropdowns
|
||||||
|
// -------------------------
|
||||||
|
@dropdownBackground: @white;
|
||||||
|
@dropdownBorder: rgba(0,0,0,.2);
|
||||||
|
@dropdownDividerTop: #e5e5e5;
|
||||||
|
@dropdownDividerBottom: @white;
|
||||||
|
|
||||||
|
@dropdownLinkColor: @grayDark;
|
||||||
|
@dropdownLinkColorHover: @white;
|
||||||
|
@dropdownLinkColorActive: @white;
|
||||||
|
|
||||||
|
@dropdownLinkBackgroundActive: @linkColor;
|
||||||
|
@dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// COMPONENT VARIABLES
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Z-index master list
|
||||||
|
// -------------------------
|
||||||
|
// Used for a bird's eye view of components dependent on the z-axis
|
||||||
|
// Try to avoid customizing these :)
|
||||||
|
@zindexDropdown: 1000;
|
||||||
|
@zindexPopover: 1010;
|
||||||
|
@zindexTooltip: 1030;
|
||||||
|
@zindexFixedNavbar: 1030;
|
||||||
|
@zindexModalBackdrop: 1040;
|
||||||
|
@zindexModal: 1050;
|
||||||
|
|
||||||
|
|
||||||
|
// Sprite icons path
|
||||||
|
// -------------------------
|
||||||
|
@iconSpritePath: "../img/glyphicons-halflings.png";
|
||||||
|
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
|
||||||
|
|
||||||
|
|
||||||
|
// Input placeholder text color
|
||||||
|
// -------------------------
|
||||||
|
@placeholderText: @grayLight;
|
||||||
|
|
||||||
|
|
||||||
|
// Hr border color
|
||||||
|
// -------------------------
|
||||||
|
@hrBorder: @grayLighter;
|
||||||
|
|
||||||
|
|
||||||
|
// Horizontal forms & lists
|
||||||
|
// -------------------------
|
||||||
|
@horizontalComponentOffset: 180px;
|
||||||
|
|
||||||
|
|
||||||
|
// Wells
|
||||||
|
// -------------------------
|
||||||
|
@wellBackground: #f5f5f5;
|
||||||
|
|
||||||
|
|
||||||
|
// Navbar
|
||||||
|
// -------------------------
|
||||||
|
@navbarCollapseWidth: 979px;
|
||||||
|
@navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
|
||||||
|
|
||||||
|
@navbarHeight: 40px;
|
||||||
|
@navbarBackgroundHighlight: #ffffff;
|
||||||
|
@navbarBackground: darken(@navbarBackgroundHighlight, 5%);
|
||||||
|
@navbarBorder: darken(@navbarBackground, 12%);
|
||||||
|
|
||||||
|
@navbarText: #777;
|
||||||
|
@navbarLinkColor: #777;
|
||||||
|
@navbarLinkColorHover: @grayDark;
|
||||||
|
@navbarLinkColorActive: @gray;
|
||||||
|
@navbarLinkBackgroundHover: transparent;
|
||||||
|
@navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
|
||||||
|
|
||||||
|
@navbarBrandColor: @navbarLinkColor;
|
||||||
|
|
||||||
|
// Inverted navbar
|
||||||
|
@navbarInverseBackground: #111111;
|
||||||
|
@navbarInverseBackgroundHighlight: #222222;
|
||||||
|
@navbarInverseBorder: #252525;
|
||||||
|
|
||||||
|
@navbarInverseText: @grayLight;
|
||||||
|
@navbarInverseLinkColor: @grayLight;
|
||||||
|
@navbarInverseLinkColorHover: @white;
|
||||||
|
@navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
|
||||||
|
@navbarInverseLinkBackgroundHover: transparent;
|
||||||
|
@navbarInverseLinkBackgroundActive: @navbarInverseBackground;
|
||||||
|
|
||||||
|
@navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
|
||||||
|
@navbarInverseSearchBackgroundFocus: @white;
|
||||||
|
@navbarInverseSearchBorder: @navbarInverseBackground;
|
||||||
|
@navbarInverseSearchPlaceholderColor: #ccc;
|
||||||
|
|
||||||
|
@navbarInverseBrandColor: @navbarInverseLinkColor;
|
||||||
|
|
||||||
|
|
||||||
|
// Pagination
|
||||||
|
// -------------------------
|
||||||
|
@paginationBackground: #fff;
|
||||||
|
@paginationBorder: #ddd;
|
||||||
|
@paginationActiveBackground: #f5f5f5;
|
||||||
|
|
||||||
|
|
||||||
|
// Hero unit
|
||||||
|
// -------------------------
|
||||||
|
@heroUnitBackground: @grayLighter;
|
||||||
|
@heroUnitHeadingColor: inherit;
|
||||||
|
@heroUnitLeadColor: inherit;
|
||||||
|
|
||||||
|
|
||||||
|
// Form states and alerts
|
||||||
|
// -------------------------
|
||||||
|
@warningText: #c09853;
|
||||||
|
@warningBackground: #fcf8e3;
|
||||||
|
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
||||||
|
|
||||||
|
@errorText: #b94a48;
|
||||||
|
@errorBackground: #f2dede;
|
||||||
|
@errorBorder: darken(spin(@errorBackground, -10), 3%);
|
||||||
|
|
||||||
|
@successText: #468847;
|
||||||
|
@successBackground: #dff0d8;
|
||||||
|
@successBorder: darken(spin(@successBackground, -10), 5%);
|
||||||
|
|
||||||
|
@infoText: #3a87ad;
|
||||||
|
@infoBackground: #d9edf7;
|
||||||
|
@infoBorder: darken(spin(@infoBackground, -10), 7%);
|
||||||
|
|
||||||
|
|
||||||
|
// Tooltips and popovers
|
||||||
|
// -------------------------
|
||||||
|
@tooltipColor: #fff;
|
||||||
|
@tooltipBackground: #000;
|
||||||
|
@tooltipArrowWidth: 5px;
|
||||||
|
@tooltipArrowColor: @tooltipBackground;
|
||||||
|
|
||||||
|
@popoverBackground: #fff;
|
||||||
|
@popoverArrowWidth: 10px;
|
||||||
|
@popoverArrowColor: #fff;
|
||||||
|
@popoverTitleBackground: darken(@popoverBackground, 3%);
|
||||||
|
|
||||||
|
// Special enhancement for popovers
|
||||||
|
@popoverArrowOuterWidth: @popoverArrowWidth + 1;
|
||||||
|
@popoverArrowOuterColor: rgba(0,0,0,.25);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// GRID
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Default 940px grid
|
||||||
|
// -------------------------
|
||||||
|
@gridColumns: 12;
|
||||||
|
@gridColumnWidth: 60px;
|
||||||
|
@gridGutterWidth: 20px;
|
||||||
|
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
||||||
|
|
||||||
|
// 1200px min
|
||||||
|
@gridColumnWidth1200: 70px;
|
||||||
|
@gridGutterWidth1200: 30px;
|
||||||
|
@gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
|
||||||
|
|
||||||
|
// 768px-979px
|
||||||
|
@gridColumnWidth768: 42px;
|
||||||
|
@gridGutterWidth768: 20px;
|
||||||
|
@gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
|
||||||
|
|
||||||
|
|
||||||
|
// Fluid grid
|
||||||
|
// -------------------------
|
||||||
|
@fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
|
||||||
|
@fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
|
||||||
|
|
||||||
|
// 1200px min
|
||||||
|
@fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
|
||||||
|
@fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
|
||||||
|
|
||||||
|
// 768px-979px
|
||||||
|
@fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
|
||||||
|
@fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
|
29
app/assets/stylesheets/admin/framework/wells.less
Executable file
29
app/assets/stylesheets/admin/framework/wells.less
Executable file
@ -0,0 +1,29 @@
|
|||||||
|
//
|
||||||
|
// Wells
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base class
|
||||||
|
.well {
|
||||||
|
min-height: 20px;
|
||||||
|
padding: 19px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
background-color: @wellBackground;
|
||||||
|
border: 1px solid darken(@wellBackground, 7%);
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
.box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
||||||
|
blockquote {
|
||||||
|
border-color: #ddd;
|
||||||
|
border-color: rgba(0,0,0,.15);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sizes
|
||||||
|
.well-large {
|
||||||
|
padding: 24px;
|
||||||
|
.border-radius(@borderRadiusLarge);
|
||||||
|
}
|
||||||
|
.well-small {
|
||||||
|
padding: 9px;
|
||||||
|
.border-radius(@borderRadiusSmall);
|
||||||
|
}
|
2200
app/assets/stylesheets/admin/lesshat.less
Executable file
2200
app/assets/stylesheets/admin/lesshat.less
Executable file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
*= require_self
|
|
||||||
*= require vendor/formtastic
|
*= require vendor/formtastic
|
||||||
|
|
||||||
*/
|
*/
|
@ -1,155 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
*= require_self
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
@import "compass";
|
|
||||||
@import "compass/reset";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#browser_update{
|
|
||||||
display:none;
|
|
||||||
background: url('/assets/admin/backgrounds/bg-white.jpg');
|
|
||||||
@include box-shadow(rgba(0, 0, 0, 0.7) 0 0px 10px inset);
|
|
||||||
padding:20px;
|
|
||||||
margin-top:20px;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
h2{
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
font-family:georgia;
|
|
||||||
|
|
||||||
margin-top:-15px;
|
|
||||||
margin-right:-20px;
|
|
||||||
margin-left:-20px;
|
|
||||||
padding:20px;
|
|
||||||
font-size:2em;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.browser{
|
|
||||||
display:inline-block;
|
|
||||||
text-align:center;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
img{
|
|
||||||
width:120px;
|
|
||||||
display:block;
|
|
||||||
margin:auto;
|
|
||||||
padding:10px;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
&:hover{
|
|
||||||
|
|
||||||
img{
|
|
||||||
|
|
||||||
width:140px;
|
|
||||||
padding:0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
body {
|
|
||||||
background: url('/assets/admin/backgrounds/white_oak.png');
|
|
||||||
font-family: verdana;
|
|
||||||
padding:0px;
|
|
||||||
margin:0px;
|
|
||||||
|
|
||||||
font-size: 13px;
|
|
||||||
font-family: "Lucida Grande", arial, helvetica, sans-serif;
|
|
||||||
|
|
||||||
p{
|
|
||||||
|
|
||||||
margin-top:1em;
|
|
||||||
margin-bottom:1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#title {
|
|
||||||
width: 520px;
|
|
||||||
margin: auto;
|
|
||||||
margin-top: 10%;
|
|
||||||
color: white;
|
|
||||||
@include text-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
|
|
||||||
padding: 0px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
|
|
||||||
font-size:2.2em;
|
|
||||||
font-weight:bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#main {
|
|
||||||
background: white;
|
|
||||||
width: 500px;
|
|
||||||
padding: 10px;
|
|
||||||
margin: auto;
|
|
||||||
|
|
||||||
position:relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1{
|
|
||||||
color:white;
|
|
||||||
font-size:1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#main:before,
|
|
||||||
#main:after {
|
|
||||||
content:"";
|
|
||||||
position:absolute;
|
|
||||||
z-index:-1;
|
|
||||||
bottom:15px;
|
|
||||||
left:10px;
|
|
||||||
width:50%;
|
|
||||||
height:20%;
|
|
||||||
max-width:300px;
|
|
||||||
|
|
||||||
@include box-shadow(rgba(0, 0, 0, 0.7) 0 15px 10px );
|
|
||||||
@include transform(rotate(-3deg));
|
|
||||||
}
|
|
||||||
|
|
||||||
#main:after{
|
|
||||||
right:10px;
|
|
||||||
left:auto;
|
|
||||||
@include transform(rotate(3deg));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
form{
|
|
||||||
button{
|
|
||||||
color: white;
|
|
||||||
padding: 6px 10px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
41
app/assets/stylesheets/connexion.less
Normal file
41
app/assets/stylesheets/connexion.less
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
@import "./vendor/framework/variables.less";
|
||||||
|
@import "./vendor/framework/bootstrap.less";
|
||||||
|
@import "admin/lesshat";
|
||||||
|
|
||||||
|
body {
|
||||||
|
padding:10px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin {
|
||||||
|
max-width: 300px;
|
||||||
|
padding: 19px 29px 29px;
|
||||||
|
margin: 0 auto 20px;
|
||||||
|
background-color:rgba(255,255,255,0.8);
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
.border-radius(5px);
|
||||||
|
.box-shadow(0 1px 2px rgba(0,0,0,.05));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin .form-signin-heading, .form-signin .checkbox {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-signin input[type="text"], .form-signin input[type="password"] {
|
||||||
|
font-size: 16px;
|
||||||
|
height: auto;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
padding: 7px 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#flashs{
|
||||||
|
position:fixed;
|
||||||
|
bottom:0px;
|
||||||
|
|
||||||
|
right:1em;
|
||||||
|
min-width:600px;
|
||||||
|
width:50%;
|
||||||
|
|
||||||
|
}
|
16
app/assets/stylesheets/fontawesome/bordered-pulled.less
vendored
Normal file
16
app/assets/stylesheets/fontawesome/bordered-pulled.less
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Bordered & Pulled
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.@{fa-css-prefix}-border {
|
||||||
|
padding: .2em .25em .15em;
|
||||||
|
border: solid .08em @fa-border-color;
|
||||||
|
border-radius: .1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pull-right { float: right; }
|
||||||
|
.pull-left { float: left; }
|
||||||
|
|
||||||
|
.@{fa-css-prefix} {
|
||||||
|
&.pull-left { margin-right: .3em; }
|
||||||
|
&.pull-right { margin-left: .3em; }
|
||||||
|
}
|
12
app/assets/stylesheets/fontawesome/core.less
vendored
Normal file
12
app/assets/stylesheets/fontawesome/core.less
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// Base Class Definition
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.@{fa-css-prefix} {
|
||||||
|
display: inline-block;
|
||||||
|
font-family: FontAwesome;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 1;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
}
|
6
app/assets/stylesheets/fontawesome/fixed-width.less
vendored
Normal file
6
app/assets/stylesheets/fontawesome/fixed-width.less
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Fixed Width Icons
|
||||||
|
// -------------------------
|
||||||
|
.@{fa-css-prefix}-fw {
|
||||||
|
width: (18em / 14);
|
||||||
|
text-align: center;
|
||||||
|
}
|
17
app/assets/stylesheets/fontawesome/font-awesome.less
vendored
Normal file
17
app/assets/stylesheets/fontawesome/font-awesome.less
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*!
|
||||||
|
* Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome
|
||||||
|
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import "variables";
|
||||||
|
@import "mixins";
|
||||||
|
@import "path";
|
||||||
|
@import "core";
|
||||||
|
@import "larger";
|
||||||
|
@import "fixed-width";
|
||||||
|
@import "list";
|
||||||
|
@import "bordered-pulled";
|
||||||
|
@import "spinning";
|
||||||
|
@import "rotated-flipped";
|
||||||
|
@import "stacked";
|
||||||
|
@import "icons";
|
412
app/assets/stylesheets/fontawesome/icons.less
vendored
Normal file
412
app/assets/stylesheets/fontawesome/icons.less
vendored
Normal file
@ -0,0 +1,412 @@
|
|||||||
|
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
||||||
|
readers do not read off random characters that represent icons */
|
||||||
|
|
||||||
|
.@{fa-css-prefix}-glass:before { content: @fa-var-glass; }
|
||||||
|
.@{fa-css-prefix}-music:before { content: @fa-var-music; }
|
||||||
|
.@{fa-css-prefix}-search:before { content: @fa-var-search; }
|
||||||
|
.@{fa-css-prefix}-envelope-o:before { content: @fa-var-envelope-o; }
|
||||||
|
.@{fa-css-prefix}-heart:before { content: @fa-var-heart; }
|
||||||
|
.@{fa-css-prefix}-star:before { content: @fa-var-star; }
|
||||||
|
.@{fa-css-prefix}-star-o:before { content: @fa-var-star-o; }
|
||||||
|
.@{fa-css-prefix}-user:before { content: @fa-var-user; }
|
||||||
|
.@{fa-css-prefix}-film:before { content: @fa-var-film; }
|
||||||
|
.@{fa-css-prefix}-th-large:before { content: @fa-var-th-large; }
|
||||||
|
.@{fa-css-prefix}-th:before { content: @fa-var-th; }
|
||||||
|
.@{fa-css-prefix}-th-list:before { content: @fa-var-th-list; }
|
||||||
|
.@{fa-css-prefix}-check:before { content: @fa-var-check; }
|
||||||
|
.@{fa-css-prefix}-times:before { content: @fa-var-times; }
|
||||||
|
.@{fa-css-prefix}-search-plus:before { content: @fa-var-search-plus; }
|
||||||
|
.@{fa-css-prefix}-search-minus:before { content: @fa-var-search-minus; }
|
||||||
|
.@{fa-css-prefix}-power-off:before { content: @fa-var-power-off; }
|
||||||
|
.@{fa-css-prefix}-signal:before { content: @fa-var-signal; }
|
||||||
|
.@{fa-css-prefix}-gear:before,
|
||||||
|
.@{fa-css-prefix}-cog:before { content: @fa-var-cog; }
|
||||||
|
.@{fa-css-prefix}-trash-o:before { content: @fa-var-trash-o; }
|
||||||
|
.@{fa-css-prefix}-home:before { content: @fa-var-home; }
|
||||||
|
.@{fa-css-prefix}-file-o:before { content: @fa-var-file-o; }
|
||||||
|
.@{fa-css-prefix}-clock-o:before { content: @fa-var-clock-o; }
|
||||||
|
.@{fa-css-prefix}-road:before { content: @fa-var-road; }
|
||||||
|
.@{fa-css-prefix}-download:before { content: @fa-var-download; }
|
||||||
|
.@{fa-css-prefix}-arrow-circle-o-down:before { content: @fa-var-arrow-circle-o-down; }
|
||||||
|
.@{fa-css-prefix}-arrow-circle-o-up:before { content: @fa-var-arrow-circle-o-up; }
|
||||||
|
.@{fa-css-prefix}-inbox:before { content: @fa-var-inbox; }
|
||||||
|
.@{fa-css-prefix}-play-circle-o:before { content: @fa-var-play-circle-o; }
|
||||||
|
.@{fa-css-prefix}-rotate-right:before,
|
||||||
|
.@{fa-css-prefix}-repeat:before { content: @fa-var-repeat; }
|
||||||
|
.@{fa-css-prefix}-refresh:before { content: @fa-var-refresh; }
|
||||||
|
.@{fa-css-prefix}-list-alt:before { content: @fa-var-list-alt; }
|
||||||
|
.@{fa-css-prefix}-lock:before { content: @fa-var-lock; }
|
||||||
|
.@{fa-css-prefix}-flag:before { content: @fa-var-flag; }
|
||||||
|
.@{fa-css-prefix}-headphones:before { content: @fa-var-headphones; }
|
||||||
|
.@{fa-css-prefix}-volume-off:before { content: @fa-var-volume-off; }
|
||||||
|
.@{fa-css-prefix}-volume-down:before { content: @fa-var-volume-down; }
|
||||||
|
.@{fa-css-prefix}-volume-up:before { content: @fa-var-volume-up; }
|
||||||
|
.@{fa-css-prefix}-qrcode:before { content: @fa-var-qrcode; }
|
||||||
|
.@{fa-css-prefix}-barcode:before { content: @fa-var-barcode; }
|
||||||
|
.@{fa-css-prefix}-tag:before { content: @fa-var-tag; }
|
||||||
|
.@{fa-css-prefix}-tags:before { content: @fa-var-tags; }
|
||||||
|
.@{fa-css-prefix}-book:before { content: @fa-var-book; }
|
||||||
|
.@{fa-css-prefix}-bookmark:before { content: @fa-var-bookmark; }
|
||||||
|
.@{fa-css-prefix}-print:before { content: @fa-var-print; }
|
||||||
|
.@{fa-css-prefix}-camera:before { content: @fa-var-camera; }
|
||||||
|
.@{fa-css-prefix}-font:before { content: @fa-var-font; }
|
||||||
|
.@{fa-css-prefix}-bold:before { content: @fa-var-bold; }
|
||||||
|
.@{fa-css-prefix}-italic:before { content: @fa-var-italic; }
|
||||||
|
.@{fa-css-prefix}-text-height:before { content: @fa-var-text-height; }
|
||||||
|
.@{fa-css-prefix}-text-width:before { content: @fa-var-text-width; }
|
||||||
|
.@{fa-css-prefix}-align-left:before { content: @fa-var-align-left; }
|
||||||
|
.@{fa-css-prefix}-align-center:before { content: @fa-var-align-center; }
|
||||||
|
.@{fa-css-prefix}-align-right:before { content: @fa-var-align-right; }
|
||||||
|
.@{fa-css-prefix}-align-justify:before { content: @fa-var-align-justify; }
|
||||||
|
.@{fa-css-prefix}-list:before { content: @fa-var-list; }
|
||||||
|
.@{fa-css-prefix}-dedent:before,
|
||||||
|
.@{fa-css-prefix}-outdent:before { content: @fa-var-outdent; }
|
||||||
|
.@{fa-css-prefix}-indent:before { content: @fa-var-indent; }
|
||||||
|
.@{fa-css-prefix}-video-camera:before { content: @fa-var-video-camera; }
|
||||||
|
.@{fa-css-prefix}-picture-o:before { content: @fa-var-picture-o; }
|
||||||
|
.@{fa-css-prefix}-pencil:before { content: @fa-var-pencil; }
|
||||||
|
.@{fa-css-prefix}-map-marker:before { content: @fa-var-map-marker; }
|
||||||
|
.@{fa-css-prefix}-adjust:before { content: @fa-var-adjust; }
|
||||||
|
.@{fa-css-prefix}-tint:before { content: @fa-var-tint; }
|
||||||
|
.@{fa-css-prefix}-edit:before,
|
||||||
|
.@{fa-css-prefix}-pencil-square-o:before { content: @fa-var-pencil-square-o; }
|
||||||
|
.@{fa-css-prefix}-share-square-o:before { content: @fa-var-share-square-o; }
|
||||||
|
.@{fa-css-prefix}-check-square-o:before { content: @fa-var-check-square-o; }
|
||||||
|
.@{fa-css-prefix}-arrows:before { content: @fa-var-arrows; }
|
||||||
|
.@{fa-css-prefix}-step-backward:before { content: @fa-var-step-backward; }
|
||||||
|
.@{fa-css-prefix}-fast-backward:before { content: @fa-var-fast-backward; }
|
||||||
|
.@{fa-css-prefix}-backward:before { content: @fa-var-backward; }
|
||||||
|
.@{fa-css-prefix}-play:before { content: @fa-var-play; }
|
||||||
|
.@{fa-css-prefix}-pause:before { content: @fa-var-pause; }
|
||||||
|
.@{fa-css-prefix}-stop:before { content: @fa-var-stop; }
|
||||||
|
.@{fa-css-prefix}-forward:before { content: @fa-var-forward; }
|
||||||
|
.@{fa-css-prefix}-fast-forward:before { content: @fa-var-fast-forward; }
|
||||||
|
.@{fa-css-prefix}-step-forward:before { content: @fa-var-step-forward; }
|
||||||
|
.@{fa-css-prefix}-eject:before { content: @fa-var-eject; }
|
||||||
|
.@{fa-css-prefix}-chevron-left:before { content: @fa-var-chevron-left; }
|
||||||
|
.@{fa-css-prefix}-chevron-right:before { content: @fa-var-chevron-right; }
|
||||||
|
.@{fa-css-prefix}-plus-circle:before { content: @fa-var-plus-circle; }
|
||||||
|
.@{fa-css-prefix}-minus-circle:before { content: @fa-var-minus-circle; }
|
||||||
|
.@{fa-css-prefix}-times-circle:before { content: @fa-var-times-circle; }
|
||||||
|
.@{fa-css-prefix}-check-circle:before { content: @fa-var-check-circle; }
|
||||||
|
.@{fa-css-prefix}-question-circle:before { content: @fa-var-question-circle; }
|
||||||
|
.@{fa-css-prefix}-info-circle:before { content: @fa-var-info-circle; }
|
||||||
|
.@{fa-css-prefix}-crosshairs:before { content: @fa-var-crosshairs; }
|
||||||
|
.@{fa-css-prefix}-times-circle-o:before { content: @fa-var-times-circle-o; }
|
||||||
|
.@{fa-css-prefix}-check-circle-o:before { content: @fa-var-check-circle-o; }
|
||||||
|
.@{fa-css-prefix}-ban:before { content: @fa-var-ban; }
|
||||||
|
.@{fa-css-prefix}-arrow-left:before { content: @fa-var-arrow-left; }
|
||||||
|
.@{fa-css-prefix}-arrow-right:before { content: @fa-var-arrow-right; }
|
||||||
|
.@{fa-css-prefix}-arrow-up:before { content: @fa-var-arrow-up; }
|
||||||
|
.@{fa-css-prefix}-arrow-down:before { content: @fa-var-arrow-down; }
|
||||||
|
.@{fa-css-prefix}-mail-forward:before,
|
||||||
|
.@{fa-css-prefix}-share:before { content: @fa-var-share; }
|
||||||
|
.@{fa-css-prefix}-expand:before { content: @fa-var-expand; }
|
||||||
|
.@{fa-css-prefix}-compress:before { content: @fa-var-compress; }
|
||||||
|
.@{fa-css-prefix}-plus:before { content: @fa-var-plus; }
|
||||||
|
.@{fa-css-prefix}-minus:before { content: @fa-var-minus; }
|
||||||
|
.@{fa-css-prefix}-asterisk:before { content: @fa-var-asterisk; }
|
||||||
|
.@{fa-css-prefix}-exclamation-circle:before { content: @fa-var-exclamation-circle; }
|
||||||
|
.@{fa-css-prefix}-gift:before { content: @fa-var-gift; }
|
||||||
|
.@{fa-css-prefix}-leaf:before { content: @fa-var-leaf; }
|
||||||
|
.@{fa-css-prefix}-fire:before { content: @fa-var-fire; }
|
||||||
|
.@{fa-css-prefix}-eye:before { content: @fa-var-eye; }
|
||||||
|
.@{fa-css-prefix}-eye-slash:before { content: @fa-var-eye-slash; }
|
||||||
|
.@{fa-css-prefix}-warning:before,
|
||||||
|
.@{fa-css-prefix}-exclamation-triangle:before { content: @fa-var-exclamation-triangle; }
|
||||||
|
.@{fa-css-prefix}-plane:before { content: @fa-var-plane; }
|
||||||
|
.@{fa-css-prefix}-calendar:before { content: @fa-var-calendar; }
|
||||||
|
.@{fa-css-prefix}-random:before { content: @fa-var-random; }
|
||||||
|
.@{fa-css-prefix}-comment:before { content: @fa-var-comment; }
|
||||||
|
.@{fa-css-prefix}-magnet:before { content: @fa-var-magnet; }
|
||||||
|
.@{fa-css-prefix}-chevron-up:before { content: @fa-var-chevron-up; }
|
||||||
|
.@{fa-css-prefix}-chevron-down:before { content: @fa-var-chevron-down; }
|
||||||
|
.@{fa-css-prefix}-retweet:before { content: @fa-var-retweet; }
|
||||||
|
.@{fa-css-prefix}-shopping-cart:before { content: @fa-var-shopping-cart; }
|
||||||
|
.@{fa-css-prefix}-folder:before { content: @fa-var-folder; }
|
||||||
|
.@{fa-css-prefix}-folder-open:before { content: @fa-var-folder-open; }
|
||||||
|
.@{fa-css-prefix}-arrows-v:before { content: @fa-var-arrows-v; }
|
||||||
|
.@{fa-css-prefix}-arrows-h:before { content: @fa-var-arrows-h; }
|
||||||
|
.@{fa-css-prefix}-bar-chart-o:before { content: @fa-var-bar-chart-o; }
|
||||||
|
.@{fa-css-prefix}-twitter-square:before { content: @fa-var-twitter-square; }
|
||||||
|
.@{fa-css-prefix}-facebook-square:before { content: @fa-var-facebook-square; }
|
||||||
|
.@{fa-css-prefix}-camera-retro:before { content: @fa-var-camera-retro; }
|
||||||
|
.@{fa-css-prefix}-key:before { content: @fa-var-key; }
|
||||||
|
.@{fa-css-prefix}-gears:before,
|
||||||
|
.@{fa-css-prefix}-cogs:before { content: @fa-var-cogs; }
|
||||||
|
.@{fa-css-prefix}-comments:before { content: @fa-var-comments; }
|
||||||
|
.@{fa-css-prefix}-thumbs-o-up:before { content: @fa-var-thumbs-o-up; }
|
||||||
|
.@{fa-css-prefix}-thumbs-o-down:before { content: @fa-var-thumbs-o-down; }
|
||||||
|
.@{fa-css-prefix}-star-half:before { content: @fa-var-star-half; }
|
||||||
|
.@{fa-css-prefix}-heart-o:before { content: @fa-var-heart-o; }
|
||||||
|
.@{fa-css-prefix}-sign-out:before { content: @fa-var-sign-out; }
|
||||||
|
.@{fa-css-prefix}-linkedin-square:before { content: @fa-var-linkedin-square; }
|
||||||
|
.@{fa-css-prefix}-thumb-tack:before { content: @fa-var-thumb-tack; }
|
||||||
|
.@{fa-css-prefix}-external-link:before { content: @fa-var-external-link; }
|
||||||
|
.@{fa-css-prefix}-sign-in:before { content: @fa-var-sign-in; }
|
||||||
|
.@{fa-css-prefix}-trophy:before { content: @fa-var-trophy; }
|
||||||
|
.@{fa-css-prefix}-github-square:before { content: @fa-var-github-square; }
|
||||||
|
.@{fa-css-prefix}-upload:before { content: @fa-var-upload; }
|
||||||
|
.@{fa-css-prefix}-lemon-o:before { content: @fa-var-lemon-o; }
|
||||||
|
.@{fa-css-prefix}-phone:before { content: @fa-var-phone; }
|
||||||
|
.@{fa-css-prefix}-square-o:before { content: @fa-var-square-o; }
|
||||||
|
.@{fa-css-prefix}-bookmark-o:before { content: @fa-var-bookmark-o; }
|
||||||
|
.@{fa-css-prefix}-phone-square:before { content: @fa-var-phone-square; }
|
||||||
|
.@{fa-css-prefix}-twitter:before { content: @fa-var-twitter; }
|
||||||
|
.@{fa-css-prefix}-facebook:before { content: @fa-var-facebook; }
|
||||||
|
.@{fa-css-prefix}-github:before { content: @fa-var-github; }
|
||||||
|
.@{fa-css-prefix}-unlock:before { content: @fa-var-unlock; }
|
||||||
|
.@{fa-css-prefix}-credit-card:before { content: @fa-var-credit-card; }
|
||||||
|
.@{fa-css-prefix}-rss:before { content: @fa-var-rss; }
|
||||||
|
.@{fa-css-prefix}-hdd-o:before { content: @fa-var-hdd-o; }
|
||||||
|
.@{fa-css-prefix}-bullhorn:before { content: @fa-var-bullhorn; }
|
||||||
|
.@{fa-css-prefix}-bell:before { content: @fa-var-bell; }
|
||||||
|
.@{fa-css-prefix}-certificate:before { content: @fa-var-certificate; }
|
||||||
|
.@{fa-css-prefix}-hand-o-right:before { content: @fa-var-hand-o-right; }
|
||||||
|
.@{fa-css-prefix}-hand-o-left:before { content: @fa-var-hand-o-left; }
|
||||||
|
.@{fa-css-prefix}-hand-o-up:before { content: @fa-var-hand-o-up; }
|
||||||
|
.@{fa-css-prefix}-hand-o-down:before { content: @fa-var-hand-o-down; }
|
||||||
|
.@{fa-css-prefix}-arrow-circle-left:before { content: @fa-var-arrow-circle-left; }
|
||||||
|
.@{fa-css-prefix}-arrow-circle-right:before { content: @fa-var-arrow-circle-right; }
|
||||||
|
.@{fa-css-prefix}-arrow-circle-up:before { content: @fa-var-arrow-circle-up; }
|
||||||
|
.@{fa-css-prefix}-arrow-circle-down:before { content: @fa-var-arrow-circle-down; }
|
||||||
|
.@{fa-css-prefix}-globe:before { content: @fa-var-globe; }
|
||||||
|
.@{fa-css-prefix}-wrench:before { content: @fa-var-wrench; }
|
||||||
|
.@{fa-css-prefix}-tasks:before { content: @fa-var-tasks; }
|
||||||
|
.@{fa-css-prefix}-filter:before { content: @fa-var-filter; }
|
||||||
|
.@{fa-css-prefix}-briefcase:before { content: @fa-var-briefcase; }
|
||||||
|
.@{fa-css-prefix}-arrows-alt:before { content: @fa-var-arrows-alt; }
|
||||||
|
.@{fa-css-prefix}-group:before,
|
||||||
|
.@{fa-css-prefix}-users:before { content: @fa-var-users; }
|
||||||
|
.@{fa-css-prefix}-chain:before,
|
||||||
|
.@{fa-css-prefix}-link:before { content: @fa-var-link; }
|
||||||
|
.@{fa-css-prefix}-cloud:before { content: @fa-var-cloud; }
|
||||||
|
.@{fa-css-prefix}-flask:before { content: @fa-var-flask; }
|
||||||
|
.@{fa-css-prefix}-cut:before,
|
||||||
|
.@{fa-css-prefix}-scissors:before { content: @fa-var-scissors; }
|
||||||
|
.@{fa-css-prefix}-copy:before,
|
||||||
|
.@{fa-css-prefix}-files-o:before { content: @fa-var-files-o; }
|
||||||
|
.@{fa-css-prefix}-paperclip:before { content: @fa-var-paperclip; }
|
||||||
|
.@{fa-css-prefix}-save:before,
|
||||||
|
.@{fa-css-prefix}-floppy-o:before { content: @fa-var-floppy-o; }
|
||||||
|
.@{fa-css-prefix}-square:before { content: @fa-var-square; }
|
||||||
|
.@{fa-css-prefix}-bars:before { content: @fa-var-bars; }
|
||||||
|
.@{fa-css-prefix}-list-ul:before { content: @fa-var-list-ul; }
|
||||||
|
.@{fa-css-prefix}-list-ol:before { content: @fa-var-list-ol; }
|
||||||
|
.@{fa-css-prefix}-strikethrough:before { content: @fa-var-strikethrough; }
|
||||||
|
.@{fa-css-prefix}-underline:before { content: @fa-var-underline; }
|
||||||
|
.@{fa-css-prefix}-table:before { content: @fa-var-table; }
|
||||||
|
.@{fa-css-prefix}-magic:before { content: @fa-var-magic; }
|
||||||
|
.@{fa-css-prefix}-truck:before { content: @fa-var-truck; }
|
||||||
|
.@{fa-css-prefix}-pinterest:before { content: @fa-var-pinterest; }
|
||||||
|
.@{fa-css-prefix}-pinterest-square:before { content: @fa-var-pinterest-square; }
|
||||||
|
.@{fa-css-prefix}-google-plus-square:before { content: @fa-var-google-plus-square; }
|
||||||
|
.@{fa-css-prefix}-google-plus:before { content: @fa-var-google-plus; }
|
||||||
|
.@{fa-css-prefix}-money:before { content: @fa-var-money; }
|
||||||
|
.@{fa-css-prefix}-caret-down:before { content: @fa-var-caret-down; }
|
||||||
|
.@{fa-css-prefix}-caret-up:before { content: @fa-var-caret-up; }
|
||||||
|
.@{fa-css-prefix}-caret-left:before { content: @fa-var-caret-left; }
|
||||||
|
.@{fa-css-prefix}-caret-right:before { content: @fa-var-caret-right; }
|
||||||
|
.@{fa-css-prefix}-columns:before { content: @fa-var-columns; }
|
||||||
|
.@{fa-css-prefix}-unsorted:before,
|
||||||
|
.@{fa-css-prefix}-sort:before { content: @fa-var-sort; }
|
||||||
|
.@{fa-css-prefix}-sort-down:before,
|
||||||
|
.@{fa-css-prefix}-sort-asc:before { content: @fa-var-sort-asc; }
|
||||||
|
.@{fa-css-prefix}-sort-up:before,
|
||||||
|
.@{fa-css-prefix}-sort-desc:before { content: @fa-var-sort-desc; }
|
||||||
|
.@{fa-css-prefix}-envelope:before { content: @fa-var-envelope; }
|
||||||
|
.@{fa-css-prefix}-linkedin:before { content: @fa-var-linkedin; }
|
||||||
|
.@{fa-css-prefix}-rotate-left:before,
|
||||||
|
.@{fa-css-prefix}-undo:before { content: @fa-var-undo; }
|
||||||
|
.@{fa-css-prefix}-legal:before,
|
||||||
|
.@{fa-css-prefix}-gavel:before { content: @fa-var-gavel; }
|
||||||
|
.@{fa-css-prefix}-dashboard:before,
|
||||||
|
.@{fa-css-prefix}-tachometer:before { content: @fa-var-tachometer; }
|
||||||
|
.@{fa-css-prefix}-comment-o:before { content: @fa-var-comment-o; }
|
||||||
|
.@{fa-css-prefix}-comments-o:before { content: @fa-var-comments-o; }
|
||||||
|
.@{fa-css-prefix}-flash:before,
|
||||||
|
.@{fa-css-prefix}-bolt:before { content: @fa-var-bolt; }
|
||||||
|
.@{fa-css-prefix}-sitemap:before { content: @fa-var-sitemap; }
|
||||||
|
.@{fa-css-prefix}-umbrella:before { content: @fa-var-umbrella; }
|
||||||
|
.@{fa-css-prefix}-paste:before,
|
||||||
|
.@{fa-css-prefix}-clipboard:before { content: @fa-var-clipboard; }
|
||||||
|
.@{fa-css-prefix}-lightbulb-o:before { content: @fa-var-lightbulb-o; }
|
||||||
|
.@{fa-css-prefix}-exchange:before { content: @fa-var-exchange; }
|
||||||
|
.@{fa-css-prefix}-cloud-download:before { content: @fa-var-cloud-download; }
|
||||||
|
.@{fa-css-prefix}-cloud-upload:before { content: @fa-var-cloud-upload; }
|
||||||
|
.@{fa-css-prefix}-user-md:before { content: @fa-var-user-md; }
|
||||||
|
.@{fa-css-prefix}-stethoscope:before { content: @fa-var-stethoscope; }
|
||||||
|
.@{fa-css-prefix}-suitcase:before { content: @fa-var-suitcase; }
|
||||||
|
.@{fa-css-prefix}-bell-o:before { content: @fa-var-bell-o; }
|
||||||
|
.@{fa-css-prefix}-coffee:before { content: @fa-var-coffee; }
|
||||||
|
.@{fa-css-prefix}-cutlery:before { content: @fa-var-cutlery; }
|
||||||
|
.@{fa-css-prefix}-file-text-o:before { content: @fa-var-file-text-o; }
|
||||||
|
.@{fa-css-prefix}-building-o:before { content: @fa-var-building-o; }
|
||||||
|
.@{fa-css-prefix}-hospital-o:before { content: @fa-var-hospital-o; }
|
||||||
|
.@{fa-css-prefix}-ambulance:before { content: @fa-var-ambulance; }
|
||||||
|
.@{fa-css-prefix}-medkit:before { content: @fa-var-medkit; }
|
||||||
|
.@{fa-css-prefix}-fighter-jet:before { content: @fa-var-fighter-jet; }
|
||||||
|
.@{fa-css-prefix}-beer:before { content: @fa-var-beer; }
|
||||||
|
.@{fa-css-prefix}-h-square:before { content: @fa-var-h-square; }
|
||||||
|
.@{fa-css-prefix}-plus-square:before { content: @fa-var-plus-square; }
|
||||||
|
.@{fa-css-prefix}-angle-double-left:before { content: @fa-var-angle-double-left; }
|
||||||
|
.@{fa-css-prefix}-angle-double-right:before { content: @fa-var-angle-double-right; }
|
||||||
|
.@{fa-css-prefix}-angle-double-up:before { content: @fa-var-angle-double-up; }
|
||||||
|
.@{fa-css-prefix}-angle-double-down:before { content: @fa-var-angle-double-down; }
|
||||||
|
.@{fa-css-prefix}-angle-left:before { content: @fa-var-angle-left; }
|
||||||
|
.@{fa-css-prefix}-angle-right:before { content: @fa-var-angle-right; }
|
||||||
|
.@{fa-css-prefix}-angle-up:before { content: @fa-var-angle-up; }
|
||||||
|
.@{fa-css-prefix}-angle-down:before { content: @fa-var-angle-down; }
|
||||||
|
.@{fa-css-prefix}-desktop:before { content: @fa-var-desktop; }
|
||||||
|
.@{fa-css-prefix}-laptop:before { content: @fa-var-laptop; }
|
||||||
|
.@{fa-css-prefix}-tablet:before { content: @fa-var-tablet; }
|
||||||
|
.@{fa-css-prefix}-mobile-phone:before,
|
||||||
|
.@{fa-css-prefix}-mobile:before { content: @fa-var-mobile; }
|
||||||
|
.@{fa-css-prefix}-circle-o:before { content: @fa-var-circle-o; }
|
||||||
|
.@{fa-css-prefix}-quote-left:before { content: @fa-var-quote-left; }
|
||||||
|
.@{fa-css-prefix}-quote-right:before { content: @fa-var-quote-right; }
|
||||||
|
.@{fa-css-prefix}-spinner:before { content: @fa-var-spinner; }
|
||||||
|
.@{fa-css-prefix}-circle:before { content: @fa-var-circle; }
|
||||||
|
.@{fa-css-prefix}-mail-reply:before,
|
||||||
|
.@{fa-css-prefix}-reply:before { content: @fa-var-reply; }
|
||||||
|
.@{fa-css-prefix}-github-alt:before { content: @fa-var-github-alt; }
|
||||||
|
.@{fa-css-prefix}-folder-o:before { content: @fa-var-folder-o; }
|
||||||
|
.@{fa-css-prefix}-folder-open-o:before { content: @fa-var-folder-open-o; }
|
||||||
|
.@{fa-css-prefix}-smile-o:before { content: @fa-var-smile-o; }
|
||||||
|
.@{fa-css-prefix}-frown-o:before { content: @fa-var-frown-o; }
|
||||||
|
.@{fa-css-prefix}-meh-o:before { content: @fa-var-meh-o; }
|
||||||
|
.@{fa-css-prefix}-gamepad:before { content: @fa-var-gamepad; }
|
||||||
|
.@{fa-css-prefix}-keyboard-o:before { content: @fa-var-keyboard-o; }
|
||||||
|
.@{fa-css-prefix}-flag-o:before { content: @fa-var-flag-o; }
|
||||||
|
.@{fa-css-prefix}-flag-checkered:before { content: @fa-var-flag-checkered; }
|
||||||
|
.@{fa-css-prefix}-terminal:before { content: @fa-var-terminal; }
|
||||||
|
.@{fa-css-prefix}-code:before { content: @fa-var-code; }
|
||||||
|
.@{fa-css-prefix}-reply-all:before { content: @fa-var-reply-all; }
|
||||||
|
.@{fa-css-prefix}-mail-reply-all:before { content: @fa-var-mail-reply-all; }
|
||||||
|
.@{fa-css-prefix}-star-half-empty:before,
|
||||||
|
.@{fa-css-prefix}-star-half-full:before,
|
||||||
|
.@{fa-css-prefix}-star-half-o:before { content: @fa-var-star-half-o; }
|
||||||
|
.@{fa-css-prefix}-location-arrow:before { content: @fa-var-location-arrow; }
|
||||||
|
.@{fa-css-prefix}-crop:before { content: @fa-var-crop; }
|
||||||
|
.@{fa-css-prefix}-code-fork:before { content: @fa-var-code-fork; }
|
||||||
|
.@{fa-css-prefix}-unlink:before,
|
||||||
|
.@{fa-css-prefix}-chain-broken:before { content: @fa-var-chain-broken; }
|
||||||
|
.@{fa-css-prefix}-question:before { content: @fa-var-question; }
|
||||||
|
.@{fa-css-prefix}-info:before { content: @fa-var-info; }
|
||||||
|
.@{fa-css-prefix}-exclamation:before { content: @fa-var-exclamation; }
|
||||||
|
.@{fa-css-prefix}-superscript:before { content: @fa-var-superscript; }
|
||||||
|
.@{fa-css-prefix}-subscript:before { content: @fa-var-subscript; }
|
||||||
|
.@{fa-css-prefix}-eraser:before { content: @fa-var-eraser; }
|
||||||
|
.@{fa-css-prefix}-puzzle-piece:before { content: @fa-var-puzzle-piece; }
|
||||||
|
.@{fa-css-prefix}-microphone:before { content: @fa-var-microphone; }
|
||||||
|
.@{fa-css-prefix}-microphone-slash:before { content: @fa-var-microphone-slash; }
|
||||||
|
.@{fa-css-prefix}-shield:before { content: @fa-var-shield; }
|
||||||
|
.@{fa-css-prefix}-calendar-o:before { content: @fa-var-calendar-o; }
|
||||||
|
.@{fa-css-prefix}-fire-extinguisher:before { content: @fa-var-fire-extinguisher; }
|
||||||
|
.@{fa-css-prefix}-rocket:before { content: @fa-var-rocket; }
|
||||||
|
.@{fa-css-prefix}-maxcdn:before { content: @fa-var-maxcdn; }
|
||||||
|
.@{fa-css-prefix}-chevron-circle-left:before { content: @fa-var-chevron-circle-left; }
|
||||||
|
.@{fa-css-prefix}-chevron-circle-right:before { content: @fa-var-chevron-circle-right; }
|
||||||
|
.@{fa-css-prefix}-chevron-circle-up:before { content: @fa-var-chevron-circle-up; }
|
||||||
|
.@{fa-css-prefix}-chevron-circle-down:before { content: @fa-var-chevron-circle-down; }
|
||||||
|
.@{fa-css-prefix}-html5:before { content: @fa-var-html5; }
|
||||||
|
.@{fa-css-prefix}-css3:before { content: @fa-var-css3; }
|
||||||
|
.@{fa-css-prefix}-anchor:before { content: @fa-var-anchor; }
|
||||||
|
.@{fa-css-prefix}-unlock-alt:before { content: @fa-var-unlock-alt; }
|
||||||
|
.@{fa-css-prefix}-bullseye:before { content: @fa-var-bullseye; }
|
||||||
|
.@{fa-css-prefix}-ellipsis-h:before { content: @fa-var-ellipsis-h; }
|
||||||
|
.@{fa-css-prefix}-ellipsis-v:before { content: @fa-var-ellipsis-v; }
|
||||||
|
.@{fa-css-prefix}-rss-square:before { content: @fa-var-rss-square; }
|
||||||
|
.@{fa-css-prefix}-play-circle:before { content: @fa-var-play-circle; }
|
||||||
|
.@{fa-css-prefix}-ticket:before { content: @fa-var-ticket; }
|
||||||
|
.@{fa-css-prefix}-minus-square:before { content: @fa-var-minus-square; }
|
||||||
|
.@{fa-css-prefix}-minus-square-o:before { content: @fa-var-minus-square-o; }
|
||||||
|
.@{fa-css-prefix}-level-up:before { content: @fa-var-level-up; }
|
||||||
|
.@{fa-css-prefix}-level-down:before { content: @fa-var-level-down; }
|
||||||
|
.@{fa-css-prefix}-check-square:before { content: @fa-var-check-square; }
|
||||||
|
.@{fa-css-prefix}-pencil-square:before { content: @fa-var-pencil-square; }
|
||||||
|
.@{fa-css-prefix}-external-link-square:before { content: @fa-var-external-link-square; }
|
||||||
|
.@{fa-css-prefix}-share-square:before { content: @fa-var-share-square; }
|
||||||
|
.@{fa-css-prefix}-compass:before { content: @fa-var-compass; }
|
||||||
|
.@{fa-css-prefix}-toggle-down:before,
|
||||||
|
.@{fa-css-prefix}-caret-square-o-down:before { content: @fa-var-caret-square-o-down; }
|
||||||
|
.@{fa-css-prefix}-toggle-up:before,
|
||||||
|
.@{fa-css-prefix}-caret-square-o-up:before { content: @fa-var-caret-square-o-up; }
|
||||||
|
.@{fa-css-prefix}-toggle-right:before,
|
||||||
|
.@{fa-css-prefix}-caret-square-o-right:before { content: @fa-var-caret-square-o-right; }
|
||||||
|
.@{fa-css-prefix}-euro:before,
|
||||||
|
.@{fa-css-prefix}-eur:before { content: @fa-var-eur; }
|
||||||
|
.@{fa-css-prefix}-gbp:before { content: @fa-var-gbp; }
|
||||||
|
.@{fa-css-prefix}-dollar:before,
|
||||||
|
.@{fa-css-prefix}-usd:before { content: @fa-var-usd; }
|
||||||
|
.@{fa-css-prefix}-rupee:before,
|
||||||
|
.@{fa-css-prefix}-inr:before { content: @fa-var-inr; }
|
||||||
|
.@{fa-css-prefix}-cny:before,
|
||||||
|
.@{fa-css-prefix}-rmb:before,
|
||||||
|
.@{fa-css-prefix}-yen:before,
|
||||||
|
.@{fa-css-prefix}-jpy:before { content: @fa-var-jpy; }
|
||||||
|
.@{fa-css-prefix}-ruble:before,
|
||||||
|
.@{fa-css-prefix}-rouble:before,
|
||||||
|
.@{fa-css-prefix}-rub:before { content: @fa-var-rub; }
|
||||||
|
.@{fa-css-prefix}-won:before,
|
||||||
|
.@{fa-css-prefix}-krw:before { content: @fa-var-krw; }
|
||||||
|
.@{fa-css-prefix}-bitcoin:before,
|
||||||
|
.@{fa-css-prefix}-btc:before { content: @fa-var-btc; }
|
||||||
|
.@{fa-css-prefix}-file:before { content: @fa-var-file; }
|
||||||
|
.@{fa-css-prefix}-file-text:before { content: @fa-var-file-text; }
|
||||||
|
.@{fa-css-prefix}-sort-alpha-asc:before { content: @fa-var-sort-alpha-asc; }
|
||||||
|
.@{fa-css-prefix}-sort-alpha-desc:before { content: @fa-var-sort-alpha-desc; }
|
||||||
|
.@{fa-css-prefix}-sort-amount-asc:before { content: @fa-var-sort-amount-asc; }
|
||||||
|
.@{fa-css-prefix}-sort-amount-desc:before { content: @fa-var-sort-amount-desc; }
|
||||||
|
.@{fa-css-prefix}-sort-numeric-asc:before { content: @fa-var-sort-numeric-asc; }
|
||||||
|
.@{fa-css-prefix}-sort-numeric-desc:before { content: @fa-var-sort-numeric-desc; }
|
||||||
|
.@{fa-css-prefix}-thumbs-up:before { content: @fa-var-thumbs-up; }
|
||||||
|
.@{fa-css-prefix}-thumbs-down:before { content: @fa-var-thumbs-down; }
|
||||||
|
.@{fa-css-prefix}-youtube-square:before { content: @fa-var-youtube-square; }
|
||||||
|
.@{fa-css-prefix}-youtube:before { content: @fa-var-youtube; }
|
||||||
|
.@{fa-css-prefix}-xing:before { content: @fa-var-xing; }
|
||||||
|
.@{fa-css-prefix}-xing-square:before { content: @fa-var-xing-square; }
|
||||||
|
.@{fa-css-prefix}-youtube-play:before { content: @fa-var-youtube-play; }
|
||||||
|
.@{fa-css-prefix}-dropbox:before { content: @fa-var-dropbox; }
|
||||||
|
.@{fa-css-prefix}-stack-overflow:before { content: @fa-var-stack-overflow; }
|
||||||
|
.@{fa-css-prefix}-instagram:before { content: @fa-var-instagram; }
|
||||||
|
.@{fa-css-prefix}-flickr:before { content: @fa-var-flickr; }
|
||||||
|
.@{fa-css-prefix}-adn:before { content: @fa-var-adn; }
|
||||||
|
.@{fa-css-prefix}-bitbucket:before { content: @fa-var-bitbucket; }
|
||||||
|
.@{fa-css-prefix}-bitbucket-square:before { content: @fa-var-bitbucket-square; }
|
||||||
|
.@{fa-css-prefix}-tumblr:before { content: @fa-var-tumblr; }
|
||||||
|
.@{fa-css-prefix}-tumblr-square:before { content: @fa-var-tumblr-square; }
|
||||||
|
.@{fa-css-prefix}-long-arrow-down:before { content: @fa-var-long-arrow-down; }
|
||||||
|
.@{fa-css-prefix}-long-arrow-up:before { content: @fa-var-long-arrow-up; }
|
||||||
|
.@{fa-css-prefix}-long-arrow-left:before { content: @fa-var-long-arrow-left; }
|
||||||
|
.@{fa-css-prefix}-long-arrow-right:before { content: @fa-var-long-arrow-right; }
|
||||||
|
.@{fa-css-prefix}-apple:before { content: @fa-var-apple; }
|
||||||
|
.@{fa-css-prefix}-windows:before { content: @fa-var-windows; }
|
||||||
|
.@{fa-css-prefix}-android:before { content: @fa-var-android; }
|
||||||
|
.@{fa-css-prefix}-linux:before { content: @fa-var-linux; }
|
||||||
|
.@{fa-css-prefix}-dribbble:before { content: @fa-var-dribbble; }
|
||||||
|
.@{fa-css-prefix}-skype:before { content: @fa-var-skype; }
|
||||||
|
.@{fa-css-prefix}-foursquare:before { content: @fa-var-foursquare; }
|
||||||
|
.@{fa-css-prefix}-trello:before { content: @fa-var-trello; }
|
||||||
|
.@{fa-css-prefix}-female:before { content: @fa-var-female; }
|
||||||
|
.@{fa-css-prefix}-male:before { content: @fa-var-male; }
|
||||||
|
.@{fa-css-prefix}-gittip:before { content: @fa-var-gittip; }
|
||||||
|
.@{fa-css-prefix}-sun-o:before { content: @fa-var-sun-o; }
|
||||||
|
.@{fa-css-prefix}-moon-o:before { content: @fa-var-moon-o; }
|
||||||
|
.@{fa-css-prefix}-archive:before { content: @fa-var-archive; }
|
||||||
|
.@{fa-css-prefix}-bug:before { content: @fa-var-bug; }
|
||||||
|
.@{fa-css-prefix}-vk:before { content: @fa-var-vk; }
|
||||||
|
.@{fa-css-prefix}-weibo:before { content: @fa-var-weibo; }
|
||||||
|
.@{fa-css-prefix}-renren:before { content: @fa-var-renren; }
|
||||||
|
.@{fa-css-prefix}-pagelines:before { content: @fa-var-pagelines; }
|
||||||
|
.@{fa-css-prefix}-stack-exchange:before { content: @fa-var-stack-exchange; }
|
||||||
|
.@{fa-css-prefix}-arrow-circle-o-right:before { content: @fa-var-arrow-circle-o-right; }
|
||||||
|
.@{fa-css-prefix}-arrow-circle-o-left:before { content: @fa-var-arrow-circle-o-left; }
|
||||||
|
.@{fa-css-prefix}-toggle-left:before,
|
||||||
|
.@{fa-css-prefix}-caret-square-o-left:before { content: @fa-var-caret-square-o-left; }
|
||||||
|
.@{fa-css-prefix}-dot-circle-o:before { content: @fa-var-dot-circle-o; }
|
||||||
|
.@{fa-css-prefix}-wheelchair:before { content: @fa-var-wheelchair; }
|
||||||
|
.@{fa-css-prefix}-vimeo-square:before { content: @fa-var-vimeo-square; }
|
||||||
|
.@{fa-css-prefix}-turkish-lira:before,
|
||||||
|
.@{fa-css-prefix}-try:before { content: @fa-var-try; }
|
||||||
|
.@{fa-css-prefix}-plus-square-o:before { content: @fa-var-plus-square-o; }
|
13
app/assets/stylesheets/fontawesome/larger.less
vendored
Normal file
13
app/assets/stylesheets/fontawesome/larger.less
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// Icon Sizes
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
/* makes the font 33% larger relative to the icon container */
|
||||||
|
.@{fa-css-prefix}-lg {
|
||||||
|
font-size: (4em / 3);
|
||||||
|
line-height: (3em / 4);
|
||||||
|
vertical-align: -15%;
|
||||||
|
}
|
||||||
|
.@{fa-css-prefix}-2x { font-size: 2em; }
|
||||||
|
.@{fa-css-prefix}-3x { font-size: 3em; }
|
||||||
|
.@{fa-css-prefix}-4x { font-size: 4em; }
|
||||||
|
.@{fa-css-prefix}-5x { font-size: 5em; }
|
19
app/assets/stylesheets/fontawesome/list.less
vendored
Normal file
19
app/assets/stylesheets/fontawesome/list.less
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// List Icons
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.@{fa-css-prefix}-ul {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-left: @fa-li-width;
|
||||||
|
list-style-type: none;
|
||||||
|
> li { position: relative; }
|
||||||
|
}
|
||||||
|
.@{fa-css-prefix}-li {
|
||||||
|
position: absolute;
|
||||||
|
left: -@fa-li-width;
|
||||||
|
width: @fa-li-width;
|
||||||
|
top: (2em / 14);
|
||||||
|
text-align: center;
|
||||||
|
&.@{fa-css-prefix}-lg {
|
||||||
|
left: -@fa-li-width + (4em / 14);
|
||||||
|
}
|
||||||
|
}
|
20
app/assets/stylesheets/fontawesome/mixins.less
vendored
Normal file
20
app/assets/stylesheets/fontawesome/mixins.less
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// Mixins
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
.fa-icon-rotate(@degrees, @rotation) {
|
||||||
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation);
|
||||||
|
-webkit-transform: rotate(@degrees);
|
||||||
|
-moz-transform: rotate(@degrees);
|
||||||
|
-ms-transform: rotate(@degrees);
|
||||||
|
-o-transform: rotate(@degrees);
|
||||||
|
transform: rotate(@degrees);
|
||||||
|
}
|
||||||
|
|
||||||
|
.fa-icon-flip(@horiz, @vert, @rotation) {
|
||||||
|
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=@rotation, mirror=1);
|
||||||
|
-webkit-transform: scale(@horiz, @vert);
|
||||||
|
-moz-transform: scale(@horiz, @vert);
|
||||||
|
-ms-transform: scale(@horiz, @vert);
|
||||||
|
-o-transform: scale(@horiz, @vert);
|
||||||
|
transform: scale(@horiz, @vert);
|
||||||
|
}
|
14
app/assets/stylesheets/fontawesome/path.less
vendored
Normal file
14
app/assets/stylesheets/fontawesome/path.less
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/* FONT PATH
|
||||||
|
* -------------------------- */
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'FontAwesome';
|
||||||
|
src: url('/fonts/fontawesome-webfont.eot?v=@{fa-version}');
|
||||||
|
src: url('/fonts/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
|
||||||
|
url('/fonts/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
|
||||||
|
url('/fonts/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
|
||||||
|
url('/fonts/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
|
||||||
|
// src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
9
app/assets/stylesheets/fontawesome/rotated-flipped.less
vendored
Normal file
9
app/assets/stylesheets/fontawesome/rotated-flipped.less
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// Rotated & Flipped Icons
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
|
||||||
|
.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
|
||||||
|
.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
|
||||||
|
|
||||||
|
.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
|
||||||
|
.@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); }
|
30
app/assets/stylesheets/fontawesome/spinning.less
vendored
Normal file
30
app/assets/stylesheets/fontawesome/spinning.less
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
// Spinning Icons
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
.@{fa-css-prefix}-spin {
|
||||||
|
-webkit-animation: spin 2s infinite linear;
|
||||||
|
-moz-animation: spin 2s infinite linear;
|
||||||
|
-o-animation: spin 2s infinite linear;
|
||||||
|
animation: spin 2s infinite linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-moz-keyframes spin {
|
||||||
|
0% { -moz-transform: rotate(0deg); }
|
||||||
|
100% { -moz-transform: rotate(359deg); }
|
||||||
|
}
|
||||||
|
@-webkit-keyframes spin {
|
||||||
|
0% { -webkit-transform: rotate(0deg); }
|
||||||
|
100% { -webkit-transform: rotate(359deg); }
|
||||||
|
}
|
||||||
|
@-o-keyframes spin {
|
||||||
|
0% { -o-transform: rotate(0deg); }
|
||||||
|
100% { -o-transform: rotate(359deg); }
|
||||||
|
}
|
||||||
|
@-ms-keyframes spin {
|
||||||
|
0% { -ms-transform: rotate(0deg); }
|
||||||
|
100% { -ms-transform: rotate(359deg); }
|
||||||
|
}
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: rotate(0deg); }
|
||||||
|
100% { transform: rotate(359deg); }
|
||||||
|
}
|
20
app/assets/stylesheets/fontawesome/stacked.less
vendored
Normal file
20
app/assets/stylesheets/fontawesome/stacked.less
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// Stacked Icons
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.@{fa-css-prefix}-stack {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
width: 2em;
|
||||||
|
height: 2em;
|
||||||
|
line-height: 2em;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.@{fa-css-prefix}-stack-1x { line-height: inherit; }
|
||||||
|
.@{fa-css-prefix}-stack-2x { font-size: 2em; }
|
||||||
|
.@{fa-css-prefix}-inverse { color: @fa-inverse; }
|
381
app/assets/stylesheets/fontawesome/variables.less
vendored
Normal file
381
app/assets/stylesheets/fontawesome/variables.less
vendored
Normal file
@ -0,0 +1,381 @@
|
|||||||
|
// Variables
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
@fa-font-path: "../fonts";
|
||||||
|
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.0.3/fonts"; // for referencing Bootstrap CDN font files directly
|
||||||
|
@fa-css-prefix: fa;
|
||||||
|
@fa-version: "4.0.3";
|
||||||
|
@fa-border-color: #eee;
|
||||||
|
@fa-inverse: #fff;
|
||||||
|
@fa-li-width: (30em / 14);
|
||||||
|
|
||||||
|
@fa-var-glass: "\f000";
|
||||||
|
@fa-var-music: "\f001";
|
||||||
|
@fa-var-search: "\f002";
|
||||||
|
@fa-var-envelope-o: "\f003";
|
||||||
|
@fa-var-heart: "\f004";
|
||||||
|
@fa-var-star: "\f005";
|
||||||
|
@fa-var-star-o: "\f006";
|
||||||
|
@fa-var-user: "\f007";
|
||||||
|
@fa-var-film: "\f008";
|
||||||
|
@fa-var-th-large: "\f009";
|
||||||
|
@fa-var-th: "\f00a";
|
||||||
|
@fa-var-th-list: "\f00b";
|
||||||
|
@fa-var-check: "\f00c";
|
||||||
|
@fa-var-times: "\f00d";
|
||||||
|
@fa-var-search-plus: "\f00e";
|
||||||
|
@fa-var-search-minus: "\f010";
|
||||||
|
@fa-var-power-off: "\f011";
|
||||||
|
@fa-var-signal: "\f012";
|
||||||
|
@fa-var-cog: "\f013";
|
||||||
|
@fa-var-trash-o: "\f014";
|
||||||
|
@fa-var-home: "\f015";
|
||||||
|
@fa-var-file-o: "\f016";
|
||||||
|
@fa-var-clock-o: "\f017";
|
||||||
|
@fa-var-road: "\f018";
|
||||||
|
@fa-var-download: "\f019";
|
||||||
|
@fa-var-arrow-circle-o-down: "\f01a";
|
||||||
|
@fa-var-arrow-circle-o-up: "\f01b";
|
||||||
|
@fa-var-inbox: "\f01c";
|
||||||
|
@fa-var-play-circle-o: "\f01d";
|
||||||
|
@fa-var-repeat: "\f01e";
|
||||||
|
@fa-var-refresh: "\f021";
|
||||||
|
@fa-var-list-alt: "\f022";
|
||||||
|
@fa-var-lock: "\f023";
|
||||||
|
@fa-var-flag: "\f024";
|
||||||
|
@fa-var-headphones: "\f025";
|
||||||
|
@fa-var-volume-off: "\f026";
|
||||||
|
@fa-var-volume-down: "\f027";
|
||||||
|
@fa-var-volume-up: "\f028";
|
||||||
|
@fa-var-qrcode: "\f029";
|
||||||
|
@fa-var-barcode: "\f02a";
|
||||||
|
@fa-var-tag: "\f02b";
|
||||||
|
@fa-var-tags: "\f02c";
|
||||||
|
@fa-var-book: "\f02d";
|
||||||
|
@fa-var-bookmark: "\f02e";
|
||||||
|
@fa-var-print: "\f02f";
|
||||||
|
@fa-var-camera: "\f030";
|
||||||
|
@fa-var-font: "\f031";
|
||||||
|
@fa-var-bold: "\f032";
|
||||||
|
@fa-var-italic: "\f033";
|
||||||
|
@fa-var-text-height: "\f034";
|
||||||
|
@fa-var-text-width: "\f035";
|
||||||
|
@fa-var-align-left: "\f036";
|
||||||
|
@fa-var-align-center: "\f037";
|
||||||
|
@fa-var-align-right: "\f038";
|
||||||
|
@fa-var-align-justify: "\f039";
|
||||||
|
@fa-var-list: "\f03a";
|
||||||
|
@fa-var-outdent: "\f03b";
|
||||||
|
@fa-var-indent: "\f03c";
|
||||||
|
@fa-var-video-camera: "\f03d";
|
||||||
|
@fa-var-picture-o: "\f03e";
|
||||||
|
@fa-var-pencil: "\f040";
|
||||||
|
@fa-var-map-marker: "\f041";
|
||||||
|
@fa-var-adjust: "\f042";
|
||||||
|
@fa-var-tint: "\f043";
|
||||||
|
@fa-var-pencil-square-o: "\f044";
|
||||||
|
@fa-var-share-square-o: "\f045";
|
||||||
|
@fa-var-check-square-o: "\f046";
|
||||||
|
@fa-var-arrows: "\f047";
|
||||||
|
@fa-var-step-backward: "\f048";
|
||||||
|
@fa-var-fast-backward: "\f049";
|
||||||
|
@fa-var-backward: "\f04a";
|
||||||
|
@fa-var-play: "\f04b";
|
||||||
|
@fa-var-pause: "\f04c";
|
||||||
|
@fa-var-stop: "\f04d";
|
||||||
|
@fa-var-forward: "\f04e";
|
||||||
|
@fa-var-fast-forward: "\f050";
|
||||||
|
@fa-var-step-forward: "\f051";
|
||||||
|
@fa-var-eject: "\f052";
|
||||||
|
@fa-var-chevron-left: "\f053";
|
||||||
|
@fa-var-chevron-right: "\f054";
|
||||||
|
@fa-var-plus-circle: "\f055";
|
||||||
|
@fa-var-minus-circle: "\f056";
|
||||||
|
@fa-var-times-circle: "\f057";
|
||||||
|
@fa-var-check-circle: "\f058";
|
||||||
|
@fa-var-question-circle: "\f059";
|
||||||
|
@fa-var-info-circle: "\f05a";
|
||||||
|
@fa-var-crosshairs: "\f05b";
|
||||||
|
@fa-var-times-circle-o: "\f05c";
|
||||||
|
@fa-var-check-circle-o: "\f05d";
|
||||||
|
@fa-var-ban: "\f05e";
|
||||||
|
@fa-var-arrow-left: "\f060";
|
||||||
|
@fa-var-arrow-right: "\f061";
|
||||||
|
@fa-var-arrow-up: "\f062";
|
||||||
|
@fa-var-arrow-down: "\f063";
|
||||||
|
@fa-var-share: "\f064";
|
||||||
|
@fa-var-expand: "\f065";
|
||||||
|
@fa-var-compress: "\f066";
|
||||||
|
@fa-var-plus: "\f067";
|
||||||
|
@fa-var-minus: "\f068";
|
||||||
|
@fa-var-asterisk: "\f069";
|
||||||
|
@fa-var-exclamation-circle: "\f06a";
|
||||||
|
@fa-var-gift: "\f06b";
|
||||||
|
@fa-var-leaf: "\f06c";
|
||||||
|
@fa-var-fire: "\f06d";
|
||||||
|
@fa-var-eye: "\f06e";
|
||||||
|
@fa-var-eye-slash: "\f070";
|
||||||
|
@fa-var-exclamation-triangle: "\f071";
|
||||||
|
@fa-var-plane: "\f072";
|
||||||
|
@fa-var-calendar: "\f073";
|
||||||
|
@fa-var-random: "\f074";
|
||||||
|
@fa-var-comment: "\f075";
|
||||||
|
@fa-var-magnet: "\f076";
|
||||||
|
@fa-var-chevron-up: "\f077";
|
||||||
|
@fa-var-chevron-down: "\f078";
|
||||||
|
@fa-var-retweet: "\f079";
|
||||||
|
@fa-var-shopping-cart: "\f07a";
|
||||||
|
@fa-var-folder: "\f07b";
|
||||||
|
@fa-var-folder-open: "\f07c";
|
||||||
|
@fa-var-arrows-v: "\f07d";
|
||||||
|
@fa-var-arrows-h: "\f07e";
|
||||||
|
@fa-var-bar-chart-o: "\f080";
|
||||||
|
@fa-var-twitter-square: "\f081";
|
||||||
|
@fa-var-facebook-square: "\f082";
|
||||||
|
@fa-var-camera-retro: "\f083";
|
||||||
|
@fa-var-key: "\f084";
|
||||||
|
@fa-var-cogs: "\f085";
|
||||||
|
@fa-var-comments: "\f086";
|
||||||
|
@fa-var-thumbs-o-up: "\f087";
|
||||||
|
@fa-var-thumbs-o-down: "\f088";
|
||||||
|
@fa-var-star-half: "\f089";
|
||||||
|
@fa-var-heart-o: "\f08a";
|
||||||
|
@fa-var-sign-out: "\f08b";
|
||||||
|
@fa-var-linkedin-square: "\f08c";
|
||||||
|
@fa-var-thumb-tack: "\f08d";
|
||||||
|
@fa-var-external-link: "\f08e";
|
||||||
|
@fa-var-sign-in: "\f090";
|
||||||
|
@fa-var-trophy: "\f091";
|
||||||
|
@fa-var-github-square: "\f092";
|
||||||
|
@fa-var-upload: "\f093";
|
||||||
|
@fa-var-lemon-o: "\f094";
|
||||||
|
@fa-var-phone: "\f095";
|
||||||
|
@fa-var-square-o: "\f096";
|
||||||
|
@fa-var-bookmark-o: "\f097";
|
||||||
|
@fa-var-phone-square: "\f098";
|
||||||
|
@fa-var-twitter: "\f099";
|
||||||
|
@fa-var-facebook: "\f09a";
|
||||||
|
@fa-var-github: "\f09b";
|
||||||
|
@fa-var-unlock: "\f09c";
|
||||||
|
@fa-var-credit-card: "\f09d";
|
||||||
|
@fa-var-rss: "\f09e";
|
||||||
|
@fa-var-hdd-o: "\f0a0";
|
||||||
|
@fa-var-bullhorn: "\f0a1";
|
||||||
|
@fa-var-bell: "\f0f3";
|
||||||
|
@fa-var-certificate: "\f0a3";
|
||||||
|
@fa-var-hand-o-right: "\f0a4";
|
||||||
|
@fa-var-hand-o-left: "\f0a5";
|
||||||
|
@fa-var-hand-o-up: "\f0a6";
|
||||||
|
@fa-var-hand-o-down: "\f0a7";
|
||||||
|
@fa-var-arrow-circle-left: "\f0a8";
|
||||||
|
@fa-var-arrow-circle-right: "\f0a9";
|
||||||
|
@fa-var-arrow-circle-up: "\f0aa";
|
||||||
|
@fa-var-arrow-circle-down: "\f0ab";
|
||||||
|
@fa-var-globe: "\f0ac";
|
||||||
|
@fa-var-wrench: "\f0ad";
|
||||||
|
@fa-var-tasks: "\f0ae";
|
||||||
|
@fa-var-filter: "\f0b0";
|
||||||
|
@fa-var-briefcase: "\f0b1";
|
||||||
|
@fa-var-arrows-alt: "\f0b2";
|
||||||
|
@fa-var-users: "\f0c0";
|
||||||
|
@fa-var-link: "\f0c1";
|
||||||
|
@fa-var-cloud: "\f0c2";
|
||||||
|
@fa-var-flask: "\f0c3";
|
||||||
|
@fa-var-scissors: "\f0c4";
|
||||||
|
@fa-var-files-o: "\f0c5";
|
||||||
|
@fa-var-paperclip: "\f0c6";
|
||||||
|
@fa-var-floppy-o: "\f0c7";
|
||||||
|
@fa-var-square: "\f0c8";
|
||||||
|
@fa-var-bars: "\f0c9";
|
||||||
|
@fa-var-list-ul: "\f0ca";
|
||||||
|
@fa-var-list-ol: "\f0cb";
|
||||||
|
@fa-var-strikethrough: "\f0cc";
|
||||||
|
@fa-var-underline: "\f0cd";
|
||||||
|
@fa-var-table: "\f0ce";
|
||||||
|
@fa-var-magic: "\f0d0";
|
||||||
|
@fa-var-truck: "\f0d1";
|
||||||
|
@fa-var-pinterest: "\f0d2";
|
||||||
|
@fa-var-pinterest-square: "\f0d3";
|
||||||
|
@fa-var-google-plus-square: "\f0d4";
|
||||||
|
@fa-var-google-plus: "\f0d5";
|
||||||
|
@fa-var-money: "\f0d6";
|
||||||
|
@fa-var-caret-down: "\f0d7";
|
||||||
|
@fa-var-caret-up: "\f0d8";
|
||||||
|
@fa-var-caret-left: "\f0d9";
|
||||||
|
@fa-var-caret-right: "\f0da";
|
||||||
|
@fa-var-columns: "\f0db";
|
||||||
|
@fa-var-sort: "\f0dc";
|
||||||
|
@fa-var-sort-asc: "\f0dd";
|
||||||
|
@fa-var-sort-desc: "\f0de";
|
||||||
|
@fa-var-envelope: "\f0e0";
|
||||||
|
@fa-var-linkedin: "\f0e1";
|
||||||
|
@fa-var-undo: "\f0e2";
|
||||||
|
@fa-var-gavel: "\f0e3";
|
||||||
|
@fa-var-tachometer: "\f0e4";
|
||||||
|
@fa-var-comment-o: "\f0e5";
|
||||||
|
@fa-var-comments-o: "\f0e6";
|
||||||
|
@fa-var-bolt: "\f0e7";
|
||||||
|
@fa-var-sitemap: "\f0e8";
|
||||||
|
@fa-var-umbrella: "\f0e9";
|
||||||
|
@fa-var-clipboard: "\f0ea";
|
||||||
|
@fa-var-lightbulb-o: "\f0eb";
|
||||||
|
@fa-var-exchange: "\f0ec";
|
||||||
|
@fa-var-cloud-download: "\f0ed";
|
||||||
|
@fa-var-cloud-upload: "\f0ee";
|
||||||
|
@fa-var-user-md: "\f0f0";
|
||||||
|
@fa-var-stethoscope: "\f0f1";
|
||||||
|
@fa-var-suitcase: "\f0f2";
|
||||||
|
@fa-var-bell-o: "\f0a2";
|
||||||
|
@fa-var-coffee: "\f0f4";
|
||||||
|
@fa-var-cutlery: "\f0f5";
|
||||||
|
@fa-var-file-text-o: "\f0f6";
|
||||||
|
@fa-var-building-o: "\f0f7";
|
||||||
|
@fa-var-hospital-o: "\f0f8";
|
||||||
|
@fa-var-ambulance: "\f0f9";
|
||||||
|
@fa-var-medkit: "\f0fa";
|
||||||
|
@fa-var-fighter-jet: "\f0fb";
|
||||||
|
@fa-var-beer: "\f0fc";
|
||||||
|
@fa-var-h-square: "\f0fd";
|
||||||
|
@fa-var-plus-square: "\f0fe";
|
||||||
|
@fa-var-angle-double-left: "\f100";
|
||||||
|
@fa-var-angle-double-right: "\f101";
|
||||||
|
@fa-var-angle-double-up: "\f102";
|
||||||
|
@fa-var-angle-double-down: "\f103";
|
||||||
|
@fa-var-angle-left: "\f104";
|
||||||
|
@fa-var-angle-right: "\f105";
|
||||||
|
@fa-var-angle-up: "\f106";
|
||||||
|
@fa-var-angle-down: "\f107";
|
||||||
|
@fa-var-desktop: "\f108";
|
||||||
|
@fa-var-laptop: "\f109";
|
||||||
|
@fa-var-tablet: "\f10a";
|
||||||
|
@fa-var-mobile: "\f10b";
|
||||||
|
@fa-var-circle-o: "\f10c";
|
||||||
|
@fa-var-quote-left: "\f10d";
|
||||||
|
@fa-var-quote-right: "\f10e";
|
||||||
|
@fa-var-spinner: "\f110";
|
||||||
|
@fa-var-circle: "\f111";
|
||||||
|
@fa-var-reply: "\f112";
|
||||||
|
@fa-var-github-alt: "\f113";
|
||||||
|
@fa-var-folder-o: "\f114";
|
||||||
|
@fa-var-folder-open-o: "\f115";
|
||||||
|
@fa-var-smile-o: "\f118";
|
||||||
|
@fa-var-frown-o: "\f119";
|
||||||
|
@fa-var-meh-o: "\f11a";
|
||||||
|
@fa-var-gamepad: "\f11b";
|
||||||
|
@fa-var-keyboard-o: "\f11c";
|
||||||
|
@fa-var-flag-o: "\f11d";
|
||||||
|
@fa-var-flag-checkered: "\f11e";
|
||||||
|
@fa-var-terminal: "\f120";
|
||||||
|
@fa-var-code: "\f121";
|
||||||
|
@fa-var-reply-all: "\f122";
|
||||||
|
@fa-var-mail-reply-all: "\f122";
|
||||||
|
@fa-var-star-half-o: "\f123";
|
||||||
|
@fa-var-location-arrow: "\f124";
|
||||||
|
@fa-var-crop: "\f125";
|
||||||
|
@fa-var-code-fork: "\f126";
|
||||||
|
@fa-var-chain-broken: "\f127";
|
||||||
|
@fa-var-question: "\f128";
|
||||||
|
@fa-var-info: "\f129";
|
||||||
|
@fa-var-exclamation: "\f12a";
|
||||||
|
@fa-var-superscript: "\f12b";
|
||||||
|
@fa-var-subscript: "\f12c";
|
||||||
|
@fa-var-eraser: "\f12d";
|
||||||
|
@fa-var-puzzle-piece: "\f12e";
|
||||||
|
@fa-var-microphone: "\f130";
|
||||||
|
@fa-var-microphone-slash: "\f131";
|
||||||
|
@fa-var-shield: "\f132";
|
||||||
|
@fa-var-calendar-o: "\f133";
|
||||||
|
@fa-var-fire-extinguisher: "\f134";
|
||||||
|
@fa-var-rocket: "\f135";
|
||||||
|
@fa-var-maxcdn: "\f136";
|
||||||
|
@fa-var-chevron-circle-left: "\f137";
|
||||||
|
@fa-var-chevron-circle-right: "\f138";
|
||||||
|
@fa-var-chevron-circle-up: "\f139";
|
||||||
|
@fa-var-chevron-circle-down: "\f13a";
|
||||||
|
@fa-var-html5: "\f13b";
|
||||||
|
@fa-var-css3: "\f13c";
|
||||||
|
@fa-var-anchor: "\f13d";
|
||||||
|
@fa-var-unlock-alt: "\f13e";
|
||||||
|
@fa-var-bullseye: "\f140";
|
||||||
|
@fa-var-ellipsis-h: "\f141";
|
||||||
|
@fa-var-ellipsis-v: "\f142";
|
||||||
|
@fa-var-rss-square: "\f143";
|
||||||
|
@fa-var-play-circle: "\f144";
|
||||||
|
@fa-var-ticket: "\f145";
|
||||||
|
@fa-var-minus-square: "\f146";
|
||||||
|
@fa-var-minus-square-o: "\f147";
|
||||||
|
@fa-var-level-up: "\f148";
|
||||||
|
@fa-var-level-down: "\f149";
|
||||||
|
@fa-var-check-square: "\f14a";
|
||||||
|
@fa-var-pencil-square: "\f14b";
|
||||||
|
@fa-var-external-link-square: "\f14c";
|
||||||
|
@fa-var-share-square: "\f14d";
|
||||||
|
@fa-var-compass: "\f14e";
|
||||||
|
@fa-var-caret-square-o-down: "\f150";
|
||||||
|
@fa-var-caret-square-o-up: "\f151";
|
||||||
|
@fa-var-caret-square-o-right: "\f152";
|
||||||
|
@fa-var-eur: "\f153";
|
||||||
|
@fa-var-gbp: "\f154";
|
||||||
|
@fa-var-usd: "\f155";
|
||||||
|
@fa-var-inr: "\f156";
|
||||||
|
@fa-var-jpy: "\f157";
|
||||||
|
@fa-var-rub: "\f158";
|
||||||
|
@fa-var-krw: "\f159";
|
||||||
|
@fa-var-btc: "\f15a";
|
||||||
|
@fa-var-file: "\f15b";
|
||||||
|
@fa-var-file-text: "\f15c";
|
||||||
|
@fa-var-sort-alpha-asc: "\f15d";
|
||||||
|
@fa-var-sort-alpha-desc: "\f15e";
|
||||||
|
@fa-var-sort-amount-asc: "\f160";
|
||||||
|
@fa-var-sort-amount-desc: "\f161";
|
||||||
|
@fa-var-sort-numeric-asc: "\f162";
|
||||||
|
@fa-var-sort-numeric-desc: "\f163";
|
||||||
|
@fa-var-thumbs-up: "\f164";
|
||||||
|
@fa-var-thumbs-down: "\f165";
|
||||||
|
@fa-var-youtube-square: "\f166";
|
||||||
|
@fa-var-youtube: "\f167";
|
||||||
|
@fa-var-xing: "\f168";
|
||||||
|
@fa-var-xing-square: "\f169";
|
||||||
|
@fa-var-youtube-play: "\f16a";
|
||||||
|
@fa-var-dropbox: "\f16b";
|
||||||
|
@fa-var-stack-overflow: "\f16c";
|
||||||
|
@fa-var-instagram: "\f16d";
|
||||||
|
@fa-var-flickr: "\f16e";
|
||||||
|
@fa-var-adn: "\f170";
|
||||||
|
@fa-var-bitbucket: "\f171";
|
||||||
|
@fa-var-bitbucket-square: "\f172";
|
||||||
|
@fa-var-tumblr: "\f173";
|
||||||
|
@fa-var-tumblr-square: "\f174";
|
||||||
|
@fa-var-long-arrow-down: "\f175";
|
||||||
|
@fa-var-long-arrow-up: "\f176";
|
||||||
|
@fa-var-long-arrow-left: "\f177";
|
||||||
|
@fa-var-long-arrow-right: "\f178";
|
||||||
|
@fa-var-apple: "\f179";
|
||||||
|
@fa-var-windows: "\f17a";
|
||||||
|
@fa-var-android: "\f17b";
|
||||||
|
@fa-var-linux: "\f17c";
|
||||||
|
@fa-var-dribbble: "\f17d";
|
||||||
|
@fa-var-skype: "\f17e";
|
||||||
|
@fa-var-foursquare: "\f180";
|
||||||
|
@fa-var-trello: "\f181";
|
||||||
|
@fa-var-female: "\f182";
|
||||||
|
@fa-var-male: "\f183";
|
||||||
|
@fa-var-gittip: "\f184";
|
||||||
|
@fa-var-sun-o: "\f185";
|
||||||
|
@fa-var-moon-o: "\f186";
|
||||||
|
@fa-var-archive: "\f187";
|
||||||
|
@fa-var-bug: "\f188";
|
||||||
|
@fa-var-vk: "\f189";
|
||||||
|
@fa-var-weibo: "\f18a";
|
||||||
|
@fa-var-renren: "\f18b";
|
||||||
|
@fa-var-pagelines: "\f18c";
|
||||||
|
@fa-var-stack-exchange: "\f18d";
|
||||||
|
@fa-var-arrow-circle-o-right: "\f18e";
|
||||||
|
@fa-var-arrow-circle-o-left: "\f190";
|
||||||
|
@fa-var-caret-square-o-left: "\f191";
|
||||||
|
@fa-var-dot-circle-o: "\f192";
|
||||||
|
@fa-var-wheelchair: "\f193";
|
||||||
|
@fa-var-vimeo-square: "\f194";
|
||||||
|
@fa-var-try: "\f195";
|
||||||
|
@fa-var-plus-square-o: "\f196";
|
||||||
|
|
@ -1,271 +0,0 @@
|
|||||||
|
|
||||||
@import "compass";
|
|
||||||
@import "compass/reset";
|
|
||||||
|
|
||||||
@import "vendor/formtastic";
|
|
||||||
|
|
||||||
//$baseFontSize : 16px;
|
|
||||||
|
|
||||||
|
|
||||||
@import "compass";
|
|
||||||
|
|
||||||
//@import "admin/general";
|
|
||||||
//@import "admin/forms";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
body{
|
|
||||||
|
|
||||||
.button{
|
|
||||||
background:#2e2e2e;
|
|
||||||
color:#fbfbfb;
|
|
||||||
padding:10px 15px;
|
|
||||||
display:inline-block;
|
|
||||||
border-radius:20px;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
#main{
|
|
||||||
padding:0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
table{
|
|
||||||
@include border-radius(5px);
|
|
||||||
border:1px solid #9d9d9f;
|
|
||||||
.vertical_center{
|
|
||||||
td{
|
|
||||||
vertical-align:middle;}
|
|
||||||
|
|
||||||
}
|
|
||||||
width:100%;
|
|
||||||
th{
|
|
||||||
background:#2e2e2e;
|
|
||||||
color:#fbfbfb;
|
|
||||||
padding:5px;
|
|
||||||
border:0px;
|
|
||||||
}
|
|
||||||
td{
|
|
||||||
border-bottom:1px solid #9d9d9f;
|
|
||||||
padding:5px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
h1{
|
|
||||||
margin-top:10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav#top{
|
|
||||||
padding:0px;
|
|
||||||
height:42px;
|
|
||||||
position:relative;
|
|
||||||
color:#FFFFFF;
|
|
||||||
background: #2E2E2E;
|
|
||||||
|
|
||||||
*{
|
|
||||||
color:#FFFFFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
a{
|
|
||||||
display:inline-block;
|
|
||||||
padding:13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.personnal{
|
|
||||||
width:160px;
|
|
||||||
float:right;
|
|
||||||
position:relative;
|
|
||||||
|
|
||||||
span{
|
|
||||||
display:inline-block;
|
|
||||||
top:-15px;
|
|
||||||
position:relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar{
|
|
||||||
width:36px;
|
|
||||||
border-radius:50%;
|
|
||||||
margin:2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu{
|
|
||||||
display:none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover{
|
|
||||||
|
|
||||||
.menu{
|
|
||||||
display:block;
|
|
||||||
position:absolute;
|
|
||||||
z-index:1000;
|
|
||||||
top:40px;
|
|
||||||
background:#2E2E2E;
|
|
||||||
|
|
||||||
a{
|
|
||||||
display:block;
|
|
||||||
width:160px;
|
|
||||||
padding:10px 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.message{
|
|
||||||
min-height:150px;
|
|
||||||
border:1px solid black;
|
|
||||||
margin:1em 1em 0 1em;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.right{float:right;}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.forum_message{
|
|
||||||
@include border-radius(5px);
|
|
||||||
@include box-shadow(0px 0px 5px rgba(0,0,0,0.5) inset);
|
|
||||||
position:relative;
|
|
||||||
margin-bottom:1em;
|
|
||||||
min-height:120px;
|
|
||||||
|
|
||||||
.left{
|
|
||||||
@include box-shadow(0px 0px 5px rgba(0,0,0,0.5));
|
|
||||||
@include border-radius(3px 0px 0px 3px);
|
|
||||||
position:absolute;
|
|
||||||
top:0px;
|
|
||||||
left:0px;
|
|
||||||
bottom:0px;
|
|
||||||
width:100px;
|
|
||||||
background:rgba(0,0,0,0.8);
|
|
||||||
text-align:center;
|
|
||||||
padding:10px;
|
|
||||||
|
|
||||||
color:rgba(255,255,255,0.9);
|
|
||||||
|
|
||||||
*{
|
|
||||||
text-align:center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar{
|
|
||||||
width:70px;
|
|
||||||
height:70px;
|
|
||||||
@include border-radius(50%);
|
|
||||||
margin:auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.right{
|
|
||||||
min-height:150px;
|
|
||||||
margin-left:120px;
|
|
||||||
padding:10px 2%;
|
|
||||||
line-height:1.1em;
|
|
||||||
float:none;
|
|
||||||
|
|
||||||
img{
|
|
||||||
max-width:100%;
|
|
||||||
max-height:90%;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.large{
|
|
||||||
max-width:100%;
|
|
||||||
margin-left:0px;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.links{
|
|
||||||
float:right;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.message_form{
|
|
||||||
|
|
||||||
.form{
|
|
||||||
width:60%;
|
|
||||||
|
|
||||||
float:left;
|
|
||||||
.ace_editor{
|
|
||||||
height:400px;
|
|
||||||
width:57%;
|
|
||||||
border:solid 1px #C9C9C9;
|
|
||||||
|
|
||||||
|
|
||||||
.ace_scroller{
|
|
||||||
|
|
||||||
|
|
||||||
background:transparent !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.user_images{
|
|
||||||
width:40%;
|
|
||||||
float:left;
|
|
||||||
.progress{
|
|
||||||
|
|
||||||
float:right;
|
|
||||||
width:250px;
|
|
||||||
|
|
||||||
.bar{
|
|
||||||
text-align:right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
input[type=file]{
|
|
||||||
display:none;
|
|
||||||
|
|
||||||
}
|
|
||||||
.images{
|
|
||||||
height:400px;
|
|
||||||
overflow:auto;
|
|
||||||
border:1px solid black;
|
|
||||||
|
|
||||||
.user_image_block{
|
|
||||||
padding:5px;
|
|
||||||
float:left;
|
|
||||||
width:120px;
|
|
||||||
border:1px solid black;
|
|
||||||
min-height:140px;
|
|
||||||
text-align:center;
|
|
||||||
margin:5px;
|
|
||||||
.user_image{
|
|
||||||
cursor:pointer;
|
|
||||||
display:block;
|
|
||||||
margin:auto;
|
|
||||||
max-width:120px;
|
|
||||||
max-height:120px;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
282
app/assets/stylesheets/forum.less
Normal file
282
app/assets/stylesheets/forum.less
Normal file
@ -0,0 +1,282 @@
|
|||||||
|
@import "./vendor/framework/variables.less";
|
||||||
|
@import "./vendor/framework/bootstrap.less";
|
||||||
|
@import "fontawesome/font-awesome";
|
||||||
|
|
||||||
|
@import "./redactor";
|
||||||
|
|
||||||
|
#main{
|
||||||
|
min-height:600px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer{
|
||||||
|
background:rgba(244,243,239,1);
|
||||||
|
padding:2em;
|
||||||
|
}
|
||||||
|
.transparent{
|
||||||
|
td, th{
|
||||||
|
background-color:transparent !important;}
|
||||||
|
}
|
||||||
|
#main{
|
||||||
|
padding:0 1em;
|
||||||
|
}
|
||||||
|
.icon{
|
||||||
|
border:1px solid #0088cc;
|
||||||
|
display:inline-block;
|
||||||
|
padding:6px;
|
||||||
|
border-radius:50%;
|
||||||
|
font-size:1.1em;
|
||||||
|
width:1.1em;
|
||||||
|
height:1.1em;
|
||||||
|
text-align:center;
|
||||||
|
background:white;
|
||||||
|
|
||||||
|
&:hover{
|
||||||
|
background:#0088cc;
|
||||||
|
color:white;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.container-fluid{
|
||||||
|
max-width:1100px;
|
||||||
|
margin:auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
margin-top:10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.message{
|
||||||
|
min-height:150px;
|
||||||
|
border:1px solid black;
|
||||||
|
margin:1em 1em 0 1em;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.right{float:right;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.forum_message{
|
||||||
|
border-radius: 0 2em 0 2em ;
|
||||||
|
border:1px solid rgba(244,243,239,1);
|
||||||
|
position:relative;
|
||||||
|
margin-bottom:1em;
|
||||||
|
min-height:120px;
|
||||||
|
|
||||||
|
.left{
|
||||||
|
|
||||||
|
border-radius :0px 0px 0px 2em ;
|
||||||
|
position:absolute;
|
||||||
|
top:0px;
|
||||||
|
left:0px;
|
||||||
|
bottom:0px;
|
||||||
|
width:150px;
|
||||||
|
background:rgba(244,243,239,1);
|
||||||
|
text-align:center;
|
||||||
|
padding:10px;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*{
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatar{
|
||||||
|
width:90px;
|
||||||
|
border-radius:60%;
|
||||||
|
|
||||||
|
margin:auto;
|
||||||
|
margin-bottom:1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.right{
|
||||||
|
min-height:150px;
|
||||||
|
margin-left:170px;
|
||||||
|
padding:10px 2%;
|
||||||
|
line-height:1.1em;
|
||||||
|
float:none;
|
||||||
|
position:relative;
|
||||||
|
|
||||||
|
img{
|
||||||
|
max-width:100%;
|
||||||
|
max-height:90%;
|
||||||
|
display:block;
|
||||||
|
margin:1em auto;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.large{
|
||||||
|
max-width:100%;
|
||||||
|
margin-left:0px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.links{
|
||||||
|
position:absolute;
|
||||||
|
top:-1.2em;
|
||||||
|
right:1em;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.user_images{
|
||||||
|
width:430px;
|
||||||
|
box-shadow:0 0 5px rgba(0,0,0,0.5);
|
||||||
|
position:fixed;
|
||||||
|
bottom:2em;
|
||||||
|
right:-450px;
|
||||||
|
top:100px;
|
||||||
|
background:white;
|
||||||
|
padding:0;
|
||||||
|
padding-left:20px;
|
||||||
|
|
||||||
|
h3, a{
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-button{
|
||||||
|
font-size:25px;
|
||||||
|
color:white;
|
||||||
|
background:rgba(24,24,24,0.9);
|
||||||
|
width:25px;
|
||||||
|
height:25px;
|
||||||
|
text-align:center;
|
||||||
|
padding:10px;
|
||||||
|
position:absolute;
|
||||||
|
top:0px;
|
||||||
|
left:-45px;
|
||||||
|
.c{
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
&:hover{
|
||||||
|
right:0px;
|
||||||
|
.o{
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
.c{
|
||||||
|
display:block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress{
|
||||||
|
|
||||||
|
float:right;
|
||||||
|
width:250px;
|
||||||
|
|
||||||
|
.bar{
|
||||||
|
text-align:right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=file]{
|
||||||
|
display:none;
|
||||||
|
|
||||||
|
}
|
||||||
|
.images{
|
||||||
|
height:400px;
|
||||||
|
overflow:auto;
|
||||||
|
|
||||||
|
|
||||||
|
.user_image_block{
|
||||||
|
padding:5px;
|
||||||
|
float:left;
|
||||||
|
width:120px;
|
||||||
|
|
||||||
|
min-height:140px;
|
||||||
|
text-align:center;
|
||||||
|
margin:5px;
|
||||||
|
.user_image{
|
||||||
|
cursor:pointer;
|
||||||
|
display:block;
|
||||||
|
margin:auto;
|
||||||
|
max-width:120px;
|
||||||
|
max-height:120px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.redactor_box{
|
||||||
|
border:0px !important;
|
||||||
|
background:transparent !important;
|
||||||
|
}
|
||||||
|
.message_form{
|
||||||
|
|
||||||
|
.form{
|
||||||
|
width:60%;
|
||||||
|
|
||||||
|
float:left;
|
||||||
|
.ace_editor{
|
||||||
|
height:400px;
|
||||||
|
width:57%;
|
||||||
|
border:solid 1px #C9C9C9;
|
||||||
|
|
||||||
|
|
||||||
|
.ace_scroller{
|
||||||
|
|
||||||
|
|
||||||
|
background:transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
#toolbar-text{
|
||||||
|
|
||||||
|
background: linear-gradient(to bottom, #f1f1f1 0%, #e2e2e2 100%);
|
||||||
|
z-index:10;
|
||||||
|
position:fixed;
|
||||||
|
top:40px;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
|
||||||
|
.redactor_toolbar{
|
||||||
|
border:0px;
|
||||||
|
margin:5px 0 !important;
|
||||||
|
background:transparent !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.fix-submit{
|
||||||
|
z-index:10;
|
||||||
|
position:fixed;
|
||||||
|
top:40px;
|
||||||
|
margin-top:5px;
|
||||||
|
right:1em;
|
||||||
|
|
||||||
|
}
|
567
app/assets/stylesheets/gaspillage.css.less
Normal file
567
app/assets/stylesheets/gaspillage.css.less
Normal file
@ -0,0 +1,567 @@
|
|||||||
|
|
||||||
|
@import "./vendor/framework/variables2.less";
|
||||||
|
@import "./vendor/framework/bootstrap.less";
|
||||||
|
@import "./vendor/fontawesome/font-awesome";
|
||||||
|
|
||||||
|
.page{
|
||||||
|
position:absolute;
|
||||||
|
top:0;
|
||||||
|
left:0;
|
||||||
|
bottom:0px;
|
||||||
|
right:0px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1050px) {
|
||||||
|
.page{
|
||||||
|
position:relative;
|
||||||
|
top:0;
|
||||||
|
left:0;
|
||||||
|
bottom:0px;
|
||||||
|
right:0px;
|
||||||
|
margin:auto;
|
||||||
|
height:1024px;
|
||||||
|
width:768px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.pane_hover{
|
||||||
|
|
||||||
|
position:absolute;
|
||||||
|
z-index:2000;
|
||||||
|
top:0;
|
||||||
|
left:0;
|
||||||
|
right:0;
|
||||||
|
bottom:0;
|
||||||
|
background:rgba(250,250,250,0.95);
|
||||||
|
text-align:center;
|
||||||
|
img{
|
||||||
|
max-width:90%;
|
||||||
|
margin-top:30px;
|
||||||
|
max-height:600px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
h3{
|
||||||
|
font-size:1.8em;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
p{
|
||||||
|
font-size:1.5em;
|
||||||
|
text-align:center !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.prev_slide,.next_slide{
|
||||||
|
|
||||||
|
color:white;
|
||||||
|
font-size:30px;
|
||||||
|
padding:10px 20px;
|
||||||
|
background:rgba(0,0,0,0.9);
|
||||||
|
position:absolute;
|
||||||
|
bottom:10px;
|
||||||
|
cursor:pointer;
|
||||||
|
text-align:right;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.next_slide{
|
||||||
|
|
||||||
|
border-radius:30px 0px 0px 0px;
|
||||||
|
bottom:0px;
|
||||||
|
right:0px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.prev_slide{
|
||||||
|
border-radius:0px 30px 0px 0px;
|
||||||
|
text-align:left;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.places_jeu, .places_jeu2{
|
||||||
|
position:relative;
|
||||||
|
|
||||||
|
.success{
|
||||||
|
color:green;
|
||||||
|
text-align:center;
|
||||||
|
display:none;
|
||||||
|
|
||||||
|
}
|
||||||
|
.img{
|
||||||
|
position:relative;
|
||||||
|
|
||||||
|
.receptable{
|
||||||
|
position:absolute;
|
||||||
|
width:40px;
|
||||||
|
height:40px;
|
||||||
|
border-radius:50%;
|
||||||
|
background:rgb(230, 230, 230);
|
||||||
|
box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 1px 5px rgba(0,0,0,.5);
|
||||||
|
border:2px solid rgba(82,82,82,1);
|
||||||
|
text-align:center;
|
||||||
|
|
||||||
|
img{
|
||||||
|
max-width:140px;
|
||||||
|
max-height:140px;
|
||||||
|
position:relative;
|
||||||
|
box-shadow:0 1px 5px rgba(0,0,0,.5);
|
||||||
|
box-sizing:border-box;
|
||||||
|
border:4px solid white;
|
||||||
|
top:-100%;
|
||||||
|
left:-100%;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.vignettes{
|
||||||
|
position:absolute;
|
||||||
|
right:1em;
|
||||||
|
width:450px;
|
||||||
|
top:1em;
|
||||||
|
height:100px;
|
||||||
|
|
||||||
|
img{
|
||||||
|
height:93px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
.jPuzzle-time{
|
||||||
|
display:none !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
#results
|
||||||
|
{
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
margin-top:3em;
|
||||||
|
color:green;
|
||||||
|
}
|
||||||
|
|
||||||
|
p, h2
|
||||||
|
{
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.content{
|
||||||
|
|
||||||
|
padding:1em;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.quizz{
|
||||||
|
.quizz_answer{
|
||||||
|
margin:1em 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
label{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
input[type="radio"] {
|
||||||
|
position:absolute;
|
||||||
|
opacity: 0;
|
||||||
|
-moz-opacity: 0;
|
||||||
|
-webkit-opacity: 0;
|
||||||
|
-o-opacity: 0;
|
||||||
|
}
|
||||||
|
input[type="radio"] + label {
|
||||||
|
position:relative;
|
||||||
|
padding: 0 0 0 25px;
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
input[type="radio"] + label:before {
|
||||||
|
content:"";
|
||||||
|
display:block;
|
||||||
|
position:absolute;
|
||||||
|
top:2px;
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
background: white;
|
||||||
|
border: 1px solid gray;
|
||||||
|
box-shadow: inset 0px 0px 0px 2px white;
|
||||||
|
-webkit-box-shadow: inset 0px 0px 0px 2px white;
|
||||||
|
-moz-box-shadow: inset 0px 0px 0px 2px white;
|
||||||
|
-o-box-shadow: inset 0px 0px 0px 2px white;
|
||||||
|
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
input[type="radio"]:checked + label:before {
|
||||||
|
background: rgba(74,129,233,1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.question {
|
||||||
|
p{
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
*{
|
||||||
|
font-size:1.2em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3{
|
||||||
|
font-size:1.7em !important;
|
||||||
|
line-height:1.3em;
|
||||||
|
margin-bottom:0.7em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.check_place{
|
||||||
|
text-align:center;
|
||||||
|
position:absolute;
|
||||||
|
bottom:1em;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
}
|
||||||
|
border: 1px solid white;
|
||||||
|
min-height:890px;
|
||||||
|
padding:1em;
|
||||||
|
padding-right:2em;
|
||||||
|
position:relative;
|
||||||
|
margin:auto;
|
||||||
|
|
||||||
|
.quizz_ill{
|
||||||
|
position:absolute;top:20px;max-width:470px;right:-530px;background: rgba(250,250,250,0.8);
|
||||||
|
padding:10px;
|
||||||
|
img{
|
||||||
|
max-height:500px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.quizz_img{
|
||||||
|
position:absolute;top:20px;max-width:470px;right:-530px;background: rgba(250,250,250,0.8);
|
||||||
|
padding:10px;
|
||||||
|
img{
|
||||||
|
max-height:500px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.prev{
|
||||||
|
background:rgba(52,52,52,1) !important;
|
||||||
|
color:white !important;
|
||||||
|
position:absolute;
|
||||||
|
bottom:1em;
|
||||||
|
left:1em;
|
||||||
|
height:50px;
|
||||||
|
font-size:35px !important;
|
||||||
|
padding-top:10px;
|
||||||
|
border-radius:50%;
|
||||||
|
text-align:center;
|
||||||
|
width:50px;
|
||||||
|
box-sizing:border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.next{
|
||||||
|
background:rgba(52,52,52,1) !important;
|
||||||
|
color:white !important;
|
||||||
|
height:50px;
|
||||||
|
font-size:35px !important;
|
||||||
|
padding-top:10px;
|
||||||
|
|
||||||
|
text-align:center;
|
||||||
|
width:50px;
|
||||||
|
box-sizing:border-box;
|
||||||
|
position:absolute;
|
||||||
|
bottom:1em;
|
||||||
|
right:1em;
|
||||||
|
|
||||||
|
border-radius:50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info{
|
||||||
|
display:none;
|
||||||
|
color:red;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.response{
|
||||||
|
|
||||||
|
.info{
|
||||||
|
color:green;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.success, .fail{
|
||||||
|
position:absolute;
|
||||||
|
bottom:4em;
|
||||||
|
text-align:center;
|
||||||
|
left:1em;
|
||||||
|
right:1em;
|
||||||
|
}
|
||||||
|
.success{
|
||||||
|
color:green;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.fail{
|
||||||
|
color:red;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.page{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
box-shadow:0 0 5px rgba(0,0,0,0.5);
|
||||||
|
background:white;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
label{
|
||||||
|
display:inline;
|
||||||
|
}
|
||||||
|
#overlay{
|
||||||
|
cursor:pointer;
|
||||||
|
|
||||||
|
}
|
||||||
|
.navbar{
|
||||||
|
|
||||||
|
.pull-right{
|
||||||
|
margin-right:5px;
|
||||||
|
}
|
||||||
|
a{
|
||||||
|
color:white !important;
|
||||||
|
&:hover{
|
||||||
|
text-decoration:none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#logos{
|
||||||
|
margin:30px;
|
||||||
|
margin-top:10px;
|
||||||
|
border-radius:5px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
.nav-stacked {
|
||||||
|
margin:30px;
|
||||||
|
a{
|
||||||
|
background:white;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.header{
|
||||||
|
padding:10px;
|
||||||
|
|
||||||
|
a{
|
||||||
|
display:inline-block;
|
||||||
|
padding:5px;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#main{
|
||||||
|
font-size:130%;
|
||||||
|
.btn{
|
||||||
|
font-family:"Comic sans ms"
|
||||||
|
}
|
||||||
|
|
||||||
|
.content{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
margin:auto;
|
||||||
|
a{
|
||||||
|
color: #5890CD;
|
||||||
|
text-decoration:none;
|
||||||
|
|
||||||
|
&:hover{
|
||||||
|
text-decoration:underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
table{
|
||||||
|
border-collapse:collapse;
|
||||||
|
td{
|
||||||
|
min-width:60px;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
td, th{
|
||||||
|
border: 1px solid #c9c9c9;
|
||||||
|
padding:5px;
|
||||||
|
text-align:left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
font-family: "Helvetica", "Verdana";
|
||||||
|
font-weight:100;
|
||||||
|
line-height:2.5em;
|
||||||
|
color:#303030;
|
||||||
|
padding:0px;
|
||||||
|
margin:0px;
|
||||||
|
font-size:12px;
|
||||||
|
|
||||||
|
ul, li{
|
||||||
|
line-height:1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3{
|
||||||
|
|
||||||
|
font-family:Futura;
|
||||||
|
font-size:18px;}
|
||||||
|
|
||||||
|
h1{
|
||||||
|
|
||||||
|
font-family:"Architects Daughter";
|
||||||
|
color:rgba(0,0,0,0.9);
|
||||||
|
font-size:27px;
|
||||||
|
font-weight:100;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#insectes_jeu_2{
|
||||||
|
.labels{
|
||||||
|
min-height:100px;
|
||||||
|
|
||||||
|
.label{
|
||||||
|
background:#555555;
|
||||||
|
display:inline-block;
|
||||||
|
margin-left:5px;
|
||||||
|
margin-bottom:5px;
|
||||||
|
padding:0.5em 1em;
|
||||||
|
color:white;
|
||||||
|
border-radius:1.2em;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.image{
|
||||||
|
float:left;
|
||||||
|
width:300px;
|
||||||
|
height:200px;
|
||||||
|
padding:0em;
|
||||||
|
padding-bottom:2em !important;
|
||||||
|
|
||||||
|
|
||||||
|
img{
|
||||||
|
max-width:100%;
|
||||||
|
max-height:100%;
|
||||||
|
}
|
||||||
|
position:relative;
|
||||||
|
text-align:center;
|
||||||
|
padding-bottom:1em;
|
||||||
|
|
||||||
|
.receptable{
|
||||||
|
border:1px solid black;
|
||||||
|
|
||||||
|
.label{
|
||||||
|
text-align:center;
|
||||||
|
position:absolute;
|
||||||
|
padding-bottom:0.5em;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
position:absolute;
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
#logos{
|
||||||
|
text-align:center;
|
||||||
|
background:white;
|
||||||
|
padding:0.5em 0;
|
||||||
|
img{
|
||||||
|
max-height:120px;
|
||||||
|
max-width:220px;
|
||||||
|
margin:0px 0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.vie-arbre.story{
|
||||||
|
td{
|
||||||
|
padding:0.3em !important;
|
||||||
|
p{
|
||||||
|
padding:0.7em !important;
|
||||||
|
border:1px solid black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
a{
|
||||||
|
color:#55a631 !important;
|
||||||
|
cursor:pointer;
|
||||||
|
|
||||||
|
}
|
||||||
|
.animaux_sol{
|
||||||
|
td{
|
||||||
|
height:110px !important;
|
||||||
|
}
|
||||||
|
img{
|
||||||
|
height:100% !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.quizz .question{
|
||||||
|
h3{
|
||||||
|
a{
|
||||||
|
font-size:inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
.places_jeu2{
|
||||||
|
|
||||||
|
.vignettes img{
|
||||||
|
|
||||||
|
height:130px !important;
|
||||||
|
margin-bottom:0.5em;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -85,17 +85,18 @@ bottom:0px;
|
|||||||
left:0px;
|
left:0px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.places_jeu, .places_jeu2{
|
|
||||||
position:relative;
|
|
||||||
|
|
||||||
.success{
|
.success{
|
||||||
color:green;
|
color:green;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
display:none;
|
display:none;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.places_jeu, .places_jeu2{
|
||||||
|
position:relative;
|
||||||
|
|
||||||
|
|
||||||
.img{
|
.img{
|
||||||
position:relative;
|
position:relative;
|
||||||
|
|
||||||
|
693
app/assets/stylesheets/redactor.less
Executable file
693
app/assets/stylesheets/redactor.less
Executable file
File diff suppressed because one or more lines are too long
@ -53,7 +53,7 @@
|
|||||||
@baseLineHeight: 20px;
|
@baseLineHeight: 20px;
|
||||||
@altFontFamily: @serifFontFamily;
|
@altFontFamily: @serifFontFamily;
|
||||||
|
|
||||||
@headingsFontFamily: Desyrel; // empty to use BS default, @baseFontFamily
|
@headingsFontFamily: Stylograph; // empty to use BS default, @baseFontFamily
|
||||||
@headingsFontWeight: normal; // instead of browser default, bold
|
@headingsFontWeight: normal; // instead of browser default, bold
|
||||||
@headingsColor: inherit; // empty to use BS default, @textColor
|
@headingsColor: inherit; // empty to use BS default, @textColor
|
||||||
|
|
||||||
@ -70,7 +70,7 @@
|
|||||||
@paddingSmall: 2px 10px; // 26px
|
@paddingSmall: 2px 10px; // 26px
|
||||||
@paddingMini: 0 6px; // 22px
|
@paddingMini: 0 6px; // 22px
|
||||||
|
|
||||||
@baseBorderRadius: 4px;
|
@baseBorderRadius: 8px;
|
||||||
@borderRadiusLarge: 6px;
|
@borderRadiusLarge: 6px;
|
||||||
@borderRadiusSmall: 3px;
|
@borderRadiusSmall: 3px;
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@admin = Admin.new(params[:admin])
|
@admin = Admin.new(params.require(:admin).permit!)
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @admin.save
|
if @admin.save
|
||||||
@ -72,7 +72,7 @@ end
|
|||||||
end
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @admin.update_attributes(params[:admin])
|
if @admin.update_attributes(params.require(:admin).permit!)
|
||||||
|
|
||||||
flash[:notice] = "L'administrateur "+@admin.email.to_s+" à été modifié avec succès."
|
flash[:notice] = "L'administrateur "+@admin.email.to_s+" à été modifié avec succès."
|
||||||
format.html { redirect_to(admin_admins_path) }
|
format.html { redirect_to(admin_admins_path) }
|
||||||
|
@ -42,7 +42,7 @@ class Admin::NewsgroupsController < ApplicationController
|
|||||||
|
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@newsgroup = Newsgroup.new(params[:newsgroup])
|
@newsgroup = Newsgroup.new(params.require(:newsgroup).permit!)
|
||||||
|
|
||||||
|
|
||||||
if @newsgroup.save
|
if @newsgroup.save
|
||||||
@ -57,7 +57,7 @@ class Admin::NewsgroupsController < ApplicationController
|
|||||||
|
|
||||||
def update
|
def update
|
||||||
@newsgroup = Newsgroup.find(params[:id])
|
@newsgroup = Newsgroup.find(params[:id])
|
||||||
if @newsgroup.update_attributes(params[:newsgroup])
|
if @newsgroup.update_attributes(params.require(:newsgroup).permit!)
|
||||||
flash[:notice] = 'Le groupe à bien été éditer.'
|
flash[:notice] = 'Le groupe à bien été éditer.'
|
||||||
redirect_to :action => :index
|
redirect_to :action => :index
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ class Admin::NewslettersController < ApplicationController
|
|||||||
def create
|
def create
|
||||||
@h2 = "Creer une newsletter"
|
@h2 = "Creer une newsletter"
|
||||||
|
|
||||||
@newsletter = Newsletter.new(params[:newsletter])
|
@newsletter = Newsletter.new(params.require(:newsletter).permit!)
|
||||||
|
|
||||||
if @newsletter.save
|
if @newsletter.save
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ class Admin::NewslettersController < ApplicationController
|
|||||||
def update
|
def update
|
||||||
@h2 = "Editer une newsletter"
|
@h2 = "Editer une newsletter"
|
||||||
@newsletter = Newsletter.find(params[:id])
|
@newsletter = Newsletter.find(params[:id])
|
||||||
if @newsletter.update_attributes(params[:newsletter])
|
if @newsletter.update_attributes(params.require(:newsletter).permit!)
|
||||||
flash[:notice]= "La newsletter à été mise à jour"
|
flash[:notice]= "La newsletter à été mise à jour"
|
||||||
redirect_to :action => :index
|
redirect_to :action => :index
|
||||||
else
|
else
|
||||||
|
@ -20,7 +20,7 @@ class Admin::NotesController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@note = Note.new(params[:note])
|
@note = Note.new(params.require(:note).permit!)
|
||||||
@note.admin = current_admin
|
@note.admin = current_admin
|
||||||
|
|
||||||
if @note.save
|
if @note.save
|
||||||
@ -36,7 +36,7 @@ class Admin::NotesController < ApplicationController
|
|||||||
@note = Note.find(params[:id])
|
@note = Note.find(params[:id])
|
||||||
|
|
||||||
|
|
||||||
if @note.update_attributes(params[:note])
|
if @note.update_attributes(params.require(:note).permit!)
|
||||||
|
|
||||||
else
|
else
|
||||||
render :action => :edit
|
render :action => :edit
|
||||||
|
@ -51,7 +51,7 @@ class PeopleController < ApplicationController
|
|||||||
# POST /people
|
# POST /people
|
||||||
# POST /people.xml
|
# POST /people.xml
|
||||||
def create
|
def create
|
||||||
@person = Person.new(params[:person])
|
@person = Person.new(params.require(:person).permit!)
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @person.save
|
if @person.save
|
||||||
@ -83,7 +83,7 @@ class PeopleController < ApplicationController
|
|||||||
@person = Person.find(params[:id])
|
@person = Person.find(params[:id])
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @person.update_attributes(params[:person])
|
if @person.update_attributes(params.require(:person).permit!)
|
||||||
format.html { redirect_to(@person, :notice => 'Person was successfully updated.') }
|
format.html { redirect_to(@person, :notice => 'Person was successfully updated.') }
|
||||||
format.xml { head :ok }
|
format.xml { head :ok }
|
||||||
format.js { render(:update){|page| page.replace 'sheet_person_'+@person.id.to_s, :partial => "person", :object => @person} }
|
format.js { render(:update){|page| page.replace 'sheet_person_'+@person.id.to_s, :partial => "person", :object => @person} }
|
||||||
|
@ -31,7 +31,7 @@ class Admin::PetitionsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@petition = Petition.new(params[:petition])
|
@petition = Petition.new(params.require(:petition).permit!)
|
||||||
|
|
||||||
|
|
||||||
if @petition.save
|
if @petition.save
|
||||||
@ -49,7 +49,7 @@ class Admin::PetitionsController < ApplicationController
|
|||||||
@petition = Petition.find(params[:id])
|
@petition = Petition.find(params[:id])
|
||||||
|
|
||||||
|
|
||||||
if @petition.update_attributes(params[:petition])
|
if @petition.update_attributes(params.require(:petition).permit!)
|
||||||
redirect_to admin_petitions_url, notice: 'Les infos sur la pétition ont été mise à jour.'
|
redirect_to admin_petitions_url, notice: 'Les infos sur la pétition ont été mise à jour.'
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -51,7 +51,7 @@ class SheetYearsController < ApplicationController
|
|||||||
# POST /sheet_years
|
# POST /sheet_years
|
||||||
# POST /sheet_years.xml
|
# POST /sheet_years.xml
|
||||||
def create
|
def create
|
||||||
@sheet_year = SheetYear.new(params[:sheet_year])
|
@sheet_year = SheetYear.new(params.require(:sheet_year).permit!)
|
||||||
|
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
@ -77,7 +77,7 @@ class SheetYearsController < ApplicationController
|
|||||||
|
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @sheet_year.update_attributes(params[:sheet_year])
|
if @sheet_year.update_attributes(params.require(:sheet_year).permit!)
|
||||||
format.html { redirect_to(@sheet_year, :notice => 'SheetYear was successfully updated.') }
|
format.html { redirect_to(@sheet_year, :notice => 'SheetYear was successfully updated.') }
|
||||||
format.xml { head :ok }
|
format.xml { head :ok }
|
||||||
format.js { render(:update){|page| page.replace 'sheet_year_'+@sheet_year.id.to_s, :partial => "sheet_year", :object => @sheet_year} }
|
format.js { render(:update){|page| page.replace 'sheet_year_'+@sheet_year.id.to_s, :partial => "sheet_year", :object => @sheet_year} }
|
||||||
|
@ -7,7 +7,7 @@ class Admin::SheetsController < ApplicationController
|
|||||||
layout "admin"
|
layout "admin"
|
||||||
|
|
||||||
require 'csv'
|
require 'csv'
|
||||||
require 'iconv'
|
#require 'iconv'
|
||||||
|
|
||||||
# require_permission 'adherent.show'
|
# require_permission 'adherent.show'
|
||||||
# require_permission 'adherent.add', :only => [:new, :create]
|
# require_permission 'adherent.add', :only => [:new, :create]
|
||||||
@ -86,7 +86,7 @@ require 'iconv'
|
|||||||
|
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@sheet = Sheet.new(params[:sheet])
|
@sheet = Sheet.new(params.require(:sheet).permit!)
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @sheet.save
|
if @sheet.save
|
||||||
@ -106,7 +106,7 @@ require 'iconv'
|
|||||||
@sheet = Sheet.find(params[:id])
|
@sheet = Sheet.find(params[:id])
|
||||||
|
|
||||||
|
|
||||||
if @sheet.update_attributes(params[:sheet])
|
if @sheet.update_attributes(params.require(:sheet).permit!)
|
||||||
@sheet = Sheet.find(params[:id])
|
@sheet = Sheet.find(params[:id])
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -17,7 +17,7 @@ class Admin::TinyUrlsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@tiny_url = TinyUrl.new(params[:tiny_url])
|
@tiny_url = TinyUrl.new(params.require(:tiny_url).permit!)
|
||||||
|
|
||||||
|
|
||||||
if @tiny_url.save
|
if @tiny_url.save
|
||||||
@ -34,7 +34,7 @@ class Admin::TinyUrlsController < ApplicationController
|
|||||||
@tiny_url = TinyUrl.find(params[:id])
|
@tiny_url = TinyUrl.find(params[:id])
|
||||||
|
|
||||||
|
|
||||||
if @tiny_url.update_attributes(params[:tiny_url])
|
if @tiny_url.update_attributes(params.require(:tiny_url).permit!)
|
||||||
redirect_to admin_tiny_urls_url, notice: 'Url courte modifiée.'
|
redirect_to admin_tiny_urls_url, notice: 'Url courte modifiée.'
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -25,7 +25,7 @@ class Admin::TopicsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@topic = Topic.new(params[:topic])
|
@topic = Topic.new(params.require(:topic).permit!)
|
||||||
@topic.admin = current_admin
|
@topic.admin = current_admin
|
||||||
|
|
||||||
if @topic.save
|
if @topic.save
|
||||||
@ -41,7 +41,7 @@ class Admin::TopicsController < ApplicationController
|
|||||||
@topic = Topic.find(params[:id])
|
@topic = Topic.find(params[:id])
|
||||||
|
|
||||||
|
|
||||||
if @topic.update_attributes(params[:topic])
|
if @topic.update_attributes(params.require(:topic).permit!)
|
||||||
@topics = Topic.all
|
@topics = Topic.all
|
||||||
else
|
else
|
||||||
render :action => :edit
|
render :action => :edit
|
||||||
|
@ -1,23 +1,25 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
class Forum::AuthsController < ApplicationController
|
class Forum::AuthsController < ApplicationController
|
||||||
layout "forum"
|
layout "connexion"
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
@forum = true
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
@forum = true
|
||||||
user = ForumUser.find_by_email(params[:email])
|
user = ForumUser.find_by_email(params[:email])
|
||||||
if user && user.authenticate(params[:password])
|
if user && user.authenticate(params[:password])
|
||||||
session[:forum_user_id] = user.id
|
session[:forum_user_id] = user.id
|
||||||
redirect_to forum_forum_users_path, notice: "Connecté !"
|
redirect_to forum_forum_topics_path, notice: "Connecté !"
|
||||||
else
|
else
|
||||||
flash.now.alert = "Email ou mot de passe incorect"
|
flash.now.alert = "Email ou mot de passe incorect"
|
||||||
render "new"
|
render "new"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def logout
|
def destroy
|
||||||
session[:forum_user_id] = nil
|
session[:forum_user_id] = nil
|
||||||
redirect_to forum_forum_users_path, notice: "Logged out!"
|
redirect_to forum_forum_users_path, notice: "Déconnecté."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -22,7 +22,7 @@ class Forum::ForumCategoriesController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@category = ForumCategory.new(params[:forum_category])
|
@category = ForumCategory.new(params.require(:forum_category).permit!)
|
||||||
|
|
||||||
if @category.save
|
if @category.save
|
||||||
redirect_to forum_forum_path(@category.forum)
|
redirect_to forum_forum_path(@category.forum)
|
||||||
@ -35,7 +35,7 @@ class Forum::ForumCategoriesController < ApplicationController
|
|||||||
def update
|
def update
|
||||||
@category = ForumCategory.find(params[:id])
|
@category = ForumCategory.find(params[:id])
|
||||||
|
|
||||||
if @category.update_attributes(params[:forum_category])
|
if @category.update_attributes(params.require(:forum_category).permit!)
|
||||||
redirect_to forum_forum_path(@category.forum)
|
redirect_to forum_forum_path(@category.forum)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -22,11 +22,11 @@ class Forum::ForumMessagesController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@message = ForumMessage.new(params[:forum_message])
|
@message = ForumMessage.new(params.require(:forum_message).permit!)
|
||||||
@message.forum_user = current_fuser
|
@message.forum_user = current_fuser
|
||||||
if @message.save
|
if @message.save
|
||||||
|
|
||||||
redirect_to forum_forum_topic_path(@message.forum_topic_id)
|
redirect_to forum_forum_topic_path(@message.forum_topic_id, :anchor => "forum_message_#{@message.id}")
|
||||||
|
|
||||||
else
|
else
|
||||||
render :action => "new"
|
render :action => "new"
|
||||||
@ -37,8 +37,8 @@ class Forum::ForumMessagesController < ApplicationController
|
|||||||
|
|
||||||
@message = ForumMessage.find(params[:id])
|
@message = ForumMessage.find(params[:id])
|
||||||
|
|
||||||
if @message.update_attributes(params[:forum_message])
|
if @message.update_attributes(params.require(:forum_message).permit!)
|
||||||
redirect_to forum_forum_topic_path(@message.forum_topic_id)
|
redirect_to forum_forum_topic_path(@message.forum_topic_id, :anchor => "forum_message_#{@message.id}")
|
||||||
|
|
||||||
else
|
else
|
||||||
render :action => "edit"
|
render :action => "edit"
|
||||||
|
@ -4,6 +4,9 @@ class Forum::ForumTopicsController < ApplicationController
|
|||||||
before_filter :auth_fuser
|
before_filter :auth_fuser
|
||||||
|
|
||||||
|
|
||||||
|
def index
|
||||||
|
@forum_topics = ForumTopic.order("created_at DESC").all
|
||||||
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@topic = ForumTopic.find(params[:id])
|
@topic = ForumTopic.find(params[:id])
|
||||||
@ -23,7 +26,8 @@ class Forum::ForumTopicsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@topic = ForumTopic.new(params[:forum_topic])
|
|
||||||
|
@topic = ForumTopic.new(params.require(:forum_topic).permit!)
|
||||||
@topic.forum_user = current_fuser
|
@topic.forum_user = current_fuser
|
||||||
if @topic.save
|
if @topic.save
|
||||||
redirect_to [:forum, @topic]
|
redirect_to [:forum, @topic]
|
||||||
@ -36,7 +40,7 @@ class Forum::ForumTopicsController < ApplicationController
|
|||||||
def update
|
def update
|
||||||
@topic = ForumTopic.find(params[:id])
|
@topic = ForumTopic.find(params[:id])
|
||||||
|
|
||||||
if @topic.update_attributes(params[:forum_topic])
|
if @topic.update_attributes(params.require(:forum_topic).permit!)
|
||||||
redirect_to forum_forum_category_path(@topic.category)
|
redirect_to forum_forum_category_path(@topic.category)
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -50,7 +54,7 @@ class Forum::ForumTopicsController < ApplicationController
|
|||||||
def destroy
|
def destroy
|
||||||
@topic = ForumTopic.find(params[:id])
|
@topic = ForumTopic.find(params[:id])
|
||||||
@topic.destroy
|
@topic.destroy
|
||||||
redirect_to forum_forum_category_path(@topic.category)
|
redirect_to forum_forum_topics_path()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
class Forum::ForumUsersController < ApplicationController
|
class Forum::ForumUsersController < ApplicationController
|
||||||
layout "forum"
|
layout "forum"
|
||||||
|
|
||||||
before_filter :auth_fuser
|
before_filter :auth_fuser, :except => [:new, :create]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ class Forum::ForumUsersController < ApplicationController
|
|||||||
|
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@user = ForumUser.new
|
@user = ForumUser.new(:sheet_number => params[:i], :email => params[:email])
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -26,10 +26,15 @@ class Forum::ForumUsersController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@user = ForumUser.new(params[:forum_user])
|
@user = ForumUser.new(params.require(:forum_user).permit!)
|
||||||
|
|
||||||
if @user.save
|
if @user.save
|
||||||
redirect_to forum_forum_users_path
|
|
||||||
|
@user.authenticate(params[:password])
|
||||||
|
session[:forum_user_id] = @user.id
|
||||||
|
redirect_to forum_forum_topics_path, notice: "Vous êtes désormais inscrit."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
render :action => "new"
|
render :action => "new"
|
||||||
@ -39,7 +44,7 @@ class Forum::ForumUsersController < ApplicationController
|
|||||||
def update
|
def update
|
||||||
@user = ForumUser.find(params[:id])
|
@user = ForumUser.find(params[:id])
|
||||||
|
|
||||||
if @user.update_attributes(params[:forum_user])
|
if @user.update_attributes(params.require(:forum_user).permit!)
|
||||||
redirect_to forum_forum_user_path(@user)
|
redirect_to forum_forum_user_path(@user)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -10,7 +10,7 @@ class PetitionsController < ApplicationController
|
|||||||
|
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@signator = PetitionSignator.new(params[:petition_signator])
|
@signator = PetitionSignator.new(params.require(:petition_signator).permit!)
|
||||||
|
|
||||||
@petition = @signator.petition
|
@petition = @signator.petition
|
||||||
@title = "Le Pic Vert - "+@petition.name
|
@title = "Le Pic Vert - "+@petition.name
|
||||||
|
@ -13,4 +13,9 @@ class PlaquettesController < ApplicationController
|
|||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def gaspillage
|
||||||
|
|
||||||
|
render :layout => "gaspillage"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -16,7 +16,7 @@ class SurveySetsController < ApplicationController
|
|||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
||||||
@survey_set = SurveySet.new(params[:survey_set])
|
@survey_set = SurveySet.new(params.require(:survey_set).permit!)
|
||||||
|
|
||||||
@title = "Le Pic Vert - Sondage : "+@survey_set.survey_type.name
|
@title = "Le Pic Vert - Sondage : "+@survey_set.survey_type.name
|
||||||
|
|
||||||
|
@ -5,12 +5,12 @@ module IconHelper
|
|||||||
def i(icon_name, options = {:icon => true})
|
def i(icon_name, options = {:icon => true})
|
||||||
if options[:icon]
|
if options[:icon]
|
||||||
|
|
||||||
raw ('<i class="icon icon-'+icon_name.to_s+'"></i>')
|
raw ('<i class="icon fa fa-'+icon_name.to_s+'"></i>')
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
raw ('<i class="icon-'+icon_name.to_s+'"></i>')
|
raw ('<i class="fa fa-'+icon_name.to_s+'"></i>')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,7 +66,8 @@ module PlaquettesHelper
|
|||||||
end
|
end
|
||||||
def quizz_answer(question_id, value, response=false, num=1)
|
def quizz_answer(question_id, value, response=false, num=1)
|
||||||
response = true if value[4] == true
|
response = true if value[4] == true
|
||||||
raw(content_tag("div",raw(radio_button("quizz_#{num}", "question_#{question_id}", value[0].to_slug)+label("quizz_#{num}", "question_#{question_id}_#{value[0].to_slug}", " #{value[0]} ")+raw(content_tag("span",(response ? "Vrai"+(","if value[1]).to_s+" " : "Faux"+(","if value[1]).to_s+" ")+value[1].to_s, :class => "info")))+raw((content_tag("div",image_tag(value[2])+(content_tag("p", value[3]) if value[3] ).to_s, :class => "quizz_img") if value[2])), :class => "quizz_answer "+("response" if response).to_s))
|
value[5] = true if value[5] != false
|
||||||
|
raw(content_tag("div",raw(radio_button("quizz_#{num}", "question_#{question_id}", value[0].to_slug)+label("quizz_#{num}", "question_#{question_id}_#{value[0].to_slug}", " #{value[0]} ")+raw(content_tag("span",((response ? "Vrai"+(","if value[1]).to_s+" " : "Faux"+(","if value[1]).to_s+" ")if value[5] == true).to_s+value[1].to_s, :class => "info")))+raw((content_tag("div",image_tag(value[2])+(content_tag("p", value[3]) if value[3] ).to_s, :class => "quizz_img") if value[2])), :class => "quizz_answer "+("response" if response).to_s))
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -9,7 +9,7 @@ class Admin < ActiveRecord::Base
|
|||||||
attr_accessor :login
|
attr_accessor :login
|
||||||
|
|
||||||
# Setup accessible (or protected) attributes for your model
|
# Setup accessible (or protected) attributes for your model
|
||||||
attr_accessible :email, :password, :password_confirmation, :remember_me, :username, :name, :firstname, :file
|
#attr_accessible :email, :password, :password_confirmation, :remember_me, :username, :name, :firstname, :file
|
||||||
# attr_accessible :title, :body
|
# attr_accessible :title, :body
|
||||||
|
|
||||||
mount_uploader :file, AvatarUploader
|
mount_uploader :file, AvatarUploader
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
class AnswerSet < ActiveRecord::Base
|
class AnswerSet < ActiveRecord::Base
|
||||||
belongs_to :question_set
|
belongs_to :question_set
|
||||||
belongs_to :survey_item_answer
|
belongs_to :survey_item_answer
|
||||||
attr_accessible :content, :survey_item_answer_id, :is_checked, :position
|
#attr_accessible :content, :survey_item_answer_id, :is_checked, :position
|
||||||
|
|
||||||
|
|
||||||
before_validation do
|
before_validation do
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
class Donate < ActiveRecord::Base
|
class Donate < ActiveRecord::Base
|
||||||
belongs_to :sheet
|
belongs_to :sheet
|
||||||
|
|
||||||
attr_accessible :paid_at, :amount, :payment_type, :bank, :check_number
|
#attr_accessible :paid_at, :amount, :payment_type, :bank, :check_number
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user