Move to Adam's Blog template
This commit is contained in:
80
assets/css/sass/parts/_header.scss
Normal file
80
assets/css/sass/parts/_header.scss
Normal file
@ -0,0 +1,80 @@
|
||||
.main-header {
|
||||
font-family: 'Lato', sans-serif;
|
||||
padding: 15px 0;
|
||||
background-color: $white;
|
||||
box-shadow: 0px -5px 15px rgba(0,0,0,.3);
|
||||
|
||||
.header-flex {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.logo {
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
a {
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
font-size: 27px;
|
||||
font-weight: 300;
|
||||
color: $dark-purple;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main-nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
background-color: $white;
|
||||
padding: 25px 30px;
|
||||
transform: translate3d(-300px, 0, 0);
|
||||
ul {
|
||||
padding: 15px 0 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
border-bottom: 1px solid $lighten-gray;
|
||||
a {
|
||||
display: block;
|
||||
padding: 15px 0;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
color: $dark-purple;
|
||||
&:hover {
|
||||
opacity: .8;
|
||||
color: $dark-pink;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-icon-container {
|
||||
width: 25%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.search-icon-container {
|
||||
width: 25%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.menu-icon,
|
||||
.menu-icon-close,
|
||||
.search-icon a,
|
||||
.search-icon-close {
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
color: $dark-purple;
|
||||
transition: all .4s;
|
||||
&:hover {
|
||||
opacity: .8;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user