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

267 lines
4.1 KiB
SCSS
Raw Normal View History

.commit-title {
2015-02-19 23:45:21 -05:00
display: block;
}
.commit-author,
.commit-committer {
2015-02-19 23:45:21 -05:00
display: block;
color: #999;
font-weight: normal;
font-style: italic;
}
.commit-author strong,
.commit-committer strong {
2015-02-19 23:45:21 -05:00
font-weight: bold;
font-style: normal;
}
.commit-description {
background: none;
border: none;
margin: 0;
padding: 0;
margin-top: 10px;
word-break: normal;
white-space: pre-wrap;
2015-02-19 23:45:21 -05:00
}
.commit-info-row {
margin-bottom: 10px;
2016-05-18 11:18:16 -04:00
line-height: 24px;
padding-top: 6px;
2016-05-26 12:15:22 -04:00
&.commit-info-row-header {
line-height: 34px;
2016-10-18 20:41:29 -04:00
padding: 10px 0;
2016-10-19 11:25:12 -04:00
margin-bottom: 0;
2016-05-26 12:15:22 -04:00
.commitable-meta {
display: inline-block;
line-height: 18px;
}
.commit-hash-full {
@media (max-width: $screen-md-min) {
width: 80px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
vertical-align: bottom;
}
}
.commitable-actions {
@media (min-width: $screen-sm) {
float: right;
padding-top: 0;
}
.dropdown {
@media (max-width: $screen-sm) {
width: 100%;
margin-top: 10px;
}
}
.dropdown-toggle {
@media (max-width: $screen-sm) {
width: 100%;
}
}
}
2016-05-26 12:15:22 -04:00
.commit-options-dropdown-caret {
@media (max-width: $screen-sm) {
margin-left: 0;
}
}
}
2015-02-19 23:45:21 -05:00
.avatar {
@extend .avatar-inline;
2016-05-26 12:15:22 -04:00
margin-left: 0;
@media (min-width: $screen-sm-min) {
margin-left: 4px;
}
2015-02-19 23:45:21 -05:00
}
2015-02-19 23:45:21 -05:00
.commit-committer-link,
.commit-author-link {
2016-04-25 16:02:15 -04:00
color: $gl-gray;
2015-02-19 23:45:21 -05:00
font-weight: bold;
}
2016-04-25 16:02:15 -04:00
.fa-clipboard {
color: $dropdown-title-btn-color;
}
2016-04-26 14:20:58 -04:00
.commit-info {
&.branches {
margin-left: 8px;
}
}
.ci-status-link {
svg {
2016-08-17 18:45:52 -04:00
position: relative;
top: 2px;
margin: 0 2px 0 3px;
}
}
2016-07-21 10:37:31 -04:00
}
2016-07-20 12:17:52 -04:00
2016-10-18 20:41:29 -04:00
.js-details-expand {
&:hover {
text-decoration: none;
}
}
2016-10-18 19:57:53 -04:00
.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) {
2016-10-18 20:41:29 -04:00
border-bottom: 1px solid $widget-inner-border;
}
&.branch-info {
.monospace,
.commit-info {
margin-left: 4px;
}
2016-10-18 19:57:53 -04:00
}
}
2016-10-18 20:41:29 -04:00
.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;
}
2016-10-18 19:57:53 -04:00
}
2016-07-21 10:37:31 -04:00
.ci-status-link {
svg {
overflow: visible;
2016-07-20 12:17:52 -04:00
}
2015-02-19 23:45:21 -05:00
}
.commit-box {
border-top: 1px solid $border-color;
2016-10-18 19:57:53 -04:00
padding: $gl-padding 0;
2015-02-19 23:45:21 -05:00
.commit-title {
margin: 0;
font-size: 23px;
2016-04-25 16:02:15 -04:00
color: $gl-gray-dark;
2015-02-19 23:45:21 -05:00
}
.commit-description {
margin-top: 15px;
}
}
.file-stats {
ul {
list-style: none;
margin: 0;
padding: 10px 0;
li {
padding: 3px 0;
line-height: 20px;
}
}
2015-02-19 23:45:21 -05:00
.new-file {
a {
color: $gl-text-green;
2015-02-19 23:45:21 -05:00
}
}
2015-02-19 23:45:21 -05:00
.renamed-file {
a {
color: $gl-text-orange;
2015-02-19 23:45:21 -05:00
}
}
2015-02-19 23:45:21 -05:00
.deleted-file {
a {
color: $gl-text-red;
2015-02-19 23:45:21 -05:00
}
}
.edit-file {
a {
color: $gl-text-color;
2015-02-19 23:45:21 -05:00
}
}
}
2016-04-26 14:20:58 -04:00
.commit-action-buttons {
2016-10-18 20:41:29 -04:00
position: relative;
top: -1px;
2016-04-26 14:20:58 -04:00
i {
color: $gl-icon-color;
font-size: 13px;
margin-right: 3px;
}
}
2015-02-19 23:45:21 -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;
2016-03-10 14:31:21 -05:00
overflow: hidden; // See https://gitlab.com/gitlab-org/gitlab-ce/issues/13987
2015-02-19 23:45:21 -05:00
.max-width-marker {
width: 72ch;
color: rgba(0, 0, 0, 0.0);
font-family: inherit;
left: $left;
height: 100%;
border-right: 1px solid mix($input-border, white);
position: absolute;
z-index: 1;
}
2015-02-19 23:45:21 -05:00
> textarea {
background-color: rgba(0, 0, 0, 0.0);
font-family: inherit;
padding-left: $left;
position: relative;
z-index: 2;
}
}