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

173 lines
2.8 KiB
SCSS
Raw Normal View History

/**
* Dashboard events feed
*
*/
.event-item {
font-size: $gl-font-size;
padding: $gl-padding-top 0 $gl-padding-top ($gl-avatar-size + $gl-padding-top);
2015-10-19 05:19:45 -04:00
border-bottom: 1px solid $table-border-color;
color: $list-text-color;
2013-07-13 02:57:54 -04:00
2013-08-20 14:31:37 -04:00
&.event-inline {
.avatar {
position: relative;
top: -2px;
2013-08-20 14:31:37 -04:00
}
.event-title,
.event-item-timestamp {
line-height: 40px;
}
2013-08-20 14:31:37 -04:00
}
a {
color: #4c4e54;
}
.avatar {
margin-left: -($gl-avatar-size + $gl-padding-top);
}
.event-title {
@include str-truncated(calc(100% - 174px));
font-weight: 600;
color: $list-title-color;
a {
color: $list-title-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 {
color: #7f8fa4;
font-size: $gl-font-size;
iframe.twitter-share-button {
vertical-align: bottom;
}
}
2013-05-29 16:26:24 -04:00
pre {
border: none;
background: #f9f9f9;
border-radius: 0;
color: #777;
margin: 0 20px;
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
}
.event-note-icon {
2013-01-05 05:12:02 -05:00
color: #777;
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;
border: 1px solid #eee;
padding: 5px;
@include border-radius(5px);
background: #f9f9f9;
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: 3px;
padding-left: 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 {
margin-top: 3px;
2012-09-25 06:14:20 -04:00
display: block;
2013-07-04 10:10:34 -04:00
padding: 3px;
padding-left: 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%;
2014-05-26 16:26:41 -04:00
.event-last-push-text {
@include str-truncated(100%);
2015-03-17 21:11:27 -04:00
padding: 5px 0;
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: $gl-padding;
.event-title {
white-space: normal;
overflow: visible;
max-width: 100%;
}
.avatar {
display: none;
}
.event-body {
margin: 0;
border-left: 2px solid #ddd;
padding-left: 10px;
}
.event-item-timestamp {
display: none;
}
}
}