Académique Documents
Professionnel Documents
Culture Documents
1
Grilles macro-typo 2 /184
Qui sommes-nous ?
Grilles macro-typo 3 /184
Qui sommes-nous ?
Marie Guillaumet
Web designer et
développeur web front-end
http://marieguillaumet.com/
@kreestal
bit.ly/site-marie
Grilles macro-typo 4 /184
Qui sommes-nous ?
Vincent Valentin
Développeur web front-end
http://www.htmlzengarden.com/
@htmlzg
bit.ly/site-vincent
Grilles macro-typo 5 /184
Avant-propos
Retour d’expérience
++pragmatisme
−−démonstrations techniques avancées
Grilles macro-typo 6 /184
Plan d’attaque !
1.La grille toute puissante
2.Concevoir sa grille
3.La grille dans la pratique
Grilles macro-typo 7 /184
Objectifs
N’oubliez pas !
N’hésitez pas à nous interrompre si vous
avez des questions.
Quelques définitions
Grilles macro-typo /184
Colonnes
Grilles macro-typo /184
Grilles macro-typo /184
Gouttières
Grilles macro-typo /184
Grilles macro-typo /184
Grilles macro-typo /184
Grilles macro-typo /184
Ligne de base
Grilles macro-typo /184
Ligne de base
Grilles macro-typo /184
Grilles macro-typo /184
Grilles macro-typo 20 /184
Première partie
La grille toute puissante
Grilles macro-typo 21 /184
Print vs Web :
•une filiation évidente
•un fossé technique immense
Grilles macro-typo 22 /184
++ Lisibilité
++ Accessibilité
++ Capitaliser sur l'apprentissage
Grilles macro-typo 26 /184
Écriture et architecture
3400 avant J.C. : écritures cunéiformes
Grilles macro-typo 28 /184
Grilles macro-typo 29 /184
Écriture et architecture
2670 à 2450 avant J.C. : pyramides de
Guizeh, construites avec le nombre d'or
Grilles macro-typo 30 /184
Grilles macro-typo 31 /184
Écriture et architecture
449 à 438 avant J.C. : le Parthénon
Mondrian
Composition avec
jaune, bleu et rouge
(1939-1942)
Grilles macro-typo 35 /184
Morellet
Reflets dans l’eau
déformés par
le spectateur
(1964)
Grilles macro-typo 36 /184
Buren
Les deux plateaux
(1996)
Grilles macro-typo 37 /184
Grilles macro-typo 38 /184
Graphisme contemporain
Style suisse : prise de pouvoir de
l’utilitaire sur l’expression personnelle.
Emil Ruder
(1914–1970)
Grilles macro-typo 40 /184
Emil Ruder
(1914–1970)
Grilles macro-typo 41 /184
Josef Müller-
Brockmann
(1914–1996)
Grilles macro-typo 42 /184
Josef Müller-
Brockmann
(1914–1996)
Grilles macro-typo 43 /184
Deuxième partie
Concevoir sa grille
Grilles macro-typo 53 /184
Définir sa grille
Grilles macro-typo 58 /184
Définir sa grille
Grille verticale
•largeur de page
•largeur de gouttière
•largeur de colonne
•nombre de colonnes
Grilles macro-typo 59 /184
Définir sa grille
Grille verticale
•largeur de page
•largeur de gouttière
•largeur de colonne
•nombre de colonnes
Grilles macro-typo 60 /184
Définir sa grille
Grille verticale Grille horizontale
Définir sa grille
Grille verticale Grille horizontale
Définir sa grille
Grille verticale Grille horizontale
Définir sa grille
•S’aider de formules
•S’aider d’outils visuels
Grilles macro-typo 64 /184
Démonstration
bit.ly/grid-calc
bit.ly/scale-rhythm
Grilles macro-typo 65 /184
Démonstration
bit.ly/marges-px-em
Grilles macro-typo 67 /184
Et pour le RWD ?
•Écrans larges : tailles maîtrisées
•Écrans mobiles : pas d’espace à perdre
Grilles macro-typo 68 /184
Configurer sa grille :
Photoshop
+ GuideGuide
http://www.guideguide.me/
bit.ly/guide-guide
Grilles macro-typo 69 /184
Démonstration
bit.ly/guide-guide
Grilles macro-typo 70 /184
Attention !
1. Choisir un interlignage égal à la largeur
des gouttières
http://www.lyon.archi.fr/
bit.ly/lyon-archi
Grilles macro-typo 76 /184
http://www.enssib.fr/
bit.ly/école-enssib
Grilles macro-typo 79 /184
http://www.foncia-location-vacances.fr/
bit.ly/foncia-vacances
Grilles macro-typo 82 /184
Grille modulaire
http://www.hattienewman.co.uk/
bit.ly/hattie-newman
Grilles macro-typo 86 /184
http://promisetangeman.com/
bit.ly/promise-tangeman
Grilles macro-typo 89 /184
http://volumique.com/v2/
bit.ly/volumique-v2
Grilles macro-typo 92 /184
http://manchesterwire.co.uk/
bit.ly/manchester-wire
Grilles macro-typo 93 /184
http://pinterest.com/
bit.ly/grid-pinterest
Grilles macro-typo 97 /184
http://www.flowfestival.com/
bit.ly/flow-festival
Grilles macro-typo 100 /184
Fonctionnement CSS
Grilles macro-typo 102 /184
Grille verticale
Grilles macro-typo 103 /184
Grille verticale
.col
{
width: 60px;
float: left; /* + hack si nécessaire */
margin-right: 20px;
}
Grilles macro-typo 104 /184
Grille verticale
#aside
{
width: 300px; /* (60 * 4) + (20 * 3) */
float: left;
margin-right: 20px;
}
Grilles macro-typo 105 /184
Grille verticale
.col
{
width: 60px;
float: left;
margin-left: 20px;
}
Grilles macro-typo 106 /184
Grille verticale
.col
{
width: 60px;
float: left;
margin-left: 10px;
margin-right: 10px;
}
Grilles macro-typo 107 /184
Grille verticale
.first-child /* ou :first-child */
{margin-left: 0;}
.last-child
{margin-right: 0;}
Grilles macro-typo 108 /184
Grille horizontale
Grilles macro-typo 109 /184
body
{
font-size: 0.875em; /* soit 14 pixels */
line-height: 1.42867em; /* soit 20 pixels */
}
Grilles macro-typo 110 /184
Grille horizontale
p /* le body est fixé à 14 pixels */
{
font-size: 1em; /* soit 14 pixels */
line-height: 1.42867em; /* soit 20 pixels */
margin-bottom: 1.42867em;
}
Grilles macro-typo 111 /184
Grille horizontale
p
{
font-size: 1em;
line-height: 1.42867em; /* soit 20 pixels */
margin-top: 1.42867em;
}
Grilles macro-typo 112 /184
Grille horizontale
p
{
font-size: 1em;
line-height: 1.42867em; /* soit 20 pixels */
margin-top: 1.42867em; /* fusion */
margin-bottom: 1.42867em;
}
Grilles macro-typo 113 /184
Grille verticale
Grilles macro-typo 115 /184
Grille verticale
.gutter-border
{
margin-right: 10px; /* 10 + (60 / 2) */
padding-right: 9px; /* 9 + (60 / 2) */
border-right: 1px solid pink;
}
Grilles macro-typo 116 /184
Grille verticale
.col-border
{
margin-right: 40px; /* 10 + (60 / 2) */
padding-right: 39px; /* 9 + (60 / 2) */
border-right: 1px solid pink;
}
Grilles macro-typo 117 /184
Grille horizontale
Grilles macro-typo 118 /184
Grille horizontale
p
{
font-size: 1em; /* soit 14 pixels */
line-height: 1.42867em; /* soit 20 px */
margin-bottom: 1.42867em;
}
Grilles macro-typo 119 /184
Grille horizontale
p
{
font-size: 2em; /* soit 28 pixels */
line-height: 0.71428em; /* 1.42em / 2 */
margin-bottom: 0.71428em;
}
Grilles macro-typo 120 /184
Grille horizontale
p strong /* p est à 28 pixels */
{
font-size: ?em; /* on veut 32 pixels */
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 121 /184
Démonstration
bit.ly/em-calculator
Grilles macro-typo 122 /184
Grille horizontale
p strong /* p est à 28 pixels */
{
font-size: 1em; /* on obtient 28 pixels */
font-size: ?em; /* on veut 32 pixels */
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 123 /184
Grille horizontale
p strong /* p est à 32 pixels */
{
font-size: 1em; /* on obtient 28 pixels */
font-size: ?em; /* on veut 32 pixels */
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 124 /184
Grille horizontale
p strong /* p est à 32 pixels */
{
font-size: 1em; /* on obtient 28 pixels */
font-size: ?em; /* on veut 32 pixels */
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 125 /184
Grille horizontale
p strong /* p est à 32 pixels */
{
font-size: 1em; /* on obtient 28 pixels */
32/28
font-size: ?em; /* on veut 32 pixels */
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 126 /184
Grille horizontale
p strong /* p est à 28 pixels */
{
font-size: 32/28em; /* soit 32 pixels */
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 127 /184
Grille horizontale
p strong /* p est à 28 pixels */
{
font-size: 32/28em; /* soit 32 pixels */
line-height: 1em; /* on obtient 32 pixels */
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 128 /184
Grille horizontale
p strong /* p est à 32 pixels */
{
font-size: 36/32em; /* soit 36 pixels */
line-height: 1em; /* on obtient 32 pixels */
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 129 /184
Grille horizontale
p strong /* p est à 32 pixels */
{
font-size: 36/32em; /* soit 36 pixels */
line-height: 1em; /* on obtient 32 pixels */
20/32
line-height: ?em; /* on veut 20 pixels */
margin-bottom: ?em;
}
Grilles macro-typo 130 /184
Grille horizontale
p strong /* p est à 28 pixels */
{
font-size: 32/28em; /* soit 32 pixels */
line-height: 20/32em; /* soit 20 pixels */
margin-bottom: 20/32em;
}
Grilles macro-typo 131 /184
De bons outils
Grilles macro-typo 132 /184
Normalize.css
• Définir une base de travail
• Disponible en deux versions
bit.ly/normalize-demo
Grilles macro-typo 133 /184
Préprocesseurs CSS
Grilles macro-typo 134 /184
Préprocesseurs CSS
•Calculs simples
•Tâches répétitives
Grilles macro-typo 135 /184
Préprocesseurs CSS
•Variables
•Calculs
•Fonctions
•Héritage
•Imbrications
Grilles macro-typo 136 /184
Préprocesseurs CSS
•Less
•Sass (Sass et SassyCSS)
•Compass
•Stylus
Grilles macro-typo 137 /184
bit.ly/compass-rhythm
Grilles macro-typo 138 /184
strong {
$fs2: 32px;
.font-size($fs2, $fs1);
.line-height($fs2, $fs1); .margin-bottom($fs2,
$fs1);
}
}
Grilles macro-typo 141 /184
.bloc($fs1);
strong {
$fs2: 32px;
.bloc($fs2, $fs1);
}
}
Grilles macro-typo 142 /184
$grid-width: 60px;
$grid-margin: 20px;
$grid-columns-desktop: 12;
$grid-columns-tablet: 10;
$grid-columns-mobile: 1;
Grilles macro-typo 145 /184
#grid
• Contrôle de la grille
• Aucune image, tout en CSS
• À supprimer en production
bit.ly/hash-grid
Grilles macro-typo 146 /184
Démonstration
bit.ly/hash-grid-demo
Grilles macro-typo 147 /184
Troisième partie
Dans la pratique
Grilles macro-typo 165 /184
#foo
{
! border-bottom: 10px solid pink;
}
Grilles macro-typo 177 /184
#foo
{
! border-bottom: 10px solid pink;
! margin-top: -10px;
}
Grilles macro-typo 178 /184
#foo
{
! border-bottom: 10px solid pink;
! margin-top: -10px;
! position: relative;
! top: 10px;
}
Grilles macro-typo 179 /184
#foo
{
! .border-bottom
! (10px, solid, pink);
}
Grilles macro-typo 181 /184
bit.ly/jquery-baseline
Grilles macro-typo 183 /184
Conclusion
Grilles macro-typo 184 /184
@kreestal
@htmlzg