Skip to content

Commit

Permalink
UX: General maintenance and updates (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot authored Dec 6, 2024
1 parent 7bb8a75 commit 1a3479c
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 16 deletions.
5 changes: 5 additions & 0 deletions scss/blocks/profile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,8 @@
}
}
}

#collapsed-info-panel {
font-size: var(--font-down-1);
padding: 0 1em;
}
24 changes: 24 additions & 0 deletions scss/components/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ body:not(.admin-interface) {
}

.sidebar-section-wrapper {
padding-bottom: 1em;
&[data-section-name="chat-channels"],
&[data-section-name="chat-dms"],
&[data-section-name="tags"],
Expand Down Expand Up @@ -221,6 +222,16 @@ body:not(.admin-interface) {
.sidebar-footer-wrapper {
display: none;
}

.sidebar__panel-switch-button {
.d-button-label {
display: none;
}
.d-icon {
margin: 0;
font-size: var(--font-up-2);
}
}
}

@include breakpoint(tablet) {
Expand Down Expand Up @@ -270,6 +281,13 @@ body:not(.admin-interface) {

.sidebar-sections {
display: contents;
[data-section-name="user-threads"] {
display: none;
}
}

.sidebar__panel-switch-button {
display: none;
}

.sidebar-section {
Expand Down Expand Up @@ -563,3 +581,9 @@ body:has(.admin-main-nav .nav-pills) {
margin-left: -0.25em; // horizontal alignment
}
}

body:not(.has-full-page-chat) {
[data-section-name="user-threads"] {
display: none;
}
}
6 changes: 6 additions & 0 deletions scss/discourse/badges.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@
.badge-card {
border-radius: var(--rounded-md);
}

.badge-card {
.favorite-btn {
margin: 0.5em;
}
}
2 changes: 2 additions & 0 deletions scss/discourse/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@
> .d-icon-bell {
position: absolute;
color: var(--primary);
z-index: 1;
pointer-events: none; // prevent svg from blocking hover
}
}

Expand Down
5 changes: 4 additions & 1 deletion scss/discourse/other.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@

.users-directory.directory,
.discourse-post-event-upcoming-events,
.container.groups-index,
.container.badges,
.container.cakeday,
.reviewable,
.body-page {
padding: 0 1rem;
}

.container.groups-index {
padding: 1rem;
}

.group-box,
.reviewable-filters {
border-radius: var(--rounded-xl);
Expand Down
6 changes: 5 additions & 1 deletion scss/discourse/search-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
display: none;
}
.search-menu-panel {
background: none;
box-shadow: var(--shadow-menu-panel);
z-index: 0;
}
Expand Down Expand Up @@ -145,6 +144,11 @@
#search-term {
padding: 0.5rem 0;
}
.search-context {
flex-shrink: 0;
height: unset;
padding: 0.25em;
}
.search-context ~ #search-term {
padding: 0;
}
Expand Down
4 changes: 2 additions & 2 deletions scss/discourse/topic-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ table.topic-list:not(.bookmark-list) {
gap: 0 1rem;

@container (max-width: 32rem) {
grid-template-areas: "avatar author" "avatar category" "avatar title" "avatar tags" "avatar content" "avatar replies" "avatar actions";
grid-template-areas: "avatar author" "avatar category" "avatar title" "avatar tags" "avatar content" "avatar replies" "avatar actions" "avatar excerpt";
grid-template-columns: 2rem auto;

.topic__actions {
Expand Down Expand Up @@ -322,7 +322,7 @@ table.topic-list:not(.bookmark-list) {
}

body:not(.user-messages-page) {
.topic__excerpt {
.topic-excerpt {
display: none;
}
.topic__author .topic__metadata {
Expand Down
2 changes: 1 addition & 1 deletion scss/discourse/topic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
.regular {
.more-topics {
&__container {
padding: 0;
padding: 1em;
max-width: unset;
}
&__list-title {
Expand Down
30 changes: 19 additions & 11 deletions scss/discourse/user.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
background: none;
}

.user-messages-page,
.user-assigned-page,
.user-notifications-page,
.user-activity-bookmarks-page,
.user-preferences-page {
.about,
.user-navigation-primary {
display: none;
}
}

.user-activity-bookmarks-page {
.user-navigation-secondary {
display: none;
Expand All @@ -39,3 +28,22 @@
border-bottom-left-radius: 0;
}
}

.user-admin {
border-radius: var(--rounded-md);
}

.invite-actions {
display: flex;
gap: 0.5em;
.btn {
border-radius: var(--rounded-full);
}
}

.pref-username,
.pref-avatar {
.btn {
display: inline-flex;
}
}

0 comments on commit 1a3479c

Please sign in to comment.