Skip to content

Commit

Permalink
Make comment lime green to match ACKED
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscareycode committed Apr 13, 2019
1 parent 3c9f156 commit e7a738f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/components/hosts/HostItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ class HostItem extends Component {
{translate('Next check in', language)}: <span className="color-peach">{formatDateTime(e.next_check)}</span>
</div>

{this.props.comment && <span style={{ textAlign: 'left', fontSize: '1em' }}>
Comment: <span className="color-comment">({this.props.comment_author}): {formatDateTimeAgo(this.props.comment_entry_time)} ago - {this.props.comment}</span>
</span>}
{this.props.comment && <div className="comment">
Comment: <span className="comment-color">({this.props.comment_author}): {formatDateTimeAgo(this.props.comment_entry_time)} {translate('ago', language)} - {this.props.comment}</span>
</div>}
</div>
</div>
);
Expand Down
17 changes: 17 additions & 0 deletions src/components/services/ServiceItem.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
.ServiceItem {

}
.comment {
text-align: left;
font-size: 1em;
background-color: rgba(0, 0, 0, 0.6);
margin-bottom: -5px;
margin-left: -5px;
margin-right: -5px;
padding: 2px 4px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}

.comment-color {
color: #88c1ff;
color: #00d8ff; /* blueish */
color: lime;
}
6 changes: 3 additions & 3 deletions src/components/services/ServiceItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ class ServiceItem extends Component {
{translate('Next check in', language)}: <span className="color-peach">{formatDateTime(e.next_check)}</span>
</div>

{this.props.comment && <span style={{ textAlign: 'left', fontSize: '1em' }}>
Comment: <span className="color-comment">({this.props.comment_author}): {formatDateTimeAgo(this.props.comment_entry_time)} ago - {this.props.comment}</span>
</span>}
{this.props.comment && <div className="comment">
Comment: <span className="comment-color">({this.props.comment_author}): {formatDateTimeAgo(this.props.comment_entry_time)} ago - {this.props.comment}</span>
</div>}

</div>
</div>
Expand Down
4 changes: 0 additions & 4 deletions src/components/services/ServiceItems.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,3 @@
.color-purple {
color: purple;
}
.color-comment {
color: #88c1ff;
color: #00d8ff; /* blueish */
}

0 comments on commit e7a738f

Please sign in to comment.