- Normalize CSS
- Media Queries
- Mobile First
- Desktop First
- Container
- Grid System
- Properties Functions
- Z Index:
cd-zIndex
- Font Size:
cd-fontSize
- Font Weight:
cd-fontWeight
- Line Height:
cd-lineHeight
- Z Index:
- Typography
- Helpers
- Tooltip
- Navigation
widescreen (w): 1201 - greater
desktop (d): 993 - 1200
tablet (t): 768 - 992
smartphone (s): 481 - 767
mini (m): 0 - 480
@param $platformFirst: mobile | desktop
@param $device: mini | smartphone | tablet | desktop | widescreen
@param $orientation: portrait | landscape (optional)
min-width is used in the media queries
@include cd-media(mobile, mini) { }
@include cd-media(mobile, smartphone) { }
@include cd-media(mobile, tablet) { }
@include cd-media(mobile, desktop) { }
@include cd-media(mobile, widescreen) { }
@include cd-media(mobile, mini, portrait) { }
@include cd-media(mobile, mini, landscape) { }
max-width is used in the media queries
@include cd-media(desktop, widescreen) { }
@include cd-media(desktop, desktop) { }
@include cd-media(desktop, tablet) { }
@include cd-media(desktop, smartphone) { }
@include cd-media(desktop, mini) { }
@include cd-media(desktop, smartphone, portrait) { }
@include cd-media(desktop, smartphone, landscape) { }
We need a containing element to wrap site contents and house our grid system. Containers are nestable.
<div class="cd-container-fluid">content</div>
widescreen 1200 - 30 = 1170px
desktop 992 - 30 = 962px
<div class="cd-container">content</div>
Columns: 12
Gutter: 30px (15px on each side of a column)
Nestable: Yes
Offsets: Yes (cd-col-offset-device-column)
Ordering: Yes (cd-col-order-device-column)
<div class="cd-row">
<div class="cd-col cd-col-pm-m-12 cd-col-pm-s-12 cd-col-pm-t-6 cd-col-pm-d-4 cd-col-pm-w-4">content</div>
<div class="cd-col cd-col-pm-m-12 cd-col-pm-s-12 cd-col-pm-t-6 cd-col-pm-d-8 cd-col-pm-w-8">content</div>
</div>
<div class="cd-row">
<div class="cd-col cd-col-pd-m-12 cd-col-pd-s-12 cd-col-pd-t-6 cd-col-pd-d-4 cd-col-pd-w-4">content</div>
<div class="cd-col cd-col-pd-m-12 cd-col-pd-s-12 cd-col-pd-t-6 cd-col-pd-d-8 cd-col-pd-w-8">content</div>
</div>
A function for the property z-index.
@param $key: hide | initial | normal | float | modal | loader
@param $list: custom list (optional)
Example:
z-index: cd-zIndex(normal);
A function for the property font-size.
s10 = 10px
se1 = 1rem
@param $key: h1 | h2 | h3 | h4 | h5 | h6 | s10 - s50 | se1 - se10
@param $list: custom list (optional)
Example:
font-size: cd-fontSize(h1);
A function for the property font-weight.
@param $key: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
@param $list: custom list (optional)
Example:
font-weight: cd-fontWeight(100);
A function for the property line-height.
@param $key: 1 - 2.5
@param $list: custom list (optional)
Example:
line-height: cd-lineHeight(1);
color: #333333
h1: 2.5rem
h2: 2rem
h3: 1.75rem
h4: 1.5rem
h5: 1.25rem
h6: 1rem
p: 15px
a: 15px
span: 15px
body: 1.4
400: p, a, span
500: h1-h6
700: b, strong
cd-vh-center
cd-h-center
cd-v-center
cd-left-align
cd-right-align
cd-center-align
cd-hide-overflow
cd-hide-overflow-x
cd-hide-overflow-y
cd-opacity-high (hover effect: .5 -> 1)
cd-opacity-low (hover effect: 1 -> .9)
cd-hide
cd-show
cd-visible
cd-hidden
- You can combine
.cd-hide-on-*-up
and.cd-hide-on-*-down
classes to show an element only on a given interval of screen sizes. cd-hide-on-s-down
&cd-hide-on-d-up
: shows the element only on tablet viewport.- Using multiple
.cd-hide-on-*-up
or.cd-hide-on-*-down
classes is redundant and pointless.
cd-remove-bullets
cd-remove-bullets-nested