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

695 Commits

Author SHA1 Message Date
Shivam Mathur
805a63d0f1 Update documentation in build-setup.php (#1849) 2026-03-03 20:29:33 +05:30
gdaffa
0c7db7852a fix(css): Override .token.operator bg to trasnparent (#1839) 2026-02-28 19:02:40 +05:30
lwlinux
3e1bf68681 Fix PHP8.5 release page css (#1629) 2025-11-20 10:15:11 +03:00
Theodore Brown
a32bc943fb Support rendering release pages with PHP 8.3+ (#1613)
See https://github.com/php/php-src/pull/11913
2025-11-19 23:44:24 +03:00
Theodore Brown
84ce0c6804 Add syntax highlighting for variables on PHP 8.5 release page (#1626) 2025-11-19 21:02:05 +03:00
Sergey Panteleev
26d39a1fff PHP 8.5 release page updates (#1624) 2025-11-19 19:58:42 +03:00
Sergey Panteleev
9b86e7de7e PHP 8.5 release page (#1454)
Co-authored-by: Tim Düsterhus <tim@bastelstu.be>
Co-authored-by: Borislav Kosun <kosun.b@yandex.com>
Co-authored-by: Theodore Brown <theodorejb@outlook.com>
2025-11-19 17:42:11 +03:00
Elf Sundae
0c0d93a2e3 Fix example code block padding for PHP 8.3+ (#1501)
Co-authored-by: Luffy <lufei@php.net>
2025-11-13 10:26:06 +08:00
Theodore Brown
95c7f6290e Fix PHP 8.4 property hooks example not being full width when wrapped (#1522) 2025-10-17 11:19:27 +08:00
Luffy
5cd5778ab7 Sync news item layout and style (#1451) 2025-10-01 13:52:31 +08:00
Luffy
7826da991a Add word-break styling for SHA256 instructions (#1346) 2025-08-24 12:10:39 +08:00
Shivam Mathur
a9ba48e13a Add windows builds in the downloads page 2025-08-18 11:02:41 +01:00
Marcus Förster
c2dd97cf5f Optimize style of supported-versions table on mobile (#1243)
Co-authored-by: Luffy <lufei@php.net>
2025-08-18 12:08:16 +08:00
Shivam Mathur
c851d01e50 Add syntax highlighting and copy button 2025-08-12 14:29:30 +01:00
Sergey Panteleev
6026e879a6 Should fix tests 2025-08-12 14:29:30 +01:00
Sergey Panteleev
3fd6ca5dea Update layout 2025-08-12 14:29:28 +01:00
Luffy
80ccba40fe Optimize CSS for Google CSE search (#1294) 2025-07-15 10:40:38 +08:00
Luffy
9550e111e5 Make table header sticky within doctable class (#1259) 2025-04-24 09:48:46 +03:00
Jakub Vrána
5d926b3fa1 Sticky thead (#1258) 2025-04-20 15:12:19 +03:00
Mikhail Alferov
ae77e8b55c Add an padding in code examples (#1224) 2025-02-07 13:57:15 +03:00
Marcos 'Marcão' Aurelio
cb9bb534ca Fix table overlapping and improve responsiveness #688 (#1222)
Fix #688
2025-02-05 10:51:33 +03:00
Pavel Djundik
5f61eca86e Add scroll padding for anchor links (#1214) 2025-01-27 15:33:11 +03:00
David McGuire
f843f56538 Sticky breadcrumb and sidebar navs (#1198)
close #1197
2025-01-27 09:32:49 +03:00
Kamil Tekiela
e02d74cff0 Improve Found A Problem? (#1162) 2024-11-24 09:05:43 +03:00
Lucas Azevedo
b62f99f6de Update navbar design and improve search UI (#1084)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
Co-authored-by: Sergey Panteleev <sergey@php.net>
2024-11-02 17:39:04 +03:00
Sergey Panteleev
fcc95652d8 Fix downloads layout on mobile (#1110) 2024-10-30 16:10:52 +03:00
Nafis Reza
cb385e3e05 Update hero section styles according to BEM methodology (#1107) 2024-10-30 11:03:34 +08:00
Jim Winstead
b585014d1f Link to GH issues instead of bugs.php.net for documentation issues (#1078) 2024-09-20 10:43:41 +08:00
Jim Winstead
0d192a20fd Add styling for .computeroutput in manual (#1077) 2024-09-18 14:48:57 -07:00
Sergey Panteleev
0361d00417 Fix playwright .hero-versions mask 2024-09-01 20:14:46 +03:00
Roy Orbitson
2dcf9c3796 Fuzzy search of docs (#1007) 2024-08-09 12:11:16 +08:00
peterdd
d4acbf45ba usability: avoid gap between a wrapped link in aside bar (#439) 2024-07-06 00:04:21 +03:00
peterdd
d2279651a5 fix #62125 no wrap and scroll for source code examples (#444) 2024-07-05 11:02:30 +03:00
haszi
e182a0bf7e Make replaceable class text italic (#1008)
Make replaceable class text italic to visually differentiate content that may or must be replaced.

Co-authored-by: haszi <haszika80@gmail.com>
2024-06-15 13:40:06 +03:00
haszi
fbe589892a Move contribution links to the bottom of the documentation pages (#973)
Co-authored-by: haszi <haszika80@gmail.com>
2024-04-17 12:48:52 +01:00
haszi
8192a72c76 Add style for captions (#966)
Co-authored-by: haszi <haszika80@gmail.com>
2024-03-17 18:16:16 +00:00
Jim Winstead
c89bec8fad Add links to PHP Foundation with a Donate button (#821)
Co-authored-by: Derick Rethans <github@derickrethans.nl>
Co-authored-by: Lu Fei <52o@qq52o.cn>
2024-02-02 11:40:39 +03:00
Sergey Panteleev
84a97774b1 Set max-width for news item images 2024-01-16 16:51:59 +03:00
Sergey Panteleev
0831bac8b3 Set max-width for news images (#921) 2024-01-13 00:11:28 +03:00
Andreas Möller
59c070f557 Enhancement: Enable blank_line_after_opening_tag fixer (#875) 2023-12-07 16:57:19 +01:00
Andreas Möller
00342c402f Fix: Remove vim instruction (#880) 2023-12-07 15:01:52 +01:00
Tim Düsterhus
2a5e5a44ab Use white-space: pre-wrap for code formatting (#810)
* Use `white-space: pre-wrap` for code formatting

Apparently code formatting is used for the entire user comments. Use
`white-space: pre-wrap` to avoid horizontal scrolling of the plaintext
description.


see 7d4038829e

* Unify `highlight_php()` with PhD

see php/phd@01d6beb366

* Fix markup for notes in add-note.php
2023-08-30 18:40:00 +01:00
alfsb
64efd46488 Remove double underline on abbr (#800)
Co-authored-by: André L F S Bacci <ae@php.net>
2023-08-18 12:34:12 +01:00
Tim Düsterhus
7d4038829e Apply white-space: pre onto the entire code snippet (#801)
This is needed to correctly handle whitespace outside of a `<?php … ?>` portion.

see php/web-php@b7bccc4049
see php/phd@01d6beb366
see php/doc-en#2648
2023-08-16 14:16:16 +01:00
Christoph M. Becker
8463593803 Only "linked" parameters should have pointer cursor (#742)
If a parameter has no target to scroll to, it should not suggest
otherwise by changing the cursor to a pointer.  Since the scrolling is
done via JS, we should also change the cursor via JS.[1]

While we're at it, we also fix the potential JS error where we call the
`.offset()` method on an empty `jQuery` object.

[1] <https://github.com/php/doc-en/issues/2071#issuecomment-1354497367>
2023-08-10 12:55:25 +01:00
Leonardo Poletto
57fe66b12e Fix code blocks overflowing content. (#777) 2023-08-09 11:29:32 -05: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
Kamil Tekiela
9e32ca8e9a Enable horizontal scroll bar for code blocks (#770) 2023-06-23 09:29:06 -05:00
Javier Eguiluz
44927b5cdc Improve magenta contrast to fix accessibility issues (#749) 2023-02-21 15:02:35 +00:00
Christoph M. Becker
b7bccc4049 Properly handle whitespace in PHP examples
PhD no longer renders NBSPs, but regular spaces instead[1].  To retain
the desired indentation, we set the CSS propery `white-space:pre`.
However, we cannot do that for the `.phpcode` class directly, because
`highlight_string()` emits additional line breaks at the top and the
bottom of the examples, so we use a more specific selector to avoid
this "padding".

[1] <87f794bafe>
2023-01-04 15:45:40 +01:00