mirror of
https://github.com/He4eT/simple-spaceapi.git
synced 2026-05-04 17:37:24 +00:00
Admin Panel: custom styles
This commit is contained in:
parent
bbc3db6e19
commit
05dd4957ba
1 changed files with 31 additions and 0 deletions
31
src/admin/app.tsx
Normal file
31
src/admin/app.tsx
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import type { StrapiApp } from '@strapi/strapi/admin';
|
||||
|
||||
function applyCustomCSS () {
|
||||
const customCSS = `
|
||||
* {
|
||||
border-radius: 0 !important;
|
||||
scrollbar-color: #8e8ea966 transparent;
|
||||
}
|
||||
|
||||
ol li a {
|
||||
padding-inline-end: 2rem;
|
||||
}
|
||||
`;
|
||||
|
||||
const customStyle = document.createElement('style');
|
||||
customStyle.innerHTML = customCSS;
|
||||
document.head.appendChild(customStyle);
|
||||
}
|
||||
|
||||
export default {
|
||||
config: {
|
||||
tutorials: false,
|
||||
notifications: {
|
||||
releases: false,
|
||||
},
|
||||
},
|
||||
bootstrap(app: StrapiApp) {
|
||||
console.log(app);
|
||||
applyCustomCSS();
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue