ajout de possibilité de créer une grille de 1 colonne

This commit is contained in:
Raphael Goetter 2017-08-02 15:17:09 +02:00
parent bb68ba9741
commit fbfef9ea9c
5 changed files with 34 additions and 8 deletions

View file

@ -2552,6 +2552,11 @@ button:focus {
}
}
[class*="grid-1"] {
-ms-grid-columns: (1fr)[1];
grid-template-columns: repeat(1, 1fr);
}
[class*="grid-2"] {
-ms-grid-columns: (1fr)[2];
grid-template-columns: repeat(2, 1fr);
@ -2607,6 +2612,18 @@ button:focus {
grid-template-columns: repeat(12, 1fr);
}
[class*="col-1"] {
-ms-grid-column-span: 1;
-ms-grid-column: auto;
grid-column: auto/span 1;
}
[class*="row-1"] {
-ms-grid-row-span: 1;
-ms-grid-row: auto;
grid-row: auto/span 1;
}
[class*="col-2"] {
-ms-grid-column-span: 2;
-ms-grid-column: auto;
@ -2777,6 +2794,9 @@ button:focus {
-ms-grid-column: auto;
grid-column: auto/span 4;
}
[class*="-small-all"] {
grid-column: 1 / -1;
}
}
.item-first {