Skip to content

Commit

Permalink
Remove "Ostatnia aktywność" raster image in favour of regular label
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Oct 22, 2024
1 parent 44f59d6 commit 9311d4b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
Binary file removed public/img/stream-last-feed.png
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/sass/core/_dark_homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ body.theme-dark {
}
}

.overview {
.recent-activity {
border-left-color: #242a30;
}

Expand Down
10 changes: 10 additions & 0 deletions resources/sass/core/_navs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
}
}

.nav-pills {
.nav-link {
&.nav-link-style-only {
// Style an element to look like a nav link,
// without any functionality of nav link.
cursor: default;
}
}
}

.nav-tabs {
.nav-link.active {
border-top: 2px solid $alt-link-hover-color;
Expand Down
6 changes: 1 addition & 5 deletions resources/sass/pages/_homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@

#box-forum {
#stream-wrapper {
background: url('/img/stream-last-feed.png') no-repeat;
padding-top: 25px;
padding-left: 2px;

@include media-breakpoint-down(xl) {
margin-top: 20px;
background-position-x: 10px;
Expand Down Expand Up @@ -130,7 +126,7 @@
}
}

.overview {
.recent-activity {
border-left: 1px solid $card-border-color;
margin: 10px 0 0 10px;

Expand Down
9 changes: 8 additions & 1 deletion resources/views/home.twig
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,15 @@
</div>

<div id="stream-wrapper" class="col-lg-6">
<ul class="nav nav-pills nav-forum">
<li class="nav-item">
<span class="nav-link nav-link-style-only">
Ostatnia aktywność
</span>
</li>
</ul>
<div id="stream">
<div class="overview">
<div class="recent-activity">
{% for activity in activities %}
<div class="media">
<div class="homepage-activity {{ activity.object }} d-none d-sm-block" title="{{ activity.headline|striptags|unescape }}">
Expand Down

0 comments on commit 9311d4b

Please sign in to comment.