Fixed parent directory icon and folder breadcrumb naming
This commit is contained in:
parent
1a235f1893
commit
47604a2d00
@ -474,7 +474,7 @@ footer#section-footer .row {
|
|||||||
padding-left: 2.2rem;
|
padding-left: 2.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody a[href*="."]:before, tbody a[href*="/"]:before {
|
tbody a[href*="."]:before {
|
||||||
background: url('../icons/file-blank.svg') left center/1.1rem no-repeat;
|
background: url('../icons/file-blank.svg') left center/1.1rem no-repeat;
|
||||||
content: "";
|
content: "";
|
||||||
width: 1.5rem;
|
width: 1.5rem;
|
||||||
@ -515,7 +515,7 @@ footer#section-footer .row {
|
|||||||
padding-left: 3rem;
|
padding-left: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody a[href*="."]:before, tbody a[href*="/"]:before {
|
tbody a[href*="."]:before {
|
||||||
background: url('../icons/file-blank.svg') left center/1.1rem no-repeat;
|
background: url('../icons/file-blank.svg') left center/1.1rem no-repeat;
|
||||||
content: "";
|
content: "";
|
||||||
width: 1.5rem;
|
width: 1.5rem;
|
||||||
@ -544,11 +544,11 @@ tbody a[href*="/"]:after {
|
|||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody a[href$="/"]:before, tbody a[href*="/?"]:before {
|
tbody a[href$="/"]:before {
|
||||||
background: url('../icons/folder.svg') left center/1.1rem no-repeat;
|
background: url('../icons/folder.svg') left center/1.1rem no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
tbody a[href$="../"]:before {
|
tbody a[href*="../"]:before {
|
||||||
background: url('../icons/angle-left.svg') left center/0.6rem no-repeat;
|
background: url('../icons/angle-left.svg') left center/0.6rem no-repeat;
|
||||||
top: -0.5rem;
|
top: -0.5rem;
|
||||||
left: 1.2em;
|
left: 1.2em;
|
||||||
|
|||||||
@ -21,7 +21,7 @@ var TITLEIZE = false;
|
|||||||
* Underscore string's titleize.
|
* Underscore string's titleize.
|
||||||
*/
|
*/
|
||||||
function titleize(str) {
|
function titleize(str) {
|
||||||
return decodeURI(str).toLowerCase().replace(/(?:^|\s|-)\S/g, c => c.toUpperCase());
|
return decodeURIComponent(str).toLowerCase().replace(/(?:^|\s|-)\S/g, c => c.toUpperCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -29,7 +29,7 @@ var TITLEIZE = false;
|
|||||||
* current location.
|
* current location.
|
||||||
*/
|
*/
|
||||||
function setTitle() {
|
function setTitle() {
|
||||||
let cleanPath = decodeURI(window.location.pathname.replace(/\/$/g, '')),
|
let cleanPath = decodeURIComponent(window.location.pathname.replace(/\/$/g, '')),
|
||||||
titleText,
|
titleText,
|
||||||
breadcrumbHtml = '',
|
breadcrumbHtml = '',
|
||||||
index = 0,
|
index = 0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user