Skip to content

Instantly share code, notes, and snippets.

@mcfog
Created November 3, 2014 11:17
Show Gist options
  • Save mcfog/6a68cce89263ae206545 to your computer and use it in GitHub Desktop.
Save mcfog/6a68cce89263ae206545 to your computer and use it in GitHub Desktop.

Revisions

  1. mcfog created this gist Nov 3, 2014.
    13 changes: 13 additions & 0 deletions mixins.less
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    .vertical-align-middle(@child: ~".content") {
    &:before {
    display: inline-block;
    content: '';
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em;
    }
    @{child} {
    display: inline-block;
    vertical-align: middle;
    }
    }