Difference between revisions of "Template talk:Country Stats/Core"

From eRepublik Official Wiki
Jump to: navigation, search
(Styling update?: Replying)
Line 5: Line 5:
 
:::{{ping|Jimkats1|Andycro}} Maybe the solution could be here: [[MediaWiki:Common.css]]? --<span style="font-family:Century Gothic; font-size:11pt">[[File:Icon-Montenegro.png|16px|link=]] [[User:Bogi|'''Bogi''']]・[[User talk:Bogi|''Talk'']]</span> 10:12, 26 December 2018 (PST)
 
:::{{ping|Jimkats1|Andycro}} Maybe the solution could be here: [[MediaWiki:Common.css]]? --<span style="font-family:Century Gothic; font-size:11pt">[[File:Icon-Montenegro.png|16px|link=]] [[User:Bogi|'''Bogi''']]・[[User talk:Bogi|''Talk'']]</span> 10:12, 26 December 2018 (PST)
 
::::Hmm, indeed we can use that to to bypass the source CSS. I don't know though if we can change all of the properties we want, because iirc some CSS properties can't be implemented as HTML attributes. --[[File:Icon-Greece.png|15px|]] <small><strong>[[User:Jimkats1|Jimkats1]] | <span class="plainlinks">[http://{{eLink/Switch|citizen}}4608411{{#ifeq: citizen|article|/1/20}}{{#ifeq:citizen|newspaper|/1}} profile]</span></strong></small> 16:40, 26 December 2018 (PST)
 
::::Hmm, indeed we can use that to to bypass the source CSS. I don't know though if we can change all of the properties we want, because iirc some CSS properties can't be implemented as HTML attributes. --[[File:Icon-Greece.png|15px|]] <small><strong>[[User:Jimkats1|Jimkats1]] | <span class="plainlinks">[http://{{eLink/Switch|citizen}}4608411{{#ifeq: citizen|article|/1/20}}{{#ifeq:citizen|newspaper|/1}} profile]</span></strong></small> 16:40, 26 December 2018 (PST)
 +
<pre>/* country stats */
 +
ul.country-stats {
 +
    border-bottom: 1px solid #ccc;
 +
    clear: both;
 +
    display: inline;
 +
    float: left;
 +
    padding-bottom: 1px;
 +
    width: 99%;
 +
    list-style: none outside none;
 +
}
 +
 +
ul.country-stats li {
 +
    float: left;
 +
    height: 32px;
 +
    margin-right: 1px;
 +
    position: relative;
 +
    background-color: #efefef;
 +
    border-radius: 6px 6px 0px 0px;
 +
}
 +
ul.country-stats li a, ul.country-stats li strong.selflink {
 +
    color: #7f7f7f;
 +
    cursor: pointer;
 +
    float: left;
 +
    height: 32px;
 +
    line-height: 32px;
 +
    padding-right: 25px;
 +
    padding-left: 25px;
 +
    text-decoration: none;
 +
}
 +
 +
ul.country-stats li:hover a, ul.country-stats li:hover strong.selflink, ul.country-stats li.on a, ul.country-stats li.on strong.selflink {
 +
    color: #d8d8d8;
 +
    background-color: #535353;
 +
    border-radius: 6px 6px 0px 0px;
 +
}
 +
 +
ul.country-stats li strong.selflink {
 +
    font-weight: normal;
 +
}</pre>
 +
:::::I just thought that the part above might be linked to ''ul class="country-stats"''. I don't know any coding, but I would try to play with this if it was a template that I could test in my sandbox; however editing this would probably kill wiki for a while, so I better leave it to a pro {{ping|Jimkats1}} :D --<span style="font-family:Century Gothic; font-size:11pt">[[File:Icon-Montenegro.png|16px|link=]] [[User:Bogi|'''Bogi''']]・[[User talk:Bogi|''Talk'']]</span> 04:27, 27 December 2018 (PST)

Revision as of 05:27, 27 December 2018

Styling update?

As Daniel Dimow said 2 years in the Template talk:Country Stats, this template needs graphical change in order to reflect the in-game menu. I was about to try it, but I see that it's written in HTML format and the CSS code is in the "country-stats" class which we can't view/edit. That means only admins can do it (looking @Andycro: ( ͡° ͜ʖ ͡°))--Icon-Greece.png Jimkats1| | profile 16:21, 24 November 2018 (PST)

@Jimkats1: I don't really understand coding, so apologies for a noobish question, but would it be possible for you to make the template in a way that suits you (meaning: from the scratch)? Also: wiki admins can't help with that, you would need game devs, and I really doubt they have the time for this. --Icon-Montenegro.png BogiTalk 10:49, 25 November 2018 (PST)
@Jimkats1: I agree with @Bogi: If you are up for playing in your sandbox and rewrite it, feel free to do so. Because, I think that the only one who can go "deeper" behind the scenes of top secret and hidden links could be @Gucio: --AndyCro Icon-Croatia.png Do you need assistance? Then ask me! ;)) 15:11, 26 November 2018 (PST)
@Jimkats1 and Andycro: Maybe the solution could be here: MediaWiki:Common.css? --Icon-Montenegro.png BogiTalk 10:12, 26 December 2018 (PST)
Hmm, indeed we can use that to to bypass the source CSS. I don't know though if we can change all of the properties we want, because iirc some CSS properties can't be implemented as HTML attributes. --Icon-Greece.png Jimkats1 | profile 16:40, 26 December 2018 (PST)
/* country stats */
ul.country-stats {
    border-bottom: 1px solid #ccc;
    clear: both;
    display: inline;
    float: left;
    padding-bottom: 1px;
    width: 99%;
    list-style: none outside none;
}

ul.country-stats li {
    float: left;
    height: 32px;
    margin-right: 1px;
    position: relative;
    background-color: #efefef;
    border-radius: 6px 6px 0px 0px;
}
ul.country-stats li a, ul.country-stats li strong.selflink {
    color: #7f7f7f;
    cursor: pointer;
    float: left;
    height: 32px;
    line-height: 32px;
    padding-right: 25px;
    padding-left: 25px;
    text-decoration: none;
}

ul.country-stats li:hover a, ul.country-stats li:hover strong.selflink, ul.country-stats li.on a, ul.country-stats li.on strong.selflink {
    color: #d8d8d8;
    background-color: #535353;
    border-radius: 6px 6px 0px 0px;
}

ul.country-stats li strong.selflink {
    font-weight: normal;
}
I just thought that the part above might be linked to ul class="country-stats". I don't know any coding, but I would try to play with this if it was a template that I could test in my sandbox; however editing this would probably kill wiki for a while, so I better leave it to a pro @Jimkats1: :D --Icon-Montenegro.png BogiTalk 04:27, 27 December 2018 (PST)