MediaWiki talk:Common.css: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>@DeletedUser40311098
>Vinifera7
 
(20 intermediate revisions by 9 users not shown)
Line 18: Line 18:
::Thanks. [[User:Chriskang|Chriskang]] ([[User talk:Chriskang|talk]]) 12:49, 23 January 2014 (UTC)
::Thanks. [[User:Chriskang|Chriskang]] ([[User talk:Chriskang|talk]]) 12:49, 23 January 2014 (UTC)


== white-space: nowrap; /* temp */ ==
==Itembox line breaks==
<code>white-space: nowrap; /* temp */</code>


The comment lets me think that this line was not intended to stay in the whole <nowiki>[class|=itembox]</nowiki> definition. It forces us to manually insert line breaks into long lines like [[Emerald_Imp_Mask|here]].
The comment lets me think that this line was not intended to stay in the whole <nowiki>[class|=itembox]</nowiki> definition. It forces us to manually insert line breaks into long lines like [[Emerald_Imp_Mask|here]].
Line 35: Line 36:
</nowiki>  
</nowiki>  
[[User:Chriskang|Chriskang]] ([[User talk:Chriskang|talk]]) 11:10, 27 February 2014 (UTC)
[[User:Chriskang|Chriskang]] ([[User talk:Chriskang|talk]]) 11:10, 27 February 2014 (UTC)
: That line and comment were added by me. I was initially trying to figure out a way to avoid the manual insertion of line breaks. It's still very much required for modifiers, but your suggestion for help text and flavor text will definitely work. I can make the necessary changes. The <code>white-space: nowrap;</code> css property serves a specific purpose, but it is somewhat unrelated. It is specifically to avoid the item box collapsing when there is limited "space". This only happens when the item box is used as a hover tooltip and is positioned near the far right of the screen. This [http://imageshack.com/a/img40/3629/p6e2.jpg screenshot] shows the difference. —[[User:Vinifera7|Vini]]&nbsp;([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 16:22, 27 February 2014 (UTC)
:: I'm happy with whatever you think is best Vini, your knowledge of CSS is beyond mine, and you know those templates much better. [[User:Iamacyborg|Iamacyborg]] ([[User talk:Iamacyborg|talk]]) 18:31, 27 February 2014 (UTC)
::: I understand your reasons for keeping nowrap in itembox. I would appreciate if one of you could apply the change to text-help though. [[User:Chriskang|Chriskang]] ([[User talk:Chriskang|talk]]) 19:49, 27 February 2014 (UTC)
:::: The change should be implemented now. However, you might have to refresh your browser cache and/or wait for the wiki software to update the stylesheet in the server-side cache. You will also have to manually update pages such as [[Emerald Imp Mask]] that have manual line breaks inserted. —[[User:Vinifera7|Vini]]&nbsp;([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 20:11, 27 February 2014 (UTC)
::::: Works fine. Thanks. [[User:Chriskang|Chriskang]] ([[User talk:Chriskang|talk]]) 22:39, 27 February 2014 (UTC)
== Itembox Header image width Fix for Mobile Visitors ==
I believe this rule should prevent the item box background images from extending outside the box for mobile users
<pre>
.item-box > .header {
    width: auto;
}
</pre> [[User:Yotkbn|Yotkbn]] ([[User talk:Yotkbn|talk]]) 18:18, 24 August 2017 (UTC)
: Thanks, but Common.css is not even served on the mobile version of the wiki. It is for the desktop version only. —[[User:Vinifera7|Vini]]&nbsp;([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 18:35, 24 August 2017 (UTC)
:: Well we could add it to Mobile.css but having to maintain both is a bin of a pain unfortunately :/ --[[User:OmegaK2|OmegaK2]] ([[User_talk:OmegaK2|t]]|[[Special:Contributions/OmegaK2|c]]) 20:41, 24 August 2017 (UTC)
::: How about adding it to both? [[User:Yotkbn|Yotkbn]] ([[User talk:Yotkbn|talk]]) 16:25, 26 August 2017 (UTC)
== Crafted Mod Color ==
Could someone please add the crafted mod text color? For example:
<pre>.text-color.-craft,
.tc.-craft {
    color: #b4b4ff;
}</pre>
--[[User:94Connor949|Connor]] ([[User talk:94Connor949|Talk]] | [[Special:Contributions/94Connor949|contribs]]) 01:21, 20 November 2018 (UTC)
: Added. —[[User:Vinifera7|Vini]]&nbsp;([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 01:57, 20 November 2018 (UTC)
:: Not quite. <span style="color:#8888ff;">#8888ff</span> still needs to be changed to <span style="color:#b4b4ff;">#b4b4ff</span>, but otherwise it looks fine. Thanks! --[[User:94Connor949|Connor]] ([[User talk:94Connor949|Talk]] | [[Special:Contributions/94Connor949|contribs]]) 04:26, 20 November 2018 (UTC)
== PyPoe edits Divination Card with new colors ==
PyPoe edits Divination Card with new colors:
* white - items Normal rarity (for example: [[The Dapper Prodigy]])
* <s>augmented - Gems quality (for example: [[The Doppelganger]])</s>
* <s>divination - Divination Card (for example: [[The Gambler]])</s>
Maybe there are some other colors I didn't see.--[[User:Ruba159753|Ruba159753]] ([[User talk:Ruba159753|talk]]) 07:38, 20 November 2018 (UTC)
== Bestiary mod color==
Requesting to add a Bestiary text color. I think a light red color like (#ed4c4c) would fit the best. --[[User:ThemJohns|ThemJohns]] ([[User talk:ThemJohns|talk]]) 15:02, 17 September 2019 (UTC)
: Can you tell me what that would be used for? —[[User:Vinifera7|Vini]]&nbsp;([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 20:34, 23 September 2019 (UTC)
== Template:Glyph ==
Add code for [[Template:Glyph]], from the Russian version of the site.--[[User:Kordloperdlo|Kordloperdlo]] ([[User talk:Kordloperdlo|talk]]) 10:33, 29 June 2020 (UTC)
: Done. —[[User:Vinifera7|Vini]]&nbsp;([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 18:05, 29 June 2020 (UTC)

Latest revision as of 18:05, 29 June 2020

Difficulty colours

I'd like some colours added for the difficulty levels. This would be perfect:

.text-diffnormal {
	color: #55AA22;
}
.text-diffcruel {
	color: #BBAA22;
}
.text-diffmerciless {
	color: #882222;
}

(Values are taken from {{MonsterBox}}). Chriskang (talk) 09:43, 23 January 2014 (UTC)

Done. Give it a little while to cache and then it should all be working. Iamacyborg (talk) 11:25, 23 January 2014 (UTC)
Thanks. Chriskang (talk) 12:49, 23 January 2014 (UTC)

Itembox line breaks

white-space: nowrap; /* temp */

The comment lets me think that this line was not intended to stay in the whole [class|=itembox] definition. It forces us to manually insert line breaks into long lines like here.

Can we have it removed (and a fixed max-width defined to avoid breaking all itemboxes)?

Or at least, can we have it overridden in help text like this:

.text-help {
	color: #7f7f7f;
	font-style: italic;
	white-space: normal;
	display: inline-block;
	width: 310px;
}
 

Chriskang (talk) 11:10, 27 February 2014 (UTC)

That line and comment were added by me. I was initially trying to figure out a way to avoid the manual insertion of line breaks. It's still very much required for modifiers, but your suggestion for help text and flavor text will definitely work. I can make the necessary changes. The white-space: nowrap; css property serves a specific purpose, but it is somewhat unrelated. It is specifically to avoid the item box collapsing when there is limited "space". This only happens when the item box is used as a hover tooltip and is positioned near the far right of the screen. This screenshot shows the difference. —Vini (t|c) 16:22, 27 February 2014 (UTC)
I'm happy with whatever you think is best Vini, your knowledge of CSS is beyond mine, and you know those templates much better. Iamacyborg (talk) 18:31, 27 February 2014 (UTC)
I understand your reasons for keeping nowrap in itembox. I would appreciate if one of you could apply the change to text-help though. Chriskang (talk) 19:49, 27 February 2014 (UTC)
The change should be implemented now. However, you might have to refresh your browser cache and/or wait for the wiki software to update the stylesheet in the server-side cache. You will also have to manually update pages such as Emerald Imp Mask that have manual line breaks inserted. —Vini (t|c) 20:11, 27 February 2014 (UTC)
Works fine. Thanks. Chriskang (talk) 22:39, 27 February 2014 (UTC)

Itembox Header image width Fix for Mobile Visitors

I believe this rule should prevent the item box background images from extending outside the box for mobile users

.item-box > .header {
    width: auto;
}

Yotkbn (talk) 18:18, 24 August 2017 (UTC)

Thanks, but Common.css is not even served on the mobile version of the wiki. It is for the desktop version only. —Vini (t|c) 18:35, 24 August 2017 (UTC)
Well we could add it to Mobile.css but having to maintain both is a bin of a pain unfortunately :/ --OmegaK2 (t|c) 20:41, 24 August 2017 (UTC)
How about adding it to both? Yotkbn (talk) 16:25, 26 August 2017 (UTC)

Crafted Mod Color

Could someone please add the crafted mod text color? For example:

.text-color.-craft,
.tc.-craft {
    color: #b4b4ff;
}

--Connor (Talk | contribs) 01:21, 20 November 2018 (UTC)

Added. —Vini (t|c) 01:57, 20 November 2018 (UTC)
Not quite. #8888ff still needs to be changed to #b4b4ff, but otherwise it looks fine. Thanks! --Connor (Talk | contribs) 04:26, 20 November 2018 (UTC)

PyPoe edits Divination Card with new colors

PyPoe edits Divination Card with new colors:

Maybe there are some other colors I didn't see.--Ruba159753 (talk) 07:38, 20 November 2018 (UTC)

Bestiary mod color

Requesting to add a Bestiary text color. I think a light red color like (#ed4c4c) would fit the best. --ThemJohns (talk) 15:02, 17 September 2019 (UTC)

Can you tell me what that would be used for? —Vini (t|c) 20:34, 23 September 2019 (UTC)

Template:Glyph

Add code for Template:Glyph, from the Russian version of the site.--Kordloperdlo (talk) 10:33, 29 June 2020 (UTC)

Done. —Vini (t|c) 18:05, 29 June 2020 (UTC)