Skip to content

Commit

Permalink
small design fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmegatelo committed Dec 15, 2024
1 parent f0e8b9e commit f2fce71
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
23 changes: 17 additions & 6 deletions feed/static/feed/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ a:hover {
background-color: var(--sidebar-bg);
max-height: 100vh;
overflow: auto;
color: var(--color-grey-900);

& a {
color: inherit;
}
}

.subgrid {
Expand Down Expand Up @@ -612,7 +617,7 @@ a:hover {
.sidebar-block-header-buttons {
display: flex;
gap: 8px;
color: var(--color-grey-500)
color: var(--color-grey-400)
}

.sidebar-block__sticky {
Expand Down Expand Up @@ -696,6 +701,7 @@ a:hover {
cursor: pointer;
transition: background-color 0.15s;
gap: 8px;
flex-shrink: 0;

.button__icon {
width: 1.5rem;
Expand Down Expand Up @@ -727,6 +733,7 @@ a:hover {

&.button--text {
padding: 0;
border-radius: 0;
}

.loader {
Expand Down Expand Up @@ -1188,7 +1195,7 @@ a:hover {
.openable {

&[open] {
& .openable-control__icon svg {
& .openable-control__indicator svg {
transform: rotate(90deg);
}
}
Expand All @@ -1207,7 +1214,7 @@ a:hover {
&:hover {
& .openable-control__icon {
opacity: 1;
color: inherit;
color: var(--color-grey-400);
}
}
}
Expand All @@ -1219,15 +1226,19 @@ a:hover {
border-radius: 6px;
opacity: 0;
transition: opacity 0.05s, color 0.15s ease 0.05s, background-color 0.15s;
position: absolute;
left: 10px;
top: 6px;

background-color: var(--color-grey-100);
color: var(--color-grey-100);

&:hover {
background-color: var(--color-grey-200);
}
}

.openable-control__indicator {
position: absolute;
left: 10px;
top: 6px;

& > svg {
transition: transform 0.15s;
Expand Down
4 changes: 2 additions & 2 deletions feed/templates/blocks/feed/feeds_full.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% for collection in collections %}
<details class="openable">
<summary class="button button--ghost button--sm openable-control">
<span class="button__icon openable-control__icon">
<span class="button__icon openable-control__icon openable-control__indicator">
{% include 'icons/chevron_right.svg' %}
</span>
<span class="button__icon">
Expand All @@ -23,7 +23,7 @@
hx-get="{% url 'api_dialog_collection_edit' collection_id=collection.id %}"
title="Edit collection"
>
<span class="button__icon">
<span class="button__icon openable-control__icon">
{% include 'icons/settings.svg' %}
</span>
</button>
Expand Down

0 comments on commit f2fce71

Please sign in to comment.