diff --git a/Gemfile b/Gemfile index e1c4d656b8..45a78d9dc9 100644 --- a/Gemfile +++ b/Gemfile @@ -29,7 +29,6 @@ gem 'truncate_html' gem 'representative_view' gem 'rabl' gem 'oj' -gem 'chili', :github => 'openfoodfoundation/chili' gem 'deface', :github => 'spree/deface', :ref => '1110a13' gem 'paperclip' gem 'geocoder' @@ -69,8 +68,8 @@ group :test, :development do gem 'rspec-rails' gem 'shoulda-matchers' gem 'factory_girl_rails', :require => false - gem 'faker' gem 'capybara' + gem 'capybara-screenshot' gem 'database_cleaner', '0.7.1', :require => false gem 'simplecov', :require => false gem 'awesome_print' @@ -85,11 +84,6 @@ group :test do gem 'webmock' end -group :chili do - gem 'eaterprises_feature', path: 'lib/chili/eaterprises_feature' - gem 'local_organics_feature', path: 'lib/chili/local_organics_feature' -end - group :development do gem 'pry-debugger' gem 'debugger-linecache' diff --git a/Gemfile.lock b/Gemfile.lock index 1b762b786c..1b031569f7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -6,17 +6,9 @@ GIT actionpack (~> 3.0) activemodel (~> 3.0) -GIT - remote: git://github.com/openfoodfoundation/chili.git - revision: b82608623d504eb39f852115b138a53af5f89505 - specs: - chili (3.1.0) - deface (~> 1.0.0.rc2) - rails (~> 3.2) - GIT remote: git://github.com/openfoodfoundation/spree.git - revision: 1c133672652e1ee8b6c8d694efe258e62378062e + revision: da651b40f5c6cdd32e00b060729eb9aefd4f615f branch: 1-3-stable specs: spree (1.3.3) @@ -103,20 +95,6 @@ GIT activemodel (>= 3.0) railties (>= 3.0) -PATH - remote: lib/chili/eaterprises_feature - specs: - eaterprises_feature (0.0.1) - chili (~> 3.1) - rails (~> 3.2.11) - -PATH - remote: lib/chili/local_organics_feature - specs: - local_organics_feature (0.0.1) - chili (~> 3.1) - rails (~> 3.2.11) - GEM remote: https://rubygems.org/ specs: @@ -134,16 +112,16 @@ GEM rack-test (~> 0.6.1) sprockets (~> 2.2.1) active_link_to (1.0.0) - active_utils (2.0.1) + active_utils (2.0.2) activesupport (>= 2.3.11) i18n - activemerchant (1.40.0) + activemerchant (1.43.0) active_utils (~> 2.0, >= 2.0.1) activesupport (>= 2.3.14, < 5.0.0) builder (>= 2.1.2, < 4.0.0) i18n (~> 0.5) json (~> 1.7) - money (< 6.0.0) + money (< 7.0.0) nokogiri (~> 1.4) activemodel (3.2.17) activesupport (= 3.2.17) @@ -162,9 +140,10 @@ GEM acts_as_list (0.1.4) addressable (2.3.3) andand (1.3.3) - angular-rails-templates (0.0.7) + angular-rails-templates (0.1.1) railties (>= 3.1) sprockets + tilt angularjs-rails (1.2.13) ansi (1.4.2) arel (3.0.3) @@ -188,13 +167,16 @@ GEM rack (>= 1.0.0) rack-test (>= 0.5.4) xpath (~> 2.0) + capybara-screenshot (0.3.19) + capybara (>= 1.0, < 3) + launchy celluloid (0.15.2) timers (~> 1.1.0) chunky_png (1.3.0) climate_control (0.0.3) activesupport (>= 3.0) cliver (0.3.2) - cocaine (0.5.1) + cocaine (0.5.4) climate_control (>= 0.0.3, < 1.0) coderay (1.0.9) coffee-rails (3.2.2) @@ -204,7 +186,7 @@ GEM coffee-script-source execjs coffee-script-source (1.3.3) - colorize (0.6.0) + colorize (0.7.2) columnize (0.3.6) comfortable_mexican_sofa (1.6.24) active_link_to (~> 1.0.0) @@ -250,8 +232,6 @@ GEM factory_girl_rails (3.3.0) factory_girl (~> 3.3.0) railties (>= 3.0.0) - faker (1.0.1) - i18n (~> 0.4) ffaker (1.15.0) ffi (1.9.3) fog (1.14.0) @@ -299,8 +279,8 @@ GEM highline (1.6.18) hike (1.2.3) http_parser.rb (0.5.3) - httparty (0.11.0) - multi_json (~> 1.0) + httparty (0.13.1) + json (~> 1.8) multi_xml (>= 0.5.2) i18n (0.6.9) immigrant (0.1.6) @@ -334,13 +314,13 @@ GEM treetop (~> 1.4.8) method_source (0.8.1) mime-types (1.25.1) - mini_portile (0.5.2) + mini_portile (0.5.3) momentjs-rails (2.5.1) railties (>= 3.1) money (5.0.0) i18n (~> 0.4) json - multi_json (1.9.2) + multi_json (1.10.0) multi_xml (0.5.5) net-scp (1.1.2) net-ssh (>= 2.6.5) @@ -399,7 +379,7 @@ GEM rdoc (~> 3.4) thor (>= 0.14.6, < 2.0) raindrops (0.9.0) - rake (10.1.1) + rake (10.3.1) ransack (0.7.2) actionpack (~> 3.0) activerecord (~> 3.0) @@ -461,7 +441,7 @@ GEM therubyracer (0.12.0) libv8 (~> 3.16.14.0) ref - thor (0.19.0) + thor (0.19.1) tilt (1.4.1) timecop (0.6.2.2) timers (1.1.0) @@ -474,7 +454,7 @@ GEM sprockets (>= 2.0.0) turn (0.8.3) ansi - tzinfo (0.3.38) + tzinfo (0.3.39) uglifier (1.2.4) execjs (>= 0.3.0) multi_json (>= 1.0.2) @@ -512,7 +492,7 @@ DEPENDENCIES aws-sdk bugsnag capybara - chili! + capybara-screenshot coffee-rails (~> 3.2.1) comfortable_mexican_sofa compass-rails @@ -520,9 +500,7 @@ DEPENDENCIES db2fog debugger-linecache deface! - eaterprises_feature! factory_girl_rails - faker foreigner foundation-icons-sass-rails foundation-rails @@ -539,7 +517,6 @@ DEPENDENCIES jquery-rails json_spec letter_opener - local_organics_feature! momentjs-rails newrelic_rpm oj diff --git a/app/assets/images/producers/producers-pg-bg.jpg b/app/assets/images/producers/producers-pg-bg.jpg new file mode 100644 index 0000000000..916f474084 Binary files /dev/null and b/app/assets/images/producers/producers-pg-bg.jpg differ diff --git a/app/assets/javascripts/darkswarm/all.js.coffee b/app/assets/javascripts/darkswarm/all.js.coffee index cc9a1bbc56..484bb56492 100644 --- a/app/assets/javascripts/darkswarm/all.js.coffee +++ b/app/assets/javascripts/darkswarm/all.js.coffee @@ -10,7 +10,10 @@ #= require ../shared/bindonce.min.js #= require ../shared/ng-infinite-scroll.min.js #= require ../shared/angular-local-storage.js -#= require_tree ../../templates + +#= require angular-rails-templates +#= require_tree ../templates +# #= require angular-backstretch.js #= require angular-flash.min.js #= require moment diff --git a/app/assets/javascripts/darkswarm/controllers/forgot_sidebar_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/authentication/forgot_controller.js.coffee similarity index 56% rename from app/assets/javascripts/darkswarm/controllers/forgot_sidebar_controller.js.coffee rename to app/assets/javascripts/darkswarm/controllers/authentication/forgot_controller.js.coffee index 4300461a0d..175e18d2a2 100644 --- a/app/assets/javascripts/darkswarm/controllers/forgot_sidebar_controller.js.coffee +++ b/app/assets/javascripts/darkswarm/controllers/authentication/forgot_controller.js.coffee @@ -1,14 +1,6 @@ -Darkswarm.controller "ForgotSidebarCtrl", ($scope, $http, $location, SpreeUser, Navigation) -> - $scope.spree_user = SpreeUser.spree_user +Darkswarm.controller "ForgotCtrl", ($scope, $http, $location, AuthenticationService) -> $scope.path = "/forgot" $scope.sent = false - Navigation.paths.push $scope.path - - $scope.active = -> - $location.path() == $scope.path - - $scope.select = -> - Navigation.navigate($scope.path) $scope.submit = -> if $scope.spree_user.email != null diff --git a/app/assets/javascripts/darkswarm/controllers/authentication/login_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/authentication/login_controller.js.coffee new file mode 100644 index 0000000000..c2211bc033 --- /dev/null +++ b/app/assets/javascripts/darkswarm/controllers/authentication/login_controller.js.coffee @@ -0,0 +1,8 @@ +Darkswarm.controller "LoginCtrl", ($scope, $http, $location, AuthenticationService) -> + $scope.path = "/login" + + $scope.submit = -> + $http.post("/user/spree_user/sign_in", {spree_user: $scope.spree_user}).success (data)-> + location.href = location.origin + location.pathname # Strips out hash fragments + .error (data) -> + $scope.errors = data.message diff --git a/app/assets/javascripts/darkswarm/controllers/signup_sidebar_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/authentication/signup_controller.js.coffee similarity index 52% rename from app/assets/javascripts/darkswarm/controllers/signup_sidebar_controller.js.coffee rename to app/assets/javascripts/darkswarm/controllers/authentication/signup_controller.js.coffee index ef6ded77fd..d15ef4141d 100644 --- a/app/assets/javascripts/darkswarm/controllers/signup_sidebar_controller.js.coffee +++ b/app/assets/javascripts/darkswarm/controllers/authentication/signup_controller.js.coffee @@ -1,17 +1,9 @@ -Darkswarm.controller "SignupSidebarCtrl", ($scope, $http, $location, SpreeUser, Navigation) -> - $scope.spree_user = SpreeUser.spree_user +Darkswarm.controller "SignupCtrl", ($scope, $http, $location, AuthenticationService) -> $scope.path = "/signup" - Navigation.paths.push $scope.path $scope.errors = email: null password: null - $scope.active = -> - $location.path() == $scope.path - - $scope.select = -> - Navigation.navigate($scope.path) - $scope.submit = -> $http.post("/user/spree_user", {spree_user: $scope.spree_user}).success (data)-> location.href = location.origin + location.pathname # Strips out hash fragments diff --git a/app/assets/javascripts/darkswarm/controllers/authentication_actions_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/authentication_actions_controller.js.coffee deleted file mode 100644 index e8716e750b..0000000000 --- a/app/assets/javascripts/darkswarm/controllers/authentication_actions_controller.js.coffee +++ /dev/null @@ -1,5 +0,0 @@ -Darkswarm.controller "AuthenticationActionsCtrl", ($scope, Navigation, storage, Sidebar) -> - $scope.Sidebar = Sidebar - - $scope.toggle = (path)-> - Navigation.navigate(path) diff --git a/app/assets/javascripts/darkswarm/controllers/authentication_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/authentication_controller.js.coffee new file mode 100644 index 0000000000..7c45fd53d1 --- /dev/null +++ b/app/assets/javascripts/darkswarm/controllers/authentication_controller.js.coffee @@ -0,0 +1,7 @@ +Darkswarm.controller "AuthenticationCtrl", ($scope, AuthenticationService, SpreeUser)-> + $scope.open = AuthenticationService.open + $scope.toggle = AuthenticationService.toggle + + $scope.spree_user = SpreeUser.spree_user + $scope.active = AuthenticationService.active + $scope.select = AuthenticationService.select diff --git a/app/assets/javascripts/darkswarm/controllers/hub_node_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/hub_node_controller.js.coffee index f17d985434..ea2503efbe 100644 --- a/app/assets/javascripts/darkswarm/controllers/hub_node_controller.js.coffee +++ b/app/assets/javascripts/darkswarm/controllers/hub_node_controller.js.coffee @@ -1,9 +1,9 @@ -Darkswarm.controller "HubNodeCtrl", ($scope, Navigation, $location, $anchorScroll, $templateCache, CurrentHub) -> +Darkswarm.controller "HubNodeCtrl", ($scope, HashNavigation, $location, $anchorScroll, $templateCache, CurrentHub) -> $scope.toggle = -> - Navigation.navigate $scope.hub.path + HashNavigation.toggle $scope.hub.hash $scope.open = -> - $location.path() == $scope.hub.path + HashNavigation.active $scope.hub.hash $scope.current = -> $scope.hub.id is CurrentHub.id diff --git a/app/assets/javascripts/darkswarm/controllers/login_sidebar_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/login_sidebar_controller.js.coffee deleted file mode 100644 index 63d31a8f3c..0000000000 --- a/app/assets/javascripts/darkswarm/controllers/login_sidebar_controller.js.coffee +++ /dev/null @@ -1,17 +0,0 @@ -Darkswarm.controller "LoginSidebarCtrl", ($scope, $http, $location, SpreeUser, Navigation) -> - $scope.spree_user = SpreeUser.spree_user - $scope.path = "/login" - Navigation.paths.push $scope.path - - $scope.active = -> - $location.path() == $scope.path - - $scope.select = -> - Navigation.navigate($scope.path) - - - $scope.submit = -> - $http.post("/user/spree_user/sign_in", {spree_user: $scope.spree_user}).success (data)-> - location.href = location.origin + location.pathname # Strips out hash fragments - .error (data) -> - $scope.errors = data.message diff --git a/app/assets/javascripts/darkswarm/controllers/producer_node_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/producer_node_controller.js.coffee new file mode 100644 index 0000000000..733e0d6798 --- /dev/null +++ b/app/assets/javascripts/darkswarm/controllers/producer_node_controller.js.coffee @@ -0,0 +1,9 @@ +Darkswarm.controller "ProducerNodeCtrl", ($scope, Navigation, $anchorScroll) -> + $scope.toggle = -> + Navigation.navigate $scope.producer.path + + $scope.open = -> + Navigation.active($scope.producer.path) + + if $scope.open() + $anchorScroll() diff --git a/app/assets/javascripts/darkswarm/controllers/producers_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/producers_controller.js.coffee new file mode 100644 index 0000000000..1a28b5b107 --- /dev/null +++ b/app/assets/javascripts/darkswarm/controllers/producers_controller.js.coffee @@ -0,0 +1,2 @@ +Darkswarm.controller "ProducersCtrl", ($scope, Producers) -> + $scope.Producers = Producers diff --git a/app/assets/javascripts/darkswarm/controllers/account_sidebar_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/sidebar/account_sidebar_controller.js.coffee similarity index 100% rename from app/assets/javascripts/darkswarm/controllers/account_sidebar_controller.js.coffee rename to app/assets/javascripts/darkswarm/controllers/sidebar/account_sidebar_controller.js.coffee diff --git a/app/assets/javascripts/darkswarm/controllers/sidebar_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/sidebar/sidebar_controller.js.coffee similarity index 100% rename from app/assets/javascripts/darkswarm/controllers/sidebar_controller.js.coffee rename to app/assets/javascripts/darkswarm/controllers/sidebar/sidebar_controller.js.coffee diff --git a/app/assets/javascripts/darkswarm/controllers/tmp_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/tmp_controller.js.coffee new file mode 100644 index 0000000000..8f173df154 --- /dev/null +++ b/app/assets/javascripts/darkswarm/controllers/tmp_controller.js.coffee @@ -0,0 +1,2 @@ +Darkswarm.controller "TmpCtrl", ($scope)-> + $scope.test = {foo: "bar"} diff --git a/app/assets/javascripts/darkswarm/darkswarm.js.coffee b/app/assets/javascripts/darkswarm/darkswarm.js.coffee index 9382f70d46..9abbfb01a5 100644 --- a/app/assets/javascripts/darkswarm/darkswarm.js.coffee +++ b/app/assets/javascripts/darkswarm/darkswarm.js.coffee @@ -5,7 +5,7 @@ window.Darkswarm = angular.module("Darkswarm", ["ngResource", 'infinite-scroll', 'angular-flash.service', 'templates', - 'backstretch']).config ($httpProvider, $tooltipProvider) -> + 'backstretch']).config ($httpProvider, $tooltipProvider, $locationProvider) -> $httpProvider.defaults.headers.post['X-CSRF-Token'] = $('meta[name="csrf-token"]').attr('content') $httpProvider.defaults.headers.put['X-CSRF-Token'] = $('meta[name="csrf-token"]').attr('content') $httpProvider.defaults.headers['common']['X-Requested-With'] = 'XMLHttpRequest' diff --git a/app/assets/javascripts/darkswarm/filters/dates.js.coffee b/app/assets/javascripts/darkswarm/filters/dates.js.coffee index 9091c80c7c..d223411e99 100644 --- a/app/assets/javascripts/darkswarm/filters/dates.js.coffee +++ b/app/assets/javascripts/darkswarm/filters/dates.js.coffee @@ -7,4 +7,4 @@ Darkswarm.filter "sensible_timeframe", (date_in_wordsFilter)-> if moment().add('days', 2) < moment(date) "Orders open" else - "Closing in #{date_in_wordsFilter(date)}" + "Closing #{date_in_wordsFilter(date)}" diff --git a/app/assets/javascripts/darkswarm/filters/filter_hubs.js.coffee b/app/assets/javascripts/darkswarm/filters/filter_hubs.js.coffee index 5b3084caf5..b6adb84508 100644 --- a/app/assets/javascripts/darkswarm/filters/filter_hubs.js.coffee +++ b/app/assets/javascripts/darkswarm/filters/filter_hubs.js.coffee @@ -1,9 +1,9 @@ -Darkswarm.filter 'filterHubs', -> +Darkswarm.filter 'hubs', (Matcher)-> (hubs, text) -> hubs ||= [] text ?= "" - match = (matched)-> - matched.toLowerCase().indexOf(text.toLowerCase()) != -1 - hubs.filter (hub)-> - match(hub.name) or match(hub.address.zipcode) or match(hub.address.city) + hubs.filter (hub)=> + Matcher.match [ + hub.name, hub.address.zipcode, hub.address.city, hub.address.state + ], text diff --git a/app/assets/javascripts/darkswarm/filters/filter_producers.js.coffee b/app/assets/javascripts/darkswarm/filters/filter_producers.js.coffee new file mode 100644 index 0000000000..bbbb82fa30 --- /dev/null +++ b/app/assets/javascripts/darkswarm/filters/filter_producers.js.coffee @@ -0,0 +1,6 @@ +Darkswarm.filter 'filterProducers', (hubsFilter)-> + (producers, text) -> + producers ||= [] + text ?= "" + + hubsFilter(producers, text) diff --git a/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee b/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee new file mode 100644 index 0000000000..44a0819b7a --- /dev/null +++ b/app/assets/javascripts/darkswarm/services/authentication_service.js.coffee @@ -0,0 +1,24 @@ +Darkswarm.factory "AuthenticationService", (Navigation, $modal, $location)-> + new class AuthenticationService + selectedPath: "/login" + + constructor: -> + if $location.path() in ["/login", "/signup", "/forgot"] + @open() + + open: (path = false)=> + @modalInstance = $modal.open + templateUrl: 'authentication.html' + @modalInstance.result.then @close, @close + @selectedPath = path || @selectedPath + Navigation.navigate @selectedPath + + + select: (path)=> + @selectedPath = path + Navigation.navigate @selectedPath + + active: Navigation.active + + close: -> + Navigation.navigate "/" diff --git a/app/assets/javascripts/darkswarm/services/hash_navigation.js.coffee b/app/assets/javascripts/darkswarm/services/hash_navigation.js.coffee new file mode 100644 index 0000000000..d6fd3525ee --- /dev/null +++ b/app/assets/javascripts/darkswarm/services/hash_navigation.js.coffee @@ -0,0 +1,17 @@ +Darkswarm.factory 'HashNavigation', ($location) -> + new class HashNavigation + hash: null + + active: (hash)-> + $location.hash() == hash + + navigate: (hash)-> + @hash = hash + $location.hash(@hash) + + toggle: (hash = false)-> + @hash = hash || @hash + if $location.hash() == @hash + $location.hash("") + else + @navigate(hash) diff --git a/app/assets/javascripts/darkswarm/services/matcher.js.coffee b/app/assets/javascripts/darkswarm/services/matcher.js.coffee new file mode 100644 index 0000000000..679c30f4c7 --- /dev/null +++ b/app/assets/javascripts/darkswarm/services/matcher.js.coffee @@ -0,0 +1,5 @@ +Darkswarm.factory "Matcher", -> + new class Matcher + match: (properties, text)-> + properties.some (prop)-> + prop.toLowerCase().indexOf(text.toLowerCase()) != -1 diff --git a/app/assets/javascripts/darkswarm/services/navigation.js.coffee b/app/assets/javascripts/darkswarm/services/navigation.js.coffee index 923aa9cf0d..cf64cd1666 100644 --- a/app/assets/javascripts/darkswarm/services/navigation.js.coffee +++ b/app/assets/javascripts/darkswarm/services/navigation.js.coffee @@ -1,14 +1,21 @@ Darkswarm.factory 'Navigation', ($location) -> new class Navigation - paths: [] path: null - navigate: (path = false)-> - @path = path || @path || @paths[0] + active: (path)-> + $location.path() == path + + navigate: (path)=> + @path = path + $location.path(@path) + + toggle: (path = false)=> + console.log "toggling" + @path = path || @path if $location.path() == @path $location.path("/") else - $location.path(@path) + @navigate(path) go: (path)-> window.location.pathname = path diff --git a/app/assets/javascripts/darkswarm/services/order.js.coffee b/app/assets/javascripts/darkswarm/services/order.js.coffee index 3c86afac9f..63ea6ee6c7 100644 --- a/app/assets/javascripts/darkswarm/services/order.js.coffee +++ b/app/assets/javascripts/darkswarm/services/order.js.coffee @@ -8,7 +8,7 @@ Darkswarm.factory 'Order', ($resource, Product, order, $http, CheckoutFormState, @order.shipping_method_id ||= parseInt(Object.keys(@order.shipping_methods)[0]) submit: -> - $http.put('/shop/checkout', {order: @preprocess()}).success (data, status)=> + $http.put('/checkout', {order: @preprocess()}).success (data, status)=> Navigation.go data.path .error (response, status)=> @errors = response.errors diff --git a/app/assets/javascripts/darkswarm/services/producers.js.coffee b/app/assets/javascripts/darkswarm/services/producers.js.coffee new file mode 100644 index 0000000000..62a5087642 --- /dev/null +++ b/app/assets/javascripts/darkswarm/services/producers.js.coffee @@ -0,0 +1,4 @@ +Darkswarm.factory 'Producers', (producers) -> + new class Producers + constructor: -> + @producers = producers diff --git a/app/assets/javascripts/foundation4/foundation.scss b/app/assets/javascripts/foundation4/foundation.scss deleted file mode 100755 index d9a6e98582..0000000000 --- a/app/assets/javascripts/foundation4/foundation.scss +++ /dev/null @@ -1,43 +0,0 @@ -// Make sure the charset is set appropriately -@charset "UTF-8"; - -// This includes all of the foundation global elements that are needed to work with any of the other files. -@import "foundation4/foundation/variables"; - -// Foundation Components -@import - "foundation4/foundation/components/global", - "foundation4/foundation/components/grid", - "foundation4/foundation/components/visibility", - "foundation4/foundation/components/block-grid", - "foundation4/foundation/components/type", - "foundation4/foundation/components/buttons", - "foundation4/foundation/components/forms", - "foundation4/foundation/components/button-groups", - "foundation4/foundation/components/dropdown-buttons", - "foundation4/foundation/components/split-buttons", - "foundation4/foundation/components/flex-video", - "foundation4/foundation/components/section", - "foundation4/foundation/components/top-bar", - "foundation4/foundation/components/orbit", - "foundation4/foundation/components/reveal", - "foundation4/foundation/components/joyride", - "foundation4/foundation/components/clearing", - "foundation4/foundation/components/alert-boxes", - "foundation4/foundation/components/breadcrumbs", - "foundation4/foundation/components/custom-forms", - "foundation4/foundation/components/keystrokes", - "foundation4/foundation/components/labels", - "foundation4/foundation/components/inline-lists", - "foundation4/foundation/components/pagination", - "foundation4/foundation/components/panels", - "foundation4/foundation/components/pricing-tables", - "foundation4/foundation/components/progress-bars", - "foundation4/foundation/components/side-nav", - "foundation4/foundation/components/sub-nav", - "foundation4/foundation/components/switch", - "foundation4/foundation/components/magellan", - "foundation4/foundation/components/tables", - "foundation4/foundation/components/thumbs", - "foundation4/foundation/components/tooltips", - "foundation4/foundation/components/dropdown"; diff --git a/app/assets/javascripts/foundation4/foundation/_variables.scss b/app/assets/javascripts/foundation4/foundation/_variables.scss deleted file mode 100755 index 797474c676..0000000000 --- a/app/assets/javascripts/foundation4/foundation/_variables.scss +++ /dev/null @@ -1,1325 +0,0 @@ -// -// Foundation Variables -// - -// The default font-size is set to 100% of the browser style sheet (usually 16px) -// for compatibility with browser-based text zoom or user-set defaults. -$base-font-size: 100% !default; - -// $base-line-height is 24px while $base-font-size is 16px -// $base-line-height: 150%; - -// This is the default html and body font-size for the base em value. - -// Since the typical default browser font-size is 16px, that makes the calculation for grid size. -// If you want your base font-size to be a different size and not have it effect grid size too, -// set the value of $em-base to $base-font-size ($em-base: $base-font-size;) -$em-base: 16px !default; - -// It strips the unit of measure and returns it -@function strip-unit($num) { - @return $num / ($num * 0 + 1); -} - -// Converts "px" to "em" using the ($)em-base -@function convert-to-em($value, $base-value: $em-base) { - $value: strip-unit($value) / strip-unit($base-value) * 1em; - @if ($value == 0em) { $value: 0; } // Turn 0em into 0 - @return $value; -} - -// Working in ems is annoying. Think in pixels by using this handy function, em-calc(#) -// Just enter the number, no need to mention "px" -@function em-calc($values, $base-value: $em-base) { - $max: length($values); // Get the total number of parameters passed - - // If there is only 1 parameter, then return it as an integer. - // This is done because a list can't be multiplied or divided even if it contains a single value - @if $max == 1 { @return convert-to-em(nth($values, 1), $base-value); } - - $emValues: (); // This will eventually store the converted $values in a list - @for $i from 1 through $max { - $emValues: append($emValues, convert-to-em(nth($values, $i), $base-value)); - } - @return $emValues; -} - -//Retaining this for backward compatability - -@function emCalc($pxWidth) { - @return $pxWidth / $em-base * 1em; -} - -// Maybe you want to create rems with pixels -// $rem-base: 0.625 !default; //Set the value corresponding to body font size. In this case, you should set as: body {font-size: 62.5%;} -// @function rem-calc($pxWidth) { -// @return $pxWidth / $rem-base * 1rem; -// } - -// Change whether or not you include browser prefixes -// $experimental: true; - -// Various global styles - -$default-float: left; - -// $body-bg: #fff; -// $body-font-color: #222; -// $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; -// $body-font-weight: normal; -// $body-font-style: normal; - -// Font-smoothing - -// $font-smoothing: antialiased; - -// Text direction settings - -// $text-direction: ltr; - -// Colors - -// $primary-color: #2ba6cb; -// $secondary-color: #e9e9e9; -// $alert-color: #c60f13; -// $success-color: #5da423; - -// Make sure border radius matches unless we want it different. - -// $global-radius: 3px; -// $global-rounded: 1000px; - -// Inset shadow shiny edges and depressions. - -// $shiny-edge-size: 0 1px 0; -// $shiny-edge-color: rgba(#fff, .5); -// $shiny-edge-active-color: rgba(#000, .2); - -// Control whether or not CSS classes come through in the CSS files. - -// $include-html-classes: true; -// $include-print-styles: true; -// $include-html-global-classes: $include-html-classes; -// $include-html-inline-list-classes: $include-html-classes; -// $include-html-type-classes: $include-html-classes; -// $include-html-grid-classes: $include-html-classes; -// $include-html-visibility-classes: $include-html-classes; -// $include-html-button-classes: $include-html-classes; -// $include-html-form-classes: $include-html-classes; -// $include-html-custom-form-classes: $include-html-classes; -// $include-html-media-classes: $include-html-classes; -// $include-html-section-classes: $include-html-classes; -// $include-html-orbit-classes: $include-html-classes; -// $include-html-reveal-classes: $include-html-classes; -// $include-html-joyride-classes: $include-html-classes; -// $include-html-clearing-classes: $include-html-classes; -// $include-html-alert-classes: $include-html-classes; -// $include-html-nav-classes: $include-html-classes; -// $include-html-top-bar-classes: $include-html-classes; -// $include-html-label-classes: $include-html-classes; -// $include-html-panel-classes: $include-html-classes; -// $include-html-pricing-classes: $include-html-classes; -// $include-html-progress-classes: $include-html-classes; -// $include-html-magellan-classes: $include-html-classes; -// $include-html-tooltip-classes: $include-html-classes; - -// Media Queries - -// $small-screen: 768px; -// $medium-screen: 1280px; -// $large-screen: 1440px; - -// $screen: "only screen"; -// $small: "only screen and (min-width: #{$small-screen})"; -// $medium: "only screen and (min-width: #{$medium-screen})"; -// $large: "only screen and (min-width: #{$large-screen})"; -// $landscape: "only screen and (orientation: landscape)"; -// $portrait: "only screen and (orientation: portrait)"; - -//// Cursors - -//Custom use example -> $cursor-default-value: url(http://cursors-site.net/path/to/custom/cursor/default.cur),progress; - -// $cursor-crosshair-value: "crosshair"; -// $cursor-default-value: "default"; -// $cursor-pointer-value: "pointer"; -// $cursor-help-value: "help"; - -// -// Grid Variables -// - -// $row-width: em-calc(1000); -// $column-gutter: em-calc(30); -// $total-columns: 12; - -// -// Block Grid Variables -// - -// We use this to control the maximum number of block grid elements per row - -// $block-grid-elements: 12; -// $block-grid-default-spacing: em-calc(20); - -// Enables media queries for block-grid classes. Set to false if writing semantic HTML. - -// $block-grid-media-queries: true; - -// -// Typography Variables -// - -// Control header font styles - -// $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; -// $header-font-weight: bold; -// $header-font-style: normal; -// $header-font-color: #222; -// $header-line-height: 1.4; -// $header-top-margin: .2em; -// $header-bottom-margin: .5em; -// $header-text-rendering: optimizeLegibility; - -// Control header font sizes - -// $h1-font-size: em-calc(44); -// $h2-font-size: em-calc(37); -// $h3-font-size: em-calc(27); -// $h4-font-size: em-calc(23); -// $h5-font-size: em-calc(18); -// $h6-font-size: 1em; - -// Control how subheaders are styled. - -// $subheader-line-height: 1.4; -// $subheader-font-color: lighten($header-font-color, 30%); -// $subheader-font-weight: 300; -// $subheader-top-margin: .2em; -// $subheader-bottom-margin: .5em; - -// A general styling - -// $small-font-size: 60%; -// $small-font-color: lighten($header-font-color, 30%); - -// Style paragraphs - -// $paragraph-font-family: inherit; -// $paragraph-font-weight: normal; -// $paragraph-font-size: 1em; -// $paragraph-line-height: 1.6; -// $paragraph-margin-bottom: em-calc(20); -// $paragraph-aside-font-size: em-calc(14); -// $paragraph-aside-line-height: 1.35; -// $paragraph-aside-font-style: italic; -// $paragraph-text-rendering: optimizeLegibility; - -// Style tags - -// $code-color: darken($alert-color, 15%); -// $code-font-family: Consolas, 'Liberation Mono', Courier, monospace; -// $code-font-weight: bold; - -// Style anchors - -// $anchor-text-decoration: none; -// $anchor-font-color: $primary-color; -// $anchor-font-color-hover: darken($primary-color, 5%); - -// Style the
element - -// $hr-border-width: 1px; -// $hr-border-style: solid; -// $hr-border-color: #ddd; -// $hr-margin: em-calc(20); - -// Style lists - -// $list-style-position: outside; -// $list-side-margin: 0; -// $list-nested-margin: em-calc(20); -// $definition-list-header-weight: bold; -// $definition-list-header-margin-bottom: .3em; -// $definition-list-margin-bottom: em-calc(12); - -// Style blockquotes - -// $blockquote-font-color: lighten($header-font-color, 30%); -// $blockquote-padding: em-calc(9, 20, 0, 19); -// $blockquote-border: 1px solid #ddd; -// $blockquote-cite-font-size: em-calc(13); -// $blockquote-cite-font-color: lighten($header-font-color, 20%); -// $blockquote-cite-link-color: $blockquote-cite-font-color; - -// Acronym styles - -// $acronym-underline: 1px dotted #ddd; - -// Control padding and margin - -// $microformat-padding: em-calc(10 12); -// $microformat-margin: em-calc(0 0 20 0); - -// Control the border styles - -// $microformat-border-width: 1px; -// $microformat-border-style: solid; -// $microformat-border-color: #ddd; - -// Control full name font styles - -// $microformat-fullname-font-weight: bold; -// $microformat-fullname-font-size: em-calc(15); - -// Control the summary font styles - -// $microformat-summary-font-weight: bold; - -// Control abbr padding -// $microformat-abbr-padding: em-calc(0 1); - -// Control abbr font styles - -// $microformat-abbr-font-weight: bold; -// $microformat-abbr-font-decoration: none; - -// -// Form Variables -// - -// We use this to set the base for lots of form spacing and positioning styles - -// $form-spacing: em-calc(16); - -// We use these to style the labels in different ways - -// $form-label-pointer: pointer; -// $form-label-font-size: em-calc(14); -// $form-label-font-weight: 500; -// $form-label-font-color: lighten(#000, 30%); -// $form-label-bottom-margin: em-calc(3); -// $input-font-family: inherit; -// $input-font-color: rgba(0,0,0,0.75); -// $input-font-size: em-calc(14); -// $input-bg-color: #fff; -// $input-focus-bg-color: darken(#fff, 2%); -// $input-border-color: darken(#fff, 20%); -// $input-focus-border-color: darken(#fff, 40%); -// $input-border-style: solid; -// $input-border-width: 1px; -// $input-disabled-bg: #ddd; -// $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); -// $input-include-glowing-effect: true; - -// We use these to style the fieldset border and spacing. - -// $fieldset-border-style: solid; -// $fieldset-border-width: 1px; -// $fieldset-border-color: #ddd; -// $fieldset-padding: em-calc(20); -// $fieldset-margin: em-calc(18 0); - -// We use these to style the legends when you use them - -// $legend-bg: #fff; -// $legend-font-weight: bold; -// $legend-padding: em-calc(0 3); - -// We use these to style the prefix and postfix input elements - -// $input-prefix-bg: darken(#fff, 5%); -// $input-prefix-border-color: darken(#fff, 20%); -// $input-prefix-border-size: 1px; -// $input-prefix-border-type: solid; -// $input-prefix-overflow: hidden; -// $input-prefix-font-color: #333; -// $input-prefix-font-color-alt: #fff; - -// We use these to style the error states for inputs and labels - -// $input-error-message-padding: em-calc(6 4); -// $input-error-message-top: 0; -// $input-error-message-font-size: em-calc(12); -// $input-error-message-font-weight: bold; -// $input-error-message-font-color: #fff; -// $input-error-message-font-color-alt: #333; - -// We use this to style the glowing effect of inputs when focused - -// $glowing-effect-fade-time: 0.45s; -// $glowing-effect-color: $input-focus-border-color; - -// -// Button Variables -// - -// We use these to build padding for buttons. - -// $button-med: em-calc(12); -// $button-tny: em-calc(7); -// $button-sml: em-calc(9); -// $button-lrg: em-calc(16); - -// We use this to control the display property. - -// $button-display: inline-block; -// $button-margin-bottom: em-calc(20); - -// We use these to control button text styles. - -// $button-font-family: inherit; -// $button-font-color: #fff; -// $button-font-color-alt: #333; -// $button-font-med: em-calc(16); -// $button-font-tny: em-calc(11); -// $button-font-sml: em-calc(13); -// $button-font-lrg: em-calc(20); -// $button-font-weight: bold; -// $button-font-align: center; - -// We use these to control various hover effects. - -// $button-function-factor: 10%; - -// We use these to control button border styles. - -// $button-border-width: 1px; -// $button-border-style: solid; - -// We use this to set the default radius used throughout the core. - -// $button-radius: $global-radius; -// $button-round: $global-rounded; - -// We use this to set default opacity for disabled buttons. - -// $button-disabled-opacity: 0.6; - -// -// Button Groups -// - -// Sets the margin for the right side by default, and the left margin if right-to-left direction is used - -// $button-bar-margin-opposite: em-calc(10); - -// -// Dropdown Button Variables -// - -// We use these to set the color of the pip in dropdown buttons - -// $dropdown-button-pip-color: #fff; -// $dropdown-button-pip-color-alt: #333; - -// We use these to style tiny dropdown buttons - -// $dropdown-button-padding-tny: $button-tny * 5; -// $dropdown-button-pip-size-tny: $button-tny; -// $dropdown-button-pip-opposite-tny: $button-tny * 2; -// $dropdown-button-pip-top-tny: -$button-tny / 2 + em-calc(1); - -// We use these to style small dropdown buttons - -// $dropdown-button-padding-sml: $button-sml * 5; -// $dropdown-button-pip-size-sml: $button-sml; -// $dropdown-button-pip-opposite-sml: $button-sml * 2; -// $dropdown-button-pip-top-sml: -$button-sml / 2 + em-calc(1); - -// We use these to style medium dropdown buttons - -// $dropdown-button-padding-med: $button-med * 4 + em-calc(3); -// $dropdown-button-pip-size-med: $button-med - em-calc(3); -// $dropdown-button-pip-opposite-med: $button-med * 2; -// $dropdown-button-pip-top-med: -$button-med / 2 + em-calc(2); - -// We use these to style large dropdown buttons - -// $dropdown-button-padding-lrg: $button-lrg * 4; -// $dropdown-button-pip-size-lrg: $button-lrg - em-calc(6); -// $dropdown-button-pip-opposite-lrg: $button-lrg + em-calc(12); -// $dropdown-button-pip-top-lrg: -$button-lrg / 2 + em-calc(3); - -// -// Split Button Variables -// - -// We use these to control different shared styles for Split Buttons - -// $split-button-function-factor: 15%; -// $split-button-pip-color: #fff; -// $split-button-pip-color-alt: #333; -// $split-button-active-bg-tint: rgba(0,0,0,0.1); - -// We use these to control tiny split buttons - -// $split-button-padding-tny: $button-tny * 9; -// $split-button-span-width-tny: $button-tny * 6.5; -// $split-button-pip-size-tny: $button-tny; -// $split-button-pip-top-tny: $button-tny * 2; -// $split-button-pip-default-float-tny: em-calc(-5); - -// We use these to control small split buttons - -// $split-button-padding-sml: $button-sml * 7; -// $split-button-span-width-sml: $button-sml * 5; -// $split-button-pip-size-sml: $button-sml; -// $split-button-pip-top-sml: $button-sml * 1.5; -// $split-button-pip-default-float-sml: em-calc(-9); - -// We use these to control medium split buttons - -// $split-button-padding-med: $button-med * 6.4; -// $split-button-span-width-med: $button-med * 4; -// $split-button-pip-size-med: $button-med - em-calc(3); -// $split-button-pip-top-med: $button-med * 1.5; -// $split-button-pip-default-float-med: em-calc(-9); - -// We use these to control large split buttons - -// $split-button-padding-lrg: $button-lrg * 6; -// $split-button-span-width-lrg: $button-lrg * 3.75; -// $split-button-pip-size-lrg: $button-lrg - em-calc(6); -// $split-button-pip-top-lrg: $button-lrg + em-calc(5); -// $split-button-pip-default-float-lrg: em-calc(-9); - -// -// Alert Box Variables -// - -// We use this to control alert padding. - -// $alert-padding-top: em-calc(11); -// $alert-padding-default-float: $alert-padding-top; -// $alert-padding-opposite-direction: $alert-padding-top + em-calc(10); -// $alert-padding-bottom: $alert-padding-top + em-calc(1); - -// We use these to control text style. - -// $alert-font-weight: bold; -// $alert-font-size: em-calc(14); -// $alert-font-color: #fff; -// $alert-font-color-alt: darken($secondary-color, 60%); - -// We use this for close hover effect. - -// $alert-function-factor: 10%; - -// We use these to control border styles. - -// $alert-border-style: solid; -// $alert-border-width: 1px; -// $alert-border-color: darken($primary-color, $alert-function-factor); -// $alert-bottom-margin: em-calc(20); - -// We use these to style the close buttons - -// $alert-close-color: #333; -// $alert-close-position: em-calc(5); -// $alert-close-font-size: em-calc(22); -// $alert-close-opacity: 0.3; -// $alert-close-opacity-hover: 0.5; -// $alert-close-padding: 5px 4px 4px; - -// We use this to control border radius - -// $alert-radius: $global-radius; - - -// -// Breadcrumb Variables -// - -// We use this to set the background color for the breadcrumb container. - -// $crumb-bg: lighten($secondary-color, 5%); - -// We use these to set the padding around the breadcrumbs. - -// $crumb-padding: em-calc(9 14 9); -// $crumb-side-padding: em-calc(12); - -// We use these to control border styles. - -// $crumb-function-factor: 10%; -// $crumb-border-size: 1px; -// $crumb-border-style: solid; -// $crumb-border-color: darken($crumb-bg, $crumb-function-factor); -// $crumb-radius: $global-radius; - -// We use these to set various text styles for breadcrumbs. - -// $crumb-font-size: em-calc(11); -// $crumb-font-color: $primary-color; -// $crumb-font-color-current: #333; -// $crumb-font-color-unavailable: #999; -// $crumb-font-transform: uppercase; -// $crumb-link-decor: underline; - -// We use these to control the slash between breadcrumbs - -// $crumb-slash-color: #aaa; -// $crumb-slash: "/"; - -// -// Clearing Variables -// - -// We use these to set the background colors for parts of Clearing. - -// $clearing-bg: #111; -// $clearing-caption-bg: $clearing-bg; -// $clearing-carousel-bg: #111; -// $clearing-img-bg: $clearing-bg; - -// We use these to style the close button - -// $clearing-close-color: #fff; -// $clearing-close-size: 40px; - -// We use these to style the arrows - -// $clearing-arrow-size: 16px; -// $clearing-arrow-color: $clearing-close-color; - -// We use these to style captions - -// $clearing-caption-font-color: #fff; -// $clearing-caption-padding: 10px 30px; - -// We use these to make the image and carousel height and style - -// $clearing-active-img-height: 75%; -// $clearing-carousel-height: 150px; -// $clearing-carousel-thumb-width: 175px; -// $clearing-carousel-thumb-active-border: 4px solid rgb(255,255,255); - -// -// Custom Form Variables -// - -// We use these to control the basic form styles input styles - -// $custom-form-border-color: #ccc; -// $custom-form-border-size: 1px; -// $custom-form-bg: #fff; -// $custom-form-bg-disabled: #ddd; -// $custom-form-input-size: 16px; -// $custom-form-check-color: #222; -// $custom-form-check-size: 16px; -// $custom-form-radio-size: 8px; -// $custom-form-checkbox-radius: 0; - -// We use these to style the custom select form element. - -// $custom-select-bg: #fff; -// $custom-select-fade-to-color: #f3f3f3; -// $custom-select-border-color: #ddd; -// $custom-select-triangle-color: #aaa; -// $custom-select-triangle-color-open: #222; -// $custom-select-height: em-calc(13) + ($form-spacing * 1.5); -// $custom-select-margin-bottom: em-calc(20); -// $custom-select-font-color-selected: #141414; -// $custom-select-disabled-color: #888; - -// We use these to control the style of the custom select dropdown element. - -// $custom-dropdown-height: 200px; -// $custom-dropdown-bg: #fff; -// $custom-dropdown-border-color: darken(#fff, 20%); -// $custom-dropdown-border-width: 1px; -// $custom-dropdown-border-style: solid; -// $custom-dropdown-font-color: #555; -// $custom-dropdown-font-size: em-calc(14); -// $custom-dropdown-color-selected: #eeeeee; -// $custom-dropdown-font-color-selected: #000; -// $custom-dropdown-shadow: 0 2px 2px 0 rgba(0,0,0,0.1); -// $custom-dropdown-offset-top: auto; -// $custom-dropdown-list-padding: em-calc(4); -// $custom-dropdown-default-float-padding: em-calc(6); -// $custom-dropdown-opposite-padding: em-calc(38); -// $custom-dropdown-list-item-min-height: em-calc(24); -// $custom-dropdown-width-small: 134px; -// $custom-dropdown-width-medium: 254px; -// $custom-dropdown-width-large: 434px; - -// -// Dropdown Variables -// - -// We use these to controls height and width styles. - -// $f-dropdown-max-width: 200px; -// $f-dropdown-height: auto; -// $f-dropdown-max-height: none; -// $f-dropdown-margin-top: 2px; - -// We use this to control the background color - -// $f-dropdown-bg: #fff; - -// We use this to set the border styles for dropdowns. - -// $f-dropdown-border-style: solid; -// $f-dropdown-border-width: 1px; -// $f-dropdown-border-color: darken(#fff, 20%); - -// We use these to style the triangle pip. - -// $f-dropdown-triangle-size: 6px; -// $f-dropdown-triangle-color: #fff; -// $f-dropdown-triangle-side-offset: 10px; - -// We use these to control styles for the list elements. - -// $f-dropdown-list-style: none; -// $f-dropdown-font-color: #555; -// $f-dropdown-font-size: em-calc(14); -// $f-dropdown-list-padding: em-calc(5 10); -// $f-dropdown-line-height: em-calc(18); -// $f-dropdown-list-hover-bg: #eeeeee; -// $dropdown-mobile-default-float: 0; - -// We use this to control the styles for when the dropdown has custom content. - -// $f-dropdown-content-padding: em-calc(20); - -// -// Flex Video Variables -// - -// We use these to control video container padding and margins - -// $flex-video-padding-top: em-calc(25); -// $flex-video-padding-bottom: 67.5%; -// $flex-video-margin-bottom: em-calc(16); - -// We use this to control widescreen bottom padding - -// $flex-video-widescreen-padding-bottom: 57.25%; - -// -// Inline List Variables -// - -// We use this to control the margins and padding of the inline list. - -// $inline-list-top-margin: 0; -// $inline-list-opposite-margin: 0; -// $inline-list-bottom-margin: em-calc(17); -// $inline-list-default-float-margin: em-calc(-22); - -// $inline-list-padding: 0; - -// We use this to control the overflow of the inline list. - -// $inline-list-overflow: hidden; - -// We use this to control the list items - -// $inline-list-display: block; - -// We use this to control any elments within list items - -// $inline-list-children-display: block; - -// -// Joyride Variables -// - -// Controlling default Joyride styles - -// $joyride-tip-bg: rgb(0,0,0); -// $joyride-tip-default-width: 300px; -// $joyride-tip-padding: em-calc(18 20 24); -// $joyride-tip-border: solid 1px #555; -// $joyride-tip-radius: 4px; -// $joyride-tip-position-offset: 22px; - -// Here, we're setting the tip dont styles - -// $joyride-tip-font-color: #fff; -// $joyride-tip-font-size: em-calc(14); -// $joyride-tip-header-weight: bold; - -// This changes the nub size - -// $joyride-tip-nub-size: 14px; - -// This adjusts the styles for the timer when its enabled - -// $joyride-tip-timer-width: 50px; -// $joyride-tip-timer-height: 3px; -// $joyride-tip-timer-color: #666; - -// This changes up the styles for the close button - -// $joyride-tip-close-color: #777; -// $joyride-tip-close-size: 30px; -// $joyride-tip-close-weight: normal; - -// When Joyride is filling the screen, we use this style for the bg - -// $joyride-screenfill: rgba(0,0,0,0.5); - -// -// Keystroke Variables -// - -// We use these to control text styles. - -// $keystroke-font: "Consolas", "Menlo", "Courier", monospace; -// $keystroke-font-size: em-calc(14); -// $keystroke-font-color: #222; -// $keystroke-font-color-alt: #fff; -// $keystroke-function-factor: 7%; - -// We use this to control keystroke padding. - -// $keystroke-padding: em-calc(2 4 0); - -// We use these to control background and border styles. - -// $keystroke-bg: darken(#fff, $keystroke-function-factor); -// $keystroke-border-style: solid; -// $keystroke-border-width: 1px; -// $keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor); -// $keystroke-radius: $global-radius; - -// -// Label Variables -// - -// We use these to style the labels - -// $label-padding: em-calc(3 10 4); -// $label-radius: $global-radius; - -// We use these to style the label text - -// $label-font-sizing: em-calc(14); -// $label-font-weight: bold; -// $label-font-color: #333; -// $label-font-color-alt: #fff; - -// -// Magellan Variables -// - -// $magellan-bg: #fff; -// $magellan-padding: 10px; - -// -// Orbit Settings -// - -// We use these to control the caption styles - -// $orbit-container-bg: #f5f5f5; -// $orbit-caption-bg: rgba(0,0,0,0.6); -// $orbit-caption-font-color: #fff; -// $orbit-caption-font-size: emCalc(14); -// $orbit-caption-position: "bottom"; // Supported values: "bottom", "under" -// $orbit-caption-padding: emCalc(10,14); -// $orbit-caption-height: auto; - -// We use these to control the left/right nav styles - -// $orbit-nav-bg: rgba(0,0,0,0.6); -// $orbit-nav-bg-hover: rgba(0,0,0,0.6); -// $orbit-nav-arrow-color: #fff; -// $orbit-nav-arrow-color-hover: #ccc; - -// We use these to control the timer styles - -// $orbit-timer-bg: rgba(0,0,0,0.6); -// $orbit-timer-show-progress-bar: true; - -// We use these to control the bullet nav styles - -// $orbit-bullet-nav-color: #999; -// $orbit-bullet-nav-color-active: #555; -// $orbit-bullet-radius: emCalc(18); - -// We use these to controls the style of slide numbers - -// $orbit-slide-number-bg: rgba(0,0,0,0); -// $orbit-slide-number-font-color: #fff; -// $orbit-slide-number-padding: em-calc(5); - -// Graceful Loading Wrapper and preloader - -// $wrapper-class: "slideshow-wrapper"; -// $preloader-class: "preloader"; - -// -// Pagination Variables -// - -// We use these to control the pagination container - -// $pagination-height: em-calc(24); -// $pagination-margin: em-calc(-5); - -// We use these to set the list-item properties - -// $pagination-li-float: $default-float; -// $pagination-li-height: em-calc(24); -// $pagination-li-font-color: #222; -// $pagination-li-font-size: em-calc(14); -// $pagination-li-margin: em-calc(5); - -// We use these for the pagination anchor links - -// $pagination-link-pad: em-calc(1 7 1); -// $pagination-link-font-color: #999; -// $pagination-link-active-bg: darken(#fff, 10%); - -// We use these for disabled anchor links - -// $pagination-link-unavailable-cursor: default; -// $pagination-link-unavailable-font-color: #999; -// $pagination-link-unavailable-bg-active: transparent; - -// We use these for currently selected anchor links - -// $pagination-link-current-background: $primary-color; -// $pagination-link-current-font-color: #fff; -// $pagination-link-current-font-weight: bold; -// $pagination-link-current-cursor: default; -// $pagination-link-current-active-bg: $primary-color; - -// -// Panel Variables -// - -// We use these to control the background and border styles - -// $panel-bg: darken(#fff, 5%); -// $panel-border-style: solid; -// $panel-border-size: 1px; - -// We use this % to control how much we darken things on hover - -// $panel-function-factor: 10%; -// $panel-border-color: darken($panel-bg, $panel-function-factor); - -// We use these to set default inner padding and bottom margin - -// $panel-margin-bottom: em-calc(20); -// $panel-padding: em-calc(20); - -// We use these to set default font colors - -// $panel-font-color: #333; -// $panel-font-color-alt: #fff; - -// $panel-header-adjust: true; - -// -// Pricing Table Variables -// - -// We use this to control the border color - -// $price-table-border: solid 1px #ddd; - -// We use this to control the bottom margin of the pricing table - -// $price-table-margin-bottom: em-calc(20); - -// We use these to control the title styles - -// $price-title-bg: #ddd; -// $price-title-padding: em-calc(15 20); -// $price-title-align: center; -// $price-title-color: #333; -// $price-title-weight: bold; -// $price-title-size: em-calc(16); - -// We use these to control the price styles - -// $price-money-bg: #eee; -// $price-money-padding: em-calc(15, 20); -// $price-money-align: center; -// $price-money-color: #333; -// $price-money-weight: normal; -// $price-money-size: em-calc(20); - -// We use these to control the description styles - -// $price-bg: #fff; -// $price-desc-color: #777; -// $price-desc-padding: em-calc(15); -// $price-desc-align: center; -// $price-desc-font-size: em-calc(12); -// $price-desc-weight: normal; -// $price-desc-line-height: 1.4; -// $price-desc-bottom-border: dotted 1px #ddd; - -// We use these to control the list item styles - -// $price-item-color: #333; -// $price-item-padding: em-calc(15); -// $price-item-align: center; -// $price-item-font-size: em-calc(14); -// $price-item-weight: normal; -// $price-item-bottom-border: dotted 1px #ddd; - -// We use these to control the CTA area styles - -// $price-cta-bg: #f5f5f5; -// $price-cta-align: center; -// $price-cta-padding: em-calc(20 20 0); - -// -// Progress Bar Variables -// - -// We use this to se the prog bar height - -// $progress-bar-height: em-calc(25); -// $progress-bar-color: transparent; - -// We use these to control the border styles - -// $progress-bar-border-color: darken(#fff, 20%); -// $progress-bar-border-size: 1px; -// $progress-bar-border-style: solid; -// $progress-bar-border-radius: $global-radius; - -// We use these to control the margin & padding - -// $progress-bar-pad: em-calc(2); -// $progress-bar-margin-bottom: em-calc(10); - -// We use these to set the meter colors - -// $progress-meter-color: $primary-color; -// $progress-meter-secondary-color: $secondary-color; -// $progress-meter-success-color: $success-color; -// $progress-meter-alert-color: $alert-color; - -// -// Reveal Variables -// - -// We use these to control the style of the reveal overlay. - -// $reveal-overlay-bg: rgba(#000, .45); -// $reveal-overlay-bg-old: #000; - -// We use these to control the style of the modal itself. - -// $reveal-modal-bg: #fff; -// $reveal-position-top: 50px; -// $reveal-default-width: 80%; -// $reveal-modal-padding: em-calc(20); -// $reveal-box-shadow: 0 0 10px rgba(#000,.4); - -// We use these to style the reveal close button - -// $reveal-close-font-size: em-calc(22); -// $reveal-close-top: em-calc(8); -// $reveal-close-side: em-calc(11); -// $reveal-close-color: #aaa; -// $reveal-close-weight: bold; - -// We use these to control the modal border - -// $reveal-border-style: solid; -// $reveal-border-width: 1px; -// $reveal-border-color: #666; - -// $reveal-modal-class: "reveal-modal"; -// $close-reveal-modal-class: "close-reveal-modal"; - -// -// Section Variables -// - -// We use these to set padding and hover factor - -// $section-title-padding: em-calc(15); -// $section-content-padding: em-calc(15); -// $section-function-factor: 10%; - -// These style the titles - -// $section-title-color: #333; -// $section-title-color-active: #333; -// $section-title-bg: #efefef; -// $section-title-bg-active: darken($section-title-bg, $section-function-factor); -// $section-title-bg-active-tabs: #fff; -// $section-title-bg-hover: darken($section-title-bg, $section-function-factor / 2); - -// Want to control border size, here ya go! - -// $section-border-size: 1px; -// $section-border-style: solid; -// $section-border-color: #ccc; - -// Font controls - -// $section-font-size: em-calc(14); - -// Control the color of the background and some size options - -// $section-content-bg: #fff; -// $section-vertical-nav-min-width: em-calc(200); -// $section-vertical-tabs-title-width: em-calc(200); -// $section-bottom-margin: em-calc(20); - -// $title-selector: ".title"; -// $content-selector: ".content"; -// $active-region-selector: ".active"; - -// -// Side Nav Variables -// - -// We use this to control padding. - -// $side-nav-padding: em-calc(14 0); - -// We use these to control list styles. - -// $side-nav-list-type: none; -// $side-nav-list-position: inside; -// $side-nav-list-margin: em-calc(0 0 7 0); - -// We use these to control link styles. - -// $side-nav-link-color: $primary-color; -// $side-nav-link-color-active: lighten(#000, 30%); -// $side-nav-font-size: em-calc(14); -// $side-nav-font-weight: bold; - -// We use these to control border styles - -// $side-nav-divider-size: 1px; -// $side-nav-divider-style: solid; -// $side-nav-divider-color: darken(#fff, 10%); - -// -// Sub Nav Variables -// - -// We use these to control margin and padding - -// $sub-nav-list-margin: em-calc(-4 0 18); -// $sub-nav-list-padding-top: em-calc(4); - -// We use this to control the definition - -// $sub-nav-font-size: em-calc(14); -// $sub-nav-font-color: #999; -// $sub-nav-font-weight: normal; -// $sub-nav-text-decoration: none; -// $sub-nav-border-radius: 1000px; - -// We use these to control the active item styles - -// $sub-nav-active-font-weight: bold; -// $sub-nav-active-bg: $primary-color; -// $sub-nav-active-color: #fff; -// $sub-nav-active-padding: em-calc(3 9); -// $sub-nav-active-cursor: default; - -// $sub-nav-item-divider: "" !default; -// $sub-nav-item-divider-margin: emCalc(12) !default; - -// -// Switch Variables -// - -// Controlling border styles and background colors for the switch container - -// $switch-border-color: darken(#fff, 20%); -// $switch-border-style: solid; -// $switch-border-width: 1px; -// $switch-bg: #fff; - -// We use these to control the switch heights for our default classes - -// $switch-height-tny: 22px; -// $switch-height-sml: 28px; -// $switch-height-med: 36px; -// $switch-height-lrg: 44px; -// $switch-bottom-margin: em-calc(20); - -// We use these to control default font sizes for our classes. - -// $switch-font-size-tny: 11px; -// $switch-font-size-sml: 12px; -// $switch-font-size-med: 14px; -// $switch-font-size-lrg: 17px; -// $switch-label-side-padding: 6px; - -// We use these to style the switch-paddle - -// $switch-paddle-bg: #fff; -// $switch-paddle-fade-to-color: darken($switch-paddle-bg, 10%); -// $switch-paddle-border-color: darken($switch-paddle-bg, 35%); -// $switch-paddle-border-width: 1px; -// $switch-paddle-border-style: solid; -// $switch-paddle-transition-speed: .1s; -// $switch-paddle-transition-ease: ease-out; -// $switch-positive-color: lighten($success-color, 50%); -// $switch-negative-color: #f5f5f5; - -// Outline Style for tabbing through switches - -// $switch-label-outline: 1px dotted #888; - -// -// Table Variables -// - -// These control the background color for the table and even rows - -// $table-bg: #fff; -// $table-even-row-bg: #f9f9f9; - -// These control the table cell border style - -// $table-border-style: solid; -// $table-border-size: 1px; -// $table-border-color: #ddd; - -// These control the table head styles - -// $table-head-bg: #f5f5f5; -// $table-head-font-size: em-calc(14); -// $table-head-font-color: #222; -// $table-head-font-weight: bold; -// $table-head-padding: em-calc(8 10 10); - -// These control the row padding and font styles - -// $table-row-padding: em-calc(9 10); -// $table-row-font-size: em-calc(14); -// $table-row-font-color: #222; -// $table-line-height: em-calc(18); - -// These are for controlling the display and margin of tables - -// $table-display: table-cell; -// $table-margin-bottom: em-calc(20); - -// -// Image Thumbnail Variables -// - -// We use these to control border styles - -// $thumb-border-style: solid; -// $thumb-border-width: 4px; -// $thumb-border-color: #fff; -// $thumb-box-shadow: 0 0 0 1px rgba(#000,.2); -// $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5); - -// Radius and transition speed for thumbs - -// $thumb-radius: $global-radius; -// $thumb-transition-speed: 200ms; - -// -// Tooltip Variables -// - -// $has-tip-border-bottom: dotted 1px #ccc; -// $has-tip-font-weight: bold; -// $has-tip-font-color: #333; -// $has-tip-border-bottom-hover: dotted 1px darken($primary-color, 20%); -// $has-tip-font-color-hover: $primary-color; -// $has-tip-cursor-type: help; - -// $tooltip-padding: em-calc(8); -// $tooltip-bg: #000; -// $tooltip-font-size: em-calc(15); -// $tooltip-font-weight: bold; -// $tooltip-font-color: #fff; -// $tooltip-line-height: 1.3; -// $tooltip-close-font-size: em-calc(10); -// $tooltip-close-font-weight: normal; -// $tooltip-close-font-color: #888; -// $tooltip-font-size-sml: em-calc(14); -// $tooltip-radius: $global-radius; -// $tooltip-pip-size: 5px; - -// -// Top Bar Variables -// - -// Background color for the top bar - -// $topbar-bg-color: #111; -// $topbar-bg: $topbar-bg-color; - -// Height and margin - -// $topbar-height: 45px; -// $topbar-margin-bottom: 0; - -// Control Input height for top bar - -// $topbar-input-height: 2.45em; - -// Controlling the styles for the title in the top bar - -// $topbar-title-weight: bold; -// $topbar-title-font-size: em-calc(17); - -// Style the top bar dropdown elements - -// $topbar-dropdown-bg: #222; -// $topbar-dropdown-link-color: #fff; -// // $topbar-dropdown-link-bg: lighten($topbar-bg-color, 5%); -// $topbar-dropdown-toggle-size: 5px; -// $topbar-dropdown-toggle-color: #fff; -// $topbar-dropdown-toggle-alpha: 0.5; - -// Set the link colors and styles for top-level nav - -// $topbar-link-color: #fff; -// $topbar-link-color-hover: #fff; -// $topbar-link-color-active: #fff; -// $topbar-link-weight: bold; -// $topbar-link-font-size: em-calc(13); -// $topbar-link-hover-lightness: -30%; // Darken by 30% -// $topbar-link-bg-hover: darken($topbar-bg-color, 3%); -// $topbar-link-bg-active: darken($topbar-bg-color, 3%); - -// $topbar-dropdown-label-color: #555; -// $topbar-dropdown-label-text-transform: uppercase; -// $topbar-dropdown-label-font-weight: bold; -// $topbar-dropdown-label-font-size: em-calc(10); -// $topbar-dropdown-label-bg: lighten($topbar-bg-color, 5%); - -// Top menu icon styles - -// $topbar-menu-link-transform: uppercase; -// $topbar-menu-link-font-size: em-calc(13); -// $topbar-menu-link-weight: bold; -// $topbar-menu-link-color: #fff; -// $topbar-menu-icon-color: #fff; -// $topbar-menu-link-color-toggled: #888; -// $topbar-menu-icon-color-toggled: #888; - -// Transitions and breakpoint styles - -// $topbar-transition-speed: 300ms; -// $topbar-breakpoint: 940 !default; // Change to 9999px for always mobile layout -// $topbar-media-query: "only screen and (min-width: #{$topbar-breakpoint})"; - -// Divider Styles - -// $topbar-divider-border-bottom: solid 1px lighten($topbar-bg-color, 10%); -// $topbar-divider-border-top: solid 1px darken($topbar-bg-color, 10%); - -// Sticky Class - -// $topbar-sticky-class: ".sticky"; -// $topbar-arrows: true; //Set false to remove the triangle icon from the menu item diff --git a/app/assets/javascripts/foundation4/foundation/components/_alert-boxes.scss b/app/assets/javascripts/foundation4/foundation/components/_alert-boxes.scss deleted file mode 100755 index 01c5360250..0000000000 --- a/app/assets/javascripts/foundation4/foundation/components/_alert-boxes.scss +++ /dev/null @@ -1,107 +0,0 @@ -// -// Alert Box Variables -// -$include-html-alert-classes: $include-html-classes !default; - -// We use this to control alert padding. -$alert-padding-top: em-calc(11) !default; -$alert-padding-default-float: $alert-padding-top !default; -$alert-padding-opposite-direction: $alert-padding-top + em-calc(10) !default; -$alert-padding-bottom: $alert-padding-top + em-calc(1) !default; - -// We use these to control text style. -$alert-font-weight: bold !default; -$alert-font-size: em-calc(14) !default; -$alert-font-color: #fff !default; -$alert-font-color-alt: darken($secondary-color, 60%) !default; - -// We use this for close hover effect. -$alert-function-factor: 10% !default; - -// We use these to control border styles. -$alert-border-style: solid !default; -$alert-border-width: 1px !default; -$alert-border-color: darken($primary-color, $alert-function-factor) !default; -$alert-bottom-margin: em-calc(20) !default; - -// We use these to style the close buttons -$alert-close-color: #333 !default; -$alert-close-position: em-calc(5) !default; -$alert-close-font-size: em-calc(22) !default; -$alert-close-opacity: 0.3 !default; -$alert-close-opacity-hover: 0.5 !default; -$alert-close-padding: 5px 4px 4px !default; - -// We use this to control border radius -$alert-radius: $global-radius !default; - -// -// Alert Mixins -// - -// We use this mixin to create a default alert base. -@mixin alert-base { - border-style: $alert-border-style; - border-width: $alert-border-width; - display: block; - font-weight: $alert-font-weight; - margin-bottom: $alert-bottom-margin; - position: relative; - padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float; - font-size: $alert-font-size; -} - -// We use this mixin to add alert styles -@mixin alert-style($bg:$primary-color) { - - // This find the lightness percentage of the background color. - $bg-lightness: lightness($bg); - - // We control which background color and border come through. - background-color: $bg; - border-color: darken($bg, $alert-function-factor); - - // We control the text color for you based on the background color. - @if $bg-lightness > 70% { color: $alert-font-color-alt; } - @else { color: $alert-font-color; } - -} - -// We use this to create the close button. -@mixin alert-close { - font-size: $alert-close-font-size; - padding: $alert-close-padding; - line-height: 0; - position: absolute; - top: $alert-close-position + em-calc(2); - #{$opposite-direction}: $alert-close-position; - color: $alert-close-color; - opacity: $alert-close-opacity; - &:hover, - &:focus { opacity: $alert-close-opacity-hover; } -} - -// We use this to quickly create alerts with a single mixin. -@mixin alert($bg:$primary-color, $radius:false) { - @include alert-base; - @include alert-style($bg); - @include radius($radius); -} - -@if $include-html-alert-classes != false { - - /* Foundation Alerts */ - .alert-box { - @include alert; - - .close { @include alert-close; } - - &.radius { @include radius($alert-radius); } - &.round { @include radius($global-rounded); } - - &.success { @include alert-style($success-color); } - &.alert { @include alert-style($alert-color); } - &.secondary { @include alert-style($secondary-color); } - } - -} diff --git a/app/assets/javascripts/foundation4/foundation/components/_block-grid.scss b/app/assets/javascripts/foundation4/foundation/components/_block-grid.scss deleted file mode 100755 index 4b1474ab98..0000000000 --- a/app/assets/javascripts/foundation4/foundation/components/_block-grid.scss +++ /dev/null @@ -1,71 +0,0 @@ -// -// Block Grid Variables -// -$include-html-grid-classes: $include-html-classes !default; - -// We use this to control the maximum number of block grid elements per row -$block-grid-elements: 12 !default; -$block-grid-default-spacing: em-calc(20) !default; - -// Enables media queries for block-grid classes. Set to false if writing semantic HTML. -$block-grid-media-queries: true !default; - -// -// Block Grid Mixins -// - -// We use this mixin to create different block-grids. You can apply per-row and spacing options. -// Setting $base-style to false will ommit default styles. -@mixin block-grid($per-row:false, $spacing:$block-grid-default-spacing, $base-style:true) { - - @if $base-style { - display: block; - padding: 0; - margin: 0 (-$spacing/2); - @include clearfix; - - &>li { - display: inline; - height: auto; - float: $default-float; - padding: 0 ($spacing/2) $spacing; - } - } - - @if $per-row { - &>li { - width: 100%/$per-row; - padding: 0 ($spacing/2) $spacing; - - &:nth-of-type(n) { clear: none; } - &:nth-of-type(#{$per-row}n+1) { clear: both; } - } - } - -} - -@if $include-html-grid-classes { - /* Foundation Block Grids for below small breakpoint */ - @media only screen { - [class*="block-grid-"] { @include block-grid; } - - @for $i from 1 through $block-grid-elements { - .small-block-grid-#{($i)} { - @include block-grid($i,$block-grid-default-spacing,false); - } - } - } - - /* Foundation Block Grids for above small breakpoint */ - @media #{$small} { - /* Remove small grid clearing */ - @for $i from 1 through $block-grid-elements { - .small-block-grid-#{($i)} > li:nth-of-type(#{$i}n+1) { clear: none; } - } - @for $i from 1 through $block-grid-elements { - .large-block-grid-#{($i)} { - @include block-grid($i,$block-grid-default-spacing,false); - } - } - } -} diff --git a/app/assets/javascripts/foundation4/foundation/components/_breadcrumbs.scss b/app/assets/javascripts/foundation4/foundation/components/_breadcrumbs.scss deleted file mode 100755 index 24b42246a1..0000000000 --- a/app/assets/javascripts/foundation4/foundation/components/_breadcrumbs.scss +++ /dev/null @@ -1,124 +0,0 @@ -// -// Breadcrumb Variables -// -$include-html-nav-classes: $include-html-classes !default; - -// We use this to set the background color for the breadcrumb container. -$crumb-bg: lighten($secondary-color, 5%) !default; - -// We use these to set the padding around the breadcrumbs. -$crumb-padding: em-calc(9 14 9) !default; -$crumb-side-padding: em-calc(12) !default; - -// We use these to control border styles. -$crumb-function-factor: 10% !default; -$crumb-border-size: 1px !default; -$crumb-border-style: solid !default; -$crumb-border-color: darken($crumb-bg, $crumb-function-factor) !default; -$crumb-radius: $global-radius !default; - -// We use these to set various text styles for breadcrumbs. -$crumb-font-size: em-calc(11) !default; -$crumb-font-color: $primary-color !default; -$crumb-font-color-current: #333 !default; -$crumb-font-color-unavailable: #999 !default; -$crumb-font-transform: uppercase !default; -$crumb-link-decor: underline !default; - -// We use these to control the slash between breadcrumbs -$crumb-slash-color: #aaa !default; -$crumb-slash: "/" !default; - -// -// Breakcrumb Mixins -// - -// We use this mixin to create a container around our breadcrumbs -@mixin crumb-container { - display: block; - padding: $crumb-padding; - overflow: hidden; - margin-#{$default-float}: 0; - list-style: none; - border-style: $crumb-border-style; - border-width: $crumb-border-size; - - // We control which background color and border come through. - background-color: $crumb-bg; - border-color: $crumb-border-color; -} - -// We use this mixin to create breadcrumb styles from list items. -@mixin crumbs { - - // A normal state will make the links look and act like clickable breadcrumbs. - margin: 0; - float: $default-float; - font-size: $crumb-font-size; - text-transform: $crumb-font-transform; - - &:hover a, &:focus a { text-decoration: $crumb-link-decor; } - - a, - span { - text-transform: $crumb-font-transform; - color: $crumb-font-color; - } - - // Current is for the link of the current page - &.current { - cursor: $cursor-default-value; - color: $crumb-font-color-current; - a { - cursor: $cursor-default-value; - color: $crumb-font-color-current; - } - - &:hover, &:hover a, - &:focus, &:focus a { text-decoration: none; } - } - - // Unavailable removed color and link styles so it looks inactive. - &.unavailable { - color: $crumb-font-color-unavailable; - a { color: $crumb-font-color-unavailable; } - - &:hover, - &:hover a, - &:focus, - a:focus { - text-decoration: none; - color: $crumb-font-color-unavailable; - cursor: $cursor-default-value; - } - } - - &:before { - content: "#{$crumb-slash}"; - color: $crumb-slash-color; - margin: 0 $crumb-side-padding; - position: relative; - top: 1px; - } - - &:first-child:before { - content: " "; - margin: 0; - } - -} - - -@if $include-html-nav-classes != false { - - /* Breadcrumbs */ - .breadcrumbs { - @include crumb-container; - @include radius($crumb-radius); - - &>* { - @include crumbs; - } - } - -} diff --git a/app/assets/javascripts/foundation4/foundation/components/_button-groups.scss b/app/assets/javascripts/foundation4/foundation/components/_button-groups.scss deleted file mode 100755 index d35e05ad9a..0000000000 --- a/app/assets/javascripts/foundation4/foundation/components/_button-groups.scss +++ /dev/null @@ -1,89 +0,0 @@ -// -// Button Group Variables -// -$include-html-button-classes: $include-html-classes !default; - -// Sets the margin for the right side by default, and the left margin if right-to-left direction is used -$button-bar-margin-opposite: em-calc(10) !default; - -// -// Button Group Mixins -// - -// We use this to add styles for a button group container -@mixin button-group-container($styles:true, $float:false) { - @if $styles { - list-style: none; - margin: 0; - @include clearfix(); - } - @if $float { - float: #{$default-float}; - margin-#{$opposite-direction}: $button-bar-margin-opposite; - & div { overflow: hidden; } - } -} - -// We use this to control styles for button groups -@mixin button-group-style($radius:false, $even:false, $float:$default-float) { - - // We use this to control the flow, or remove those styles completely. - @if $float { - margin: 0 0 0 (-$button-border-width); - float: $float; - // Make sure the first child doesn't get the negative margin. - &:first-child { margin-#{$default-float}: 0; } - } - - // We use these to control left and right radius on first/last buttons in the group. - @if $radius == true { - &:first-child, - &:first-child > a, - &:first-child > button, - &:first-child > .button { @include side-radius($default-float, $button-radius); } - &:last-child, - &:last-child > a, - &:last-child > button, - &:last-child > .button { @include side-radius($opposite-direction, $button-radius); } - } - @else if $radius { - &:first-child, - &:first-child > a, - &:first-child > button, - &:first-child > .button { @include side-radius($default-float, $radius); } - &:last-child, - &:last-child > a, - &:last-child > button, - &:last-child > .button { @include side-radius($opposite-direction, $radius); } - } - - // We use this to make the buttons even width across their container - @if $even { - width: percentage((100/$even) / 100); - button, .button { width: 100%; } - } - -} - -// Only include these CSS classes if $include-html-classes: true -@if $include-html-button-classes != false { - - /* Button Groups */ - .button-group { @include button-group-container; - - &> * { @include button-group-style(); } - - &.radius > * { @include button-group-style($radius:$button-radius, $float:null); } - &.round > * { @include button-group-style($radius:$button-round, $float:null); } - - @for $i from 2 through 8 { - &.even#{-$i} li { @include button-group-style($even:$i, $float:null); } - } - } - - .button-bar { - @include clearfix; - .button-group { @include button-group-container($styles:false,$float:true); } - } - -} diff --git a/app/assets/javascripts/foundation4/foundation/components/_buttons.scss b/app/assets/javascripts/foundation4/foundation/components/_buttons.scss deleted file mode 100755 index c5954ad821..0000000000 --- a/app/assets/javascripts/foundation4/foundation/components/_buttons.scss +++ /dev/null @@ -1,230 +0,0 @@ -// -// Button Variables -// -$include-html-button-classes: $include-html-classes !default; - -// We use these to build padding for buttons. -$button-med: em-calc(12) !default; -$button-tny: em-calc(7) !default; -$button-sml: em-calc(9) !default; -$button-lrg: em-calc(16) !default; - -// We use this to control the display property. -$button-display: inline-block !default; -$button-margin-bottom: em-calc(20) !default; - -// We use these to control button text styles. -$button-font-family: inherit !default; -$button-font-color: #fff !default; -$button-font-color-alt: #333 !default; -$button-font-med: em-calc(16) !default; -$button-font-tny: em-calc(11) !default; -$button-font-sml: em-calc(13) !default; -$button-font-lrg: em-calc(20) !default; -$button-font-weight: bold !default; -$button-font-align: center !default; - -// We use these to control various hover effects. -$button-function-factor: 10% !default; - -// We use these to control button border styles. -$button-border-width: 1px !default; -$button-border-style: solid !default; - -// We use this to set the default radius used throughout the core. -$button-radius: $global-radius !default; -$button-round: $global-rounded !default; - -// We use this to set default opacity for disabled buttons. -$button-disabled-opacity: 0.6 !default; - - -// -// Button Mixins -// - -// We use this mixin to create a default button base. -@mixin button-base($style:true, $display:$button-display) { - @if $style { - border-style: $button-border-style; - border-width: $button-border-width; - cursor: $cursor-pointer-value; - font-family: $button-font-family; - font-weight: $button-font-weight; - line-height: normal; - margin: 0 0 $button-margin-bottom; - position: relative; - text-decoration: none; - text-align: $button-font-align; - } - @if $display { display: $display; } -} - -// We use this mixin to add button size styles -@mixin button-size($padding:$button-med, $full-width:false, $is-input:false) { - - // We control which padding styles come through, - // these can be turned off by setting $padding:false - @if $padding { - padding-top: $padding; - padding-#{$opposite-direction}: $padding * 2; - padding-bottom: $padding + em-calc(1); - padding-#{$default-float}: $padding * 2; - - // We control the font-size based on mixin input. - @if $padding == $button-med { font-size: $button-font-med; } - @else if $padding == $button-tny { font-size: $button-font-tny; } - @else if $padding == $button-sml { font-size: $button-font-sml; } - @else if $padding == $button-lrg { font-size: $button-font-lrg; } - @else { font-size: $padding - em-calc(2); } - } - - // We can set $full-width:true to remove side padding extend width. - @if $full-width { - // We still need to check if $padding is set. - @if $padding { - padding-top: $padding; - padding-bottom: $padding + em-calc(1); - } @else if $padding == false { - padding-top:0; - padding-bottom:0; - } - padding-right: 0; - padding-left: 0; - width: 100%; - } - - // 's and