218 lines
3.4 KiB
SCSS
218 lines
3.4 KiB
SCSS
/**
|
|
* Dashboard events feed
|
|
*
|
|
*/
|
|
.event-item {
|
|
font-size: $gl-font-size;
|
|
padding: $gl-padding 0 $gl-padding 56px;
|
|
border-bottom: 1px solid $white-normal;
|
|
color: $gl-text-color-secondary;
|
|
position: relative;
|
|
line-height: $gl-line-height;
|
|
|
|
.system-note-image {
|
|
position: absolute;
|
|
left: 0;
|
|
|
|
svg {
|
|
fill: $gl-text-color-secondary;
|
|
}
|
|
}
|
|
|
|
.system-note-image-inline {
|
|
svg {
|
|
fill: $gl-text-color-secondary;
|
|
}
|
|
}
|
|
|
|
.system-note-image,
|
|
.system-note-image-inline {
|
|
&.opened-icon,
|
|
&.created-icon {
|
|
svg {
|
|
fill: $green-300;
|
|
}
|
|
}
|
|
|
|
&.closed-icon svg {
|
|
fill: $red-300;
|
|
}
|
|
|
|
&.accepted-icon svg {
|
|
fill: $blue-300;
|
|
}
|
|
|
|
&.commented-on-icon svg {
|
|
fill: $blue-600;
|
|
}
|
|
}
|
|
|
|
.event-user-info {
|
|
margin-bottom: $gl-padding-8;
|
|
|
|
.author_name {
|
|
a {
|
|
color: $gl-text-color;
|
|
font-weight: $gl-font-weight-bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
.event-title {
|
|
.event-type {
|
|
&::first-letter {
|
|
text-transform: capitalize;
|
|
}
|
|
}
|
|
}
|
|
|
|
.event-body {
|
|
margin-top: $gl-padding-8;
|
|
margin-right: 174px;
|
|
color: $gl-text-color;
|
|
|
|
.event-note {
|
|
word-wrap: break-word;
|
|
|
|
.md {
|
|
font-size: $gl-font-size;
|
|
|
|
.badge.badge-pill {
|
|
color: $gl-text-color;
|
|
}
|
|
|
|
iframe.twitter-share-button {
|
|
vertical-align: bottom;
|
|
}
|
|
}
|
|
|
|
code {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
pre {
|
|
border: 0;
|
|
background: $gray-light;
|
|
border-radius: 0;
|
|
color: $gl-gray-500;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.note-image-attach {
|
|
margin-top: $gl-padding-4;
|
|
margin-left: 0;
|
|
max-width: 200px;
|
|
float: none;
|
|
}
|
|
|
|
p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.event-note-icon {
|
|
color: $gl-gray-500;
|
|
float: left;
|
|
font-size: $gl-font-size;
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
.event_icon {
|
|
position: relative;
|
|
float: right;
|
|
border: 1px solid $gray-darker;
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
background: $gray-light;
|
|
margin-left: 10px;
|
|
top: -6px;
|
|
|
|
img {
|
|
width: 20px;
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
border: 0;
|
|
}
|
|
|
|
.event_commits {
|
|
li {
|
|
&.commit {
|
|
background: transparent;
|
|
padding: 0;
|
|
border: 0;
|
|
|
|
.commit-row-title {
|
|
font-size: $gl-font-size;
|
|
}
|
|
}
|
|
|
|
&.commits-stat {
|
|
display: block;
|
|
padding: 0 3px 0 0;
|
|
|
|
&:hover {
|
|
background: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.event-item-timestamp {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Last push widget
|
|
*/
|
|
.event-last-push {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.event-last-push-text {
|
|
@include str-truncated(100%);
|
|
font-size: 13px;
|
|
margin-right: $gl-padding;
|
|
}
|
|
}
|
|
|
|
@include media-breakpoint-down(xs) {
|
|
.event-item {
|
|
padding-left: 0;
|
|
|
|
.event-user-info {
|
|
margin-bottom: $gl-padding-4;
|
|
}
|
|
|
|
.event-title {
|
|
white-space: normal;
|
|
overflow: visible;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.system-note-image {
|
|
display: none;
|
|
}
|
|
|
|
.event-body {
|
|
margin-top: $gl-padding-4;
|
|
margin-right: 0;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.event-item-timestamp {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
// hide event scope (namespace + project) where it is not necessary
|
|
.project-activity {
|
|
.event-scope {
|
|
display: none;
|
|
}
|
|
}
|