forked from ramangupta44/xmcloud-foundation-head
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from chopkarmanoj/feature/theme-style
Feature/theme style
- Loading branch information
Showing
63 changed files
with
596 additions
and
190 deletions.
There are no files selected for viewing
338 changes: 158 additions & 180 deletions
338
src/sxastarter/src/assets/EspireComponent/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 |
---|---|---|
@@ -1,209 +1,187 @@ | ||
#header { | ||
color: $white; | ||
> .container { | ||
width: 100%; | ||
max-width: 100%; | ||
@include respond-to(tablet-to-laptop) { | ||
padding: 0 3rem; | ||
} | ||
} | ||
a { | ||
color: $white; | ||
} | ||
.link { | ||
padding: 10px; | ||
text-align: center; | ||
margin-top: 20px; | ||
&.skip-to-content { | ||
margin-top: 0; | ||
padding-top: 0; | ||
padding-left: 0; | ||
} | ||
} | ||
@import "../sass/abstracts/vars/headings"; | ||
@import "../sass/abstracts/vars/colors"; | ||
@import "../sass/abstracts/vars/media-screen"; | ||
|
||
/** | ||
* Import heading & colors | ||
* | ||
* Header: style guides for global | ||
*/ | ||
|
||
.link-list { | ||
> .component-content { | ||
li { | ||
a { | ||
&::before { | ||
content: ""; | ||
|
||
#header{ | ||
background-color: $primary; | ||
padding: 2rem 0; | ||
#top-nav{ | ||
.search-bar-default{ | ||
.search-bar{ | ||
.input-group{ | ||
height:3.7rem; | ||
border: 1px solid $grey-black; | ||
border-radius: 3px; | ||
#search-btn{ | ||
border-color:#6e7f75; | ||
background-color: #6e7f75; | ||
.fa-search{ | ||
&::before{ | ||
color:$white; | ||
font-size:$breadcrumb-font; | ||
display: inline; | ||
} | ||
} | ||
} | ||
&:hover { | ||
border: 0; | ||
input{ | ||
background-color: #6e7f75; | ||
border: none; | ||
border-color:$primary; | ||
outline:0; | ||
&::placeholder{ | ||
color:$medium-grey; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
ul { | ||
@include respond-to(desktop-and-above) { | ||
float: right; | ||
} | ||
li { | ||
display: inline-block; | ||
padding-left: 2.5rem; | ||
.login{ | ||
@media screen and (max-width:$tablet-width) { | ||
display:none; | ||
} | ||
} | ||
} | ||
select, | ||
option { | ||
font-size: 1.2rem; | ||
background-color: #0c1f31; | ||
color: $white; | ||
} | ||
img { | ||
max-width: 90px; | ||
@include respond-to(below-laptop) { | ||
max-width: 60px; | ||
} | ||
} | ||
|
||
.navigation.navigation-main .rel-level1.submenu > .navigation-title { | ||
a { | ||
&::after { | ||
content: ""; | ||
select{ | ||
background-color: $secondry; | ||
height: 3.7rem; | ||
color: $white; | ||
border:1px solid $white; | ||
font-size:$navigation-font-basic; | ||
} | ||
} | ||
} | ||
.navigation { | ||
&.navigation-main { | ||
.rel-level1 { | ||
&:hover { | ||
.rel-level2 { | ||
background: $white; | ||
.navigation-title { | ||
span { | ||
color: black; | ||
#bottom-nav{ | ||
margin-top:2.5rem; | ||
.navigation.navigation-main{ | ||
nav{ | ||
&:first-child{ | ||
float:right; | ||
} | ||
ul{ | ||
li.rel-level1{ | ||
margin: 0 1rem; | ||
&.active{ | ||
.navigation-title{ | ||
a{ | ||
border-bottom: 4px solid $secondry; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
// &.last { | ||
// a { | ||
// padding-right: 0; | ||
// } | ||
// } | ||
> .navigation-title { | ||
a { | ||
&:hover { | ||
border: 0; | ||
&.submenu { | ||
&:hover a{ | ||
span{ | ||
color: $text-basic; | ||
} | ||
} | ||
} | ||
.navigation-title{ | ||
a{ | ||
font-size:$navigation-font-basic; | ||
color:$white; | ||
border:none; | ||
padding:1.2rem 2.5rem 1.2rem 0rem; | ||
background-color: transparent; | ||
&:hover{ | ||
border-color:transparent; | ||
border-bottom: 4px solid $secondry; | ||
span{ | ||
color:$white !important; | ||
} | ||
} | ||
} | ||
} | ||
border: 0; | ||
} | ||
} | ||
} | ||
.component-content { | ||
> nav { | ||
position: static; | ||
} | ||
} | ||
} | ||
nav { | ||
> ul { | ||
float: right; | ||
ul { | ||
li { | ||
a { | ||
color: black; | ||
&:last-child{ | ||
margin-right:0; | ||
a{ | ||
padding-right: 0; | ||
} | ||
} | ||
ul{ | ||
width: 348px; | ||
left: 10.2rem; | ||
top: 5.7rem; | ||
border-radius: 6px; | ||
border-top-left-radius: 0; | ||
li.rel-level2{ | ||
margin: 0; | ||
padding:0; | ||
&:hover{ | ||
background-color: transparent; | ||
|
||
} | ||
a{ | ||
border-bottom: 1px solid $grey-black !important; | ||
color:$black; | ||
text-decoration: none; | ||
font-size: $navigation-font-basic; | ||
padding:.8rem; | ||
|
||
&:hover{ | ||
border-bottom: 1px solid $grey-black; | ||
span{ | ||
color:$secondry !important; | ||
|
||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
margin: auto 0 auto auto; | ||
} | ||
|
||
.search-bar-default { | ||
margin: auto; | ||
@include respond-to(below-laptop) { | ||
padding: 0 3rem 0 2rem; | ||
} | ||
@include respond-to(mobile-to-tablet) { | ||
padding-right: 0; | ||
} | ||
} | ||
|
||
@include respond-to(laptop-to-desktop) { | ||
.container { | ||
.row > * { | ||
max-width: 960px; | ||
} | ||
} | ||
a { | ||
font-size: 1.2rem; | ||
} | ||
} | ||
|
||
#top-nav { | ||
.link-list { | ||
.first { | ||
display: none; | ||
@include respond-to(laptop-and-above) { | ||
display: inline-block; | ||
.menu-mobile-navigate-wrapper{ | ||
|
||
input[type=checkbox]:checked ~ .menu-humburger{ | ||
display: none; | ||
} | ||
} | ||
@include respond-to(below-laptop) { | ||
flex: 1; | ||
} | ||
.last { | ||
@include respond-to(below-laptop) { | ||
input[type=checkbox]:checked ~ .component-content nav >ul{ | ||
display: block; | ||
text-align: right; | ||
} | ||
} | ||
} | ||
&.container { | ||
@include respond-to(below-laptop) { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
} | ||
} | ||
|
||
#bottom-nav { | ||
padding-top: 15px; | ||
.link { | ||
@include respond-to(below-laptop) { | ||
text-align: right; | ||
margin: 0; | ||
a { | ||
font-size: 0; | ||
.menu-humburger{ | ||
display:none; | ||
@media screen and (max-width:$tablet-width) { | ||
display:block; | ||
background-image: url('../images/menu-mobile.svg'); | ||
height: 25px; | ||
width:25px; | ||
float: right; | ||
} | ||
} | ||
|
||
&::before { | ||
content: url("../../../public/hamburger-icon.svg"); | ||
display: inline-block; | ||
@include respond-to(mobile-to-tablet) { | ||
margin-top: 10px; | ||
.menu-mobile-navigate{ | ||
display: block; | ||
position: absolute; | ||
left: 23px; | ||
height: 25px; | ||
width: 25px; | ||
z-index: -1; | ||
} | ||
nav{ | ||
ul{ | ||
@media screen and (max-width:$tablet-width) { | ||
display:none; | ||
} | ||
} | ||
} | ||
} | ||
@include respond-to(mobile-to-tablet) { | ||
padding-right: 0; | ||
} | ||
} | ||
.image { | ||
padding-top: 15px; | ||
a{ | ||
@include respond-to(mobile-to-tablet) { | ||
padding-bottom: 10px; | ||
.footer-search-bar{ | ||
.search-bar{ | ||
float:right; | ||
button{ | ||
border:none; | ||
.fa-search{ | ||
&:before{ | ||
color:$white; | ||
font-size:$navigation-font-basic; | ||
} | ||
} | ||
} | ||
|
||
} | ||
} | ||
&.container { | ||
@include respond-to(below-laptop) { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
} | ||
} | ||
} | ||
.editing-mode { | ||
#header { | ||
.link-list { | ||
h3 { | ||
display: none; | ||
} | ||
} | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.