Major versions of Responsive Foundation include breaking changes. This guide will help you navigate those breaking changes if you need to upgrade your version of Foundation. Generally speaking, we don't upgrade older themes unless they are a complete redesign, but you may wish to upgrade to get a new or updated version of our functionality.
cd
to your project folder, and run the following commands in Terminal
to remove old versions of Responsive Foundation:
npm uninstall responsive-foundation --save-dev
This release separated out BU-specific styles so that we could open source everything else. Run the following command to install everything you need, including BU-specific stuff:
npm install @bu-ist/burf-customizations@latest --save-dev
cd
to your project folder, and run the following commands to install the
latest version of the components you need from Responsive Foundation. Most
likely, this is burf-base
and burf-theme
. See recommended configurations here.
npm install @bu-ist/burf-base@latest @bu-ist/burf-theme@latest --save-dev
Do a find and replace in the Gruntfile.js
file for the following text:
Text to find | Replace with |
---|---|
node_modules/responsive-foundation/css-dev |
node_modules/@bu-ist |
node_modules/responsive-foundation/js-dev/ |
node_modules/@bu-ist/burf-theme/js-dev/ |
Do a find and replace in the js-dev
folder for the following text:
Text to find | Replace with |
---|---|
responsive-foundation/ |
@bu-ist/burf-theme/ |
Do a find and replace in the css-dev
folder for the following text:
Text to find | Replace with |
---|---|
burf-base/fonts |
burf-customizations/fonts |
burf-theme/bulp |
burf-customizations/bulp |
burf-theme/calendar |
burf-customizations/calendar |
burf-theme/content/collapsibles |
burf-customizations/content/collapsibles |
burf-theme/content/courses |
burf-customizations/content/courses |
burf-theme/content/slideshows |
burf-customizations/content/slideshows |
burf-theme/layout/branding |
burf-customizations/layout/branding |
burf-theme/profiles |
burf-customizations/profiles |
In css-dev/style.scss
, reverse the order of the navigation and branding imports,
like so:
Old | New |
---|---|
@import "layout/branding" @import "layout/navigation" |
@import "layout/navigation" @import "layout/branding" |
More details on the exact changes are here: https://github.com/bu-ist/responsive-foundation/releases/tag/5.0.0
Add a step by step process for upgrades here.
Add a step by step process for upgrades here.
Add a step by step process for upgrades here.
Based on newly defined coding standards established in October 2014 by the BU Webteam, Responsive Foundation files have changed. Changes include restructuring, reformatting, recommenting, and renaming of SCSS partials and some JavaScript.
More details on the exact changes are here: https://github.com/bu-ist/responsive-foundation/releases/tag/2.0.0
- $black --> $grayScale-0
- $gray_darkest --> $grayScale-1
- $gray_darker --> $grayScale-2
- $gray_dark --> $grayScale-3
- $gray_light --> $grayScale-7
- $gray_lighter --> $grayScale-9
- $white --> $grayScale-f
- $container_S: --> $container-S
- $container_M: --> $container-M
- $container_L: --> $container-L
- #page_wrapper --> .wrapper
- #utility --> .utilityNav
- #right-content-area --> .sidebar
- #bottom-content-area --> .footbar
- .responsive-video --> .responsiveVideo
- .banner-container --> .bannerContainer
- .window-width --> .bannerContainer-windowWidth (check child themes, like research, for content banner changes)
- .page-width --> .bannerContainer-pageWidth
- .content-width --> .bannerContainer-contentWidth
- .open --> .is-open
- .navopen --> .nav-open (also changed in toggle.js, and needs to be adjusted in cfa theme)
- #nav --> .primary-nav-menu --> .primaryNav-menu
- #nav --> .primaryNav-menu --> .primary-nav-menu-menu
- .mainNav --> .navContainer --> .primary-nav
- .contentWrapper --> .content
- .container --> .content-container
- .footbar .container --> .footbar .footbar-container
- z-index scale in _variables.scss
- sidebar widget border colors, sidebar widget background colors, page grid border colors, page grid background colors, footbar widget border colors in _variables.scss
- header.php: added ,before bu_content_banner function (line 113, 114)
- footer-no-sidebar.php, footer.php: added , after
- separated navigation styles in to their own partial: _navigation.scss (in burf-theme)
- $grid-rowMargin
- $grid-columnPadding
- Remove any instance of generic grid classes from template markup, e.g.
.col-md-8
and instead use@extend
- Create global typography styles that work for all content, including widgets, without specifically having to target
<article>
. Overrides should be applied to all other areas, e.g. theprimary-nav-menu
. - rgba colors are not consistently using mixin or don't have have solid fallback (e.g. in
.footbar
)