r/csshelp • u/IFUCKINGLOVEMETH • Mar 01 '16
r/csshelp • u/Google_Panda • Feb 11 '16
Resolved I don't understand how to properly set up link flairs.
I'm trying to make link flairs that other users may edit for r/RandomGiftsOfStamps.
I used the stitches site recommend from here, however, that is only for regular flair from my understanding.
It gave me this:
.linkflair-austrailia {
width: 40px;
height: 20px;
background-position: -5px -5px;}
.linkflair-brazil { width: 40px; height: 20px; background-position: -5px -35px; }
.linkflair-britain { width: 40px; height: 20px; background-position: -5px -65px; }
.linkflair-canada { width: 40px; height: 20px; background-position: -5px -95px; }
.linkflair-china { width: 40px; height: 20px; background-position: -5px -125px; }
.linkflair-germany { width: 40px; height: 20px; background-position: -5px -155px; }
.linkflair-globe { width: 40px; height: 20px; background-position: -5px -185px; }
.linkflair-india { width: 40px; height: 20px; background-position: -5px -215px; }
.linkflair-italy { width: 40px; height: 20px; background-position: -5px -245px; }
.linkflair-japan { width: 40px; height: 20px; background-position: -5px -275px; }
.linkflair-mexico { width: 40px; height: 20px; background-position: -5px -305px; }
.linkflair-northkorea { width: 40px; height: 20px; background-position: -5px -335px; }
.linkflair-norway { width: 40px; height: 20px; background-position: -5px -365px; }
.linkflair-philippines { width: 40px; height: 20px; background-position: -5px -395px; }
.linkflair-southafrica { width: 40px; height: 20px; background-position: -5px -425px; }
.linkflair-southkorea { width: 40px; height: 20px; background-position: -5px -455px; }
.linkflair-sweden { width: 40px; height: 20px; background-position: -5px -485px; }
.linkflair-usa { width: 40px; height: 20px; background-position: -5px -515px; }
.linkflair-venezuela { width: 40px; height: 20px; background-position: -5px -545px; }
.linkflair-vietnam { width: 40px; height: 20px; background-position: -5px -575px; }
I tried following the guide and imgur image, however I still cannot understand.
I then proceeded to try and correct it this way
.linkflair-badge .linkflairlabel {
background: url(%%flags%%);
border: 0;
height: 26px;
width: 24px;
text-indent: -9999em;
vertical-align: middle;}
.linkflair-austrailia .linkflairlabel {
background: url(%%flags%%);
border: 0;
width: 40px;
height: 20px;}
.linkflair-brazil .linkflairlabel {
background: url(%%flags%%);
border: 0;
width: 40px;
height: 20px;}
This only displays the first link flair as all of them have the same position and size.
If you could appoint me to as what I am doing wrong, I would be extremely grateful.
r/csshelp • u/antonlabz • Jan 26 '16
Thumbnail not registering as 'default'
If you go to the sub right now, there should be a stickied thread called "Global SSR Tier List Updated" which is a link to another page on the subreddit.
The thumbnail for this is (for some reason) our snoo icon.
AFAIK, the thumbnail for any URL to a page within reddit should register as thumbnail.default but when I try to inspect the element, the default class isn't applied to it at all.
Is there any particular reason this is happening?
r/csshelp • u/Smakx • Jan 21 '16
Resolved Need help with formatting user flair selector in the sidebar
My Subreddit: r/cardfightonline
Hello,
I am having some difficulties trying to get the user flair selector in my sidebar to behave as I want it to. Basically I want it to act similarly to how it is on this subreddit:
Here you see the username is suppressed, the flair graphic is left justified, followed by the flair text and the "(edit)" option. I can't seem to get mine to format that way.
Secondly, In the actual user flair pick list I would also like to emulate their style. Again the user name is suppressed, the link flair icons are show in list style followed by their flair text.
I have largely achieved the look I want on my subreddit but this issue continues to elude me. And help with this would be appreciated. Thanks.
r/csshelp • u/creesch • Jan 11 '16
PSA: RES has updated, subreddits that support nightmode should probably do some tweaks.
The bad news?
The nightmode mode of RES has been redone a bunch and you probably need to tweak your css a bit to make it work properly again.
The good news?
It has gotten much much much better!!!!. No seriously, don't let this thread confuse you because most of those people just complain because change is scary.
Technically the new nightmode is a godsend for css mods because it has become much easier to edit and incorporate in your own theme. Here is why:
Less "!important" every where! Meaning that you don't have some obscure elements ruining your theme making you hunt down the exact issue and brute force override it with a more detailed specificity and your own "!important".
Instead of a dark theme this is actually reddit nightmode. The old nightmode added a bunch of whitespacing, took it away elsewhere while also adding borders images and a bunch of other stuff. This always meant that not only you had to switch out colours, you also had to hunt down those other changes and style around them. This nightmode version makes that much easier because they took great care to mostly just swap out colours and not actually mess with theming itself.
As an example, I tweaked /r/games to work properly about thirty minutes ago. Next up is /r/history which I lazily did in the past, funny thing is that a few things I never bothered to do properly fixed itself with this new release.
some pointers
If you styled comments you probably need to check that out. In most themes I do I style the odd even styling RES does. Old nightmode forced its own colours here, this is no longer the case so you might have lighter colours from your base style.
!important is probably not needed for a whole bunch of things. It is nice to know about css specificity though. Specificity in short is the principle that more specific declarations will override simple ones.
Also a big thanks to the RES team!
/u/andytuba, /u/githue, /u/erikdesjardins, /u/allthefoxes, /u/honestbleeps and probably a bunch more people I am forgetting now (sorry).
I have been sitting on the res channel on IRC and they have been working really hard on this release and I think they made an awesome product even more awesome.
r/csshelp • u/invisiblack • Dec 13 '15
Resolved /r/DC_Cinematic - Text on user flairs being are being obstructed by comment scores.
This only happens for the user flairs that I recently added (sample 1, sample 2), it also happens on the sidebar where the user edits his/her flair (sample). The text works fine for flairs that were added before that (sample).
Here are the css for flairs.
/*CUSTOM FLAIR*/
.flairselector .customizer {
display: none !important;
}
.flair {
border: none !important;
top:20px;
padding:0px;
background: url(%%spritesheet%%) no-repeat;
display:inline-block;
vertical-align: middle;
}
.flair-aq {
min-width: 36px;
height: 34px;
text-indent: 46px;
line-height: 32px;
background-position: -7px -101px;
}
.flair-aquaman {
min-width: 26px;
height: 34px;
text-indent: 36px;
line-height: 32px;
background-position: -7px -149px;
}
.flair-armorbat {
min-width: 22px;
height: 36px;
text-indent: 32px;
line-height: 32px;
background-position: -7px -197px;
}
.flair-batman {
min-width: 22px;
height: 36px;
text-indent: 32px;
line-height: 32px;
background-position: -7px -247px;
}
.flair-thedarkknight {
min-width: 58px;
height: 34px;
text-indent: 68px;
line-height: 32px;
background-position: -7px -297px;
}
.flair-batmanvsuperman {
min-width: 58px;
height: 44px;
text-indent: 68px;
line-height: 32px;
background-position: -7px -345px;
}
.flair-kneel {
min-width: 50px;
height: 36px;
text-indent: 60px;
line-height: 32px;
background-position: -7px -638px;
}
.flair-superman {
min-width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -7px -688px;
}
.flair-manofsteel {
min-width: 50px;
height: 36px;
text-indent: 60px;
line-height: 32px;
background-position: -7px -736px;
}
.flair-wonderwoman {
min-width: 26px;
height: 34px;
text-indent: 36px;
line-height: 32px;
background-position: -7px -832px;
}
.flair-ww {
min-width: 54px;
height: 34px;
text-indent: 64px;
line-height: 32px;
background-position: -7px -880px;
}
.flair-zod {
min-width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -7px -928px;
}
.flair-redcapes {
min-width: 24px;
height: 34px;
text-indent: 34px;
line-height: 32px;
background-position: -7px -7px;
}
.flair-lex {
min-width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -7px -54px;
}
.flair-savetheworld {
min-width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -7px -402px;
}
.flair-deadshot {
min-width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -6px -450px;
}
.flair-harleyquinn {
min-width: 30px;
height: 34px;
text-indent: 40px;
line-height: 32px;
background-position: -7px -496px;
}
.flair-joker {
min-width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -7px -544px;
}
.flair-hahaha {
min-width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -7px -591px;
}
.flair-ss {
min-width: 58px;
height: 32px;
text-indent: 68px;
line-height: 32px;
background-position: -6px -786px;
}Now these are the ones which got added recently and they are the flairs that have the glitched text, they also use a different spritesheet from the previous ones.
.flair-enchantress {
background: url(%%spritesheet2%%) no-repeat;
width: 26px;
height: 34px;
text-indent: 36px;
line-height: 32px;
background-position: -1px -1px;
}
.flair-clarkkent {
background: url(%%spritesheet2%%) no-repeat;
width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -29px -1px;
}
.flair-brucewayne {
background: url(%%spritesheet2%%) no-repeat;
width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -53px -1px;
}
.flair-katana {
background: url(%%spritesheet2%%) no-repeat;
width: 26px;
height: 34px;
text-indent: 36px;
line-height: 32px;
background-position: -77px -1px;
}
.flair-knightmare {
background: url(%%spritesheet2%%) no-repeat;
width: 22px;
height: 36px;
text-indent: 32px;
line-height: 32px;
background-position: -1px -37px;
}
.flair-generalzod {
background: url(%%spritesheet2%%) no-repeat;
width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -25px -39px;
}
.flair-faora {
background: url(%%spritesheet2%%) no-repeat;
width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -49px -39px;
}
.flair-brucewayneb0 {
background: url(%%spritesheet2%%) no-repeat;
width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -73px -39px;
}
.flair-eldiablo {
background: url(%%spritesheet2%%) no-repeat;
width: 22px;
height: 34px;
text-indent: 32px;
line-height: 32px;
background-position: -97px -39px;
}I have a test sub where I have been trying to fix this, I can add you there if it's required.
r/csshelp • u/thecrustyclit • Dec 06 '15
How to upload an image to the sidebar?
I'm in /r/mainelymaymays and I would like to upload an image to the sidebar. Thanks
r/csshelp • u/mansonfamily • Nov 29 '15
How to change upvote and downvote icons?
Any help appreciated thank you
r/csshelp • u/elphabaisfae • Nov 13 '15
Disappearing Sidebar Dropdowns
This is for /r/FactionsRP.
Whenever I click on my links to bring up the dropdowns, they almost immediately disappear when I hover over the links and try to click them. I believe this changed a few months ago, and at the time I had another sub that was having this issue, but my saved links are failing me and so is my search-fu.
Any help that I could get so when I click the headers (ie: Get Started, Schedule, Locations, etc), the links will stay, I greatly appreciate it.
I also have a second question, also about the same sub. We previously did not use the Wiki pages for this sub, and when I have them now see the only page here, no background. I'm sure it's an easy fix. I'm blaming my being ill for the past week.
This is an inherited sub so the CSS isn't as streamlined as what I am used to writing. This sub has helped me grow a lot, but I'm stumped on both of these. I appreciate any help.
r/csshelp • u/Nanaki-is-Nanaki • Nov 12 '15
Help with adding a simple animation to a banner
Hello, I am currently working on making the subreddit r/abzugame. There are only a couple of things left I'd like to do that I am not familiar with. First, I'd like to add an effect similar to what you can see here on the game's official website, www.abzugame.com. There are little white specs rising in the center of the image. What would be the best way to go about achieving this effect? Any tips or links would be very helpful. The only other effect I'd like to do is have my pagename and header images enlarge slightly when you hover over them. Any help with either of these tricks would be much appreciated. Thanks!
r/csshelp • u/amarsprabhu • Nov 09 '15
How can I reduce the size of my uploaded reddit logo?
See title. Its in /r/antiteams.
Thanks a lot.
r/csshelp • u/[deleted] • Oct 17 '15
Adding Text After a Username
This is for /r/KnucklesMains. I want to make it so that every username is "[username] & Knuckles".
r/csshelp • u/superange128 • Oct 08 '15
/r/blazblue Adding text with a picture flair moves text up and writes text on top of the picture flair
In /r/blazblue, I just made it so you can add picture flairs and you can put text next to the flair as well.
However, currently when I try to add next, it writes text on top of the picture flair.
This is what happens before I write text:
http://i.imgur.com/JwBEQYt.jpg
This is what happens after I write text:
http://i.imgur.com/z4d4nwL.jpg
I want to make it so the text always shows to the right of the picture flair.
Here's what I think is some relevant code, if you guys can find anything...
span.flair { position: relative; padding: 1px 8px; font-size: 11px; font-weight: 400; border-radius: 4px; background-color: #f7f7f7; z-index: 1; }
.flair { background: url(%%spritesheet%%) no-repeat -9999px; border: 0; padding: 0; }
.flair-Celica { min-width: 35px; min-height: 35px; background-position: 0 -210px; }
r/csshelp • u/Rot1nPiecesOnTwitch • Sep 28 '15
How do I get my background image to stop linking back to my subreddit, and how do I get my logo to do it instead?
Clicking on the background image brings you back to the same subreddit, but when you click the giant logo, it brings it to reddit main page.
Is there a way to stop the background image from linking, and change the logo to link to my reddit? I know its possible, because /r/pokemongo does it. I just don't know if I just didn't do css correctly.
I uploaded my logo in the subreddit settings, and the background through CSS. Hopefully this information helps.
r/csshelp • u/Sylandrophol • Sep 26 '15
How do you add in a background for a subreddit?
Hey, i mod at /r/splattim, and i'm wondering on how you can add in a background for a subreddit?
r/csshelp • u/[deleted] • Sep 18 '15
Looking for help with a custom cursor image with a centered "click" point.
Currently using:
* {
cursor: url(%%myimage%%), auto;
}This works beautifully, but, I am curious if there is a way to set a specific point within the image that acts as the actual "point" on a cursor.
For instance, I want to make a smaller transparent version of this image, but I'd like to know if I can make that center dot the actual "point" where you'd click, as opposed to the upper left corner of the image's pixel dimensions.
Any help would be appreciated!
r/csshelp • u/csshowdoesitwork • Sep 15 '15
How do I make the sidebar on the left side like on https://www.reddit.com/r/southpaws/
When I use the float on .side it works fine, except every comment after the first appears below the sidebar. How do I correct this? Thanks!
r/csshelp • u/leeloospanties • Aug 22 '15
Fixing the way my sitetable is positioned on the search page
I added...
.sitetable {margin-top:150px;} to the naut stylesheet on /r/leeloogonewild (nsfw).
It makes room to see the header on the front page but on the search page, it pushes the sitetable way down below the search box. Example page.
What should I use instead?
r/csshelp • u/atticusmass • Jul 20 '15
/r/sacredgeometry Code for an all black background in res night mode.
I would love some help on working in nightmode with css. I don't know how to label things I want to change that are easily changed in normal mode.
r/csshelp • u/Greypo • Jul 18 '15
Resolved Is there a script/bot/anything that can easily implement CSS from one subreddit to another including all images?
Or even something that similarly implements flair templates? Anything to make implementing the same CSS/flair combo into 20 subreddits. :)
r/csshelp • u/Codyh93 • Jul 03 '15
Completely css illiterate. Want to add an image to my side bar. Nothing fancy really.
I'm super new to having my own subreddit and completely new to css. Truly know nothing about it. I'm trying to add just a simple photo to the side for /r/ShavedAndTucked
This is the image I want on the side bar. http://i.imgur.com/RZERAjg.jpg
I'm sure this is a redundant post. And I'm sorry for that. :-(
r/csshelp • u/TheConchNorris • May 24 '15
Comment box needs to be same as comment backgorund
The subreddit I am working on is r/Omnipotent_League. I want to make the this part have the same color/tranparency as this part, but I do not know the proper code to tell it to recognize it. Help please!
r/csshelp • u/[deleted] • May 16 '15
How do I add text to an upvote?
For /r/Duck_irl, I want it to say "Quack" when you upvote. How would I do this?
r/csshelp • u/goddammitgary • May 10 '15
Would like the basic code for the banner/header on a subreddit
working on a new subreddit /r/churchofdarkness (a new pokemon religion I guess). Wrote in C++ a while back (~2 years ago) but forgot how to do it pretty much completely. Was wondering what the basic code for a banner/header looks like?
Thank you!
r/csshelp • u/sp17fire • Apr 22 '15
(/r/Idaho) I can't get the userbar to stick below the banner image
I can't the get userbar (username, karma, mail, preferences, logout) and the options in the white boxes (hot, new, rising, etc) to stick down to where they're supposed to be.