Skip to content

Commit

Permalink
Update sections navigation settings
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimp2t committed Sep 10, 2018
1 parent 12647fe commit 4be1b34
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 56 deletions.
2 changes: 1 addition & 1 deletion assets/js/customizer-liveview.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
var css_code = $( '#onepress-style-inline-css' ).html();
// Fix Chrome Lost CSS When resize ??
$( '#onepress-style-inline-css' ).replaceWith( '<style class="replaced-style" id="onepress-style-inline-css">'+css_code+'</style>' );

}

// When preview ready
Expand Down
42 changes: 22 additions & 20 deletions assets/sass/_bully.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,35 @@

&title {
position: absolute;
right: 35px;
top: 0px;
right: 26px;
top: 1px;
left: auto;
background: rgba( 0,0,0, .6 );
padding: 3px 10px;
background: rgba( 0,0,0, .7 );
padding: 1px 10px;
border-radius: 2px;
transition: all 0.2s ease-out;
display: block;
opacity: 0;
white-space: nowrap;
color: rgba( 255, 255, 255, .8);
transform: scale(.6);
&::after {
content: '';
width: 0;
height: 0;
border-style: solid;
border-width: 13px 0 13px 13px;
border-color: transparent transparent transparent rgba(0, 0, 0, .6);
display: inline-block;
position: absolute;
right: 0px;
top: 50%;
transform: translate(100%, -50%);
border-radius: 2px;
border-top-right-radius: 1px;
border-bottom-right-radius: 1px;
}

//&::after {
// content: '';
// width: 0;
// height: 0;
// border-style: solid;
// border-width: 13px 0 13px 13px;
// border-color: transparent transparent transparent rgba(0, 0, 0, .6);
// display: inline-block;
// position: absolute;
// right: 0px;
// top: 50%;
// transform: translate(100%, -50%);
// border-radius: 2px;
// border-top-right-radius: 1px;
// border-bottom-right-radius: 1px;
//}
}

}
Expand Down
36 changes: 21 additions & 15 deletions inc/class-sections-navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,57 +37,63 @@ function get_sections(){
'hero' => array(
'label' => __( 'Section: Hero', 'onepress' ),
'title' => __( 'Home', 'onepress' ),
'default' => 1,
'inverse' => 1,
'default' => false,
'inverse' => false,
),
'about' => array(
'label' => __( 'Section: About', 'onepress' ),
'title' => __( 'About Us', 'onepress' ),
'default' => 1,
'default' => false,
'inverse' => false,
),
'contact' => array(
'label' => __( 'Section: Contact', 'onepress' ),
'title' => __( 'Get in touch', 'onepress' ),
'default' => 1,
'default' => false,
'inverse' => false,

),
'counter' => array(
'label' => __( 'Section: Counter', 'onepress' ),
'title' => __( 'Our Numbers', 'onepress' ),
'default' => 1,
'inverse' => 1,
'default' => false,
'inverse' => false,
),
'features' => array(
'label' => __( 'Section: Features', 'onepress' ),
'title' => __( 'Features', 'onepress' ),
'default' => 1
'default' => false,
'inverse' => false,
),
'gallery' => array(
'label' => __( 'Section: Gallery', 'onepress' ),
'title' => __( 'Gallery', 'onepress' ),
'default' => 1
'default' => false,
'inverse' => false,
),
'news' => array(
'label' => __( 'Section: News', 'onepress' ),
'title' => __( 'Latest News', 'onepress' ),
'default' => 1
'default' => false,
'inverse' => false,
),
'services' => array(
'label' => __( 'Section: Services', 'onepress' ),
'title' => __( 'Our Services', 'onepress' ),
'default' => 1
'default' => false,
'inverse' => false,
),
'team' => array(
'label' => __( 'Section: Team', 'onepress' ),
'title' => __( 'Our Team', 'onepress' ),
'default' => 1
'default' => false,
'inverse' => false,
),
'videolightbox' => array(
'label' => __( 'Section: Video Lightbox', 'onepress' ),
'title' => '',
'default' => 1,
'inverse' => 1,
'default' => false,
'inverse' => false,
),
);

Expand Down Expand Up @@ -133,7 +139,7 @@ function add_customize( $wp_customize, $section_id ){
);
$wp_customize->add_control( $this->get_name( '__enable' ),
array(
'label' => __( 'Enable section navigation', 'onepress' ),
'label' => __( 'Enable in section navigation', 'onepress' ),
'section' => $section_id,
'type' => 'checkbox',
)
Expand Down Expand Up @@ -210,7 +216,7 @@ function add_customize( $wp_customize, $section_id ){
);
$wp_customize->add_control( $name,
array(
'label' => __( 'Enable section navigation', 'onepress' ),
'label' => __( 'Enable in section navigation', 'onepress' ),
'section' => $section_id,
'type' => 'checkbox',
)
Expand Down
25 changes: 5 additions & 20 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4be1b34

Please sign in to comment.