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; color: white;
background-color: #222; background-color: #222;
font-size: 18px; font-size: 18px;
// > *{ padding: 0 15px;
// max-width: 1200px;
// margin: 0 auto;
// }
} }
@@ -93,6 +90,14 @@ p {
color: white; 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:not(.is-disabled):focus,
.el-menu-item.is-active, .el-menu-item.is-active,
.el-menu-item:not(.is-disabled):hover, .el-menu-item:not(.is-disabled):hover,

View File

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