com web/php: styles for the language selector: releases/8_ 0_x.php releases/8_0_x_ru.php styles/php 8.css
| From: | Sara Golemon | Date: | Wed, 25 Nov 2020 20:28:13 +0000 |
| Subject: | com web/php: styles for the language selector: releases/8_ 0_x.php releases/8_0_x_ru.php styles/php 8.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28878@lists.php.net to get a copy of this message | ||
Commit: a8fbcd810b5c1cac39f49808df18a102203dfed0
Author: Ruslan <naruzl@yandex.ru> Thu, 19 Nov 2020 22:44:16 +0300
Committer: Sara Golemon <pollita@php.net> Wed, 25 Nov 2020 20:28:13 +0000
Parents: 7fe1e12f36ce575670f22b20bbc783c483ef2a0b
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=a8fbcd810b5c1cac39f49808df18a102203dfed0
Log:
styles for the language selector
Changed paths:
M releases/8_0_x.php
M releases/8_0_x_ru.php
M styles/php8.css
Diff:
diff --git a/releases/8_0_x.php b/releases/8_0_x.php
index 16a1adecc..8d5ffa5bb 100644
--- a/releases/8_0_x.php
+++ b/releases/8_0_x.php
@@ -14,15 +14,12 @@ site_header("PHP 8.0.0 Release Announcement", array(
)
));
?>
-<section>
- <div class="page-tools">
- <div class="change-language">
- <?php echo release_language_chooser($LANG); ?>
- </div>
- </div>
-</section>
-
<section class="php8-section php8-section_dark php8-section_header center">
+ <div class="page-tools">
+ <div class="change-language">
+ <?php echo release_language_chooser($LANG); ?>
+ </div>
+ </div>
<div class="php8-section__content">
<div class="php8-logo">
<img src="/images/php8/logo_php8.svg" alt="php8"
height="126" width="343">
diff --git a/releases/8_0_x_ru.php b/releases/8_0_x_ru.php
index 7f75f3867..7e5aa8e6a 100644
--- a/releases/8_0_x_ru.php
+++ b/releases/8_0_x_ru.php
@@ -20,16 +20,12 @@ site_header("PHP 8.0.0, релиз", array(
)
));
?>
-
-<section>
- <div class="page-tools">
- <div class="change-language">
- <?php echo release_language_chooser($LANG); ?>
- </div>
- </div>
-</section>
-
<section class="php8-section php8-section_dark php8-section_header center">
+ <div class="page-tools">
+ <div class="change-language">
+ <?php echo release_language_chooser($LANG); ?>
+ </div>
+ </div>
<div class="php8-section__content">
<div class="php8-logo">
<img src="/images/php8/logo_php8.svg" alt="php8"
height="126" width="343">
diff --git a/styles/php8.css b/styles/php8.css
index bde2b6663..d81b28494 100644
--- a/styles/php8.css
+++ b/styles/php8.css
@@ -38,6 +38,7 @@
}
.php8-section_header {
+ position: relative;
padding-top: 64px;
margin-top: -1.5rem;
font-family: Helvetica, Arial, sans-serif;
@@ -364,4 +365,60 @@
.php8-h2:hover .genanchor {
display: block;
+}
+
+.page-tools {
+ position: absolute;
+ top: 28px;
+ right: 28px;
+}
+
+@media (max-width: 1000px) {
+ .page-tools {
+ top: 16px;
+ right: 16px;
+ }
+}
+
+@media (max-width: 480px) {
+ .page-tools {
+ top: 0;
+ }
+}
+
+.change-language {
+ font-size: 15px;
+ color: #fff;
+ line-height: 1.6;
+}
+
+.change-language label {
+ display: inline-block;
+ margin-left: 16px;
+ vertical-align: middle;
+}
+
+@media (max-width: 480px) {
+ .change-language label {
+ margin-top: 8px;
+ }
+}
+
+.change-language select {
+ min-width: 178px;
+ margin-left: 16px;
+ vertical-align: middle;
+}
+
+@media (max-width: 480px) {
+ .change-language select {
+ margin-top: 8px;
+ }
+}
+
+.change-language select,
+.change-language option {
+ padding: 4px 5px;
+ color: rgba(39, 40, 44, 0.7);
+ line-height: 1.33;
}
\ No newline at end of file