ORIENT/modules/system/assets/ui/less/breadcrumb.less

102 lines
2.4 KiB
Plaintext
Raw Normal View History

//
// Dependencies
// --------------------------------------------------
2015-05-27 10:57:02 +00:00
@import "global.less";
@import "icon.less";
//
// Breadcrumb
// --------------------------------------------------
2016-02-29 03:52:21 +00:00
@color-breadcrumb-text: #FFFFFF;
@color-breadcrumb-active-text: #2A3E51;
@color-breadcrumb-background: #d0d9dd;
@color-breadcrumb-inactive-background: #9098a2;
2016-02-29 03:52:21 +00:00
@color-breadcrumb-active-background: #1F99DC;
.control-breadcrumb {
2016-02-23 05:52:23 +00:00
margin: -(@padding-standard) -(@padding-standard) @padding-standard -(@padding-standard);
background-color: @color-breadcrumb-background;
ul {
padding: 0;
margin: 0;
2016-02-29 03:52:21 +00:00
font-size: 0;
}
li {
font-size: @font-size-base;
list-style: none;
margin: 0;
2016-05-05 07:39:36 +00:00
padding: 12px 10px 12px 30px;
display: inline-block;
2016-02-29 03:52:21 +00:00
position: relative;
color: @color-breadcrumb-text;
background-color: @color-breadcrumb-inactive-background;
a {
2016-02-29 03:52:21 +00:00
display: inline-block;
color: @color-breadcrumb-text;
text-decoration: none;
text-shadow: 0 1px 0 rgba(0,0,0,.15);
&:hover { color: @color-breadcrumb-text; }
}
2016-02-29 03:52:21 +00:00
&:before, &:after {
top: 0;
right: -15px;
position: absolute;
z-index: @zindex-breadcrumb;
2016-02-29 03:52:21 +00:00
}
&:after {
2016-05-05 07:39:36 +00:00
.triangle(right, 15px, 45px, @color-breadcrumb-inactive-background);
2016-02-29 03:52:21 +00:00
}
&:before {
right: -16px;
z-index: @zindex-breadcrumb - 1;
2016-05-05 07:39:36 +00:00
.triangle(right, 15px, 45px, @color-breadcrumb-background);
2016-02-29 03:52:21 +00:00
}
&:first-child {
padding-left: 20px;
}
&:last-child:after {
content:'';
}
2016-02-29 03:52:21 +00:00
&:last-child {
background-color: transparent;
color: @color-breadcrumb-active-text;
text-shadow: 0 1px 0 rgba(255,255,255,.35);
2016-02-29 03:52:21 +00:00
&: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;
}
}