From 07a317ffc4cab69e88d3459949cdb87aa7812683 Mon Sep 17 00:00:00 2001 From: Rajat Jain Date: Thu, 7 Mar 2019 18:22:43 +0000 Subject: Display Ancestors in Issuable Sidebar --- app/assets/stylesheets/framework/sidebar.scss | 52 +++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'app/assets') diff --git a/app/assets/stylesheets/framework/sidebar.scss b/app/assets/stylesheets/framework/sidebar.scss index c4dbcf2ddc9..43d0e51e4c9 100644 --- a/app/assets/stylesheets/framework/sidebar.scss +++ b/app/assets/stylesheets/framework/sidebar.scss @@ -157,3 +157,55 @@ .sidebar-collapsed-icon .sidebar-collapsed-value { font-size: 12px; } + +.ancestor-tree { + .vertical-timeline { + position: relative; + list-style: none; + margin: 0; + padding: 0; + + &::before { + content: ''; + border-left: 1px solid $gray-500; + position: absolute; + top: $gl-padding; + bottom: $gl-padding; + left: map-get($spacers, 2) - 1px; + } + + &-row { + margin-top: map-get($spacers, 3); + + &:nth-child(1) { + margin-top: 0; + } + } + + &-icon { + /** + * 2px extra is to give a little more height than needed + * to hide timeline line before/after the element starts/ends + */ + height: map-get($spacers, 4) + 2px; + z-index: 1; + position: relative; + top: -3px; + padding: $gl-padding-4 0; + background-color: $gray-light; + + &.opened { + color: $green-500; + } + + &.closed { + color: $blue-500; + } + } + + &-content { + line-height: initial; + margin-left: $gl-padding-8; + } + } +} -- cgit v1.2.3