The Website: jKs Site Changes - Page 2

The Website: jKs Site Changes

For the discussion of infrastructure improvements and changes.

Moderator: Moderators

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: The Website: jKs Site Changes

Post by jK »

I already fixed most of the banner images, they are just not part of git and so need to be applied manually.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: The Website: jKs Site Changes

Post by AF »

In the current setup, a topbannerfade element provides the necessary transition from banner to non-banner, modification of the banner images should be unnecessary.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: The Website: jKs Site Changes

Post by abma »

if this is the only problem found, than i'll apply tomorrow as its imo no blocker (and can/has to be fixed later).
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: The Website: jKs Site Changes

Post by dansan »

I like the new width, font and box color :)
User avatar
SirArtturi
Posts: 1164
Joined: 23 Jan 2008, 18:29

Re: The Website: jKs Site Changes

Post by SirArtturi »

It's better!

I would get rid of gradient from newsitem class, it's not neccessary to have gradient in every content box while the site has so many frames already. Feels just heavy.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: The Website: jKs Site Changes

Post by abma »

width (and height?!) of quote and code is broken again:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Code: Select all

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
VERY annoying...

very likely this commit: https://github.com/spring/spring-websit ... 7dcd796d18

edit: fixed: https://github.com/spring/spring-websit ... a8c164b6d5
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: The Website: jKs Site Changes

Post by Forboding Angel »

word-wrap: break-word;
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: The Website: jKs Site Changes

Post by abma »

imo no, linebreak is not wanted, scrollbars are more useful in this case.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: The Website: jKs Site Changes

Post by jK »

