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

176 lines
2.9 KiB
SCSS
Raw Normal View History

/**
* Dashboard events feed
*
*/
.event-item {
font-size: $gl-font-size;
padding: $gl-padding $gl-padding $gl-padding ($gl-padding + $gl-avatar-size + 15px);
margin-left: -$gl-padding;
margin-right: -$gl-padding;
2015-10-19 05:19:45 -04:00
border-bottom: 1px solid $table-border-color;
color: #7f8fa4;
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: 44px;
}
2013-08-20 14:31:37 -04:00
}
a {
color: #4c4e54;
}
.avatar {
margin-left: -($gl-avatar-size + 15px);
}
.event-title {
@include str-truncated(calc(100% - 174px));
font-weight: 600;
.author_name {
color: #333;
}
}
.event-body {
margin-right: 174px;
2013-01-05 05:12:02 -05:00
.event-note {
2013-03-04 15:00:51 -05:00
margin-top: 5px;
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: 0px;
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 {
margin-top: 9px;
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;
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;
}
}
}