debian-mirror-gitlab/app/assets/stylesheets/pages/commits.scss

389 lines
6.2 KiB
SCSS
Raw Normal View History

2017-08-17 22:00:37 +05:30
.commit-description {
background: none;
2018-03-17 18:26:18 +05:30
border: 0;
2017-08-17 22:00:37 +05:30
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;
color: $gl-text-color;
}
.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;
2017-09-10 17:25:29 +05:30
.stage-cell .stage-container {
margin: 3px 3px 3px 0;
}
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
.stage-container:last-child {
margin-right: 0;
}
2017-08-17 22:00:37 +05:30
.dropdown-menu {
margin-top: 11px;
}
}
}
.branch-info .commit-icon {
margin-right: 3px;
svg {
top: 3px;
}
}
/*
* 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 {
background-color: $commit-message-text-area-bg;
font-family: inherit;
padding-left: $left;
position: relative;
z-index: 2;
}
}
2016-06-02 11:05:42 +05:30
.commits-compare-switch {
2015-04-26 12:48:37 +05:30
float: left;
margin-right: 9px;
}
2016-06-22 15:30:34 +05:30
.commit-header {
padding: 5px 10px;
2017-08-17 22:00:37 +05:30
background-color: $gray-light;
border-bottom: 1px solid $gray-darker;
border-top: 1px solid $gray-darker;
2016-06-22 15:30:34 +05:30
font-size: 14px;
&:first-child {
border-top-width: 0;
}
2015-04-26 12:48:37 +05:30
}
2016-06-22 15:30:34 +05:30
.commit-row-title {
.notes_count {
float: right;
margin-right: 10px;
}
.str-truncated {
max-width: 70%;
2015-04-26 12:48:37 +05:30
}
2016-06-22 15:30:34 +05:30
.commit-row-message {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-06-22 15:30:34 +05:30
}
2017-08-17 22:00:37 +05:30
}
2016-06-22 15:30:34 +05:30
2017-08-17 22:00:37 +05:30
.text-expander {
display: inline-block;
background: $white-light;
color: $gl-text-color-secondary;
2018-03-17 18:26:18 +05:30
padding: 0 4px;
2017-08-17 22:00:37 +05:30
cursor: pointer;
border: 1px solid $border-gray-dark;
border-radius: $border-radius-default;
margin-left: 5px;
2018-03-17 18:26:18 +05:30
font-size: 12px;
2017-08-17 22:00:37 +05:30
line-height: $gl-font-size;
outline: none;
&.open {
2018-03-17 18:26:18 +05:30
background-color: darken($gray-light, 10%);
2017-08-17 22:00:37 +05:30
box-shadow: inset 0 0 2px rgba($black, 0.2);
2015-04-26 12:48:37 +05:30
}
2017-08-17 22:00:37 +05:30
&:hover {
background-color: darken($gray-light, 10%);
text-decoration: none;
}
}
.commit.flex-list {
display: flex;
}
.avatar-cell {
width: 46px;
img {
margin-right: 0;
}
}
.commit-detail {
display: flex;
justify-content: space-between;
2018-05-09 12:01:36 +05:30
align-items: center;
2017-08-17 22:00:37 +05:30
flex-grow: 1;
}
.commit-content {
padding-right: 10px;
2018-03-17 18:26:18 +05:30
white-space: normal;
2015-04-26 12:48:37 +05:30
}
2016-06-22 15:30:34 +05:30
.commit-actions {
@media (min-width: $screen-sm-min) {
2018-03-17 18:26:18 +05:30
.fa-spinner {
font-size: 12px;
}
2016-06-22 15:30:34 +05:30
}
2015-11-26 14:37:03 +05:30
2016-09-13 17:45:13 +05:30
.ci-status-link {
2018-05-09 12:01:36 +05:30
display: inline-flex;
2016-09-13 17:45:13 +05:30
}
2018-05-09 12:01:36 +05:30
> .ci-status-link,
> .btn,
> .commit-sha-group {
margin-left: $gl-padding-8;
2016-06-22 15:30:34 +05:30
}
2018-05-09 12:01:36 +05:30
}
.commit-sha-group {
display: inline-flex;
2015-04-26 12:48:37 +05:30
2018-05-09 12:01:36 +05:30
.label,
2016-06-22 15:30:34 +05:30
.btn {
2018-05-09 12:01:36 +05:30
padding: $gl-vert-padding $gl-btn-padding;
border: 1px $border-color solid;
font-size: $gl-font-size;
line-height: $line-height-base;
border-radius: 0;
display: flex;
align-items: center;
}
.label-monospace {
@extend .monospace;
user-select: text;
color: $gl-text-color;
background-color: $gray-light;
2016-06-22 15:30:34 +05:30
}
2016-01-29 22:53:50 +05:30
2018-05-09 12:01:36 +05:30
.btn svg {
top: auto;
fill: $gl-text-color-secondary;
2018-03-17 18:26:18 +05:30
}
2018-05-09 12:01:36 +05:30
.fa-clipboard {
color: $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;
2017-09-10 17:25:29 +05:30
}
2016-06-22 15:30:34 +05:30
}
2015-04-26 12:48:37 +05:30
2017-08-17 22:00:37 +05:30
.commit,
.generic_commit_status {
2016-06-22 15:30:34 +05:30
a,
button {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-06-22 15:30:34 +05:30
vertical-align: baseline;
}
2015-04-26 12:48:37 +05:30
2018-03-17 18:26:18 +05:30
a.autodevops-badge {
color: $white-light;
}
a.autodevops-link {
color: $gl-link-color;
}
2015-04-26 12:48:37 +05:30
.commit-row-description {
font-size: 14px;
padding: 10px 15px;
2016-06-22 15:30:34 +05:30
margin: 10px 0;
2016-09-29 09:46:39 +05:30
background: $gray-light;
2015-04-26 12:48:37 +05:30
display: none;
2017-09-10 17:25:29 +05:30
white-space: pre-wrap;
2016-09-29 09:46:39 +05:30
word-break: normal;
2015-04-26 12:48:37 +05:30
pre {
2018-03-17 18:26:18 +05:30
border: 0;
2015-04-26 12:48:37 +05:30
background: inherit;
padding: 0;
margin: 0;
2016-06-22 15:30:34 +05:30
white-space: pre-wrap;
2015-04-26 12:48:37 +05:30
}
2016-06-02 11:05:42 +05:30
a {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-06-02 11:05:42 +05:30
}
2015-04-26 12:48:37 +05:30
}
&.inline-commit {
.commit-row-title {
font-size: 13px;
}
.committed_ago {
@extend .cgray;
2017-09-10 17:25:29 +05:30
float: right;
2015-04-26 12:48:37 +05:30
}
}
}
2015-11-26 14:37:03 +05:30
.branch-commit {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-11-03 12:29:30 +05:30
2017-08-17 22:00:37 +05:30
.commit-icon {
text-align: center;
display: inline-block;
2017-08-17 22:00:37 +05:30
svg {
height: 14px;
width: 14px;
vertical-align: middle;
fill: $gl-text-color-secondary;
}
2017-08-17 22:00:37 +05:30
}
2017-09-10 17:25:29 +05:30
.commit-sha {
2017-08-17 22:00:37 +05:30
color: $gl-link-color;
}
2017-08-17 22:00:37 +05:30
.commit-row-message {
color: $gl-text-color;
}
}
2017-09-10 17:25:29 +05:30
.gpg-status-box {
padding: 2px 10px;
&:empty {
display: none;
}
&.valid {
@include green-status-color;
}
&.invalid {
2018-03-17 18:26:18 +05:30
@include status-color($gray-dark, $gray, $gray-darkest);
border-color: $gray-darkest;
2017-09-10 17:25:29 +05:30
}
}
.gpg-popover-status {
display: flex;
align-items: center;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-09-10 17:25:29 +05:30
line-height: 1.5;
}
.gpg-popover-icon {
// same margin as .s32.avatar
margin-right: $btn-side-margin;
&.valid {
svg {
border: 1px solid $brand-success;
fill: $brand-success;
}
}
&.invalid {
svg {
2018-03-17 18:26:18 +05:30
border: 1px solid $gray-darkest;
fill: $gray-darkest;
2017-09-10 17:25:29 +05:30
}
}
svg {
width: 32px;
height: 32px;
border-radius: 50%;
vertical-align: middle;
}
}
.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;
}