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

212 lines
3.3 KiB
SCSS
Raw Normal View History

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