Commit 32bb33f7 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Change color of icons

parent 63345756
...@@ -4,11 +4,16 @@ ...@@ -4,11 +4,16 @@
*/ */
.event-item { .event-item {
font-size: $gl-font-size; font-size: $gl-font-size;
padding: $gl-padding 0; padding: $gl-padding-top 0 $gl-padding-top ($gl-avatar-size + $gl-padding-top);
border-bottom: 1px solid $white-normal; border-bottom: 1px solid $white-normal;
color: $list-text-color; color: $list-text-color;
position: relative;
&.event-inline { &.event-inline {
.profile-icon {
top: 20px;
}
.event-title, .event-title,
.event-item-timestamp { .event-item-timestamp {
line-height: 40px; line-height: 40px;
...@@ -19,20 +24,34 @@ ...@@ -19,20 +24,34 @@
color: $gl-text-color; color: $gl-text-color;
} }
.event-title { .profile-icon {
@include str-truncated(calc(100% - 174px)); position: absolute;
font-weight: 600; left: 0;
color: $list-text-color; top: 14px;
svg {
width: 20px;
height: auto;
fill: $gl-text-color-secondary;
} }
.event-icon { &.open-icon svg {
display: inline-block; fill: $green-300;
margin: 0 10px;
} }
svg { &.closed-icon svg {
height: 16px; fill: $red-300;
width: 16px; }
&.fork-icon svg {
fill: $blue-300;
}
}
.event-title {
@include str-truncated(calc(100% - 174px));
font-weight: 600;
color: $list-text-color;
} }
.event-body { .event-body {
...@@ -164,7 +183,7 @@ ...@@ -164,7 +183,7 @@
max-width: 100%; max-width: 100%;
} }
.avatar { .profile-icon {
display: none; display: none;
} }
......
- if event.target - if event.target
- if event.action_name == "opened" - if event.action_name == "opened"
.event-icon.open-icon .profile-icon.open-icon
= custom_icon("icon_status_open") = custom_icon("icon_status_open")
- elsif event.action_name == "closed" - elsif event.action_name == "closed"
.event-icon.closed-icon .profile-icon.closed-icon
= custom_icon("icon_status_closed") = custom_icon("icon_status_closed")
- else - else
.event-icon.fork-icon .profile-icon.fork-icon
= custom_icon("code_fork") = custom_icon("code_fork")
.event-title .event-title
......
.event-icon.open-icon .profile-icon.open-icon
= custom_icon("icon_status_open") = custom_icon("icon_status_open")
.event-title .event-title
%span{ class: event.action_name } %span{ class: event.action_name }
......
.event-icon .profile-icon
= custom_icon("comment_o") = custom_icon("comment_o")
.event-title .event-title
......
- project = event.project - project = event.project
.event-icon .profile-icon
= custom_icon("icon_commit") = custom_icon("icon_commit")
.event-title .event-title
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment