mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
New hgroup utility class
This commit is contained in:
parent
8d50cd8503
commit
eefef30750
1 changed files with 9 additions and 0 deletions
|
@ -61,11 +61,20 @@
|
||||||
.clearfix:after { clear: both; }
|
.clearfix:after { clear: both; }
|
||||||
.clearfix { *zoom: 1; }
|
.clearfix { *zoom: 1; }
|
||||||
|
|
||||||
|
// to vertically center elements whose parent element is display: table
|
||||||
.vertical {
|
.vertical {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// for <p> tags under <h> tags which should cuddle like lovers
|
||||||
|
.hgroup {
|
||||||
|
margin-bottom: 1.6em;
|
||||||
|
|
||||||
|
h1, h2, h3,
|
||||||
|
h4, h5, h6, p { margin: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
Global Styles
|
Global Styles
|
||||||
|
|
Loading…
Add table
Reference in a new issue