I have been remaking an old network on 3.0 and wanted to add some more style to the signup and signin pages. This tip will insert an image above the normal stuff and a few small tweaks to your network info. Animated GIFs look good too. I'm also working on the ability to insert a div and play videos instead of pictures... when I get a minute.
Add the code below to your CSS, and adjust to your needs.
Enjoy :)
FT
/***-----About Network Tweaks---- ***/
.aboutNetwork {border: groove 2px #fff; border-radius:5px;
padding:10px;
background:#fff;
text-align: center;
-moz-box-shadow:0px 1px 12px 5px rgba(0,0,0,.2),0px -2px 15px rgba(0,0,0,.4) inset;-webkit-box-shadow:0px 1px 12px 5px rgba(0,0,0,.2),0px -2px 15px rgba(0,0,0,.4) inset;box-shadow:0px 1px 12px 5px rgba(0,0,0,.2),0px -2px 15px rgba(0,0,0,.4) inset;
}
.aboutNetwork-title {
font-weight: bold;
text-align: center;
text-decoration: underline;}
.aboutNetwork-networkIcon {
margin-left: 40%;
margin-right: 40%;
margin-bottom: 10px;}
/***-----Pics Above Signin---- ***/
.module-actions.cf.signUpPage-signInLink.cf::before,.module-actions.cf.signInPage-signUpLink.cf::before {
height: 35em;
width: 100%;
border: groove 2px #fff; border-radius:5px;
margin: 0 0 2em 0;
background:url('http://YOUR_IMAGE_URL_GOES_HERE');background-size:100% 100%;
-moz-box-shadow:0px 2px 10px rgba(0,0,0,.8);-webkit-box-shadow:0px 2px 10px rgba(0,0,0,.8);box-shadow:0px 2px 10px rgba(0,0,0,.8);
}
/***-----Resize for Mobile---- ***/
@media screen and (min-width:60px) and (max-width:430px) {
.module-actions.cf.signUpPage-signInLink.cf::before,.module-actions.cf.signInPage-signUpLink.cf::before {
height: 16.5em;}
}
@media screen and (min-width:430px) and (max-width:550px) {
.module-actions.cf.signUpPage-signInLink.cf::before,.module-actions.cf.signInPage-signUpLink.cf::before {
height: 23em;}
}
@media screen and (min-width:550px) and (max-width:650px) {
.module-actions.cf.signUpPage-signInLink.cf::before,.module-actions.cf.signInPage-signUpLink.cf::before {
height: 28em;}
}
Replies
Very nice; good job FT
Thx KOS
Fire-tech, this is awesome and It looks very professional. Thank you for sharing and you have a great day. :-)
Thanks George. You do the same!
I'm having a rough go getting videos to work in the same location. I can insert a video above posts, but can't seem to make it stick on signin page. Any ideas?
Here's the quick and dirty for posts (minus the css)...
<!-----------------Forum Ads Before ------------------>
<script type="text/javascript">
if (typeof(x$) != 'undefined') {
x$("header.entry-headline.media-frame").before('<center><iframe width="100%" height="180" src="http://player.vimeo.com/video/49356164?title=0&byline=0&portrait=0&autoplay=0" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe></center>');
}
else{
}
</script>
nice tip bud!
Yeah.. that was a year ago. Haven't written a tip in a loooong time :)
time to reboot, homey!
Hi there!
Maybe it's time to stop hiding in the shadows and come out and join the light side of the force? :-)
Especially for this purpose, we can provide you with PromoMini package for $5.95 monthly, so you will be able to check all the changes by yourself.
May the force be with you,
Ning Team.