UNPKG

causeway-standard-theme

Version:

259 lines (254 loc) 4.91 kB
@disabled-color: rgba(255, 255, 255, .4); .tree-view { min-height: 20px; padding: 0; margin-bottom: 20px; color: @white; .navigation-content > & { margin-right: -12px; padding-right: 2px; } li { list-style-type: none; margin: 0; position: relative; min-height: 24px; line-height: 24px; font-weight: normal; width: 100%; padding-left: 16px; &:first-child { &:before{ top:-4px; bottom: -6px; } } &:only-child { &:before { bottom: 12px; } } &:last-child { &:before { bottom: 12px; } } &:before, &:after { content: ''; position: absolute; right: auto } &:before { border-left: 1px dotted @white; top: 7px; height: auto; bottom: -6px; left: 4px; width: 1px; } &:after { border-top: 1px dotted @white; height: 20px; top: 11px; width: 10px; left: 4px; } // Active &.active { > a, .leaf-content { background-color: @enterprise-blue; font-weight: bold; color: @white; &:hover{ font-weight: bold; } } } // Disabled &.disabled { > a, .leaf-content { cursor: not-allowed; color: @disabled-color; &:hover { background-color: transparent; } } &:after { border-top: 1px solid @disabled-color; } &:only-child { &:before { border-left: 1px solid @disabled-color; } } } > a, .leaf-content { font-weight: normal; text-decoration: none; display: inline-block; min-height: 24px; line-height: 24px; width: 100%; padding-left: 4px; vertical-align: top; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; &:hover { font-weight: inherit; background-color: @enterprise-blue; } .text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; padding-right: 60px; margin-right: -60px; display: inline-block; vertical-align: middle; float: left; } .glyphicon { .font-size(16); float: left; top: 2px; margin-left: 10px; &.glyphicon-remove-circle { color: @red; } } .impend { float: left; text-align: center; width: 18px; height: 18px; line-height: 16px; display: inline-block; border: 2px solid @white; .border-radius(20px); vertical-align: middle; margin-top: 3px; margin-left: 10px; .font-size(9); } } > span { display: inline-block; height: 9px; width: 16px; top: -1px; .font-size(9); margin-left: -16px; margin-right: -4px; vertical-align: top; margin-top: 8px; &.active-node{ color: @enterprise-blue085; } } &.parent_li { font-weight: bold; > a, .leaf-content { font-weight: bold; } > span { cursor: pointer; } &:before { top: 17px; bottom: -6px; } &:after { left: 9px; width: 6px; } &:first-child { &:before { top: 17px; } > span { &:after{ content: ''; border-left: 1px dotted @white; position: absolute; top: -12px; left: 4px; bottom: 10px; } } } &:last-child { &:before{ content: ''; display: none; } } } } ul { padding-left: 5px; } > ul { padding-left: 0; > li { &:first-child { &:before { top: 13px; } } &.parent_li { &:first-child { > span { &:after { content: ''; display: none; } } } } ul { display: none; } } } // extended click &[data-extend-click="true"] { li { &.parent_li { > a, .leaf-content { &:hover { background: inherit; } } } } } &.white-theme { color: @black080; li { &:before, &:after { border-color: @black080; } &.parent_li { &:first-child { > span { &:after { border-color: @black080; } } } } } a, .leaf-content { color: inherit; &:hover { text-decoration: none; } .impend { border-color: @black080; } } } }