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

12 Commits

Author SHA1 Message Date
Ian Littman
6aa42c1429 Switch "today" marker on supported versions image from red to dark grey to differentiate from EOL versions (#1019) 2024-07-02 21:57:32 +03:00
Andreas Möller
786d1c5b2a Fix: Add return type declarations (#865) 2023-12-06 16:05:57 +01:00
Andreas Möller
73a9969168 Enhancement: Enable new_with_braces fixer (#697) 2023-08-29 11:21:41 +01:00
Javier Eguiluz
f71b6c7396 Add woff2 fonts and other font related tweaks (#752)
The following changes are made in this commit:

**(1)** Add the WOFF2 variant of web fonts. [WOFF2 standard](https://w3c.github.io/woff/woff2/) reduces the file sizes significantly. This is important to make our website more accessible to folks with limited Internet connections.

96% of browsers support WOFF2 ([source](https://caniuse.com/?search=woff2)) and we still have WOFF and TTF/OTF/EOT formats for those edge-cases which don't support it.

Real examples of the file size reductions for php.net:

```
Fira Sans Regular: 183 KB (woff) -> 129 KB (woff2) --> 30% reduction in size
Fira Mono Regular:  87 KB (woff) ->  65 KB (woff2) --> 35% reduction in size
```

**(2)** Use `font-display: swap` for web fonts (see [MDN Docs for font-display](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display))

This is recommended to not block the rendering the page for a long time if the web font is not available. Again, this is important for folks with suboptimal network connections.

The `swap` value is also the default option in popular font services like [Google Fonts](https://fonts.google.com/).

**(3)** Update the list of alternative font families.

I updated the sans-serif and mono font stack used in the design. The new stacks are much longer (not a problem in practice thanks to CSS variables) but they cover all common browsing devices (including smartphones). I crafted the list from the recommended font stacks of the most popular CSS frameworks and the most popular websites for developers.
2023-07-19 12:01:23 +01:00
Andreas Möller
57f505ed58 Enhancement: Enable and configure concat_space fixer
Closes GH-657.
2022-08-22 19:04:47 +02:00
Andreas Möller
d9bcfed482 Enhancement: Enable array_syntax fixer
Co-authored-by: MathiasReker <mathias@reker.dk>

Closes GH-659.
2022-08-22 18:59:14 +02:00
Andreas Möller
f3585d9bdf Enhancement: Enable indentation_type fixer
Closes GH-622.
2022-07-11 20:34:20 +02:00
Andreas Möller
1e7a49e268 Fix: Remove unused local variables
Closes GH-578.
2022-06-28 15:25:35 +02:00
Sara Golemon
c0afd74bf7 Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
2/4 - Update remaining except archives/ and release/.
2019-05-31 12:31:21 -04:00
Javier Eguiluz
0895bddde6 Fixed the vertical align of "supported versions" chart 2018-07-30 20:32:36 +02:00
Adam Harvey
359f4a374c Colour code the branches on the supported version SVG. 2014-10-28 09:40:56 -07:00
Adam Harvey
f1a3ca46cc Add a draft supported versions page, as suggested on Internals. 2014-10-27 13:25:21 -07:00