This project is to take everything learned so far and use it to build our own simple grid-based framework (the scss file). It also consists of a second part which is building a website with the recently made framework; site built: getfedora.
Technologies used: HTML, CSS and SASS.
Main usage points for the framework used with css, main topics:
For added responsiveness for different screen sizes
- xs -> 425px
- sm -> 575px
- md -> 767px
- lg -> 1024px
- xl -> 1440px
For col Sizes
- columns go inside rows and are divided in 12 spans (1 - 12) For paddings and margins
- from -8 to 8 which translates to: -4rem to 4rem
Used mainly for paddings, margins
- t -> top
- b -> bottom
- l -> left
- r -> right
For each side and for each breakpoint
- p(side)-(breakpoint)
- pt, pb, pl and pr (e.g.: pr-xs)
- m
- mt, mb, ml and mr
For positioning elements (used mainly for positioning with flex property)
- container
- container-fluid
- col
- (e.g.: col-xs-1)
- can work with breakpoints
- flex-col
For x-axis justify-content:
- flex-
- center, start, end , between and around For y-axis align-self:
- align-
- center, start and end
Used with rem values from 0 to 4 and worked with for 2 corners at a time
- top (top left and right)
- bottom (bottom left and right)
- left (left top and bottom)
- right (right top and bottom)
Used for floats and clear:
- float-
- l (left), r(right), n(none)
- clear-
- l(left), r(right), n(none), b(both)
Used for setting positiong of elements:
- pos-
- rel(relatve), abs(absolute), fix(fixed)
Used to set stling to the text: Setting text size:
- text-
- from 1 to 8 which translates to: 0.5rem to 4rem Setting font weight:
- text-
- b(bold), n(normal), l(lighter)
For more info, check the Odin Project