Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
73fb3408
Commit
73fb3408
authored
Jun 04, 2020
by
les
Browse files
fix nav overflow
parent
350482f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
assets/style.less
View file @
73fb3408
...
...
@@ -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,
...
...
components/Nav.vue
View file @
73fb3408
<
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;
}
line-height: 60px;
float: left;
color: white;
font-size: 1.5em;
font-weight: 600;
text-decoration: none;
small {
font-size: 0.5em;
#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;
}
}
}
#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;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment