chore: Minor Readme CSS code tidy up (#3138)

This commit is contained in:
Sami Mazouz 2021-10-29 19:31:15 +01:00 committed by GitHub
parent a1b5ef5154
commit acf16fdf2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 24 deletions

View File

@ -203,7 +203,7 @@ export default class ExtensionPage extends AdminPage {
Button.component(
{
icon: 'fab fa-readme',
class: 'Readme-link',
class: 'Button Button--text',
onclick() {
app.modal.show(ReadmeModal, { extension });
},

View File

@ -19,7 +19,7 @@ export default class ReadmeModal extends Modal {
}
className() {
return 'ReadmeModal Modal--large';
return 'ReadmeModal Modal--large Modal--inverted';
}
title() {
@ -32,7 +32,7 @@ export default class ReadmeModal extends Modal {
const text = app.translator.trans('core.admin.extension.readme.no_readme');
return (
<div className="container">
<div className="Modal-body">
{this.loading ? (
<div className="ReadmeModal-loading">{LoadingIndicator.component()}</div>
) : (

View File

@ -11,5 +11,4 @@
@import "admin/AppearancePage";
@import "admin/MailPage";
@import "admin/NoJs";
@import "admin/ReadmeModal";
@import "admin/UsersListPage";

View File

@ -150,19 +150,12 @@
margin-left: 8px;
}
.Readme-link {
background: none;
border: none;
cursor: pointer;
color: @muted-color;
}
.ReadmeModal {
.Modal-header {
background: @control-bg;
color: @muted-color
}
img {
max-width: 100%;
}
}
.Placeholder {
margin-bottom: 40px;
}
img {
max-width: 100%;
}
}

View File

@ -1,5 +0,0 @@
.ReadmeModal {
.Placeholder {
margin-bottom: 40px;
}
}

View File

@ -134,6 +134,16 @@
}
}
.Modal--inverted {
.Modal-header {
background-color: @control-bg;
color: @control-color;
}
.Modal-body {
background-color: transparent;
color: unset;
}
}
@media @phone {
.ModalManager.fade {