fix nav overflow

This commit is contained in:
les
2020-06-04 23:33:45 +02:00
parent 350482f661
commit 73fb3408a5
2 changed files with 34 additions and 26 deletions

View File

@@ -61,10 +61,7 @@ p {
color: white;
background-color: #222;
font-size: 18px;
// > *{
// max-width: 1200px;
// margin: 0 auto;
// }
padding: 0 15px;
}
@@ -93,6 +90,14 @@ p {
color: white;
}
.el-submenu .el-submenu__icon-arrow {
margin-left: 0px;
}
.el-submenu .el-submenu__title {
padding: 0 15px;
}
.el-menu-item:not(.is-disabled):focus,
.el-menu-item.is-active,
.el-menu-item:not(.is-disabled):hover,

View File

@@ -1,5 +1,5 @@
<template lang="pug">
div#nav
el-header#header
nuxt-link#logo(:to='$route.name==="index"?"/about":"/"')
img(src='/favicon.ico')
span.ml-1.hidden-xs-only {{settings.title}}
@@ -88,34 +88,37 @@ export default {
message: e
})
}
},
}
}
}
</script>
<style lang='less'>
#logo {
img {
max-height: 60px;
#header {
display: inline;
#logo {
img {
max-height: 60px;
}
float: left;
line-height: 60px;
color: white;
font-size: 1.5em;
font-weight: 600;
text-decoration: none;
small {
font-size: 0.5em;
}
}
line-height: 60px;
float: left;
color: white;
font-size: 1.5em;
font-weight: 600;
text-decoration: none;
small {
font-size: 0.5em;
}
}
#menu {
float: right;
border-bottom: none;
.el-menu-item {
padding: 0px 15px;
#menu {
position: absolute;
right: 10px;
top: 0px;
border-bottom: none;
.el-menu-item {
padding: 0px 15px;
}
}
}