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

223 lines
3.4 KiB
SCSS
Raw Normal View History

/**
* Dashboard events feed
*
*/
.event-item {
font-size: $gl-font-size;
2018-11-06 14:33:42 +00:00
padding: $gl-padding 0 $gl-padding 56px;
2016-12-12 22:26:21 +00:00
border-bottom: 1px solid $white-normal;
2018-11-06 14:33:42 +00:00
color: $gl-text-color-secondary;
2017-03-31 21:09:58 +00:00
position: relative;
line-height: $gl-line-height-20;
.system-note-image {
2017-03-31 21:09:58 +00:00
position: absolute;
left: 0;
svg {
fill: $gl-text-color-secondary;
}
2018-11-06 14:33:42 +00:00
}
.system-note-image-inline {
svg {
fill: $gl-text-color-secondary;
}
}
2017-03-31 21:09:58 +00:00
2018-11-06 14:33:42 +00:00
.system-note-image,
.system-note-image-inline {
&.opened-icon,
&.created-icon {
svg {
fill: $green-300;
}
2017-03-31 21:09:58 +00:00
}
&.closed-icon svg {
fill: $red-300;
}
&.accepted-icon svg {
2017-03-31 21:09:58 +00:00
fill: $blue-300;
}
2018-11-06 14:33:42 +00:00
&.commented-on-icon svg {
fill: $blue-600;
}
}
.event-user-info {
margin-bottom: $gl-padding-4;
2018-11-06 14:33:42 +00:00
.author_name {
a {
color: $gl-text-color;
font-weight: $gl-font-weight-bold;
}
}
2017-03-31 21:09:58 +00:00
}
.event-title {
2018-11-06 14:33:42 +00:00
.event-type {
&::first-letter {
text-transform: capitalize;
}
}
}
.event-body {
margin-top: $gl-padding-4;
margin-right: 174px;
2018-11-06 14:33:42 +00:00
color: $gl-text-color;
2013-01-05 10:12:02 +00:00
.event-note {
word-wrap: break-word;
2013-02-11 13:47:01 +00:00
.md {
font-size: $gl-font-size;
2016-03-24 11:28:06 +00:00
2018-04-09 15:26:28 +00:00
.badge.badge-pill {
2016-03-24 11:28:06 +00:00
color: $gl-text-color;
}
iframe.twitter-share-button {
vertical-align: bottom;
}
}
code {
white-space: pre-wrap;
}
2013-05-29 20:26:24 +00:00
pre {
2017-11-02 23:59:51 +00:00
border: 0;
background: $gray-light;
2013-05-29 20:26:24 +00:00
border-radius: 0;
color: $gray-500;
overflow: hidden;
2013-05-29 20:26:24 +00:00
}
2013-08-20 18:20:11 +00:00
.note-image-attach {
2018-11-06 14:33:42 +00:00
margin-top: $gl-padding-4;
margin-left: 0;
2013-08-20 18:20:11 +00:00
max-width: 200px;
float: none;
2013-02-11 13:47:01 +00:00
}
p:last-child {
margin-bottom: 0;
}
2013-01-16 22:03:21 +00:00
}
2013-01-16 22:03:21 +00:00
.event-note-icon {
color: $gray-500;
2013-01-16 22:03:21 +00:00
float: left;
font-size: $gl-font-size;
2013-03-04 20:00:51 +00:00
margin-right: 5px;
2013-01-05 10:12:02 +00:00
}
}
.event_icon {
position: relative;
float: right;
2016-11-30 13:25:25 +00:00
border: 1px solid $gray-darker;
padding: 5px;
2016-09-09 16:59:36 +00:00
border-radius: 5px;
background: $gray-light;
margin-left: 10px;
top: -6px;
img {
width: 20px;
}
}
2013-08-16 12:28:32 +00:00
2018-11-06 14:33:42 +00:00
&:last-child {
border: 0;
}
.event_commits {
2012-09-25 10:14:20 +00:00
li {
&.commit {
background: transparent;
padding: 0;
2017-11-02 23:59:51 +00:00
border: 0;
2013-09-10 10:15:49 +00:00
.commit-row-title {
font-size: $gl-font-size;
2013-09-10 10:15:49 +00:00
}
2012-09-25 10:14:20 +00:00
}
2012-09-25 10:14:20 +00:00
&.commits-stat {
display: block;
padding: 0 3px 0 0;
2013-07-04 14:10:34 +00:00
&:hover {
background: none;
}
a {
color: $blue-600;
}
2012-09-25 10:14:20 +00:00
}
}
}
2014-05-26 20:26:41 +00:00
.event-item-timestamp {
float: right;
}
}
2014-05-26 20:26:41 +00:00
/*
* Last push widget
*/
.event-last-push {
width: 100%;
display: flex;
align-items: center;
2016-10-24 19:23:40 +00:00
2014-05-26 20:26:41 +00:00
.event-last-push-text {
@include str-truncated(100%);
2015-03-18 01:11:27 +00:00
font-size: 13px;
margin-right: $gl-padding;
2014-05-26 20:26:41 +00:00
}
}
2018-04-09 15:26:28 +00:00
@include media-breakpoint-down(xs) {
.event-item {
padding-left: 0;
2018-11-06 14:33:42 +00:00
.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 {
2018-11-06 14:33:42 +00:00
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;
}
}