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

364 lines
5.8 KiB
SCSS
Raw Normal View History

.commit-description,
.commit-row-description {
padding: $gl-padding-8 0 $gl-padding-8 $gl-padding-8;
margin-top: $gl-padding-8;
2017-11-02 23:59:51 +00:00
border: 0;
border-radius: unset;
background: none;
2016-12-08 15:53:29 +00:00
word-break: normal;
overflow-x: auto;
border-left: 3px solid $white-dark;
color: $gl-text-color-secondary;
}
2016-12-08 15:53:29 +00:00
.commit-box {
border-top: 1px solid $border-color;
padding: $gl-padding 0;
.commit-title {
margin: 0;
2016-12-30 20:18:27 +00:00
color: $gl-text-color;
2016-12-08 15:53:29 +00:00
}
}
.pipeline-info {
.status-icon-container {
display: inline-block;
vertical-align: middle;
margin-right: 3px;
svg {
display: block;
width: 22px;
height: 22px;
}
}
.mr-widget-pipeline-graph {
display: inline-block;
vertical-align: middle;
.dropdown-menu {
margin-top: 11px;
}
}
}
.branch-info .commit-icon {
margin-right: 8px;
svg {
top: 3px;
}
}
2016-12-08 15:53:29 +00:00
/*
* Commit message textarea for web editor and
* custom merge request message
*/
.commit-message-container {
background-color: $body-bg;
position: relative;
2018-07-24 21:17:49 +00:00
font-family: $monospace-font;
2016-12-08 15:53:29 +00:00
$left: 12px;
overflow: hidden; // See https://gitlab.com/gitlab-org/gitlab-foss/issues/13987
2016-12-08 15:53:29 +00:00
.max-width-marker {
width: 72ch;
color: $commit-max-width-marker-color;
font-family: inherit;
left: $left;
height: 100%;
border-right: 1px solid mix($input-border, $white);
2016-12-08 15:53:29 +00:00
position: absolute;
z-index: 1;
}
textarea {
2016-12-08 15:53:29 +00:00
background-color: $commit-message-text-area-bg;
font-family: inherit;
padding-left: $left;
position: relative;
z-index: 2;
}
}
2016-05-24 07:28:18 +00:00
.commit-header {
padding: 5px 10px;
2016-12-12 22:26:21 +00:00
background-color: $gray-light;
2016-11-30 13:25:25 +00:00
border-bottom: 1px solid $gray-darker;
border-top: 1px solid $gray-darker;
2016-05-24 07:28:18 +00:00
font-size: 14px;
&:first-child {
border-top-width: 0;
}
2013-09-10 07:17:15 +00:00
}
2016-05-24 07:28:18 +00:00
.commit-row-title {
.str-truncated {
max-width: 70%;
2013-09-10 10:15:49 +00:00
}
2016-10-19 00:41:29 +00:00
}
.text-expander {
display: inline-flex;
background: $white;
color: $gl-text-color-secondary;
padding: 1px $gl-padding-4;
cursor: pointer;
border: 1px solid $border-white-normal;
border-radius: $border-radius-default;
margin-left: 5px;
font-size: 12px;
line-height: $gl-font-size;
outline: none;
&.open {
background-color: darken($gray-light, 10%);
box-shadow: inset 0 0 2px rgba($black, 0.2);
}
&:hover {
background-color: darken($gray-light, 10%);
text-decoration: none;
}
}
.commit.flex-list {
display: flex;
}
.avatar-cell {
img {
margin-right: 0;
}
}
.commit-detail {
display: flex;
justify-content: space-between;
2018-05-07 17:08:57 +00:00
align-items: start;
flex-grow: 1;
min-width: 0;
2018-08-03 17:29:30 +00:00
.project-namespace {
color: $gl-text-color-tertiary;
2018-08-03 17:29:30 +00:00
}
}
.commit-content {
padding-right: 10px;
white-space: normal;
.commit-title {
display: flex;
align-items: center;
}
2019-06-10 17:43:41 +00:00
.committer {
color: $gl-text-color-tertiary;
.commit-author-link {
color: $gl-text-color;
}
}
}
2016-05-24 07:28:18 +00:00
.commit-actions {
.ci-status-icon svg {
vertical-align: text-bottom;
}
> .ci-status-link,
> .btn,
> .commit-sha-group {
margin-left: $gl-padding;
}
}
.commit-nav-buttons {
margin: 0 0.5rem;
a.btn,
button {
// See: https://gitlab.com/gitlab-org/gitlab-ui/-/issues/730
&:last-child > svg {
margin-left: 0.25rem;
margin-right: 0;
}
}
}
.clipboard-group,
.commit-sha-group {
display: inline-flex;
.label,
.btn:not(.gl-button) {
padding: $gl-vert-padding $gl-btn-padding;
border: 1px $gray-200 solid;
font-size: $gl-font-size;
line-height: $line-height-base;
border-radius: 0;
display: flex;
align-items: center;
}
.label-monospace {
user-select: text;
color: $gl-text-color;
background-color: $gray-light;
2016-05-24 07:28:18 +00:00
}
.btn svg {
top: auto;
fill: $gl-text-color-secondary;
}
:first-child {
border-bottom-left-radius: $border-radius-default;
border-top-left-radius: $border-radius-default;
}
:not(:first-child) {
border-left: 0;
}
:last-child {
border-bottom-right-radius: $border-radius-default;
border-top-right-radius: $border-radius-default;
}
2016-05-24 07:28:18 +00:00
}
.commit,
.generic-commit-status {
a {
color: $gl-text-color;
2017-09-01 13:46:02 +00:00
&.autodevops-badge {
color: $white;
}
2017-09-01 13:46:02 +00:00
}
.commit-row-description {
display: none;
flex: 1;
a {
color: $blue-600;
}
}
&.inline-commit {
.commit-row-title {
font-size: 13px;
}
}
}
.branch-commit {
.commit-icon {
text-align: center;
display: inline-block;
svg {
height: 14px;
width: 14px;
vertical-align: middle;
2016-12-30 20:18:27 +00:00
fill: $gl-text-color-secondary;
}
}
}
.commit,
.generic-commit-status,
.branch-commit {
.commit-sha {
2018-08-14 16:44:08 +00:00
color: $blue-600;
}
}
2017-06-23 20:52:43 +00:00
.gpg-status-box {
2017-08-23 15:09:22 +00:00
padding: 2px 10px;
&:empty {
display: none;
}
2017-06-23 20:52:43 +00:00
&.valid {
@include green-status-color;
2017-06-23 20:52:43 +00:00
}
&.invalid {
@include status-color($gray-dark, color('gray'), $gray-darkest);
border-color: $gray-darkest;
&:not(span):hover {
color: color('gray');
}
2017-06-23 20:52:43 +00:00
}
}
.gpg-popover-certificate-details {
ul {
padding-left: $gl-padding;
}
li.unstyled {
list-style-type: none;
}
}
.gpg-popover-status {
display: flex;
align-items: center;
font-weight: $gl-font-weight-normal;
line-height: 1.5;
2017-06-23 20:52:43 +00:00
}
.gpg-popover-icon {
// same margin as .s32.avatar
2017-06-23 20:52:43 +00:00
margin-right: $btn-side-margin;
&.valid {
2017-07-11 12:12:06 +00:00
svg {
border: 1px solid $brand-success;
fill: $brand-success;
}
2017-06-23 20:52:43 +00:00
}
&.invalid {
2017-07-11 12:12:06 +00:00
svg {
border: 1px solid $gray-darkest;
fill: $gray-darkest;
2017-07-11 12:12:06 +00:00
}
}
svg {
width: 32px;
height: 32px;
border-radius: 50%;
vertical-align: middle;
2017-06-23 20:52:43 +00:00
}
}
.gpg-popover-user-link {
display: flex;
align-items: center;
margin-bottom: $gl-padding / 2;
text-decoration: none;
color: $gl-text-color;
}
.commit .gpg-popover-help-link {
display: block;
color: $link-color;
}
.add-review-item {
.gl-tab-nav-item {
height: 100%;
}
}