1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

16 Commits

Author SHA1 Message Date
Ayesh Karunaratne
c1dce9083b Minor optimizations in CSS files to shed some weight (#612)
- Removes px suffix from 0px.
 - Combines CSS properties where they are immediately overridden in the same selector block, or can be combined without side effects.

 This saves about 50 bytes off the CSS scripts. it ain't much but it's honest work
2022-07-05 11:38:25 +01:00
Peter Kokot
dd8d8bf863 Sync final and leading newlines
This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-17 12:37:26 +02:00
Hannes Magnusson
af21c99842 Download system tweaks
Remove reduntant/duplicate code between do-download and get-download

Also make this page more interesting when the download is missing from
this specific mirror by give the choise of going to other mirrors to check.
Rather then blindly go to the download file though we go to the same page
on the other mirror so we can check if the file exists there before giving
the link to the actual real file.

This also makes it a lot easier to work with on developers checkouts
2013-11-21 11:25:45 -08:00
Hannes Magnusson
bafcd11c5f Fit 3x mirrors per row on big screens 2013-11-20 15:13:24 -08:00
Hannes Magnusson
703abfd16b Prettify the download page 2013-11-20 14:04:58 -08:00
Hannes Magnusson
abd285c55e Put the "local" country mirrors at the top too 2013-11-20 13:16:18 -08:00
Hannes Magnusson
389ba14776 Kill these rouge views, and simplify the mirrorlisting page 2013-11-20 13:16:18 -08:00
Hannes Magnusson
3330307ed4 Fix the path to the voting images on php.net and mirrors 2012-12-13 11:08:16 -08:00
Peter Cowburn
f235c31ec5 mirrors want images too (thanks Stefan Silasi) 2012-10-22 17:31:14 +01:00
Paul Dragoonis
57b843d6db Modifications for the new images path of /beta/ and image resizing 2011-10-16 23:08:57 +00:00
Paul Dragoonis
535e79fe63 Added clearfix to reset CSS. Created new beta mirrors page; updated CSS and HTML output for mirrors, added new flags. 2011-10-16 15:28:33 +00:00
Hannes Magnusson
549d2b74f0 Fix tip/warning images on www.php.net 2010-12-19 14:53:20 +00:00
Gabor Hojtsy
c7547ebacc some progress in the three column tableless layout 2006-09-12 19:42:42 +00:00
Gabor Hojtsy
40251ee037 more CSS changes needed for the toc class change 2006-09-06 10:14:12 +00:00
Gabor Hojtsy
855139905a Use a list instead of styled div for the manual TOC layout, because
- this is semantically correct
 - this uses *much* less markup
 - looks better in downlevel browsers (eg. NN4)

Also make the TOC link list appear in the normal font size of the
sidebar (which is a bit bigger then what is currently used, and easier
to read). It is still reasonably small IMHO.
2003-09-13 12:26:46 +00:00
Gabor Hojtsy
c7919b20c0 Put CSS and JS to their own place, and stop using JS for constant
styling. Use mirror specific style sheets instead which will be cached,
and applied faster than JS, and also work with JS disabled browsers.
2003-08-24 11:45:54 +00:00