navbar styled bug fix
This commit is contained in:
parent
f60406e45f
commit
0916e3a295
|
@ -5,6 +5,8 @@ import UserContext from "../context/UserContext";
|
||||||
import styled,{ css } from 'styled-components';
|
import styled,{ css } from 'styled-components';
|
||||||
|
|
||||||
const Header = styled.header`
|
const Header = styled.header`
|
||||||
|
|
||||||
|
@import url('https://fonts.googleapis.com/css?family=Montserrat|Ubuntu');
|
||||||
background: #66bfbf;
|
background: #66bfbf;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -39,14 +41,37 @@ const Header = styled.header`
|
||||||
transition: 0.6s;
|
transition: 0.6s;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
`;
|
||||||
|
const ListElement = styled.li`
|
||||||
|
|
||||||
|
`;
|
||||||
|
const Anchor = styled.a`
|
||||||
|
|
||||||
|
|
||||||
`;
|
`;
|
||||||
const List = styled.ul`
|
const List = styled.ul`
|
||||||
${Header};
|
${Header};
|
||||||
& li {
|
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
& ${ListElement} {
|
||||||
position: relative;
|
position: relative;
|
||||||
list-style:none;
|
list-style:none;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
& ${ListElement} ${Anchor} {
|
||||||
|
position: relative;
|
||||||
|
margin: 5px 15px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #fff;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
font-weight: 500px;
|
||||||
|
padding: 3px 0;
|
||||||
|
transition: 0.6s;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
@ -83,7 +108,6 @@ export default function NavBar() {
|
||||||
return (
|
return (
|
||||||
<div className="navbar">
|
<div className="navbar">
|
||||||
<Header sticky = {scrolled} >
|
<Header sticky = {scrolled} >
|
||||||
<input type="checkbox" id="check" />
|
|
||||||
|
|
||||||
<a href="/" className="logo">locaft</a>
|
<a href="/" className="logo">locaft</a>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -67,7 +67,7 @@ const Pricing = styled.section`
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
${props => props.pricing_id == props.pricing_plan ? css`
|
${props => props.pricing_id === props.pricing_plan ? css`
|
||||||
box-shadow: 0 0 15px rgba(0,0,0,0.4);
|
box-shadow: 0 0 15px rgba(0,0,0,0.4);
|
||||||
transform: scale(1.05);
|
transform: scale(1.05);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
@import url('https://fonts.googleapis.com/css?family=Montserrat|Ubuntu');
|
|
||||||
* {
|
* {
|
||||||
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -68,7 +67,7 @@ header ul li a {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
header ul li a button:before{
|
header ul li a {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: '';
|
content: '';
|
||||||
left:0;
|
left:0;
|
||||||
|
|
Loading…
Reference in New Issue