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

196 Commits

Author SHA1 Message Date
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
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
Luffy
5cd5778ab7 Sync news item layout and style (#1451) 2025-10-01 13:52:31 +08: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
Roy Orbitson
2dcf9c3796 Fuzzy search of docs (#1007) 2024-08-09 12:11:16 +08:00
peterdd
d2279651a5 fix #62125 no wrap and scroll for source code examples (#444) 2024-07-05 11:02:30 +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
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
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
Christoph M. Becker
35430003f4 Revert "Apply white-space:pre to .phpcode and div.classsynopsis"
This reverts commit 65fc7be9a6.
2023-01-03 15:19:44 +01:00
Christoph M. Becker
65fc7be9a6 Apply white-space:pre to .phpcode and div.classsynopsis
This is currently unnecessary, since PhD renders NBSPs instead of
regular space there, but if that changes, the layout needs to be
preserved.

Closes GH-744.
2023-01-03 13:12:50 +01:00
Steve Desmond
b4a8b2640b Fix content layout on pages without sidebars for 768-979px viewport widths
Fixes GH-500.
Closes GH-501.
2022-10-17 14:07:31 +02:00
Levi Morrison
15d95ae47b Use CSS variables for some common colors (#689)
Aside from being able to tell what color it is or what purpose it
solves just by looking at the variable name, it helps provide a
foundation for more easily changing the theme in the future.

Hopefully, we'll have a light and dark theme one day.
2022-09-01 11:47:43 -06:00
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
Lucas Azevedo
cfcf303e02 Improve homepage hero design
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-459.
2022-06-13 16:07:27 +02:00
Ruslan
78a91db65b JS-13812 Develop markup for PHP 8 announcement on php.net 2020-11-25 20:28:13 +00:00
Markus Staab
6c8c2aa18c enable css-native smooth scrolling
remove javascript scroll magic

add a top-margin to all elements which get referenced by anchor-urls, so they are not covered by the fixed header
2020-08-25 16:38:31 +01:00
Peter Kokot
35e766d749 Fix permissions
Having synced file permissions in Git repositories is a reccurring
issue. Git can track files as executables (0755) or not (0644). Usually,
all files except the executable ones such as command line scripts or
binary executables, should be set to 0644.

This patch syncs permissions in the Git repository.
2018-10-25 02:22:08 +02:00
Jefrey Sobreira Santos
d26b9a7148 vertically center search box 2018-10-17 11:12:33 +02:00
Peter Kokot
e235f79473 Trim trailing whitespace
This patch cleans all redundant trailing whitespace across the
repository except for the icalendar files.
2018-10-17 10:51:08 +02:00
Peter Cowburn
f226403f1d logo page improvements
Put back chunks of the old logo page that I'm nostalgic for.
Use print_image() function for rendering img tags as before.
Remove some now-unused CSS.
2018-03-14 23:53:20 +00:00
Peter Cowburn
5cd2f7b506 Merge branch 'pull-request/106' 2018-03-14 23:02:54 +00:00
Levi Morrison
418a39160d Fixes morrisonlevi/web-php#7 2016-11-10 11:09:08 -07:00
Levi Morrison
087370c3e0 Revert "Fixes morrisonlevi/web-php#1"
This reverts commit 0fd69e90a8.
2016-11-10 11:07:40 -07:00
Levi Morrison
0fd69e90a8 Fixes morrisonlevi/web-php#1 2016-11-10 11:05:10 -07:00
Wes
064f21a712 Fix page-tools hiding title on small devices 2016-07-16 00:01:09 +02:00
Webysther Nunes
0728162200 Removed whitespace 2016-06-02 19:57:35 -03:00
Webysther Nunes
cd2613b5f0 Removed whitespace 2016-06-02 19:56:45 -03:00