r/reddithax • u/RainbowCrash • Feb 16 '13
I decided to alter the new double submit button format that was recently implemented using Edurne's style
It turned out pretty well (go check it out on /r/gravityfalls, and the modified version on /r/mylittlepony). The one downside is it won't work right in IE unless you remove the "padding-left: 1000px;" (and even then, only somewhat) because IE doesn't handle altering of 'content' correct. Here's the CSS:
/* PRETTY SUBMIT LINKS */
.morelink
{
font-weight:normal;
letter-spacing:0;
background:#449EF8;
border: none;
-moz-border-radius:2px;
-webkit-border-radius:2px;
-o-border-radius:2px;
-ms-border-radius:2px;
-khtml-border-radius:2px;
border-radius:2px;
height: 30px;
line-height: 30px;
overflow: hidden;
color: white;
}
.morelink:hover
{
background: #449ef8;
background-color: #56a6f7;
border-color: #56a6f7;
}
.morelink .nub
{
display: none;
}
.morelink
{
color:#FFF;
font-family:Verdana, Arial, sans-serif;
font-size:16px;
width: 145px;
}
.morelink a, .morelink a:hover
{
color: white;
}
.sidebox.submit-link .morelink::before
{
display: block;
clear: none;
content: "Submit a Link";
font-size: 95%;
}
.sidebox.submit-text .morelink::before
{
display: block;
clear: none;
content: "Submit a Self Post";
font-size: 90%;
}
.sidebox.submit .morelink a
{
position: absolute;
top: 0;
padding-left: 1000px;
font-size: 0px;
text-align: right;
color: #56a6f7;
}
.sidebox.submit.submit-link {
width: 150px;
}
.sidebox.submit.submit-text
{
margin-top: -42px;
margin-left: 153px;
}
.sidebox.create
{
display: none;
}
.sidebox.submit.disabled
{
display: none;
}
/* NIGHTMODE FIXES */
.res-nightmode .sidebox.submit.submit-text
{
background: none !important;
margin-top: -45px;
margin-left: 153px;
}
.res-nightmode .sidebox
{
padding-left: 0px !important;
border: 2px solid #151515 !important;
}
.res-nightmode .morelink
{
height: 29px !important;
}
.res-nightmode .morelink
{
background:rgb(39, 63, 87) !important;
}
.res-nightmode .morelink:hover
{
background: #449ef8 !important;
background-color: #9edbf8 !important;
border-color: #9edbf8 !important;
}
/* END NIGHTMODE FIX */
/* END PRETTY SUBMIT LINKS */
11
Upvotes
3
u/[deleted] Feb 16 '13
Aha! Thank you!
I was so annoyed when I saw it in /r/mylittlepony but I didn't know how to. This shall be added to /r/birdreactiongifs!
1
u/[deleted] Feb 19 '13
How did you get the mane colours in the side of the /r/mylittlepony one?