debian-mirror-gitlab/app/assets/stylesheets/pages/events.scss

213 lines
3.3 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
/**
* Dashboard events feed
*
*/
.event-item {
2015-09-25 12:07:36 +05:30
font-size: $gl-font-size;
2017-08-17 22:00:37 +05:30
padding: $gl-padding-top 0 $gl-padding-top 40px;
border-bottom: 1px solid $white-normal;
2016-06-02 11:05:42 +05:30
color: $list-text-color;
2017-08-17 22:00:37 +05:30
position: relative;
2014-09-02 18:07:02 +05:30
&.event-inline {
2017-08-17 22:00:37 +05:30
.system-note-image {
top: 20px;
}
.user-avatar {
top: 14px;
2014-09-02 18:07:02 +05:30
}
2015-09-25 12:07:36 +05:30
2015-11-26 14:37:03 +05:30
.event-title,
2015-09-25 12:07:36 +05:30
.event-item-timestamp {
2016-04-02 18:10:28 +05:30
line-height: 40px;
2015-09-25 12:07:36 +05:30
}
}
a {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2015-09-25 12:07:36 +05:30
}
2017-08-17 22:00:37 +05:30
.system-note-image {
position: absolute;
left: 0;
top: 14px;
svg {
width: 20px;
height: 20px;
fill: $gl-text-color-secondary;
}
&.opened-icon,
&.created-icon {
svg {
fill: $green-300;
}
}
&.closed-icon svg {
fill: $red-300;
}
&.accepted-icon svg {
fill: $blue-300;
}
2014-09-02 18:07:02 +05:30
}
.event-title {
2015-04-26 12:48:37 +05:30
@include str-truncated(calc(100% - 174px));
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2016-06-02 11:05:42 +05:30
color: $list-text-color;
2014-09-02 18:07:02 +05:30
}
2015-09-25 12:07:36 +05:30
2014-09-02 18:07:02 +05:30
.event-body {
2015-11-26 14:37:03 +05:30
margin-right: 174px;
2014-09-02 18:07:02 +05:30
.event-note {
2015-04-26 12:48:37 +05:30
word-wrap: break-word;
2014-09-02 18:07:02 +05:30
.md {
2015-09-25 12:07:36 +05:30
font-size: $gl-font-size;
2015-04-26 12:48:37 +05:30
2018-11-08 19:23:39 +05:30
.badge.badge-pill {
2016-06-02 11:05:42 +05:30
color: $gl-text-color;
}
2015-04-26 12:48:37 +05:30
iframe.twitter-share-button {
vertical-align: bottom;
}
2014-09-02 18:07:02 +05:30
}
2016-08-24 12:49:21 +05:30
code {
white-space: pre-wrap;
}
2014-09-02 18:07:02 +05:30
pre {
2018-03-17 18:26:18 +05:30
border: 0;
2016-09-29 09:46:39 +05:30
background: $gray-light;
2014-09-02 18:07:02 +05:30
border-radius: 0;
2017-08-17 22:00:37 +05:30
color: $events-pre-color;
2015-04-26 12:48:37 +05:30
overflow: hidden;
2014-09-02 18:07:02 +05:30
}
.note-image-attach {
margin-top: 4px;
2016-06-02 11:05:42 +05:30
margin-left: 0;
2014-09-02 18:07:02 +05:30
max-width: 200px;
float: none;
}
p:last-child {
margin-bottom: 0;
}
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.event-note-icon {
2017-08-17 22:00:37 +05:30
color: $events-pre-color;
2014-09-02 18:07:02 +05:30
float: left;
2015-09-25 12:07:36 +05:30
font-size: $gl-font-size;
2014-09-02 18:07:02 +05:30
line-height: 16px;
margin-right: 5px;
}
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.event_icon {
position: relative;
float: right;
2017-08-17 22:00:37 +05:30
border: 1px solid $gray-darker;
2014-09-02 18:07:02 +05:30
padding: 5px;
2016-11-03 12:29:30 +05:30
border-radius: 5px;
2016-09-29 09:46:39 +05:30
background: $gray-light;
2014-09-02 18:07:02 +05:30
margin-left: 10px;
top: -6px;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
img {
width: 20px;
}
}
2018-03-17 18:26:18 +05:30
&:last-child { border: 0; }
2014-09-02 18:07:02 +05:30
.event_commits {
li {
&.commit {
background: transparent;
2017-08-17 22:00:37 +05:30
padding: 0;
2018-03-17 18:26:18 +05:30
border: 0;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.commit-row-title {
2015-09-25 12:07:36 +05:30
font-size: $gl-font-size;
2014-09-02 18:07:02 +05:30
}
}
2015-09-25 12:07:36 +05:30
2014-09-02 18:07:02 +05:30
&.commits-stat {
display: block;
2016-09-29 09:46:39 +05:30
padding: 0 3px 0 0;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
&:hover {
background: none;
}
}
}
}
.event-item-timestamp {
float: right;
line-height: 22px;
}
}
/*
* Last push widget
*/
.event-last-push {
width: 100%;
2018-05-09 12:01:36 +05:30
display: flex;
align-items: center;
2017-08-17 22:00:37 +05:30
2014-09-02 18:07:02 +05:30
.event-last-push-text {
2015-04-26 12:48:37 +05:30
@include str-truncated(100%);
font-size: 13px;
2018-05-09 12:01:36 +05:30
margin-right: $gl-padding;
2014-09-02 18:07:02 +05:30
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2015-04-26 12:48:37 +05:30
.event-item {
2017-08-17 22:00:37 +05:30
padding-left: 0;
2015-11-26 14:37:03 +05:30
2018-03-17 18:26:18 +05:30
&.event-inline {
.event-title {
line-height: 20px;
}
}
2015-04-26 12:48:37 +05:30
.event-title {
white-space: normal;
overflow: visible;
max-width: 100%;
}
2016-11-03 12:29:30 +05:30
2017-08-17 22:00:37 +05:30
.system-note-image {
2015-04-26 12:48:37 +05:30
display: none;
}
.event-body {
margin: 0;
2017-08-17 22:00:37 +05:30
padding-left: 0;
2015-04-26 12:48:37 +05:30
}
.event-item-timestamp {
display: none;
}
}
}
2016-08-24 12:49:21 +05:30
// hide event scope (namespace + project) where it is not necessary
.project-activity {
.event-scope {
display: none;
}
}