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

223 lines
3.4 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;
2018-12-13 13:39:08 +05:30
padding: $gl-padding 0 $gl-padding 56px;
2017-08-17 22:00:37 +05:30
border-bottom: 1px solid $white-normal;
2018-12-13 13:39:08 +05:30
color: $gl-text-color-secondary;
2017-08-17 22:00:37 +05:30
position: relative;
2019-09-04 21:01:54 +05:30
line-height: $gl-line-height-20;
2015-09-25 12:07:36 +05:30
2017-08-17 22:00:37 +05:30
.system-note-image {
position: absolute;
left: 0;
svg {
fill: $gl-text-color-secondary;
}
2018-12-13 13:39:08 +05:30
}
.system-note-image-inline {
svg {
fill: $gl-text-color-secondary;
}
}
2017-08-17 22:00:37 +05:30
2018-12-13 13:39:08 +05:30
.system-note-image,
.system-note-image-inline {
2017-08-17 22:00:37 +05:30
&.opened-icon,
&.created-icon {
svg {
fill: $green-300;
}
}
&.closed-icon svg {
fill: $red-300;
}
&.accepted-icon svg {
fill: $blue-300;
}
2018-12-13 13:39:08 +05:30
&.commented-on-icon svg {
fill: $blue-600;
}
}
.event-user-info {
2019-09-04 21:01:54 +05:30
margin-bottom: $gl-padding-4;
2018-12-13 13:39:08 +05:30
.author_name {
a {
color: $gl-text-color;
font-weight: $gl-font-weight-bold;
}
}
2014-09-02 18:07:02 +05:30
}
.event-title {
2018-12-13 13:39:08 +05:30
.event-type {
&::first-letter {
text-transform: capitalize;
}
}
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 {
2019-09-04 21:01:54 +05:30
margin-top: $gl-padding-4;
2015-11-26 14:37:03 +05:30
margin-right: 174px;
2018-12-13 13:39:08 +05:30
color: $gl-text-color;
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;
2018-12-05 23:21:45 +05:30
color: $gl-gray-500;
2015-04-26 12:48:37 +05:30
overflow: hidden;
2014-09-02 18:07:02 +05:30
}
.note-image-attach {
2018-12-13 13:39:08 +05:30
margin-top: $gl-padding-4;
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 {
2018-12-05 23:21:45 +05:30
color: $gl-gray-500;
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
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-12-13 13:39:08 +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;
}
2019-09-04 21:01:54 +05:30
a {
color: $blue-600;
}
2014-09-02 18:07:02 +05:30
}
}
}
.event-item-timestamp {
float: right;
}
}
/*
* 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-12-13 13:39:08 +05:30
.event-user-info {
margin-bottom: $gl-padding-4;
2018-03-17 18:26:18 +05:30
}
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 {
2018-12-13 13:39:08 +05:30
margin-top: $gl-padding-4;
margin-right: 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;
}
}