mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
menu fixes
This commit is contained in:
parent
b9bab0f7d0
commit
5c2a78dae2
@ -4,11 +4,11 @@
|
|||||||
.hamburger {
|
.hamburger {
|
||||||
width: 24px;
|
width: 24px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
display: block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-top: 6px;
|
margin-top: $spacer / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hamburgerLine {
|
.hamburgerLine {
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
padding: $spacer / 2;
|
padding: $spacer / 2;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
margin: 0;
|
||||||
margin-right: $spacer / 4;
|
margin-right: $spacer / 4;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
left: $spacer / 2;
|
left: $spacer / 2;
|
||||||
right: $spacer / 2;
|
right: $spacer / 2;
|
||||||
top: -($spacer / 4);
|
top: $spacer / 4;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
@import 'mixins';
|
@import 'mixins';
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
margin-top: ($spacer/2);
|
|
||||||
margin-bottom: ($spacer/2);
|
|
||||||
|
|
||||||
@media (min-width: $screen-sm) and (min-height: 500px) {
|
@media (min-width: $screen-sm) and (min-height: 500px) {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -21,6 +18,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
padding: 0 $spacer;
|
padding: 0 $spacer;
|
||||||
|
|
||||||
@media (min-width: $screen-md) {
|
@media (min-width: $screen-md) {
|
||||||
@ -32,21 +30,19 @@
|
|||||||
/////////////////////////////////////
|
/////////////////////////////////////
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin-top: $spacer / 5;
|
|
||||||
margin-bottom: 0;
|
|
||||||
|
|
||||||
svg {
|
|
||||||
fill: $brand-grey-light;
|
|
||||||
width: 160px;
|
|
||||||
height: 30px;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
transition: 0.2s $easing;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: block;
|
display: block;
|
||||||
@include hide-text;
|
@include hide-text;
|
||||||
|
|
||||||
|
width: 60px;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
@media (min-width: $screen-sm) {
|
||||||
|
width: 212px;
|
||||||
|
}
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
svg {
|
svg {
|
||||||
@ -56,6 +52,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
width: 191px;
|
||||||
|
height: 36px;
|
||||||
|
max-width: unset;
|
||||||
|
fill: $brand-grey-light;
|
||||||
|
margin: 0;
|
||||||
|
transition: 0.2s $easing;
|
||||||
|
}
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ export default class Header extends PureComponent {
|
|||||||
<div className={styles.headerContent}>
|
<div className={styles.headerContent}>
|
||||||
<h1 className={styles.title}>
|
<h1 className={styles.title}>
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
<Logo /> kremalicious
|
<Logo className={styles.logo} /> kremalicious
|
||||||
</Link>
|
</Link>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 21 KiB |
Loading…
x
Reference in New Issue
Block a user