@import "variables"; @import "mixins"; @workspaceWidth: 260px; .component-viewer { width: 100%; min-width: 600px; border: 1px solid @barBorderColor; border-left-width: 0; .box-sizing(border-box); } .component-viewer-workspace-enabled { border-left-width: 1px; .component-viewer-workspace { display: block; } .component-viewer-source { border-left: @workspaceWidth solid @barBackgroundColor; } } .component-viewer-title { color: @baseFontColor; font-size: @baseFontSize; font-weight: bold; } .component-viewer-title-separator { padding: 0 4px; } .component-viewer-workspace { display: none; float: left; width: @workspaceWidth; .box-sizing(border-box); a:hover { text-decoration: underline; } } .component-viewer-workspace-list { margin: 8px 0; } .component-viewer-workspace-item { padding: 0 10px; &:first-child > a { font-weight: bold; } } .component-viewer-workspace-item + .component-viewer-workspace-item { margin-top: 10px; } .component-viewer-workspace-transition { } .component-viewer-workspace-options { margin-top: 5px; margin-left: 21px; padding-left: 10px; border-left: 3px solid darken(@barBorderColor, 10%); } .component-viewer-workspace-option { padding: 3px 0; &.active > a { font-weight: bold; } } .component-viewer-source { .code { width: 100%; border-left: 1px solid @barBorderColor; } .code th { height: 30px; .box-sizing(border-box); &.stat { padding-top: 4px; padding-bottom: 4px; border-left: none; border-right: none; border-bottom: 1px solid @barBorderColor; } &.lid { border-right: 1px solid @barBorderColor; } &.settings { line-height: 22px; text-align: left; .icon-not-favorite, .icon-favorite { float: right; padding-top: 2px; } } &.settings-toggle { vertical-align: top; border-right: 1px solid @barBorderColor; text-align: center; white-space: nowrap; .icon-settings { font-size: @iconSmallFontSize; } } } .code td.line { width: 100%; padding: 1px 5px; } .code .stat { vertical-align: top; min-width: 12px; padding: 1px 5px; border-left: 1px solid @barBorderColor; border-right: 1px solid @barBorderColor; background-color: @barBackgroundColor; color: #888; font-size: 11px; line-height: 17px; text-align: right; cursor: default; white-space: nowrap; } .code .lid { min-width: 18px; padding-left: 10px; padding-right: 10px; } .code .coverage-tests { cursor: pointer; } .code .duplications { padding-top: 0; padding-bottom: 0; font-size: 0; .duplication { display: inline-block; vertical-align: top; .size(5px, 100%); } .duplication + .duplication { margin-left: 2px; } .duplication-exists { background-color: @lightOrange; cursor: pointer; .trans; } .duplication-hover { background-color: darken(@lightOrange, 10%); } } .code .measures { padding: 4px 5px; border-left: 1px solid @barBorderColor; border-bottom: 1px solid @barBorderColor; background-color: @barBackgroundColor; } .code .issue pre { display: inline-block; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAGCAYAAAAPDoR2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1M0M2Rjk4M0M3QUYxMUUzODkzRUREMUM5OTNDMjY4QSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo1M0M2Rjk4NEM3QUYxMUUzODkzRUREMUM5OTNDMjY4QSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjUzQzZGOTgxQzdBRjExRTM4OTNFREQxQzk5M0MyNjhBIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjUzQzZGOTgyQzdBRjExRTM4OTNFREQxQzk5M0MyNjhBIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+bcqJtQAAAEhJREFUeNpi+G+swwDGDAwgbAWlwZiJAQFCgfgwEIfDRaC67ID4NRDnQ2kQnwFZwgFqnANMAQOUYY9sF0wBiCGH5CBkrAgQYACuWi4sSGW8yAAAAABJRU5ErkJggg==); background-repeat: repeat-x; background-size: 4px; background-position: bottom; } .code .row { &.coverage-green td.stat { background-color: lighten(@green, 15%); border-color: lighten(@green, 7%); color: @baseFontColor; &.lid { border-right-color: lighten(@green, 15%); } } &.coverage-red td.stat { background-color: lighten(@red, 15%); border-color: lighten(@red, 10%); color: @baseFontColor; &.lid { border-right-color: lighten(@red, 15%); } } } .code .row-expand { .stat, .line { border-left: none; border-right: none; background: url(../images/gray-stripes.png) repeat; } .line { text-align: right; } } .code .row-hidden { display: none; } } .component-viewer-source-settings { display: none; &.open { display: inline-block; } & > li { display: inline; margin-right: 10px; } } .component-viewer-measures { font-size: 0; } .component-viewer-measures-section { display: inline-block; vertical-align: top; width: 25%; max-width: 260px; padding-right: 40px; .box-sizing(border-box); font-size: @baseFontSize; &.brief { dt { display: none; } dt:first-of-type { display: block; } dd { display: none; } dd:first-of-type { display: block; } } &:not(.brief) { padding-top: 3px; padding-bottom: 3px; } dt { float: left; clear: left; } dd { float: right; font-weight: bold; } } @popupArrowSize: 8px; .component-viewer-popup { position: absolute; z-index: 100; margin-top: -16px; margin-left: @popupArrowSize; padding: 10px; border: 1px solid @barBorderColor; border-radius: 3px; .box-sizing(border-box); background-color: @white; box-shadow: @defaultShadow; } .component-viewer-popup-arrow, .component-viewer-popup-arrow:after { position: absolute; display: block; .size(0, 0); border: @popupArrowSize solid transparent; } .component-viewer-popup-arrow { top: 15px; left: -@popupArrowSize; border-left-width: 0; border-right-color: @barBorderColor; &:after { content: " "; left: 1px; bottom: -@popupArrowSize; border-left-width: 0; border-right-color: @white; } } .component-viewer-popup-section + .component-viewer-popup-section { margin-top: 10px; } .component-viewer-popup-section-title { color: #777; font-size: @smallFontSize; } .component-viewer-popup-list { margin-top: 5px; } .component-viewer-popup-test { position: relative; display: block; height: 24px; line-height: 24px; &:hover { .component-viewer-popup-test-name { text-decoration: underline; } } } .component-viewer-popup-test-name { display: block; width: 240px; border-left: 20px solid transparent; border-right: 44px solid transparent; .box-sizing(border-box); } .component-viewer-popup-test-status { position: absolute; top: 0; left: 0; line-height: 24px; } .component-viewer-popup-test-duration { position: absolute; top: 0; right: 0; color: #777; font-size: @smallFontSize; } @font-face { font-family: 'Source Code Pro'; src: url('../fonts/sourcecodepro-regular.woff') format('woff'); font-weight: normal; font-style: normal; }