gitlab-org--gitlab-foss/app/assets/stylesheets/pages/cycle_analytics.scss

488 lines
7.9 KiB
SCSS
Raw Normal View History

2016-09-14 17:03:42 -04:00
#cycle-analytics {
2016-11-21 16:31:12 -05:00
max-width: 1000px;
2016-09-19 16:41:36 -04:00
margin: 24px auto 0;
position: relative;
2016-09-14 17:03:42 -04:00
.landing {
margin-top: 0;
.inner-content {
white-space: normal;
h4,
p {
margin: 7px 0 0;
max-width: 480px;
padding: 0 $gl-padding;
@media (max-width: $screen-sm-min) {
margin: 0 auto;
}
}
}
}
.col-headers {
ul {
2017-07-12 00:59:39 -04:00
@include clearfix;
margin: 0;
padding: 0;
}
li {
display: inline-block;
float: left;
line-height: 50px;
width: 20%;
}
.fa {
color: $cycle-analytics-light-gray;
&:hover {
color: $gl-text-color;
}
}
.stage-header {
width: 26%;
padding-left: $gl-padding;
}
.median-header {
width: 14%;
}
2016-09-14 17:03:42 -04:00
.event-header {
width: 45%;
padding-left: $gl-padding;
}
.total-time-header {
width: 15%;
text-align: right;
padding-right: $gl-padding;
}
.stage-name {
font-weight: 600;
}
}
.panel {
2016-09-14 17:03:42 -04:00
.content-block {
padding: 24px 0;
border-bottom: none;
position: relative;
2016-10-24 15:23:40 -04:00
2016-12-01 00:27:58 -05:00
@media (max-width: $screen-xs-max) {
padding: 6px 0 24px;
2016-10-24 15:23:40 -04:00
}
2016-09-14 17:03:42 -04:00
}
.column {
text-align: center;
2016-10-24 15:23:40 -04:00
2016-12-01 00:27:58 -05:00
@media (max-width: $screen-xs-max) {
padding: 15px 0;
}
2016-09-14 17:03:42 -04:00
.header {
font-size: 30px;
line-height: 38px;
font-weight: normal;
margin: 0;
}
.text {
color: $layout-link-gray;
margin: 0;
2016-09-14 17:03:42 -04:00
}
2016-09-19 16:41:36 -04:00
&:last-child {
2016-12-01 00:27:58 -05:00
@media (max-width: $screen-xs-max) {
text-align: center;
}
2016-09-19 16:41:36 -04:00
}
2016-09-14 17:03:42 -04:00
}
}
.js-ca-dropdown {
top: $gl-padding-top;
.dropdown-menu-align-right {
margin-top: 2px;
}
}
2016-09-14 17:03:42 -04:00
.content-list {
li {
padding: 18px $gl-padding $gl-padding;
2016-09-19 16:41:36 -04:00
.container-fluid {
padding: 0;
}
2016-09-14 17:03:42 -04:00
}
2016-09-19 16:41:36 -04:00
.title-col {
p {
margin: 0;
&.title {
2016-09-14 17:03:42 -04:00
line-height: 19px;
2016-12-02 14:43:33 -05:00
font-size: 14px;
2016-09-14 17:03:42 -04:00
font-weight: 600;
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-09-14 17:03:42 -04:00
}
2016-10-24 15:23:40 -04:00
&.text {
color: $layout-link-gray;
2016-10-24 15:23:40 -04:00
&.value-col {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
2016-09-14 17:03:42 -04:00
}
}
}
2016-09-19 16:41:36 -04:00
.value-col {
text-align: right;
2016-09-14 17:03:42 -04:00
2016-09-19 16:41:36 -04:00
span {
position: relative;
vertical-align: middle;
top: 3px;
2016-09-19 16:41:36 -04:00
}
2016-09-14 17:03:42 -04:00
}
2016-09-19 16:41:36 -04:00
}
2016-09-14 17:03:42 -04:00
2017-05-02 04:05:43 -04:00
.landing svg {
width: 136px;
height: 136px;
2016-09-19 16:41:36 -04:00
}
2016-09-14 17:03:42 -04:00
2016-09-19 16:41:36 -04:00
.fa-spinner {
font-size: 28px;
position: relative;
margin-left: -20px;
left: 50%;
margin-top: 36px;
2016-09-14 17:03:42 -04:00
}
2016-09-19 16:41:36 -04:00
.stage-panel-body {
display: flex;
flex-wrap: wrap;
}
.stage-nav,
.stage-entries {
display: flex;
vertical-align: top;
font-size: $gl-font-size;
}
.stage-nav {
width: 40%;
margin-bottom: 0;
ul {
padding: 0;
margin: 0;
width: 100%;
}
li {
@include clearfix;
2017-07-12 00:59:39 -04:00
list-style-type: none;
}
.stage-nav-item {
display: flex;
line-height: 65px;
2016-11-21 16:11:01 -05:00
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
border-right: 1px solid $border-color;
background-color: $gray-light;
&.active {
background-color: transparent;
border-right-color: transparent;
border-top-color: $border-color;
border-bottom-color: $border-color;
2016-11-18 19:38:29 -05:00
box-shadow: inset 2px 0 0 0 $active-item-blue;
.stage-name {
font-weight: 600;
}
}
2016-11-21 16:54:06 -05:00
&:hover:not(.active) {
background-color: $gray-lightest;
box-shadow: inset 2px 0 0 0 $border-color;
cursor: pointer;
2016-11-21 16:54:06 -05:00
}
&:first-child {
border-top: none;
}
&:last-child {
border-bottom: none;
}
2016-11-21 16:11:01 -05:00
.stage-nav-item-cell {
&.stage-median {
margin-left: auto;
margin-right: $gl-padding;
min-width: calc(35% - #{$gl-padding});
}
}
.stage-name {
padding-left: 16px;
}
2016-11-18 15:59:04 -05:00
.stage-empty,
.not-available {
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
2016-11-18 15:59:04 -05:00
}
}
}
2016-11-21 16:31:12 -05:00
.stage-panel-container {
width: 100%;
overflow: auto;
}
.stage-panel {
2016-11-21 16:31:12 -05:00
min-width: 968px;
.panel-heading {
padding: 0;
background-color: transparent;
}
.events-description {
line-height: 65px;
padding: 0 $gl-padding;
2017-02-08 11:13:33 -05:00
}
2017-02-08 11:13:33 -05:00
.events-info {
color: $gl-text-color-secondary;
}
}
.stage-events {
width: 60%;
overflow: scroll;
height: 467px;
}
.stage-event-list {
margin: 0;
padding: 0;
}
.stage-event-item {
2017-07-12 00:59:39 -04:00
@include clearfix;
list-style-type: none;
padding: 0 0 $gl-padding;
2016-11-18 19:38:29 -05:00
margin: 0 $gl-padding $gl-padding;
2016-11-21 16:11:01 -05:00
border-bottom: 1px solid $gray-darker;
&:last-child {
border-bottom: none;
margin-bottom: 0;
}
2016-11-18 19:38:29 -05:00
.item-details,
.item-time {
float: left;
}
.item-details {
width: 75%;
}
.item-title {
2016-11-18 19:38:29 -05:00
margin: 0 0 2px;
2016-11-18 19:38:29 -05:00
&.issue-title,
&.commit-title,
&.merge-merquest-title {
2017-07-12 00:59:39 -04:00
@include text-overflow();
max-width: 100%;
display: block;
2016-11-17 17:29:22 -05:00
a {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-11-17 17:29:22 -05:00
}
}
}
.item-time {
width: 25%;
text-align: right;
2016-11-16 18:05:25 -05:00
}
.total-time {
font-size: $cycle-analytics-big-font;
color: $cycle-analytics-dark-text;
2016-11-16 18:05:25 -05:00
span {
color: $gl-text-color;
2016-11-16 18:05:25 -05:00
font-size: $gl-font-size;
}
}
2016-11-09 02:15:50 -05:00
2016-11-18 19:38:29 -05:00
.issue-date,
.build-date {
2016-11-09 02:25:11 -05:00
color: $gl-text-color;
}
2016-11-18 19:38:29 -05:00
2016-11-09 02:25:11 -05:00
.issue-link,
.commit-author-link,
.issue-author-link {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-11-09 02:15:50 -05:00
}
// Custom CSS for components
.item-conmmit-component {
.commit-icon {
svg {
display: inline-block;
width: 20px;
height: 20px;
vertical-align: bottom;
2016-11-09 02:15:50 -05:00
}
2016-11-18 19:38:29 -05:00
}
2016-11-09 02:15:50 -05:00
}
.merge-request-branch {
a {
max-width: 180px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline-block;
vertical-align: bottom;
}
}
}
2016-11-18 19:38:29 -05:00
// Custom Styles for stage items
.item-build-component {
.item-title {
.icon-build-status {
float: left;
margin-right: 5px;
2016-11-18 14:31:53 -05:00
position: relative;
top: 2px;
}
.item-build-name {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
.pipeline-id {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
padding: 0 3px 0 0;
}
.ref-name {
color: $black;
display: inline-block;
max-width: 180px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
line-height: 1.3;
vertical-align: top;
}
2016-11-18 19:38:29 -05:00
.commit-sha {
color: $gl-link-color;
line-height: 1.3;
vertical-align: top;
font-weight: normal;
}
.fa {
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
font-size: $code_font_size;
}
}
}
.empty-stage,
.no-access-stage {
text-align: center;
width: 75%;
margin: 0 auto;
padding-top: 130px;
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
h4 {
color: $gl-text-color;
}
}
.empty-stage {
.icon-no-data {
height: 36px;
width: 78px;
display: inline-block;
margin-bottom: 20px;
}
}
.no-access-stage {
.icon-lock {
height: 36px;
width: 78px;
display: inline-block;
margin-bottom: 20px;
}
}
// TODO: fallback to global style
.dropdown-menu {
li {
padding: 0 1px;
a {
border-radius: 0;
padding: 8px 16px;
&:hover,
&:active,
&:focus {
background-color: $gray-darker;
}
}
}
}
2016-09-14 17:03:42 -04:00
}
2016-11-18 18:22:07 -05:00
.cycle-analytics-overview {
padding-top: 100px;
.overview-details {
display: flex;
align-items: center;
}
.overview-image {
text-align: right;
}
2016-11-18 19:38:29 -05:00
2016-11-18 18:22:07 -05:00
.overview-icon {
svg {
width: 365px;
height: 227px;
}
}
}