This repository was archived by the owner on May 30, 2023. It is now read-only.
v1.0
v1.0.0
Core changes
- Reorganised structure of the scss folder. Helpers have been moved into the base folder as these are all part of OrbitCSS's base core.
/helpers/general.scsscan now be found at/base/helpers.scss.- An include all file has been added for each folder allowing developers to include the entire contents instead of each single file.
- The switch and slider elements have been separated into two modules independently from the general form module.
- The media module has been moved to the elements directory.
/navigation/navbarhas been renamed to/navigation/top..has-start,.has-centeredand.has-endhelpers have been added to the OrbitCSS global helpers. These will align child flex content using the CSSjustify-contentproperty.- Core functions and mixins moved to their own file at
/base/functions.scss. - The
.has-padding-only-sidesglobal helper has been removed. Replace existing implementations withclass="has-no-padding-top has-no-padding-bottom". - New mixin
element-colorhas been added. Read more about how to use it in the OrbitCSS documentation.
Typography
.has-centeredand.has-endhelpers have been removed from theul.is-inline-listhelper. As these are now global helpers, any previous use will function as normal and no changes are required.- All link elements now implement
text-decoration: underline;on hover state. Previously this was controlled via use of the.is-hover-underlinehelper. - Removed the
.is-hover-underlinehelper.
Form
- Form module has been split up unto three modules for the general form content, switch and slider.
- The
.is-smallhelper for the switch module has been removed. If you still require this class you can copy the code from a previous version of OrbitCSS. - The
.uploadelement has been removed. This should have never existed and predates initial OrbitCSS releases. Use the.is-file-inputelement class instead.
Grid
.has-centeredand.has-endhelpers have been removed from the grid element. As these are now global helpers any previous use will function as normal and no changes are required.
Breadcrumb
.has-centeredand.has-endhelpers have been removed from the breadcrumb element. As this previously applied to the childulelement you will now have to add these helpers directly to theulelement. For example replace:
<nav class="breadcrumb has-centered">
<ul>...</ul>
</nav>WITH
<nav class="breadcrumb">
<ul class="has-centered">...</ul>
</nav>Top
- Module renamed from navbar to top.
.has-centeredand.has-endhelpers have been removed from the top element. As this previously applied to the child.containerelement (only when one was present) you will now have to add these helpers directly to the.containerelement. For example replace:
<nav class="top has-centered">
<div class="container">...</div>
</nav>WITH
<nav class="top">
<div class="container has-centered">...</div>
</nav>- Added
$top-link-hover-decorationvariable. Allows you to add underline styling to top links. - Added
$top-link-hover-colorvariable. Allows you to set a text color for links in the hover state. - Added
$top-link-active-backgroundvariable. Allows you to set a background color for links that are in the active state via the is-active helper. - Moved the
.is-activehelper up to thelielement instead of the actualaelement. This allows for active styling to be applied to list items that are not actually links. - Removed the
.is-evenhelper due to lack of browser support forjustify-content: space-evenly. - Remove the
.is-neathelper. It's use case was too specific. - Previously all
ulelements would be hidden on small view ports. This is no longer the case and all elements are visible without the use of the.is-mobile-responsivehelper. - Added
$top-social-paddingvariable. This is applied directly to the.top__socialelement. - Overhauled the
.is-mobile-responsivehelper. All.top__linksand.top__socialelements will stack neatly when on small view port. Content can be triggered by adding.is-opento the.topelement. - The
.top__burgerelement has been overhauled. Only one span is required within the element:
<div class="top__burger">
<span></span>
</div>- Added
$top-burger-paddingvariable. This is applied directly to the.top__burgerelement. - Removed the
$top-burger-bar-widthvariable. - Added
$top-burger-bar-gapvariable. This defines the spacing between each of the bars in the burger. - Removed
.top__links--mobilemodifier. - Added the
.top__buttonselement. This will provide clean styling for buttons in the nav bar. - Added
$top-button-paddingvariable. This is applied directly to the.top__buttonselement.
Pagination
.has-centeredand.has-endhelpers have been removed from the pagination element. As these are now global helpers any previous use will function as normal and no changes are required.- Padding now applies to the
lielement instead of the nested link element.
Alert
- The
alert-colormixin has been removed. Any implementation of it should now make use of the globalelement-colormixin. - The
$alert-radiushas been updated to 0. This removes rounded corners on the alert element by default.
Button
- The
button-colormixin has been removed. Any implementation of it should now make use of the globalelement-colormixin. .has-centeredand.has-endhelpers have been removed from the.is-button-groupand.is-addon-groupelements. As these are now global helpers any previous use will function as normal and no changes are required.
Card
- The
.has-no-paddinghelper has been removed from the card element. As this previously removed the padding from the child header, content and footer you will have to add.has-no-paddingto each of these elements individually. - Removed the
.card--modalmodifier. Card elements can now just be placed directly in the modal. - Removed the
.is-roundedhelper class and changed the default value of the$card-radiusvariable to 0.
Modal
- The
$modal-overlay-backgroundvariable can now be overridden. - Removed the
.card--modalmodifier. Card elements can now just be placed directly in the modal. - Removed the
.has-paddinghelper from the.modal__contentelement. Padding is now set as the default and can be overridden with the global.has-no-paddinghelper. - Set the default value of the
$modal-radiusvariable to 0.
Tabs
.has-centeredand.has-endhelpers have been removed from the tabs element. As this previously applied to the child.tabs__listelement you will now have to add these helpers directly to the.tabs__listelement. For example replace:
<div class="tabs has-centered">
<ul class="tabs__list">...</ul>
</div>WITH
<div class="tabs">
<ul class="tabs__list has-centered">...</ul>
</div>- Remove the
.has-rounded-bordershelper from the.tabs__itemelement. Border radius can now be controlled with the $tab-border-radius variable. - Added the
$tab-border-radiusvariable with a default value of 0. This variable can be used to control the border radius of the tab list items.
Tags
- The
tag-colormixin has been removed. Any implementation of it should now make use of the globalelement-colormixin. .has-centeredand.has-endhelpers have been removed from the.is-tag-groupand.is-addon-groupelements. As these are now global helpers any previous use will function as normal and no changes are required.
Menu
- The
.link__listastyling has been moved to thelielement. This allows for list items that do not have links. The exception is.menu__slidedownelements. The styling will isntead be inherited by the first child. - Remove the 100% width and no margin default that was applied to all buttons within a menu.
- Removed the
.is-openmodifier on the slide down menu. To trigger an open state; only the.is-activemodifier needs to be applied to the parent item. - Restructure to prevent nested content inheriting the properties of the core menu elements.
Section
- Added
1remleft & right padding to all 3 section sizes.
Accordion
- Removed the
.is-openmodifier on the.accordion__contentelement. To trigger an open state; the.is-activemodifier needs to be applied to a direct parent of the.accordion__contentelement.
Table
- Removed the
.has-scrollhelper. - Added
.is-table-containerelement. Wrapping a table with this class will enable horizontal scrolling.
Dropdown
- Changed the default value of the
$dropdown-radiusvariable to 0. - Removed the margin override from dropdown buttons.
Bug fixes
- Flex is now only applied to elements with
.hero__contentwho are a direct descendant of the.hero.is-fullelement. - Using
.is-endand.is-centerwill only apply to direct descendants of the.card__footerelement and not all descendants. - Span and label styling is only applied to direct descendants of
.is-input-groupelement. This was causing elements such as buttons using icons to display incorrectly.