1
0
mirror of https://github.com/oupala/apaxy.git synced 2025-08-22 17:13:09 +02:00

feat: css styling for breadcrumb

Add cdd styling inspired from the following website:

https://css-tricks.com/triangle-breadcrumbs/
This commit is contained in:
oupala
2019-05-29 14:31:44 +02:00
parent 33d4777101
commit 4d61aab058
3 changed files with 52 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ arr.forEach(function(value){
} }
cont++; cont++;
}); });
document.getElementById("breadcrumbs").innerHTML = bread; document.getElementById("breadcrumb").innerHTML = bread;
if (uri.substring(uri.length-1) != '/'){ if (uri.substring(uri.length-1) != '/'){
var indexes = document.getElementsByClassName('indexcolname'), var indexes = document.getElementsByClassName('indexcolname'),
i = indexes.length; i = indexes.length;

View File

@@ -1,7 +1,7 @@
<div class="wrapper"> <div class="wrapper">
<!-- we open the `wrapper` element here, but close it in the `footer.html` file --> <!-- we open the `wrapper` element here, but close it in the `footer.html` file -->
<ol class="breadcrumb" id="breadcrumbs"> <ol class="breadcrumb" id="breadcrumb">
</ol> </ol>
<input type="search" id="filter" placeholder="filter contents" /> <input type="search" id="filter" placeholder="filter contents" />

View File

@@ -253,3 +253,53 @@ tr.parent a[href^="/"] {
.errorCode { .errorCode {
font-size: 80px; font-size: 80px;
} }
/*------------------------------------*\
Breadcrumb
\*------------------------------------*/
.breadcrumb {
white-space: nowrap;
padding: 0;
margin: 0;
}
.breadcrumb li {
display: inline-block;
line-height: 26px;
margin: 0 9px 0 -10px;
padding: 0 15px;
position: relative;
}
.breadcrumb li::before,
.breadcrumb li::after {
border-right: 1px solid #666666;
content: '';
display: block;
height: 50%;
position: absolute;
left: 0;
right: 0;
top: 0;
z-index: -1;
transform: skewX(45deg);
}
.breadcrumb li::after {
bottom: 0;
top: auto;
transform: skewX(-45deg);
}
.breadcrumb li:last-of-type::before,
.breadcrumb li:last-of-type::after {
display: none;
}
.breadcrumb li a {
letter-spacing: -1px;
text-decoration: none;
}
.breadcrumb li:nth-of-type(1) a { color: hsl(0, 0%, 70%); }
.breadcrumb li:nth-of-type(2) a { color: hsl(0, 0%, 65%); }
.breadcrumb li:nth-of-type(3) a { color: hsl(0, 0%, 50%); }
.breadcrumb li:nth-of-type(4) a { color: hsl(0, 0%, 45%); }