Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
WIP attempt to get sticky headers
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jul 18, 2016
1 parent b65a0ef commit 9499bc3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
28 changes: 28 additions & 0 deletions css/customize-controls-sticky-headers.css
@@ -0,0 +1,28 @@

/*.accordion-sub-container.control-panel-content,*/
/*.accordion-section-content {*/
/*padding-top: 75px !important;*/
/*}*/

/*.accordion-sub-container.control-panel-content > .panel-meta.customize-info.accordion-section,*/
/*.accordion-section-content > .customize-section-description-container {*/
/*position: fixed;*/
/*top: 58px;*/
/*z-index: 10000;*/
/*width: 228px;*/
/*}*/

.control-panel > .accordion-sub-container.control-panel-content {
padding-top:
}

.accordion-section-content > .customize-section-description-container {
height: 58px;
}

.accordion-section-content > .customize-section-description-container > .customize-section-title {
position: fixed;
top: 58px;
z-index: 100000;
width: 300px;
}
6 changes: 6 additions & 0 deletions php/class-customize-posts-plugin.php
Expand Up @@ -295,6 +295,12 @@ public function register_styles( WP_Styles $wp_styles ) {
$version = $this->version;
$wp_styles->add( $handle, $src, $deps, $version );

$handle = 'customize-controls-sticky-headers';
$src = plugins_url( 'css/customize-controls-sticky-headers' . $suffix, dirname( __FILE__ ) );
$deps = array( 'customize-controls' );
$version = $this->version;
$wp_styles->add( $handle, $src, $deps, $version );

$handle = 'edit-post-preview-customize';
$src = plugins_url( 'css/edit-post-preview-customize' . $suffix, dirname( __FILE__ ) );
$deps = array( 'customize-controls' );
Expand Down
1 change: 1 addition & 0 deletions php/class-wp-customize-posts.php
Expand Up @@ -548,6 +548,7 @@ public function filter_customize_save_response_to_export_saved_values( $response
public function enqueue_scripts() {
wp_enqueue_script( 'customize-posts' );
wp_enqueue_style( 'customize-posts' );
wp_enqueue_style( 'customize-controls-sticky-headers' );

$post_types = array();
foreach ( $this->get_post_types() as $post_type => $post_type_obj ) {
Expand Down

0 comments on commit 9499bc3

Please sign in to comment.