WordPress.org

Making WordPress.org

Changeset 6393


Ignore:
Timestamp:
01/18/18 00:01:54 (5 weeks ago)
Author:
netweb
Message:

BuddyPress.org: Add BuddyPress 2018 Survey Banner

Props mercime.
Fixes #3294.

Location:
sites/trunk/buddypress.org/public_html/wp-content/themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/header.php

    r4629 r6393  
    88 
    99    <div id="header"> 
     10        <style type="text/css"> 
     11            @media screen and (max-width:768px) { .survey-wrapper { margin-bottom:20px; } #header-inner {height:82px} } 
     12            .survey-wrapper { width: 100%; position: absolute; } 
     13            .survey-div { font-family: 'Open Sans', Helvetica, Arial, 'Liberation Sans', sans-serif; font-weight: 600; display: block; margin: 0 auto; font-size: 13px; color: #fff; height: 24px; width: 245px; text-align:center !important; background-color: rgba(0, 0, 0, 0.8); border-radius: 0 0 4px 4px; } 
     14            .survey-div a { color: #fff; font-weight: 500; display: block; } 
     15            .survey-div a:hover { text-decoration: none; } 
     16            #wpadminbar { top: 82px; } 
     17            #main {  margin-top: 120px; } 
     18            @media screen and (max-width:360px) { .survey-div { width: 100%; } } 
     19        </style> 
     20        <div class="survey-wrapper"><div class="survey-div"> 
     21            <a href="https://mercime.polldaddy.com/s/buddypress-2018-survey">Take the 2018 BuddyPress Survey &rarr;</a> 
     22        </div></div> 
    1023        <div id="header-inner"> 
    1124        <?php get_template_part( 'header', 'nav' ); ?> 
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/header.php

    r4630 r6393  
    88 
    99    <div id="header"> 
     10        <style type="text/css"> 
     11            @media screen and (max-width:768px) { .survey-wrapper { margin-bottom:20px; } #header-inner {height:82px} } 
     12            .survey-wrapper { width: 100%; position: absolute; } 
     13            .survey-div { font-family: 'Open Sans', Helvetica, Arial, 'Liberation Sans', sans-serif; font-weight: 600; display: block; margin: 0 auto; font-size: 13px; color: #fff; height: 24px; width: 245px; text-align:center !important; background-color: rgba(0, 0, 0, 0.8); border-radius: 0 0 4px 4px; } 
     14            .survey-div a { color: #fff; font-weight: 500; display: block; } 
     15            .survey-div a:hover { text-decoration: none; } 
     16            #wpadminbar { top: 82px; } 
     17            #main {  margin-top: 120px; } 
     18            @media screen and (max-width:360px) { .survey-div { width: 100%; } } 
     19        </style> 
     20        <div class="survey-wrapper"><div class="survey-div"> 
     21            <a href="https://mercime.polldaddy.com/s/buddypress-2018-survey">Take the 2018 BuddyPress Survey &rarr;</a> 
     22        </div></div> 
    1023        <div id="header-inner"> 
    1124        <?php get_template_part( 'header', 'nav' ); ?> 
Note: See TracChangeset for help on using the changeset viewer.