Making WordPress.org

Changeset 1557


Ignore:
Timestamp:
05/08/2015 07:35:35 PM (10 years ago)
Author:
iandunn
Message:

WordPress.tv: Remove unused dropdown JavaScript and CSS.

We don't have any submenus anymore, and if we want to add them in the future, it'd be better to use a pure CSS approach.

Location:
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/front-page.php

    r1024 r1557  
    2525                <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" class="video-title"><?php the_title(); ?></a>
    2626                <?php $wptv->the_event( '<strong class="video-event">', '</strong>' ); ?>
    27         </h3>
     27            </h3>
    2828        </div><!-- .main-video -->
    2929        <?php endwhile; // $featured->have_posts ?>
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/functions.php

    r1556 r1557  
    773773    wp_style_add_data( 'wptv-ie', 'conditional', 'IE 6' );
    774774
    775     wp_register_script( 'wptv-dropdowns', get_template_directory_uri() . '/js/dropdowns.js' );
    776     wp_enqueue_script( 'wptv-dropdowns', array( 'jquery' ) );
    777 
    778775    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
    779776        wp_enqueue_script( 'comment-reply' );
  • sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/style.css

    r1024 r1557  
    20202020}
    20212021
    2022 /* Menu
    2023 ============================================================= */
    2024 
    2025 #menu li {
    2026     position: relative;
    2027 }
    2028 
    2029 /* Dropdowns */
    2030 
    2031 #menu .sub-menu {
    2032     background: rgba(47, 47, 47, .95);
    2033 
    2034     border-radius: 3px;
    2035     -moz-border-radius: 3px;
    2036     -webkit-border-radius: 3px;
    2037 
    2038     box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    2039 
    2040     display: none;
    2041     z-index: 99;
    2042 
    2043     position: absolute;
    2044     top: 50px;
    2045     left: -5px;
    2046 
    2047     height: auto;
    2048     width: 200px;
    2049 }
    2050 
    2051 #menu .sub-menu li {
    2052     border-top: 1px rgba(255, 255, 255, 0.1) solid;
    2053     border-bottom: 1px rgba(0, 0, 0, 0.2) solid;
    2054     float: none;
    2055     margin: 0;
    2056 }
    2057 
    2058 #menu .sub-menu li a {
    2059     color: #ccc;
    2060     text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
    2061     -moz-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
    2062     -webkit-text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
    2063 
    2064     font-size: 13px;
    2065     font-weight: normal;
    2066     line-height: 1.2;
    2067 
    2068     padding: 10px;
    2069 
    2070     display: block;
    2071     clear: both;
    2072 }
    2073 
    2074 #menu .sub-menu li a:hover {
    2075     background: #1f1f1f;
    2076     color: #fff !important;
    2077 }
    2078 
    2079 #menu .sub-menu .current-menu-item a,
    2080 #menu .sub-menu .current_page_item a {
    2081     color: #ccc !important;
    2082 }
    2083 
    2084 #menu .sub-menu ul {
    2085     left: 195px;
    2086     top: 5px;
    2087 }
    2088 
    20892022/* Hero Area
    20902023============================================================= */
Note: See TracChangeset for help on using the changeset viewer.