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

220 lines
3.4 KiB
SCSS
Raw Normal View History

.commits-compare-switch {
@include btn-default;
@include btn-white;
background: image-url("switch_icon.png") no-repeat center center;
text-indent: -9999px;
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;
background-color: $background-color;
border-top: 1px solid #eee;
2016-05-25 04:11:47 -04:00
border-bottom: 1px solid #eee;
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 {
line-height: 1;
margin-bottom: 7px;
2016-05-24 03:28:18 -04:00
.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 {
color: $gl-dark-link-color;
2013-09-10 03:17:15 -04:00
}
2013-09-10 06:15:49 -04:00
2016-05-24 03:28:18 -04:00
.text-expander {
display: inline-block;
background: $gray-light;
2016-06-09 05:50:03 -04:00
color: $gl-placeholder-color;
2016-05-24 03:28:18 -04:00
padding: 0 5px;
cursor: pointer;
border: 1px solid $border-gray-dark;
border-radius: $border-radius-default;
margin-left: 5px;
2016-05-24 03:28:18 -04:00
&:hover {
background-color: darken($gray-light, 10%);
text-decoration: none;
}
2013-09-10 06:15:49 -04:00
}
}
2016-05-24 03:28:18 -04:00
.commit-actions {
2016-05-31 06:04:18 -04:00
@media (min-width: $screen-sm-min) {
2016-05-24 03:28:18 -04:00
float: right;
margin-left: $gl-padding;
margin-top: 2px;
font-size: 0;
}
.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
}
}
2016-05-24 03:28:18 -04:00
.commit-short-id {
font-family: $monospace_font;
font-weight: 600;
}
2016-05-24 03:28:18 -04:00
.commit {
2016-05-31 06:40:46 -04:00
padding: 10px 0;
position: relative;
2016-05-31 06:04:18 -04:00
@media (min-width: $screen-sm-min) {
2016-06-27 05:59:56 -04:00
padding-left: 46px;
2016-05-31 06:04:18 -04:00
}
2016-05-24 03:28:18 -04:00
&:not(:last-child) {
border-bottom: 1px solid #eee;
}
a,
button {
2016-05-24 03:28:18 -04:00
color: $gl-dark-link-color;
2016-05-31 06:04:18 -04:00
vertical-align: baseline;
2016-05-24 03:28:18 -04:00
}
2016-05-24 03:28:18 -04:00
.avatar {
2016-06-27 05:59:56 -04:00
margin-left: -46px;
}
.item-title {
display: inline-block;
2016-05-31 06:04:18 -04:00
@media (min-width: $screen-sm-min) {
max-width: 70%;
}
}
.commit-row-description {
font-size: 14px;
border-left: 1px solid #eee;
padding: 10px 15px;
margin: 10px 0;
background: #f9f9f9;
display: none;
pre {
border: none;
background: inherit;
padding: 0;
margin: 0;
white-space: pre-wrap;
}
2016-03-29 07:43:33 -04:00
a {
color: $gl-dark-link-color;
}
}
.commit-row-info {
color: $gl-gray;
line-height: 1;
a {
color: $gl-gray;
}
.avatar {
margin-right: 8px;
}
}
&.inline-commit {
.commit-row-title {
font-size: 13px;
}
.committed_ago {
float: right;
@extend .cgray;
}
}
}
.branch-commit {
color: $gl-gray;
.commit-id, .commit-row-message {
color: $gl-gray;
}
}
.divergence-graph {
padding: 12px 12px 0 0;
float: right;
.graph-side {
position: relative;
width: 80px;
height: 22px;
padding: 5px 0 13px;
float: left;
.bar {
position: absolute;
height: 4px;
background-color: #ccc;
}
.bar-behind {
right: 0;
border-radius: 3px 0 0 3px;
}
.bar-ahead {
left: 0;
border-radius: 0 3px 3px 0;
}
.count {
padding-top: 6px;
padding-bottom: 0;
font-size: 12px;
color: #333;
display: block;
}
.count-behind {
padding-right: 4px;
text-align: right;
}
.count-ahead {
padding-left: 4px;
text-align: left;
}
}
.graph-separator {
position: relative;
width: 1px;
height: 18px;
margin: 5px 0 0;
float: left;
background-color: #ccc;
}
}