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

372 lines
5.7 KiB
SCSS
Raw Normal View History

2016-12-08 10:53:29 -05:00
.commit-description {
background: none;
2017-11-02 19:59:51 -04:00
border: 0;
2016-12-08 10:53:29 -05:00
padding: 0;
margin-top: 10px;
word-break: normal;
white-space: pre-wrap;
}
.js-details-expand {
&:hover {
text-decoration: none;
}
}
.commit-box {
border-top: 1px solid $border-color;
padding: $gl-padding 0;
.commit-title {
margin: 0;
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-12-08 10:53:29 -05:00
}
.commit-description {
margin-top: 15px;
}
}
.commit-hash-full {
@media (max-width: $screen-sm-max) {
width: 80px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
vertical-align: bottom;
}
}
.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;
.stage-cell .stage-container {
margin: 3px 3px 3px 0;
}
2017-10-09 06:08:36 -04:00
.stage-container:last-child {
margin-right: 0;
}
.dropdown-menu {
margin-top: 11px;
}
}
}
.branch-info .commit-icon {
margin-right: 3px;
svg {
top: 3px;
}
}
2016-12-08 10:53:29 -05:00
/*
* Commit message textarea for web editor and
* custom merge request message
*/
.commit-message-container {
background-color: $body-bg;
position: relative;
font-family: $monospace_font;
$left: 12px;
overflow: hidden; // See https://gitlab.com/gitlab-org/gitlab-ce/issues/13987
.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-light);
position: absolute;
z-index: 1;
}
textarea {
2016-12-08 10:53:29 -05:00
background-color: $commit-message-text-area-bg;
font-family: inherit;
padding-left: $left;
position: relative;
z-index: 2;
}
}
.commits-compare-switch {
2012-12-19 12:14:05 -05:00
float: left;
margin-right: 9px;
}
2016-05-24 03:28:18 -04:00
.commit-header {
padding: 5px 10px;
2016-12-12 17:26:21 -05:00
background-color: $gray-light;
2016-11-30 08:25:25 -05:00
border-bottom: 1px solid $gray-darker;
border-top: 1px solid $gray-darker;
2016-05-24 03:28:18 -04:00
font-size: 14px;
&:first-child {
border-top-width: 0;
}
2013-09-10 03:17:15 -04:00
}
2016-05-24 03:28:18 -04:00
.commit-row-title {
.notes_count {
float: right;
margin-right: 10px;
2013-09-10 03:17:15 -04:00
}
2013-09-10 06:15:49 -04:00
2016-05-24 03:28:18 -04:00
.str-truncated {
max-width: 70%;
2013-09-10 06:15:49 -04:00
}
2016-05-24 03:28:18 -04:00
.commit-row-message {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2013-09-10 03:17:15 -04:00
}
2016-10-18 20:41:29 -04:00
}
.text-expander {
display: inline-block;
background: $white-light;
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
padding: 0 4px;
2016-10-18 20:41:29 -04:00
cursor: pointer;
border: 1px solid $border-gray-dark;
border-radius: $border-radius-default;
margin-left: 5px;
font-size: 12px;
line-height: $gl-font-size;
outline: none;
2016-10-18 20:41:29 -04:00
&.open {
background-color: darken($gray-light, 10%);
box-shadow: inset 0 0 2px rgba($black, 0.2);
}
2016-10-18 20:41:29 -04:00
&:hover {
background-color: darken($gray-light, 10%);
text-decoration: none;
2013-09-10 06:15:49 -04:00
}
}
.commit.flex-list {
display: flex;
}
.avatar-cell {
width: 46px;
img {
margin-right: 0;
}
}
.commit-detail {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-grow: 1;
.merge-request-branches & {
flex-direction: column;
}
}
.commit-content {
padding-right: 10px;
white-space: normal;
}
2016-05-24 03:28:18 -04:00
.commit-actions {
2016-05-31 06:04:18 -04:00
@media (min-width: $screen-sm-min) {
font-size: 0;
span {
font-size: 6px;
}
}
2016-07-26 15:25:42 -04:00
.ci-status-link {
display: inline-block;
position: relative;
top: 1px;
2016-07-26 15:25:42 -04:00
}
.btn-clipboard,
.btn-transparent {
padding-left: 0;
padding-right: 0;
}
.btn {
&:not(:first-child) {
margin-left: $gl-padding;
}
2016-05-24 03:28:18 -04:00
}
.commit-sha {
font-size: 14px;
font-weight: $gl-font-weight-bold;
}
.ci-status-icon {
position: relative;
top: 3px;
}
2016-05-24 03:28:18 -04:00
}
.commit,
.generic_commit_status {
2017-09-01 09:46:02 -04:00
a,
button {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-05-31 06:04:18 -04:00
vertical-align: baseline;
2016-05-24 03:28:18 -04:00
}
2017-09-01 09:46:02 -04:00
a.autodevops-badge {
color: $white-light;
}
a.autodevops-link {
color: $gl-link-color;
}
.commit-row-description {
font-size: 14px;
padding: 10px 15px;
margin: 10px 0;
background: $gray-light;
display: none;
white-space: pre-wrap;
2016-08-19 11:40:21 -04:00
word-break: normal;
pre {
2017-11-02 19:59:51 -04:00
border: 0;
background: inherit;
padding: 0;
margin: 0;
white-space: pre-wrap;
}
2016-03-29 07:43:33 -04:00
a {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
2016-03-29 07:43:33 -04:00
}
}
&.inline-commit {
.commit-row-title {
font-size: 13px;
}
.committed_ago {
@extend .cgray;
2017-07-12 00:59:39 -04:00
float: right;
}
}
}
.branch-commit {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
.commit-icon {
text-align: center;
display: inline-block;
svg {
height: 14px;
width: 14px;
vertical-align: middle;
2016-12-30 15:18:27 -05:00
fill: $gl-text-color-secondary;
}
}
.commit-sha {
color: $gl-link-color;
}
.commit-row-message {
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
}
}
2017-06-23 16:52:43 -04:00
.gpg-status-box {
2017-08-23 11:09:22 -04:00
padding: 2px 10px;
margin-right: $gl-padding;
&:empty {
display: none;
}
2017-06-23 16:52:43 -04:00
&.valid {
@include green-status-color;
2017-06-23 16:52:43 -04:00
}
&.invalid {
@include status-color($gray-dark, $gray, $gray-darkest);
border-color: $gray-darkest;
2017-06-23 16:52:43 -04:00
}
}
.gpg-popover-status {
display: flex;
align-items: center;
font-weight: $gl-font-weight-normal;
line-height: 1.5;
2017-06-23 16:52:43 -04:00
}
.gpg-popover-icon {
// same margin as .s32.avatar
2017-06-23 16:52:43 -04:00
margin-right: $btn-side-margin;
&.valid {
2017-07-11 08:12:06 -04:00
svg {
border: 1px solid $brand-success;
fill: $brand-success;
}
2017-06-23 16:52:43 -04:00
}
&.invalid {
2017-07-11 08:12:06 -04:00
svg {
border: 1px solid $gray-darkest;
fill: $gray-darkest;
2017-07-11 08:12:06 -04:00
}
}
svg {
width: 32px;
height: 32px;
border-radius: 50%;
vertical-align: middle;
2017-06-23 16:52:43 -04: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;
}