在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:AscentSoftware/spree_bootstrap_frontend开源软件地址:https://github.com/AscentSoftware/spree_bootstrap_frontend开源编程语言:Ruby 90.7%开源软件介绍:Spree Bootstrap (Frontend)As of spree 3.0 spree_bootstrap_frontend has been merged into spree it's self and is now the default frontend. So thanks to everyone who helped! This repository will continue to be actively maintained to support legacy 2-x-stable branches Spree’s entire frontend for a bootstrap 3 powered frontend.Switches outThis has several large advantages:
OverviewThis stays as closely to the original spree frontend markup as possible. Helper decorators have been kept to a bare minimum. It utilises the SCSS port of bootstrap 3 to keep inline with existing spree practices. It also includes support for InstallationNOTE: The master branch is developed against edge. Use a stable branch for production. Add the following to your gemfile below spree. The currently supported and updated branches are gem 'spree_bootstrap_frontend', github: '200Creative/spree_bootstrap_frontend', branch: 'master' And run bundle install Then copy the default stylesheets into your project rails generate spree_bootstrap_frontend:install You'll want to select to overwrite CustomizingRunning the above To style your spree store just override the bootstrap 3 variables. The full list of bootstrap variables can be found here. You can override these by simply redefining the variable before the $navbar-default-bg: #312312;
$light-orange: #ff8c00;
$navbar-default-color: $light-orange;
@import "bootstrap"; This uses the bootstrap-sass gem. So check there for full cutomization instructions. It’s quite powerful, here are some examples created in ~10 minutes with a few extra SCSS variables, no actual css edits required: By default the bootstrap javascript framework isn't included as it's not used and most people won't need the extra weight. But it is part of //= require bootstrap-sprockets or just include the specific component you want to use: //= require bootstrap/component ContributingPlease fork and make a pull request. spree_bootstrap_frontend is made up of two other gems, spree_bootstrap, and spree_auth_devise_bootstrap. Changes for spree are contained in spree_bootstrap, and changes for spree_auth_devise are contained in spree_auth_devise_bootstrap. Spree edge templates were last synced at spree/spree@b07b838. Feel free to patch in any newer changes and update this SHA. Spree Auth Devise edge templates were last synced at spree/spree_auth_devise@761a9d5. Feel free to patch in any newer changes and update this SHA.
Running testsFor spree_frontend_bootstrap, change directories to spree_bootstrap/frontend and then: bundle
bundle exec rake test_app
bundle exec rspec spec For spree_auth_devise_bootstrap, change directories to spree_auth_devise_bootstrap/ and then: bundle
bundle exec rake test_app
bundle exec rspec spec LicenceCopyright Alex James (200creative.com) and released under the BSD Licence. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论