Skip to content

Instantly share code, notes, and snippets.

@yoonwaiyan
Created January 7, 2015 07:11
Show Gist options
  • Save yoonwaiyan/9cbdf2e68533af6fe0af to your computer and use it in GitHub Desktop.
Save yoonwaiyan/9cbdf2e68533af6fe0af to your computer and use it in GitHub Desktop.
Status Tag CSS extracted from ActiveAdmin. Can be applied in any scss with "status_tag" class with the appropriate class name for the colors.
.status_tag {
background: darken(#cacaca, 15%);
color: #fff;
text-transform: uppercase;
letter-spacing: 0.15em;
padding: 3px 5px 2px 5px;
font-size: 0.8em;
&.ok, &.published, &.complete, &.completed, &.green { background: #8daa92; }
&.warn, &.warning, &.orange { background: #e29b20; }
&.error, &.errored, &.red { background: #d45f53; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment