Ghost/ghost/admin/assets/sass/patterns/navlist.scss
Jilles Soeters 526501fdf7 Remove hash after the url when clicking Meta Data
Removes that hash appended to the URL when clicking Meta Data in post settings.

Closes #4386

When clicking 'Meta Data' the click event appends a # to the URL. I replaced the a with a button element so that won't happen anymore. The button has a type attribute because it will try and submit the form without it. Added text-align: left to the navlist button because the button centers it's content by default.
2014-11-05 14:17:52 +00:00

69 lines
1.3 KiB
SCSS

//
// Navigation Lists
// --------------------------------------------------
// Mobile style groups of list of links with chevrons
.nav-list {
padding: 0;
border: 1px solid #E0DFD7;
max-width: 500px;
border-radius: $border-radius;
background: #FFF;
&.nav-list-block {
max-width: none;
}
}
.nav-list-item {
@include icon($i-chevron, 1.4rem, $midbrown) {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
}
position: relative;
display: block;
padding: 8px 40px 8px 12px;
color: $darkgrey;
&:hover {
background: lighten($lightbrown, 5%);
}
&:first-of-type {
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
}
&:last-of-type {
border-bottom-left-radius: $border-radius;
border-bottom-right-radius: $border-radius;
}
&:not(:last-of-type) {
border-bottom: 1px solid #E0DFD7;
}
button {
text-align: left;
}
a {
color: $darkgrey;
}
b {
display: block;
font-weight: normal;
font-size: 1.6rem;
line-height: 1.375;
}
span {
display: block;
font-size: 1.1rem;
color: $midgrey;
line-height: 1.375;
}
}//.nav-list-item