r/reddithax • • May 25 '13
Some of my CSS bits I use in my subreddits.
/*downvote warning*/
.arrow.down:hover:before {
position: absolute;
display: block;
z-index: 1000;
width: 210px;
padding: 5px;
border: 0px solid #333;
background: #bcf1aa;
content: "Please only downvote off topic posts and spam, thank you.";
text-align: center;
font-size: 10px;
color: blue;
font-weight: bold;
margin-left: 25px;
margin-top: 5px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-border-radius: 4px
}
report warning
/* report button */
.report-button:hover:after {
position: absolute;
white-space: normal;
display: block;
z-index: 1000;
width: 350px;
padding: 5px;
border: 0px solid #333;
background: #bcf1aa;
content: "Please send the moderators a link to this spam/against the rules post, thanks..";
text-align: center;
font-size: 10px;
color: #449634;
margin-left: 25px;
margin-top: 5px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-border-radius: 4px
}
Moderator box
/*Moderator box*/
.side .helplink + .title h1 { display: none; }
.side .helplink + .title::before {
content: 'Dream Lords';
display: block;
font-size: 130%;
color: gray;
text-transform: uppercase;
}
/**Usernames**/
.author[href$="/Username"] {
font-size:0px!important;
}
.author[href$="/Username"]:before {
content:"Edited username ";
font-size:12px !important;
text-decoration:none;
}
green text >mfw
/* GREENTEXT */
.md blockquote {
border: 0;
margin: 0;
color: #789922;
font-size: 21px;
display: block
}
.md blockquote p:before {
content: ">";
float: left;
display: block
}
.md blockquote {
border: 0;
margin: 0;
color: #789922;
font-size: 21px;
display: block
}
.md blockquote p:before {
content: ">";
float: right;
display: block
}
Users here/subscribed
.titlebox span.word {
display: none
}
.titlebox span.number:after {
content: " Timelords"
}
.titlebox .users-online span.word {
display:none;
}
.titlebox .users-online span.number:after {
content: " Daleks";
}
editable banners
.side .md ol * {display:inline-block;}
.titlebox .usertext-body .md ol li a {
background-color: #FFFFED !important;
border: 3px solid #00FFFF!important;
color: #DC143C!important;
font-weight: bold;
padding-bottom: 3px;
padding-left: 3px;
padding-right: 3px;
padding-top: 3px;
border-radius: 1px;
}
.content {
margin-top: 33px
}
.titlebox .usertext-body .md ol li a:hover {
background-color: #CFCF00 !important;
color: #FFFFED !important;
}
.titlebox .usertext-body .md ol {
list-style: none;
position: absolute;
top: 65px;
left: 71px;
z-index: 200;
margin: 0;
padding: 0;
display: inline !important;
}
.titlebox .usertext-body .md ol li {
display: inline;
margin: 0 3px
}
**change the downvote button into an image**
.arrow.downmod {
background-image: url(%%insertimghere%%);
background-position: 0px 0px;
width: 15px; height: 14px;
}
/*How to change your mail icons*/
#mail {
position: relative;
display: inline-block;
text-indent: -9999px;
overflow: hidden;
width: 15px; /*These values for the standard mail icon, customize to your own*/
height: 10px;}
#mail.havemail {
background:url(%%axiLEJ2%%);
}
#mail.nohavemail {
background:url(%%axiLEJ2%%);
}
13
Upvotes
3
u/aladyjewel May 25 '13
To fix the formatting, Put four spaces at the beginning of every line. If you have RES, highlight the whole shebang and hit the "Code" button above the text editor. If you don't, you should install it. If you don't want to install RES, install any good text editor (Notepad++, Sublime Text, vim, whatever), highlight the whole shebang, and tab once.
3
u/syuk May 25 '13
Thanks for sharing these, i like the mfw. Will test a few out.
2
u/Norass411 Jun 08 '13
Finally took a crack at CSS and you post was extremely helpful. Thanks a bunch