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

178 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;
padding: $gl-padding;
margin-left: -$gl-padding;
margin-right: -$gl-padding;
border-bottom: 1px solid #f1f2f4;
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
.event-title {
line-height: 44px;
}
.event-item-timestamp {
line-height: 44px;
}
}
a {
color: #4c4e54;
}
.avatar {
margin-right: 15px;
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-09-25 12:07:36 +05:30
margin-left: 63px;
2015-04-26 12:48:37 +05:30
margin-right: 80px;
2014-09-02 18:07:02 +05:30
.event-note {
margin-top: 5px;
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 {
2015-09-25 12:07:36 +05:30
margin-top: 9px;
2014-09-02 18:07:02 +05:30
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;
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 {
.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;
}
}
}