MediaWiki talk:Common.css: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
No edit summary
Line 37: Line 37:


: 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)
: 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)

Revision as of 18:31, 27 February 2014

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)

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)