Share
Embed
Grids Everywhere
Ivan Banov
May 24, 2016
Transcript
51 slides
-
So, what’s a grid? Any group of line that were
drawn to guide a design http://waltermattos.com/artigos/grids-no-design-grafico-o-que-voce-precisa-saber-antes-de-comecar-a-usar/ -
So, what’s a grid? Any group of line that were
drawn to guide a design http://waltermattos.com/artigos/grids-no-design-grafico-o-que-voce-precisa-saber-antes-de-comecar-a-usar/ -
So, what’s a grid? Any group of line that were
drawn to guide a design -
So, what’s a grid? Any group of line that were
drawn to guide a design -
So, what’s a grid? Any group of line that were
drawn to guide a design -
Looking back Bauhaus, the first design’s school of the world
just consolidated the history -
Grid anatomy No matter how simple or complex, grids share
some common parts, the anatomy many times will get similar “blocks” http://vanseodesign.com/web-design/grid-anatomy/ -
Grid anatomy Format Format is the stage of the design,
such as the browser window on websites The format defines the live area of a design where type, images, and other media are present http://vanseodesign.com/web-design/grid-anatomy/ -
Grid anatomy Columns Vertical segments which can be any number
in a grid, as much as more columns, more flexibility and sometimes harder to work http://vanseodesign.com/web-design/grid-anatomy/ -
Grid anatomy Rows Rows are the horizontal equivalent of columns.
Online it’s harder to plan for rows as the height of the format is often inconsistent and dynamic http://vanseodesign.com/web-design/grid-anatomy/ -
Grid anatomy Gutters Gutters are the spaces separating modules either
vertically or horizontally http://vanseodesign.com/web-design/grid-anatomy/ -
Grid anatomy Margins Margins are the negative space between the
edge of the format and the outer edge of the content http://vanseodesign.com/web-design/grid-anatomy/ -
Why to use? - Quicker development - Collaborating with other
developers much easier -
Why to use? - Quicker development - Collaborating with other
developers much easier - Productivity -
Why to use? - Quicker development - Collaborating with other
developers much easier - Productivity - Extremely simpler to work responsiveness -
DEV x Designer The DESIGN should guide the grid and
not the opposite -
DEV x Designer The CODE should be guided by the
design/grid -
DEV x Designer The BEST solution is always the closest
approach between the design and the code -
Define a strategy First of all it’s needed to define
how the grid will work -
Define a strategy First of all it’s needed to define
how the grid will work - Class names convention -
Define a strategy First of all it’s needed to define
how the grid will work - Class names convention - CSS technique -
Define a strategy First of all it’s needed to define
how the grid will work - Class names convention - CSS technique - Relative and absolute columns -
Define a strategy First of all it’s needed to define
how the grid will work - Class names convention - CSS technique - Relative and absolute columns - Mixins and helpers -
Define a strategy First of all it’s needed to define
how the grid will work - Class names convention - CSS technique - Relative and absolute columns - Mixins and helpers - Breakpoints -
Define a strategy First of all it’s needed to define
how the grid will work - Class names convention - CSS technique - Relative and absolute columns - Mixins and helpers - Breakpoints - Media query manager -
Define a strategy First of all it’s needed to define
how the grid will work - Class names convention - CSS technique - Relative and absolute columns - Mixins and helpers - Breakpoints - Media query manager - Handling common problems -
Define a strategy Class names convention Columns Sizes .col /
.column .small-6 / .sm-3 / .col-sm-1 .col-sm-2-3 / .column-1-6.large .column.six.wide.device -
Define a strategy Class names convention Wrappers .grid / .grid.N-columns
/ .gridbox / .flex-grid / .row -
Define a strategy .breakpoint-X .column .row / .row.column .grid .col-breakpoint-N
.col-breakpoint-N-N CSS technique This is an important point where should be decided the classes responsibilities -
Define a strategy Relative and absolute columns <div class="grid"> <div
class="column small-4"></div> <div class="column small-4"></div> <div class="column small-4"></div> </div> -
Define a strategy Relative and absolute columns <div class="grid"> <div
class="column small-1-4"></div> <div class="column small-1-4"></div> <div class="column small-2-4"></div> </div> <div class="grid"> <div class="col-sm-1-4"></div> <div class="col-sm-1-4"></div> <div class="col-sm-2-4"></div> </div> -
Define a strategy Relative and absolute columns <div class="flexgrid"> <div
class="column"></div> <div class="column"></div> <div class="column"></div> </div> <div class="gridbox-3"> <div class="column"></div> <div class="column"></div> <div class="column"></div> </div> -
Define a strategy Offsets .pull / .push Aligment .center /
.end Block control .stack / .relaxed Mixins and helpers Here comes the classes and mixins that help the grid to fit in all the situations that the design would like to create -
Define a strategy Column generator column(small, 6) columnSize(4) Grid grid(3)
Mixins and helpers Here comes the classes and mixins that help the grid to fit in all the situations that the design would like to create -
Define a strategy $breakpoints = { small : 320px, medium
: 768px, large : 992px, wide : 1440px } Breakpoints Even knowing the most common sizes of devices The breakpoints whenever possible should be defined with the design team -
Define a strategy media(small, true) media(small, large) Block code +media(medium)
{ prop: value; } Media query manager Define how the mixin for media queries will work is extremely important -
Using a grid Template Sizes <div class="grid"> .component { <div
class="column size"> column(3); }