MediaWiki talk:Common.css

From eRepublik Official Wiki
Jump to: navigation, search

Idea: this page needs to cleaned - a lot of unused CSS in it. --Geo "Talk Pages" Belea 00:04, 5 March 2009 (UTC)

Fix for nav(igation) boxes

Might I recommend adding "margin-bottom: -1px;" to navigation boxes, so that there isn't a double border between two of them. It's what Wikipedia does, and works without any considerable damage to the page ^^ Kortorisa Phane TalkLegacy 18:59, 05/25/2011

What navigation boxes are you talking about (example please)? --Icon-Finland.png sampo555 | Talk 12:53, 25 May 2011 (PDT)
table.navbox , which is the countainer for things like {{Countries}}, the ones that occur at the bottom of articles. --Kortorisa Phane (message) 03:38, 28 May 2011 (PDT)
Done. --Icon-Finland.png sampo555 | Talk 03:59, 28 May 2011 (PDT)
Yayyy. Kortorisa Phane TalkLegacy 19:10, 2011/05/28

New country stats menu

@Jimkats1: Any chance I hit the jackpot? --Icon-Montenegro.png BogiTalk 12:14, 8 February 2019 (PST)

It's a nice start, for the text decoration. I haven't checked if the color values are the same as ingame, although there's more to add, like for example the images, that is the icons of the tabs and the background. Don't tell me that we will use the File:Country stats bg.png you uploaded, cuz I see you uploaded a non-text version, which is strange tbh :p.--Icon-Greece.png Jimkats1 | profile 13:29, 8 February 2019 (PST)
I was going to make it like Template:Game Menu, which uses File:Menu erepublik new.png and then text can be added with a possibility for translations. Atm I just want to make it work somehow (because I'm not exactly sure what I'm doing :D) and then we can fix font colour, size, etc. --Icon-Montenegro.png BogiTalk 13:41, 8 February 2019 (PST)
@Jimkats1 and Andycro: I seem to be getting somewhere: User:Bogi/Sandbox. I'll have to remove the background and just keep the tabs, but that's the easy part; society tab doesn't work and tabs don't turn white when used on actual pages (like they do in the game). Translation works fine tho. But anyway, making progress! --Icon-Montenegro.png BogiTalk 19:37, 8 February 2019 (PST)
@Bogi: I removed some extra code lines hoping that it will help with the Society tab as I don't see why it doesn't show. Super strange. Regarding switching the button color, it requires some more lines of code, I am confident you will handle it :D Continue with good work. --AndyCro Icon-Croatia.png Do you need assistance? Then ask me! ;)) 03:38, 9 February 2019 (PST)
@Andycro: Actually I think I figured out what's up with Society tab and how to keep the whole background. I'm not sure about the last one, but I'll try :D Thanks for the help! --Icon-Montenegro.png BogiTalk 08:07, 9 February 2019 (PST)
As you have it right now showing up "Society/Sandbox" is perfect. The only issue is when you hover the tab you are already in, in this case Society. You don't code for hovering the active tab, although you need to centralize vertically the text plus remove the shadow effect (it doesn't exist in the ingame menu :D) plus replace that text color with black :D.
For not being familiar with CSS (as you claim), you did great job. Personally I started the menu with another strategy, that is from scratch implementing the background, but you did the best (and I guess normal for most devs :P) to just work on a single image, something that I'm still not fully familiar on how to work with it, so err in brief, great job Bogi :D--Icon-Greece.png Jimkats1 | profile 13:44, 10 February 2019 (PST)
@Jimkats1: Thank you! I really don't know any coding, I just use "bits and bobs" (as Gucio once said) from other templates. I figured out how to use background image while updating icons in write article, but I'm still having difficulties sorting out stuff you just mentioned. Zordacz is giving me advice how to fix stuff, but takes a while for a noob to process it. If you have a fix for anything, please go ahead :D --Icon-Montenegro.png BogiTalk 14:06, 10 February 2019 (PST)
I'm thinking that for the moment we could apply the new menu without the selected tab until a fix for font issues is found. --Icon-Montenegro.png BogiTalk 05:14, 11 February 2019 (PST)