discourse/app/assets/stylesheets/admin/plugins.scss
Kris 2d111e2a9a
UX: show all preinstalled plugins and label them as such (#33681)
Instead of listing the redundant commit hash, this now shows
"preinstalled" for the relevant components and links to
https://meta.discourse.org/t/bundling-more-popular-plugins-with-discourse-core/373574.
This is accomplished by checking the URL of the plugin for
`"/discourse/discourse/tree/main/plugins/"` which indicates it's part of
the core Discourse repo.

I've also removed the `hide_plugin` flag from existing preinstalled
plugins. Now Discourse admins will have more clarity into what's
included.

I also made some minor layout adjustments: 
* Larger click area for "how to install a plugin" banner
* Moved "Learn more" into a separate line for consistent positioning

Before:
<img width="2182" height="1192" alt="image"
src="https://github.com/user-attachments/assets/b2943a7f-5212-4abd-8b80-d0d071378f06"
/>


After:
<img width="2226" height="1184" alt="image"
src="https://github.com/user-attachments/assets/0846a2c9-fc1b-435c-b51f-b966af5ade09"
/>
2025-07-17 15:11:52 -04:00

155 lines
2.6 KiB
SCSS
Vendored

@use "lib/viewport";
// Styles for /admin/plugins
.admin-contents.admin-plugins {
.controls {
.settings-button {
margin-left: auto;
}
}
.d-table.admin-plugins-list {
.admin-plugins-list__version {
width: 14%;
@include viewport.until(md) {
text-align: right;
width: auto;
}
}
.d-table__cell.--controls {
width: 10%;
@include viewport.until(md) {
width: auto;
}
}
.admin-plugins-list__row-admin-search-filtered {
background-color: var(--primary-low);
}
}
.admin-plugins-list {
&__name-with-badges {
display: flex;
flex-wrap: wrap;
}
.badges {
margin-left: var(--space-1);
}
&__badge {
--d-border-radius: var(--space-4);
font-weight: 400;
font-size: var(--font-down-2);
background-color: var(--primary-low);
color: var(--primary-high);
padding: var(--space-1) var(--space-2);
border-radius: var(--d-border-radius);
& + .admin-plugins-list__badge {
margin-left: var(--space-1);
}
&:last-of-type {
margin-right: var(--space-1);
}
}
&__about-link {
white-space: nowrap;
display: block;
}
}
}
.admin-plugin-config-page {
&__main-area {
.admin-detail {
padding-top: 15px;
}
&.-without-inner-sidebar {
.admin-detail {
border-left: 0;
padding-left: 0;
width: 100%;
}
}
}
&__metadata {
margin-bottom: var(--space-6);
}
.d-nav-submenu {
background: transparent;
border-bottom: 1px solid var(--primary-low);
.horizontal-overflow-nav {
background: transparent;
&::before {
display: none;
}
&::after {
display: none;
}
}
.admin-plugin-config-page__top-nav {
width: auto;
margin: 0;
a {
font-size: var(--font-down-0);
padding: var(--space-2) var(--space-3) var(--space-3);
&:hover {
color: var(--tertiary);
background-color: transparent;
}
&.active {
color: var(--tertiary);
background-color: transparent;
}
}
.has-sidebar-page & {
@include viewport.until(lg) {
span {
display: none;
}
}
}
}
}
}
.admin-plugins .admin-container {
margin-top: 0;
&.-no-header {
margin-top: 1em;
}
}
.admin-plugin-filtered-site-settings {
&__filter {
width: 100%;
}
}
.admin-plugins-howto {
margin: var(--space-2) 0 0;
a {
display: inline-block;
width: 100%;
}
}