Problem is that browser silently ignore `max-width:100%` even when they are able to detect the absolute pixels of it (opera determines it as max-width:1000px and still ignores it).
I assume it is caused by the table-wtf (there are like 3-4 tables between #content and the quote).
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: The Website: jKs Site Changes

Post by Forboding Angel »

Image

Width and max-width don't work that way.

http://www.w3schools.com/cssref/css3_pr_word-wrap.asp

Set a max-width, and apply break word to it and problem will be solved.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: The Website: jKs Site Changes

Post by jK »

Forboding Angel wrote:Image

Width and max-width don't work that way.

http://www.w3schools.com/cssref/css3_pr_word-wrap.asp

Set a max-width, and apply break word to it and problem will be solved.
No, I obviously used `overflow:hidden` and it still enlarges the tables beyond their max-width. Word-wrap won't help at all.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: The Website: jKs Site Changes

Post by abma »

@Forb:

what you currently see is the already fixed version. the breakage was, that with max-width: 100%; the whole width of the page was increased which broke the layout. with the scrollbars everything is fine!

(don't hit your head against walls, that hurts!)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: The Website: jKs Site Changes

Post by Forboding Angel »

If it was fixed, I would not be seeing horizontal scrollbars here. You're doing it wrong.

Image

Code: Select all

.codecontent .quotecontent {
    word-wrap: break-word;
}
Jesus.

Image

The width was not the main problem. Max width should be 100%. Don't put in fixed pixel widths, that's fail.
Last edited by Forboding Angel on 01 May 2014, 07:03, edited 2 times in total.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: The Website: jKs Site Changes

Post by Forboding Angel »

This monospace font is terrible and should never be used like this. It is bad for readability. For something like this you need a high readability font, such as arial, open sans, or droid sans are good examples.

So this travesty of typography:
Image

Becomes this:
Image

Ahh, much better.

But there is a worse problem. The line heights are crap. Moreover they use em instead of unitless which is complete fail, so lets fix that:
Image

But why is the text in the box gray? Gah, lets fix that too:
Image

There, readability improved.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: The Website: jKs Site Changes

Post by knorke »

For me text looks much sharper than in that screenshot.
zoomed in: (mine at bottom)
Image
looks exactly like the bluring from cleartype: (turn off in windows)
Image

Text in code-tags should never linebreak...that is one of its purposes.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: The Website: jKs Site Changes

Post by Forboding Angel »

knorke wrote: Text in code-tags should never linebreak...that is one of its purposes.

It doesn't insert a break, damnit! If you're going to try to talk to me about css, then you need to know wtf you're talking about before opening your mouth.


Edit:
Sorry, but I'm very annoyed at the moment. Let me explain it in another way.

If in your code editor, you turn on word wrapping. Does the editor insert crlf at the end of each wrapped line? No, it just splits the content and most decent editor put a little u shaped arrow at the end indicating that the line was wrapped.

Css isn't dumb. It's actually very advanced (especially when you start getting into advanced SASS/SCSS), but you end up with really bad behavior when people who don't understand what they are doing try to do styling.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: The Website: jKs Site Changes

Post by knorke »

If in your code editor, you turn on word wrapping. Does the editor insert crlf at the end of each wrapped line? No, it just splits the content and most decent editor put a little u shaped arrow at the end indicating that the line was wrapped.
In your proposal I see no little u shaped arrow at the end indicating that the line was wrapped http://i.imgur.com/sYtn72O.png

So better to keep scrollbars for that.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: The Website: jKs Site Changes

Post by Forboding Angel »

Oh for fucks sake, you can't possibly be this dense...

For this example, we will use some SCSS that I wrote a few weeks ago (feel free to use it for replacing checkboxes in forms... It's quite useful):

Code: Select all

	/* Start checkbox drop-in snip */
	/* For checkbox images we use data uris. Much faster drawing, reduces http calls, easier to manipulate */
	input[type=radio] {
		opacity: 0;
		float: left;
		width: 0;
	}
	
	input[type='radio'] + label {
		@include span-columns(6);
		margin: 0;
		clear: none;
		
		/* Left padding makes room for image */
		padding: 5px 0 4px 40px;

		/* Make the entire thing look clickable (it is) (checkbox and label) */
		cursor: pointer;
		
		background-repeat: no-repeat;
		background-position: left center;
		background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHonAACAgwAA+mQAAIDSAAB2hgAA7OkAADmeAAAV/sZ+0zoAAAMQSURBVHjatJbPbxNHGIafnVnvbv3bTkKcTXAgJlAapUUtkg/Q4lalt17MrfTAnb8h4uAz/wOqSm/kwtGlpOQQRYImEjU0AdxgjB3XdZ0mcWQ76yyHrCFQ06bEfk+j0c776NsZfd+r2LZNJ81MT7WXx4FvgC+Bw0AUyAHPgB+BH4DlN88nkqmXa/VfAJ8D33sCpukLjeD29qNqbly6m+3GVtRqbkW3Nv88s1HNX6n9XSgA3wK3O/mpHQA68HNwIBbvG/oAb3AIVdWRqgshJCgK2DY7Oy1a1jaWdYrNtaJZKT74aa38ZB44BzTeCpmZngoD9w9FPzaHx+JougfVpSGkilB2AQ5jF2S32GlZGO/58YdHeJ6dj/+R+yULTAJ/tX2V9p3MTE+5gGcj458ODh35ZBegaihCARTeLht7x8aymjQbNYor98g/mi0BhxPJ1DaA2HMHs5HR04PDsTiGO4BL01GE+A8AgIIiBC5Nx3AHGI7FiYyeHgRm249HOF9e6Dcn4qMnE+iGFynlPsz/CZNSohteRk8m6Dcn4sAFAJn4sKUA6WMffe3z+PqRUn0HwJ6qFIEQKprho5RbOLfy8PZVAUwGB2KmP2Q6FRxcUkr8IZPgQGwQmBTAxXBkHCldB6igw69TXYQj4wAXBfBFIDzivKLuSVEEgXAU4CsBHDM8fV2s4pUMTwjgiACCmuamF3J8gwJYs6xGTyCO75oAVpr1jZ5AHN8VAdzaqBZ6AnF8bwngu0rxYU8gldUlgOsCuF8uPCjVa9WuAuq1KuXnv5aARZFIpmzgcv7JXFchjt/lRDJltxvkjfzjubu5pTtdAeSW7pB/PHcXuPGyCzvz+Gw2ky6tPl04EGD16QLZTLoEnG3PeWVvkJiZnhoAFscmzpvRE5+9UwXZTLoAnEokU+X2vngjYZSBsWwmPb+8eJPaemlf5rX1EsuLN8lm0vPAGFB+rY91ikTORDsPXOuLnDD7ht7HFzLRDT+a4aVZ36RRX2ejWqBS/I3K6lIBuASkO0Ui5X/mrqOACRSA3/ebu14MAEZcF3fUgARKAAAAAElFTkSuQmCC);
	}
	
	input[type='radio']:checked + label {
		background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHonAACAgwAA+mQAAIDSAAB2hgAA7OkAADmeAAAV/sZ+0zoAAAP3SURBVHjarJZdTJNnFMd/70c/6BfQAisfwiJDy7p1ujrQJZpebGKWwDJiwrJ4Z6IXuzHuykSuuDRL9MILl3g3l3FhLyYMN5bAXDIcCaMygSJKtPJRYOWz7Upt++6Ct2TQt8iM/+Qkb56cc37vOc+T5zmCoihoqd/fnv0sA04CTUA94AWGgHHgJ+BnYGFnvK+1Y+tb3gVQD3xvLqzwWIurMFlKkPUmdAYTLzbi3lQy7o1H/z6zvjxNbHV2BPhcBedI1gDIwLdFpbVtjvK3sRSVI8sGJFmHKEogCKAoZDJp0qkXpFKHiK7MeSJzY2Mri086gTNAKi+k399uAgbKqt/3VO5vRG8wI+v0iJKMKGwCVMYmSEmTSacwFtiw2auYmfqjbSH0Zz1wDIhn8wrZPen3t0vAw6q6467yN72bAFmPIAqAQH4pKBmFVCpJciPG3NMhpid/CwLv+Fo70gDif/bglrPmiKuythGjqRCd3oAgii8BAAgIoohOb8BoKqSythFnzREXcCt7eETVs6Gkwt1WU+/DYLQgSdIekufCJEnCYLRQU++jpMLdBjQASD5PGuDHt95rfsNsLUGSZE1AOLbEr6EA/c8ChGNL2AxmLPqC3KoEEVGU0RutzIeGjz8d77suA1VFpbUeW3GFWkGuvhn+ga9+uU40+c/WmkVfwNcffcm5wy05/pIkYSuuoKi01rWy+KRKBJrszjokSadZwc3hLs53XSGaiENG2bJoIs75rivcHO7Sbp2sw+6sA2gSgU8K7VXqKdrRougSF3quQVrJaxd6rhGOLuViBJFCezXApyLwgdHs0Kzi7uT9nAp2WjQR5+7kfc02G83FAIdkYJ9eb9J0Cq9FNv/4JZpZXdBcV/PuE4HnqdSGppPTYt+1VVmrtJZqxqt5n4tAIJlY13Q6deAoFtkAmUxes8gGTh04qhmv5g2IQPf68qx2JVYHV5sv7lrF1eaLOK0OzXg1b7cIdEfmxvP2+2xjCzdOX8KiK9i24RZdATdOX+JsY0ve2Eh4AqBHBqYXZ8eCidiySz0NOTp37DNa3CcYDI0ys7pAZWEZDdVunDZHXkAitszizMMgEEJRFPpuX26YfNCtvE5NPuhW+m5fblAUZeuCHJx+POAPTdzjdSg0cY/pxwN+YHDneyIDf7m8rS5nzeFXBoSfDRMc8geBd32tHaltEBVkBn7f7/7YU33wxCtVMDXaOwJ86GvtiGXXxR0TRgzwTo32dj4K3CG2Nr+n5LG1eR4F7jA12tupTjOxbfeY1kikvmhu4DuH86DHUe7CWlyBwWhDb7SQTETZSKyxvjxLZC5IJDwxAnwBjGqNRML/nLs8qo2otqe5698BAP0vEByQoEeYAAAAAElFTkSuQmCC);
	}
	/* End checkbox drop-in snip */

Current look:
Image

Fixed wrapping:
Image

Now these data uris are quite long, but the point remains. Introducing horizontal scrolling makes code very difficult to read because lines that would normally wrap will no longer wrap and will instead be covered up by the right edge, making the user horizontally scroll to read even relatively short lines.
Last edited by Forboding Angel on 01 May 2014, 09:08, edited 2 times in total.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: The Website: jKs Site Changes

Post by Jools »

Forboding Angel wrote:This monospace font is terrible and should never be used like this. It is bad for readability. For something like this you need a high readability font, such as arial, open sans, or droid sans are good examples.
Do not use arial for anything. Why not use a serious font such as comic sans instead if arial is what you planned to use?
Post Reply

Return to “Infrastructure Development”