103 lines
2.4 KiB
Plaintext
103 lines
2.4 KiB
Plaintext
//
|
|
// Dependencies
|
|
// --------------------------------------------------
|
|
|
|
@import "global.less";
|
|
@import "icon.less";
|
|
|
|
//
|
|
// Breadcrumb
|
|
// --------------------------------------------------
|
|
|
|
@color-breadcrumb-text: #FFFFFF;
|
|
@color-breadcrumb-active-text: #2A3E51;
|
|
@color-breadcrumb-background: #D3D9DA;
|
|
@color-breadcrumb-inactive-background: #9DA4A5;
|
|
@color-breadcrumb-active-background: #1F99DC;
|
|
|
|
.control-breadcrumb {
|
|
margin: -(@padding-standard) -(@padding-standard) @padding-standard -(@padding-standard);
|
|
background-color: @color-breadcrumb-background;
|
|
.box-shadow(inset 0 -2px 0 rgba(0,0,0,.05));
|
|
|
|
ul {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 0;
|
|
}
|
|
|
|
li {
|
|
font-size: 15px;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 12px 10px 13px 30px;
|
|
display: inline-block;
|
|
position: relative;
|
|
color: @color-breadcrumb-text;
|
|
background-color: @color-breadcrumb-inactive-background;
|
|
|
|
a {
|
|
display: inline-block;
|
|
color: @color-breadcrumb-text;
|
|
text-decoration: none;
|
|
text-shadow: 0 1px 0 rgba(0,0,0,.2);
|
|
&:hover { color: @color-breadcrumb-text; }
|
|
}
|
|
|
|
&:before, &:after {
|
|
top: 0;
|
|
right: -15px;
|
|
position: absolute;
|
|
z-index: 10;
|
|
}
|
|
|
|
&:after {
|
|
.triangle(right, 15px, 46px, @color-breadcrumb-inactive-background);
|
|
}
|
|
|
|
&:before {
|
|
right: -16px;
|
|
z-index: 9;
|
|
.triangle(right, 15px, 46px, @color-breadcrumb-background);
|
|
}
|
|
|
|
&:first-child {
|
|
padding-left: 20px;
|
|
}
|
|
|
|
&:last-child:after {
|
|
content:'';
|
|
}
|
|
|
|
&:last-child {
|
|
background-color: transparent;
|
|
color: @color-breadcrumb-active-text;
|
|
text-shadow: 0 1px 0 rgba(255,255,255,.7);
|
|
|
|
&:after {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Breadcrumb to sit flush to the element below
|
|
body.breadcrumb-flush .control-breadcrumb,
|
|
.control-breadcrumb.breadcrumb-flush {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
body.slim-container {
|
|
.control-breadcrumb {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
body.compact-container {
|
|
.control-breadcrumb {
|
|
margin-top: 0;
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
} |