Skip to content

Instantly share code, notes, and snippets.

@KonTrax
Created July 31, 2014 07:11
Show Gist options
  • Save KonTrax/ebb34ba94db575044148 to your computer and use it in GitHub Desktop.
Save KonTrax/ebb34ba94db575044148 to your computer and use it in GitHub Desktop.
KonTraBox_UnityForums Tweaks for the Unity3D community forums
@namespace url(http://www.w3.org/1999/xhtml);
/*
* KonTraBox_UnityForums
*
* FireFox :
* Use as is
*
* Chrome & others :
* 1. Apply to : "URLs on the domain" "forum.unity3d.com"
* 2. Remove / Comment out the line below ("@-moz-document...")
* 2. Remove / Comment out the last line ("}")
*/
@-moz-document domain("forum.unity3d.com") { /* Remove this line on chrome */
/** ############################## **/
/***
Begins with : a[src^="https"]
Contains : a[src*="github"]
Ends with : a[src$=".com"]
Padding / Margin:
xxx : top right bottom left;
border-radius:
xxx : top-left top-right bottom-right bottom-left;
***/
/** ############################## Page
**/
/** Page: Container **/
div.pageWidth{
max-width: none;
margin-left: 20px;
margin-right: 20px;
}
/** ############################## Links
**/
/** Links: External **/
/** Links: External: General **/
.ugc a.externalLink{
display : inline-flex;
padding : 0px 4px 0px 0px;
margin : 0px 4px 0px 0px;
background-color : #E8E8E8;
font-size : 12px;
text-decoration : none;
}
.ugc a.externalLink:hover{
text-decoration : underline;
}
.ugc a.externalLink::before{
/* display : inline-flex; */
display : inline-block;
padding : 0px 5px 0px 5px;
margin : 0px 4px 0px 0px;
border-right : 2px solid #AAA;
background-color : #C2DBFF;
color : #666;
font-size : 11px;
content : "*";
}
/** Links: External: URLs **/
.ugc a.externalLink[href*="gist.github.com"]::before{
content: "gist";
}
.ugc a.externalLink[href*="assetstore.unity3d.com"]::before{
content : "assetstore";
}
/** ############################## Code
**/
/** Code: Container **/
div.bbCodeBlock{
margin-right: 0px;
border-top : 6px solid #C2DBFF;
border-left : 4px solid #FFB400;
border-right : 4px solid #FFB400;
border-bottom : 6px solid #C2DBFF;
}
/** Code: Block **/
div.bbCodeBlock .code{
font-size: 12px;
line-height: 1.24;
}
/** Code: Line **/
div.bbCodeBlock .code ol li{
padding-left: 6px;
border-left: 1px dotted #CCC;
}
/** Code: Line: Hover **/
div.bbCodeBlock .code ol li:hover{
background-color: #E0E0E0;
}
/** ############################## **/
} /* Remove this line on chrome */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment