Skip to content

Instantly share code, notes, and snippets.

@prawnsalad
Forked from sbarfurth/sidebar-button.css
Last active June 23, 2016 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save prawnsalad/416ac437260942d79caa7d08695bfe08 to your computer and use it in GitHub Desktop.
Save prawnsalad/416ac437260942d79caa7d08695bfe08 to your computer and use it in GitHub Desktop.
orangechat.io sidebar button
.titlebox .usertext-body .md em a[href^="https://app.orangechat.io"] {
font-style: normal;
display: block;
text-decoration: none;
padding: 12px 12px 12px 12px;
margin: 12px 0;
border-radius: 3px;
text-align: center;
cursor: pointer;
font-size: 1.5em;
border: 1px solid #d93400;
text-shadow: 1px 1px 1px #e73700;
color: #fff;
background-color: #ff5722;
background-image: -webkit-linear-gradient(top, #ff5722 0%, #f63b00 100%);
background-image: linear-gradient(to bottom, #ff5722 0%, #f63b00 100%);
background-image: url(%%logo-white%%), -webkit-linear-gradient(top, #ff5722 0%, #f63b00 100%);
background-image: url(%%logo-white%%), linear-gradient(to bottom, #ff5722 0%, #f63b00 100%);
background-position: 12px center, center center;
background-size: 22px 22px, cover;
background-repeat: no-repeat;
}
.titlebox .usertext-body .md em a[href^="https://app.orangechat.io"]:hover {
background-image: -webkit-linear-gradient(top, #ff5722 0%, #f63b00 100%);
background-image: linear-gradient(to bottom, #ff5722 0%, #f63b00 100%);
background-image: url(%%logo-white%%), -webkit-linear-gradient(top, #ff7043 0%, #f63b00 100%);
background-image: url(%%logo-white%%), linear-gradient(to bottom, #ff7043 0%, #f63b00 100%);
}
*[chat with us](https://app.orangechat.io/#/r/subreddit)*
@dukwon
Copy link

dukwon commented Jun 23, 2016

A couple of things:

  1. Lines 24 & 25 probably shouldn't be identical to 15 & 16. I think they're supposed to have the lighter colour #ff7043 instead of #ff5722
  2. I suggest adding the following so it looks like the button has been "pushed" when you click it
.titlebox .usertext-body .md em a[href^="https://app.orangechat.io"]:active {
    background-color: #f63b00;
    background-image: url(%%logo-white%%);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment