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

172 lines
2.8 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;
2016-04-02 18:10:28 +05:30
padding: $gl-padding-top 0 $gl-padding-top ($gl-avatar-size + $gl-padding-top);
2015-11-26 14:37:03 +05:30
border-bottom: 1px solid $table-border-color;
2015-09-25 12:07:36 +05:30
color: #7f8fa4;
2014-09-02 18:07:02 +05:30
&.event-inline {
.avatar {
position: relative;
top: -2px;
}
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 {
color: #4c4e54;
}
.avatar {
2016-04-02 18:10:28 +05:30
margin-left: -($gl-avatar-size + $gl-padding-top);
2014-09-02 18:07:02 +05:30
}
.event-title {
2015-04-26 12:48:37 +05:30
@include str-truncated(calc(100% - 174px));
2015-09-25 12:07:36 +05:30
font-weight: 600;
2014-09-02 18:07:02 +05:30
.author_name {
color: #333;
}
}
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
color: #7f8fa4;
font-size: $gl-font-size;
2015-04-26 12:48:37 +05:30
iframe.twitter-share-button {
vertical-align: bottom;
}
2014-09-02 18:07:02 +05:30
}
pre {
border: none;
background: #f9f9f9;
border-radius: 0;
2015-04-26 12:48:37 +05:30
color: #777;
2014-09-02 18:07:02 +05:30
margin: 0 20px;
2015-04-26 12:48:37 +05:30
overflow: hidden;
2014-09-02 18:07:02 +05:30
}
.note-image-attach {
margin-top: 4px;
margin-left: 0px;
max-width: 200px;
float: none;
}
p:last-child {
margin-bottom: 0;
}
}
.event-note-icon {
color: #777;
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;
}
}
.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;
}
}
&:last-child { border:none }
.event_commits {
li {
&.commit {
background: transparent;
padding: 3px;
padding-left: 0;
border: none;
.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 {
2015-09-25 12:07:36 +05:30
margin-top: 3px;
2014-09-02 18:07:02 +05:30
display: block;
padding: 3px;
padding-left: 0;
&:hover {
background: none;
}
}
}
}
.event-item-timestamp {
float: right;
line-height: 22px;
}
}
/*
* Last push widget
*/
.event-last-push {
2015-04-26 12:48:37 +05:30
overflow: auto;
width: 100%;
2014-09-02 18:07:02 +05:30
.event-last-push-text {
2015-04-26 12:48:37 +05:30
@include str-truncated(100%);
padding: 5px 0;
font-size: 13px;
float:left;
margin-right: -150px;
padding-right: 150px;
line-height: 20px;
2014-09-02 18:07:02 +05:30
}
}
@media (max-width: $screen-xs-max) {
2015-04-26 12:48:37 +05:30
.event-item {
2015-11-26 14:37:03 +05:30
padding-left: $gl-padding;
2015-04-26 12:48:37 +05:30
.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;
}
}
}