[www-doc] [Git][VideoLAN.org/websites][master] Add partners title
Jean-Baptiste Kempf
gitlab at videolan.org
Mon Jun 13 00:06:28 CEST 2016
Jean-Baptiste Kempf pushed to branch master at VideoLAN organization / websites
Commits:
0dbdca05 by David Loiret at 2016-06-13T00:06:05+02:00
Add partners title
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
- - - - -
2 changed files:
- www.videolan.org/include/header.php
- www.videolan.org/style/slick-theme.scss
Changes:
=====================================
www.videolan.org/include/header.php
=====================================
--- a/www.videolan.org/include/header.php
+++ b/www.videolan.org/include/header.php
@@ -297,13 +297,16 @@ function start_body( $body_color, $language, $b_show_donate = true, $nobanner, $
$sponsors = getSponsors();
shuffle($sponsors);
?>
- <div id="sponsors-carousel">
- <?php foreach($sponsors as $sponsor) {
- echo '<a target="_blank" href="' . $sponsor["link"] .'">' .
- '<img src="' . $sponsorsDir . $sponsor["imgSrc"] . '">' .
- '</a>';
- }
- ?>
+ <div class="sponsors-carousel-wrapper">
+ <h6><?= _("Partners"); ?></h6>
+ <div id="sponsors-carousel">
+ <?php foreach($sponsors as $sponsor) {
+ echo '<a target="_blank" href="' . $sponsor["link"] .'">' .
+ '<img src="' . $sponsorsDir . $sponsor["imgSrc"] . '">' .
+ '</a>';
+ }
+ ?>
+ </div>
</div>
<?php } ?>
</div>
=====================================
www.videolan.org/style/slick-theme.scss
=====================================
--- a/www.videolan.org/style/slick-theme.scss
+++ b/www.videolan.org/style/slick-theme.scss
@@ -108,13 +108,17 @@ $bg-color-hover: rgba(0, 0, 0, 0.4);
display: block;
}
-#sponsors-carousel {
+.sponsors-carousel-wrapper {
position: absolute;
display: inline-block;
text-align: center;
right: 15px;
- top: 0;
+ top: -22px;
max-width: 150px;
+ h6 {
+ color: #97a5ac;
+ margin: 5px;
+ }
}
#sponsors-carousel a {
@@ -129,7 +133,7 @@ $bg-color-hover: rgba(0, 0, 0, 0.4);
}
@media only screen and (max-width : 480px) {
- #sponsors-carousel {
+ .sponsors-carousel-wrapper {
display: none;
}
}
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/0dbdca052a6b9e3a2c25154ab69c3be7326fb040
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/www-doc/attachments/20160613/f4f07d10/attachment.html>
More information about the www-doc
mailing list