Commit:    c7d2c992e920d2696cb8723cfc335f61c0f4a576
Author:    Ruslan <nar...@yandex.ru>         Sat, 7 Nov 2020 20:27:21 +0300
Committer: Sara Golemon <poll...@php.net>      Wed, 25 Nov 2020 20:28:13 +0000
Parents:   d54880319a543171ac20113e93af80ba2fa82bf9
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=c7d2c992e920d2696cb8723cfc335f61c0f4a576

Log:
JS-13812 Develop markup for PHP 8 announcement on php.net

Changed paths:
  M  php8.php
  M  styles/php8.css


Diff:
diff --git a/php8.php b/php8.php
index 43df1e4fd..386ea9b72 100644
--- a/php8.php
+++ b/php8.php
@@ -24,7 +24,6 @@ site_header("PHP 8", array("current" => "php8", 'css' => 
array('php8.css')));
 <section class="php8-section center">
   <div class="php8-compare">
     <h2 class="php8-h2" id="named-arguments">
-      <a class="php8-anchor" href="#named-arguments"></a>
       Named arguments
       <a class="php8-rfc" href="https://wiki.php.net/rfc/named_params";>RFC</a>
     </h2>
@@ -47,7 +46,6 @@ site_header("PHP 8", array("current" => "php8", 'css' => 
array('php8.css')));
 
   <div class="php8-compare">
     <h2 class="php8-h2" id="attributes">
-      <a class="php8-anchor" href="#attributes"></a>
       Attributes
       <a class="php8-rfc" href="https://wiki.php.net/rfc/attributes_v2";>RFC</a>
     </h2>
@@ -76,7 +74,6 @@ class User
 
   <div class="php8-compare">
     <h2 class="php8-h2" id="constructor-property-promotion">
-      <a class="php8-anchor" href="#constructor-property-promotion"></a>
       Constructor property promotion
       <a class="php8-rfc" 
href="https://wiki.php.net/rfc/constructor_promotion";>RFC</a>
     </h2>
@@ -119,7 +116,6 @@ class User
 
   <div class="php8-compare">
     <h2 class="php8-h2" id="union-types">
-      <a class="php8-anchor" href="#union-types"></a>
       Union types
       <a class="php8-rfc" 
href="https://wiki.php.net/rfc/union_types_v2";>RFC</a>
     </h2>
@@ -160,7 +156,6 @@ new Number('NaN'); // TypeError</pre>
 
   <div class="php8-compare">
     <h2 class="php8-h2" id="match-expression">
-      <a class="php8-anchor" href="#match-expression"></a>
       Match expression
       <a class="php8-rfc" 
href="https://wiki.php.net/rfc/match_expression_v2";>RFC</a>
     </h2>
@@ -196,7 +191,6 @@ echo $result;
 
   <div class="php8-compare">
     <h2 class="php8-h2" id="nullsafe-operator">
-      <a class="php8-anchor" href="#nullsafe-operator"></a>
       Nullsafe operator
       <a class="php8-rfc" 
href="https://wiki.php.net/rfc/nullsafe_operator";>RFC</a>
     </h2>
@@ -231,7 +225,6 @@ if ($session !== null) {
 
   <div class="php8-compare">
     <h2 class="php8-h2" id="saner-string-to-number-comparisons">
-      <a class="php8-anchor" href="#saner-string-to-number-comparisons"></a>
       Saner string to number comparisons
       <a class="php8-rfc" 
href="https://wiki.php.net/rfc/string_to_number_comparison";>RFC</a>
     </h2>
@@ -254,7 +247,6 @@ if ($session !== null) {
 
   <div class="php8-compare">
     <h2 class="php8-h2" id="consistent-type-errors-for-internal-functions">
-      <a class="php8-anchor" 
href="#consistent-type-errors-for-internal-functions"></a>
       Consistent type errors for internal functions
       <a class="php8-rfc" 
href="https://wiki.php.net/rfc/consistent_type_errors";>RFC</a>
     </h2>
@@ -291,7 +283,7 @@ array_chunk([], -1); // ValueError: array_chunk(): Argument 
#2 ($length) must be
     <img src="/images/php8/jit.png" alt="Just-In-Time compilation">
   </p>
 
-  <h2 class="php8-h2">Other syntax tweaks and improvements</h2>
+  <h2 class="php8-h2 php8-h2_margin-top">Other syntax tweaks and 
improvements</h2>
   <div class="php8-columns">
     <div class="php8-column">
       <ul>
diff --git a/styles/php8.css b/styles/php8.css
index 6a536eb5b..d5718b653 100644
--- a/styles/php8.css
+++ b/styles/php8.css
@@ -343,7 +343,7 @@
   }
 }
 
-.php8-anchor {
+.php8-h2 .genanchor {
   display: none;
   float: left;
   height: 30px;
@@ -353,8 +353,9 @@
   background: url("/images/php8/anchor.svg") scroll no-repeat left center / 
21px 16px transparent;
   text-decoration: none;
   border-bottom: none;
+  font-size: 0;
 }
 
-h2:hover .php8-anchor {
+.php8-h2:hover .genanchor {
   display: block;
 }
\ No newline at end of file


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to