fixed employee hierarchy design
parent
124eb3cc92
commit
f383fc83e9
@ -1,9 +1,126 @@
|
|||||||
.contentBg {
|
.contentBg {
|
||||||
padding: 0px 20px;
|
padding: 0px 15px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.current-employee {
|
.current-employee {
|
||||||
padding: 0px 20px;
|
padding: 0px 20px;
|
||||||
|
}
|
||||||
|
// .current-employee::before{
|
||||||
|
// content: "";
|
||||||
|
// position: absolute;
|
||||||
|
// top: -10px;
|
||||||
|
// left: -20px;
|
||||||
|
// border-left: 1px solid #ddd;
|
||||||
|
// border-bottom: 1px solid #ddd;
|
||||||
|
// width: 20px;
|
||||||
|
// height: 15px;
|
||||||
|
|
||||||
|
// }
|
||||||
|
// .current-employee::after{
|
||||||
|
// position: absolute;
|
||||||
|
// content: "";
|
||||||
|
// top: 5px;
|
||||||
|
// left: -20px;
|
||||||
|
// border-left: 1px solid #000;
|
||||||
|
// border-top: 1px solid #000;
|
||||||
|
// width: 20px;
|
||||||
|
// height: 100%;
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
ul {
|
||||||
|
margin:10px;
|
||||||
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.current-employee li {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 10px 0 10px 10px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.current-employee li:before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -15px !important;
|
||||||
|
left: -20px;
|
||||||
|
border-left: 2px solid #000;
|
||||||
|
border-bottom: 2px solid #000;
|
||||||
|
width: 20px;
|
||||||
|
height: 15px;
|
||||||
|
}
|
||||||
|
.current-employee li:after {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
top: 5px;
|
||||||
|
left: -20px;
|
||||||
|
border-left: 2px solid #000;
|
||||||
|
border-top: 2px solid #000;
|
||||||
|
width: 20px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
// .current-employee li:last-child:after {
|
||||||
|
// display: none;
|
||||||
|
// }
|
||||||
|
|
||||||
|
.supervisor li:after {
|
||||||
|
position: absolute;
|
||||||
|
content: "";
|
||||||
|
top: 5px;
|
||||||
|
left: -20px;
|
||||||
|
border-left: 2px solid #000;
|
||||||
|
border-top: 0;
|
||||||
|
width: 20px;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.supervisor li {
|
||||||
|
list-style-type: none;
|
||||||
|
margin: 10px 0 10px 10px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.supervisor li:before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -10px;
|
||||||
|
left: -20px;
|
||||||
|
border-left: 2px solid #000;
|
||||||
|
border-bottom: 2px solid #000;
|
||||||
|
width: 20px;
|
||||||
|
height: 55px;
|
||||||
|
|
||||||
|
}
|
||||||
|
// li:last-child:after, li:last-child:before {
|
||||||
|
// display: none;
|
||||||
|
// }
|
||||||
|
.supervisor li:last-child:after{
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
.supervisor-li li:last-child:after, li.supervisor-li:last-of-type::after{
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
li.supervisor-li:first-of-type::before{
|
||||||
|
border-top: 0;
|
||||||
|
top: -20px;
|
||||||
|
height: 65px;
|
||||||
|
border-left: 0;
|
||||||
|
}
|
||||||
|
li.supervisor-li:first-of-type::after{
|
||||||
|
top: 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.current-employee li.subordinate:before{
|
||||||
|
top: -15px !important;
|
||||||
|
}
|
||||||
|
ul.current-employee, .current-employee ul{
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
.current-employee li:before{
|
||||||
|
left:-13px !important;
|
||||||
|
top: -17px !important;
|
||||||
|
width: 13px;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue