Skip to content

Commit d98828c

Browse files
committed
update styles
1 parent f415153 commit d98828c

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ gulp.task('hoverColors', function() {
500500
digestType: 'base32',
501501
maxLength: 0,
502502
outputName: 'hover2',
503-
classnameFormat: '[classname]:not( .button-primary):not( .button-secondary ) a',
503+
classnameFormat: '[classname]:not( .button-primary):not( .button-secondary ) > a',
504504
type: '.json'
505505
}),
506506
require('postcss-prefix-selector')({ prefix: '%1$s' })

src/assets/js/front-end.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,8 @@ var BoldGrid = BoldGrid || {};
686686
subMenuWidth,
687687
subMenuHeight,
688688
rightOffset,
689-
screenWidth;
689+
screenWidth,
690+
isVerticalMegaMenu;
690691

691692
$headerContainer = $headerContainer.length ? $headerContainer : $subMenu.closest( '#masthead-sticky' );
692693

@@ -700,8 +701,10 @@ var BoldGrid = BoldGrid || {};
700701
rightOffset = $( window ).outerWidth( true ) - ( leftOffset + subMenuWidth );
701702
screenWidth = $( window ).width() + 16;
702703

704+
isVerticalMegaMenu = $subMenu.closest( '.sm' ).hasClass( 'sm-vertical' ) && $subMenu.hasClass( 'custom-sub-menu' );
705+
703706
// Adjust the offset for menu items in the footer so it opens upwards instead of down.
704-
if ( bottomOffset > headerBottom && $subMenu.closest( '#colophon' ).length ) {
707+
if ( $subMenu.closest( '#colophon' ).length && ( bottomOffset > headerBottom || isVerticalMegaMenu ) ) {
705708
$subMenu.css( {
706709
top: '-' + subMenuHeight + 'px'
707710
} );

src/assets/scss/boldgrid/_header.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
display: flex;
2525
flex-wrap: wrap;
2626
}
27-
.full-width {
27+
> .full-width {
2828
padding-left: 0px;
2929
padding-right: 0px;
3030
width: 100%;
31-
.row {
31+
> .row {
3232
display: flex;
3333
flex-wrap: wrap;
3434
aside.sidebar {
3535
padding-left: 0px;
3636
padding-right: 0px;
3737
height: 100%;
3838
}
39-
div {
39+
> div {
4040
padding-left: 0px;
4141
padding-right: 0px;
4242
}

src/assets/scss/boldgrid/_margin-fix.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
}
9595
}
9696
#masthead, #masthead-sticky {
97-
.container {
97+
> .boldgrid-section > .container {
9898
padding-left: 15px;
9999
padding-right: 15px;
100100
.site-description {

src/assets/scss/custom-color/color-classes.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ $names: background background-color;
141141
.color#{$color}-#{nth( $names, $i )} {
142142
@for $each from 1 through length( $colors ) {
143143
&.color-#{$each}-link-color {
144-
li.menu-item:not( .custom-sub-menu ) {
144+
li.menu-item:not( .custom-sub-menu ),
145+
.attribution-theme-mods .link {
145146
> a:not( .btn ) {
146147
color: #{nth($colors, $each)};
147148
}

0 commit comments

Comments
 (0)