Skip to content

Instantly share code, notes, and snippets.

@nathggns
Created November 22, 2013 14:40
Show Gist options
  • Save nathggns/7600899 to your computer and use it in GitHub Desktop.
Save nathggns/7600899 to your computer and use it in GitHub Desktop.
Modification to the flag object to add the ability to make it inline
/*------------------------------------*\
$FLAG
\*------------------------------------*/
.flag {
display: table;
width: 100%;
}
.flag--inline {
width: auto;
}
.flag__image,
.flag__body {
display: table-cell;
vertical-align: middle;
.flag--top & {
vertical-align: top;
}
.flag--bottom & {
vertical-align: bottom;
}
}
.flag__image {
padding-right: 10px;
> img {
display: block;
max-width: none;
}
.flag--rev & {
padding-right: 0;
padding-left: 10px;
}
}
.flag__body {
width: 100%;
.flag--inline & {
width: auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment