forked from italia/design-comuni-plone-theme
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: backport white header preset from child themes and fix header mo…
…bile (#380)
- Loading branch information
Showing
8 changed files
with
123 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
@if ($enable-header-white-background) { | ||
.it-header-wrapper { | ||
.it-header-center-wrapper { | ||
.it-header-center-content-wrapper { | ||
.it-brand-wrapper { | ||
.it-brand-text, | ||
.it-brand-text h2, | ||
.it-brand-text h3 { | ||
color: $text-color; | ||
font-weight: 700; | ||
} | ||
} | ||
|
||
.it-right-zone { | ||
color: $text-color; | ||
|
||
.it-socials { | ||
ul { | ||
.icon { | ||
color: $primary; | ||
fill: $primary; | ||
} | ||
|
||
a:hover svg { | ||
fill: darken($primary, 10%); | ||
} | ||
} | ||
} | ||
|
||
.it-search-wrapper a.rounded-icon { | ||
background-color: $primary; | ||
color: white; | ||
|
||
&:hover { | ||
background-color: darken($primary, 10%); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
.it-header-navbar-wrapper { | ||
background-color: $primary; | ||
} | ||
|
||
.navbar .navbar-collapsable { | ||
.menu-wrapper .it-brand-wrapper { | ||
.it-brand-text, | ||
.it-brand-text h2, | ||
.it-brand-text h3 { | ||
color: $text-color; | ||
font-weight: 700; | ||
} | ||
} | ||
} | ||
@media (max-width: map-get($map: $grid-breakpoints, $key: 'lg') - 1px) { | ||
button.custom-navbar-toggler svg.icon { | ||
fill: $primary; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/theme/bootstrap-override/bootstrap-italia/_header.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.it-header-wrapper { | ||
@media (max-width: map-get($map: $grid-breakpoints, $key: 'lg') - 1px) { | ||
.it-header-navbar-wrapper { | ||
background-color: transparent; | ||
|
||
> .container { | ||
padding: 0; | ||
} | ||
} | ||
|
||
.it-nav-wrapper .it-header-navbar-wrapper nav { | ||
padding-right: 0; | ||
} | ||
|
||
.it-nav-wrapper .it-header-navbar-wrapper { | ||
margin-top: -20px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters