mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 15:33:42 +08:00
c58cd697d2
Followup e37fb3042d
* Automatically remove the prefix `Discourse ` from all the plugin titles to avoid repetition
* Remove the :discourse_dev: icon from the author. Consider a "By Discourse" with no labels as official
* We add a `label` metadata to plugin.rb
* Only plugins made by us in `discourse` and `discourse-org` GitHub organizations will show these in the list
* Make the plugin author font size a little smaller
* Make the commit sha look like a link so it's more obvious it goes to the code
Also I added some validation and truncation for plugin metadata
parsing since currently you can put absolutely anything in there
and it will show on the plugin list.
81 lines
1.5 KiB
SCSS
81 lines
1.5 KiB
SCSS
// Styles for /admin/plugins
|
|
|
|
.admin-contents.admin-plugins {
|
|
.controls {
|
|
.settings-button {
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
.admin-plugins-list {
|
|
@media screen and (min-width: 550px) {
|
|
tr {
|
|
grid-template-columns: 0.25fr repeat(4, 1fr);
|
|
}
|
|
}
|
|
@include breakpoint(mobile-extra-large) {
|
|
tr {
|
|
grid-template-columns: 0.25fr repeat(3, 1fr);
|
|
}
|
|
.admin-plugins-list {
|
|
&__row {
|
|
grid-column-start: 2;
|
|
grid-column-end: -1;
|
|
}
|
|
&__settings {
|
|
grid-row: 2;
|
|
grid-column-start: 4;
|
|
text-align: right;
|
|
button {
|
|
display: flex;
|
|
}
|
|
}
|
|
&__version {
|
|
grid-row: 2;
|
|
grid-column-start: 3;
|
|
}
|
|
&__enabled {
|
|
grid-row: 2;
|
|
grid-column-start: 2;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__author {
|
|
font-size: var(--font-down-2);
|
|
padding: 0 0 0.25em 0;
|
|
}
|
|
|
|
&__name-with-badges {
|
|
display: flex;
|
|
}
|
|
|
|
&__name {
|
|
font-weight: bold;
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
&__badge {
|
|
font-weight: 400;
|
|
font-size: var(--font-down-2);
|
|
background-color: var(--primary-low);
|
|
color: var(--primary-medium);
|
|
padding: 0.2em 0.8em;
|
|
|
|
.d-icon {
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
& + .admin-plugins-list__badge {
|
|
margin-left: 0.5em;
|
|
}
|
|
}
|
|
|
|
&__version {
|
|
.commit-hash {
|
|
font-size: var(--font-down-1);
|
|
}
|
|
}
|
|
}
|
|
}
|