Commit eb1b5513 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Move reusable well styles into their own file

parent ba1c5c05
...@@ -39,3 +39,4 @@ ...@@ -39,3 +39,4 @@
@import "framework/typography.scss"; @import "framework/typography.scss";
@import "framework/zen.scss"; @import "framework/zen.scss";
@import "framework/blank"; @import "framework/blank";
@import "framework/wells.scss";
...@@ -90,8 +90,8 @@ $table-border-color: #f0f0f0; ...@@ -90,8 +90,8 @@ $table-border-color: #f0f0f0;
$background-color: $gray-light; $background-color: $gray-light;
$dark-background-color: #f5f5f5; $dark-background-color: #f5f5f5;
$table-text-gray: #8f8f8f; $table-text-gray: #8f8f8f;
$widget-expand-item: #e8f2f7; $well-expand-item: #e8f2f7;
$widget-inner-border: #eef0f2; $well-inner-border: #eef0f2;
/* /*
* Text * Text
......
.info-well {
background: $background-color;
color: $gl-gray;
border: 1px solid $border-color;
border-radius: $border-radius-default;
.well-segment {
padding: $gl-padding;
&:not(:last-of-type) {
border-bottom: 1px solid $well-inner-border;
}
&.branch-info {
.monospace,
.commit-info {
margin-left: 4px;
}
}
}
.icon-container {
display: inline-block;
margin-right: 8px;
svg {
position: relative;
top: 2px;
height: 16px;
width: 16px;
}
&.commit-icon {
svg {
path {
fill: $gl-text-color;
}
}
}
}
.label.label-gray {
background-color: $well-expand-item;
}
}
...@@ -117,52 +117,6 @@ ...@@ -117,52 +117,6 @@
} }
} }
.commit-info-widget {
background: $background-color;
color: $gl-gray;
border: 1px solid $border-color;
border-radius: $border-radius-default;
.widget-row {
padding: $gl-padding;
&:not(:last-of-type) {
border-bottom: 1px solid $widget-inner-border;
}
&.branch-info {
.monospace,
.commit-info {
margin-left: 4px;
}
}
}
.icon-container {
display: inline-block;
margin-right: 8px;
svg {
position: relative;
top: 2px;
height: 16px;
width: 16px;
}
&.commit-icon {
svg {
path {
fill: $gl-text-color;
}
}
}
}
.label.label-gray {
background-color: $widget-expand-item;
}
}
.ci-status-link { .ci-status-link {
svg { svg {
overflow: visible; overflow: visible;
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
} }
.ci_widget { .ci_widget {
border-bottom: 1px solid $widget-inner-border; border-bottom: 1px solid $well-inner-border;
svg { svg {
margin-right: 4px; margin-right: 4px;
......
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
%pre.commit-description %pre.commit-description
= preserve(markdown(@commit.description, pipeline: :single_line, author: @commit.author)) = preserve(markdown(@commit.description, pipeline: :single_line, author: @commit.author))
.commit-info-widget .info-well
.widget-row.branch-info .well-segment.branch-info
.icon-container.commit-icon .icon-container.commit-icon
= custom_icon("icon_commit") = custom_icon("icon_commit")
%span.cgray= pluralize(@commit.parents.count, "parent") %span.cgray= pluralize(@commit.parents.count, "parent")
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
%i.fa.fa-spinner.fa-spin %i.fa.fa-spinner.fa-spin
- if @commit.status - if @commit.status
.widget-row.pipeline-info .well-segment.pipeline-info
.icon-container .icon-container
= ci_icon_for_status(@commit.status) = ci_icon_for_status(@commit.status)
Pipeline Pipeline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment