Locaft-backend/src/navbar.css

151 lines
2.2 KiB
CSS
Raw Normal View History

2020-11-22 05:52:50 -08:00
@import url('https://fonts.googleapis.com/css?family=Montserrat|Ubuntu');
2020-11-21 09:27:17 -08:00
* {
box-sizing: border-box;
2020-11-23 08:49:49 -08:00
text-decoration: none;
2020-11-21 09:27:17 -08:00
}
body {
}
2020-11-22 05:52:50 -08:00
header{
2020-11-23 08:49:49 -08:00
background: #66bfbf;
2020-11-22 05:52:50 -08:00
position: fixed;
top: 0;
left: 0;
2020-11-21 09:27:17 -08:00
width: 100%;
2020-11-22 05:52:50 -08:00
display: flex;
justify-content: space-between;
align-items: center;
transition: 0.6s;
2020-11-23 08:49:49 -08:00
padding: 10px 15px;
2020-11-22 05:52:50 -08:00
z-index: 100000;
font-family: Ubuntu;
2020-11-21 09:27:17 -08:00
}
2020-11-22 05:52:50 -08:00
header.sticky{
2020-11-21 09:27:17 -08:00
2020-11-22 05:52:50 -08:00
padding: 3px 50px;
background: #66bfbf;
opacity: 0.85;
}
header .logo{
font-family: "Ubuntu";
font-size: 2rem;
font-weight: bold;
position: relative;
2020-11-21 09:27:17 -08:00
color: #fff;
2020-11-22 05:52:50 -08:00
text-decoration: none;
text-transform: lowercase;
padding-left: 100px;
transition: 0.6s;
2020-11-21 09:27:17 -08:00
}
2020-11-22 05:52:50 -08:00
header ul {
position: relative;
display: flex;
justify-content: center;
align-items: center;
2020-11-21 09:27:17 -08:00
}
2020-11-22 05:52:50 -08:00
header ul li {
2020-11-21 09:27:17 -08:00
2020-11-22 05:52:50 -08:00
position: relative;
list-style: none;
2020-11-23 08:49:49 -08:00
2020-11-21 09:27:17 -08:00
}
2020-11-22 05:52:50 -08:00
header ul li a {
2020-11-21 09:27:17 -08:00
2020-11-22 05:52:50 -08:00
position: relative;
2020-11-23 08:49:49 -08:00
margin: 5px 15px;
text-transform: uppercase;
2020-11-22 05:52:50 -08:00
color: #fff;
letter-spacing: 2px;
font-weight: 500px;
2020-11-23 08:49:49 -08:00
padding: 5px 0;
2020-11-22 05:52:50 -08:00
transition: 0.6s;
2020-11-21 09:27:17 -08:00
2020-11-23 08:49:49 -08:00
}
header ul li a:before{
position: absolute;
content: '';
left:0;
bottom: 0;
height: 15px;
width:100%;
background: #ffffff;
transform: scaleX(0);
transform-origin: right;
transition: transform .4s linear;
}
header ul li a:hover:before{
transform: scaleX(1);
transform-origin: left;
2020-11-21 09:27:17 -08:00
}
2020-11-22 05:52:50 -08:00
header.sticky ul li a{
color: #fff;
}
2020-11-23 08:49:49 -08:00
.checkbtn
{
color:white;
font-size: 30px;
float:right;
line-height: 80px;
margin-right: 40px;
cursor: pointer;
display: none;
}
#check{
display: none;
}
@media (max-width: 1118px){
header .logo{
left: 8%;
}
}
@media (max-width: 944px){
header .logo{
left: 6%;
top: 20px;
width: 1030px;
}
}
@media (max-width: 860px){
label #btn{
display: block;
}
ul {
position: fixed;
width: 100%;
height: 100vh;
background: #66bfbf;
text-align: center;
transition: all .5s;
}
header ul li{
display: block;
margin: 50px 0;
line-height: 30px;
}
nav ul li a{
font-size: 20px;
}
label #check:checked ~ ul{
}
}