discourse/app/assets/stylesheets/common/base/sidebar-more-section-links.scss
Alan Guo Xiang Tan ab053ac669
UX: Remove section heading for community section (#22405)
Why is this change being made?

We've decided that the previous "community" section should look more
like a primary section that holds the most important navigation links
for the site and the word "community" doesn't quite fit that
description. Therefore, we've made the decision to drop the
section heading for the community section. 

As part of removing the section heading, the following changes are made
as well:

1. Button to customize the section has been moved to the "footer" of the
   "More..." section when `navigation_menu` site setting is set to `sidebar`. 
   When `navigation_menu` is set to `header dropdown`, a button to customize 
   the section is shown inline.

2. The section will no longer be collapsable.

3. The title of the section is no longer customisable as it is no longer
   displayed. As a technical note, we have not dropped any previous
   customisations of the section's title previously in case we have to
   bring back the header in the future.

4. The new topic button that was previously present in the header has
   been removed alongside the header. Admins can add a custom section
   link to the `/new-topic` route if there would like to make it easier for
   users to create a new topic in the sidebar.
2023-07-11 09:40:37 +08:00

64 lines
1.5 KiB
SCSS

.btn-flat.sidebar-more-section-links-details-summary {
&:focus-within,
&:active,
&:hover {
background: var(--d-sidebar-highlight-background);
svg.d-icon {
color: var(--d-sidebar-highlight-color);
}
}
height: var(--d-sidebar-row-height);
color: var(--d-sidebar-link-color);
display: flex;
list-style: none;
box-sizing: border-box;
width: 100%;
padding: 0 var(--d-sidebar-row-horizontal-padding);
justify-content: left;
.d-icon {
width: var(--d-sidebar-section-link-prefix-width);
margin-right: var(--d-sidebar-section-link-prefix-margin-right);
color: var(--d-sidebar-link-icon-color);
font-size: var(--font-down-1);
}
}
.sidebar-more-section-links-details-content {
background-color: var(--d-sidebar-background);
transition: background-color 0.25s;
box-shadow: var(--shadow-card);
border: 1px solid var(--primary-low);
margin: 0 calc(var(--d-sidebar-row-horizontal-padding) * 2 / 3);
.sidebar-row {
padding: 0.33rem calc(var(--d-sidebar-row-horizontal-padding) / 3);
}
}
.sidebar-more-section-links-details-content-main {
position: sticky;
margin: 0;
}
.sidebar-more-section-links-details-content-footer {
border-top: 2px solid var(--primary-low);
display: flex;
width: 100%;
.sidebar-section-link-wrapper {
width: 100%;
}
}
.sidebar-more-section-links-details-content-wrapper {
position: absolute;
width: 100%;
z-index: z("modal", "content") + 1;
}
.sidebar-more-section-links-details {
position: relative;
}