1
1
mirror of https://github.com/primer/css.git synced 2024-09-20 13:17:29 +03:00

Move .centered class from layout to utility

This commit is contained in:
Thomas Tuts 2015-03-31 12:57:14 +02:00
parent 5a3215f51b
commit 45c25a7be9
2 changed files with 11 additions and 8 deletions

View File

@ -59,14 +59,6 @@
padding-left: $grid-gutter;
}
// Centers content horizontally. Can be used inside or outside the grid.
.centered {
display: block;
float: none;
margin-left: auto;
margin-right: auto;
}
// Equal width columns via table sorcery.
.table-column {
display: table-cell;

View File

@ -9,6 +9,17 @@
.left { float: left; }
// Layout
// Centers content horizontally. Can be used inside or outside the grid.
.centered {
display: block;
float: none;
margin-left: auto;
margin-right: auto;
}
// Text alignment
.text-right { text-align: right; }