Last active
November 16, 2015 14:59
-
-
Save ckoppelman/419ff82e8bd79d9107b3 to your computer and use it in GitHub Desktop.
Creates a floating pill of the Sandbox name or else the environment. To be used with Stylish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("salesforce.com") { | |
/* | |
* this is where SFDC keeps the "Sandbox: xxx" message. | |
* the .messages element is empty if it's not a sandbox | |
*/ | |
#phHeader .messages .pageMsg.textOnly.normalImportance, | |
#phHeader .messages:empty::after { | |
background: #faebd7 none repeat scroll 0 0; | |
border: 2px outset #000000; | |
border-radius: 4em; | |
color: blueviolet; | |
display: inline-block; | |
font-size: large; | |
font-weight: normal; | |
opacity: 0.2; | |
padding: 4px 6px; | |
position: fixed; | |
right: 5em; | |
top: 3em; | |
z-index: 10000; | |
transition: opacity ease 1s; | |
} | |
#phHeader .messages .pageMsg.textOnly.normalImportance:hover, | |
#phHeader .messages:empty:hover::after { | |
opacity: 1; | |
} | |
#phHeader .messages:empty::after { | |
content: "Live"; | |
font-variant: small-caps; | |
color: magenta; | |
} | |
} | |
@-moz-document domain("{production url}") { | |
#phHeader .messages:empty::after { | |
content: "Production: {production url}"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example: