This content originally appeared on DEV Community and was authored by Stanley Lim
Hey everyone!
Just released 0.6.2 for Cirrus. Check it out! The focus for this update was to make how classes behave across different viewports more consistent in addition to adding more utility classes.
? Cirrus
? Documentation
What is Cirrus?
Cirrus is a component and utility centric SCSS framework
designed for rapid prototyping. I started this project back in late 2016, but never really wrote about it. The main reason why you should use it is if you need to proto-type a project ASAP with many pre-styled component classes. There's a lot of CSS frameworks already out there, but Cirrus comes with my (and those who contributed in the past) take on what a CSS framework should have and a distinct style.
Onto the Updates
? Features
- This update officially adds support for viewport classes for the following utilities:
- Clearfix
- Display
- Flexbox
- Position
-
Streamline generation of viewport classes for different utilities. These utility classes follow a mobile-first design approach, meaning that something like
u-flex
will allow for all viewports. To change the behavior forsm
,md
,lg
, orxl
, we would need to apply additional modifier classes (see example below). c0e9980- In this example, here we start with
u-flex
forxs
tosm
. Formd
and above, we will useu-block
.
<div class="u-flex u-block-md"> <!-- --> </div>
- In this example, here we start with
Classes that apply on buttons such as default button styling, styling buttons in headers, etc. all now use a common selector. 1b6b997
-
New overflow utility classes: 2ac8654
- overflow-[auto/hidden/visible/scroll]
- overflow-x-[auto/hidden/visible/scroll]
- overflow-y-[auto/hidden/visible/scroll]
-
Other refactoring: 0ef030b
- Refactored code to extract more hard coded values to variables.
- Removed usage of prefixed *-transition properties, not needed according to http://shouldiprefix.com
- Removed remaining @media declaration in favor of screen-above, screen-below, and screen-between utilities
- Deprecated
font-italic
- Added more group selectors
? Fixes
? Breaking Changes
- Simplified position utility class naming: 9edfab5
-
u-position-static
=>u-static
-
u-position-fixed
=>u-fixed
-
u-position-absolute
=>u-absolute
-
u-position-relative
=>u-relative
-
u-position-sticky
=>u-sticky
-
- Renamed
u-hide-overflow
tou-overflow-hidden
to be consistent with utility class naming conventions. 5774e4b - Deprecated
font-italitc
, use<em></em>
or<i></i>
instead. 0ef030b
Thanks for reading!
? Thank you for taking the time to check out this post. For more content like this, head over to my actual blog. Feel free to reach out to me on LinkedIn and follow me on Github.
This content originally appeared on DEV Community and was authored by Stanley Lim
Stanley Lim | Sciencx (2021-06-04T16:25:23+00:00) Released Cirrus 0.6.2 ? – Build and Design Your Webapp Faster. Retrieved from https://www.scien.cx/2021/06/04/released-cirrus-0-6-2-%f0%9f%9a%80-build-and-design-your-webapp-faster/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.