Skip to content

Commit

Permalink
some styling for the botto sidebar block
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmegatelo committed Dec 18, 2024
1 parent 765d35c commit a984607
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions feed/static/feed/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,12 @@ a:hover {
--side-padding: 0;
--vertical-padding: 0;
background-color: var(--sidebar-bg);
padding-bottom: calc(var(--grid-step) * 4);
max-height: 100vh;
overflow: auto;
color: var(--color-grey-900);
display: flex;
flex-direction: column;

& a {
color: inherit;
Expand Down Expand Up @@ -607,6 +610,10 @@ a:hover {
width: 100%;
}

.sidebar-block--bottom {
margin-top: auto;
}


.sidebar-block-content {
display: flex;
Expand Down Expand Up @@ -644,6 +651,7 @@ a:hover {
display: flex;
flex-direction: column;
align-items: flex-start;
flex: 1;
}

.feed-sidebar-buttons {
Expand Down Expand Up @@ -962,8 +970,8 @@ a:hover {
}

&.input--sm {
padding: calc(var(--grid-step)* 0.5) calc(var(--grid-step)* 1.25);
border-radius: calc(var(--grid-step)* 1.5);
padding: calc(var(--grid-step) * 0.5) calc(var(--grid-step) * 1.25);
border-radius: calc(var(--grid-step) * 1.5);
}
}

Expand Down
2 changes: 1 addition & 1 deletion feed/templates/feed/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h4 class="heading">{% translate 'Feeds' noop %}:</h4>
</div>
{% endcache %}

<div class="sidebar-block sidebar-block-content">
<div class="sidebar-block sidebar-block-content sidebar-block--bottom">
<a class="button button--ghost button--sm"
href="{% url 'profile' %}"
>
Expand Down

0 comments on commit a984607

Please sign in to comment.